mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move divecomputer configuration code to different files
This splits the code in configuredivecomputer.cpp into multiple files. The read and write threads are moved to configuredivecomputerthreads.h/cpp, and the device details class is moved to devicedetails.h/.cpp Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
parent
2432350064
commit
4fc16b1674
10 changed files with 403 additions and 225 deletions
|
@ -4,8 +4,7 @@
|
|||
#include <QDialog>
|
||||
#include <QStringListModel>
|
||||
#include "../libdivecomputer.h"
|
||||
|
||||
class ConfigureDiveComputer;
|
||||
#include "configuredivecomputer.h"
|
||||
|
||||
namespace Ui {
|
||||
class ConfigureDiveComputerDialog;
|
||||
|
@ -28,12 +27,8 @@ private slots:
|
|||
void configMessage(QString msg);
|
||||
void configError(QString err);
|
||||
void on_cancel_clicked();
|
||||
void on_setDeviceName_clicked();
|
||||
|
||||
void on_setDateAndTime_clicked();
|
||||
|
||||
void on_setBrightnessButton_clicked();
|
||||
|
||||
void deviceReadFinished();
|
||||
void on_saveSettingsPushButton_clicked();
|
||||
private:
|
||||
Ui::ConfigureDiveComputerDialog *ui;
|
||||
|
||||
|
@ -49,6 +44,8 @@ private:
|
|||
QStringListModel *productModel;
|
||||
void fill_computer_list();
|
||||
void fill_device_list(int dc_type);
|
||||
|
||||
DeviceDetails *deviceDetails;
|
||||
};
|
||||
|
||||
#endif // CONFIGUREDIVECOMPUTERDIALOG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue