mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change ConfigureDiveComputerDialog to use tabbed interface
Changes the dive computer configuration dialog to use a tabbed interface. This will make it easier to add new dive computer models to the interface. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
parent
09ec8a44e5
commit
8ccf2e8f1d
3 changed files with 374 additions and 415 deletions
|
@ -19,10 +19,6 @@ public:
|
|||
~ConfigureDiveComputerDialog();
|
||||
|
||||
private slots:
|
||||
void on_vendor_currentIndexChanged(const QString &vendor);
|
||||
|
||||
void on_product_currentIndexChanged(const QString &product);
|
||||
|
||||
void readSettings();
|
||||
void configMessage(QString msg);
|
||||
void configError(QString err);
|
||||
|
@ -35,24 +31,27 @@ private slots:
|
|||
|
||||
void on_restoreBackupButton_clicked();
|
||||
|
||||
void on_tabWidget_currentChanged(int index);
|
||||
|
||||
private:
|
||||
Ui::ConfigureDiveComputerDialog *ui;
|
||||
|
||||
QStringList vendorList;
|
||||
QHash<QString, QStringList> productList;
|
||||
|
||||
ConfigureDiveComputer *config;
|
||||
device_data_t device_data;
|
||||
void getDeviceData();
|
||||
|
||||
QStringList vendorList;
|
||||
QHash<QString, QStringList> productList;
|
||||
QHash<QString, dc_descriptor_t *> descriptorLookup;
|
||||
|
||||
QStringListModel *vendorModel;
|
||||
QStringListModel *productModel;
|
||||
void fill_computer_list();
|
||||
void fill_device_list(int dc_type);
|
||||
void fill_computer_list();
|
||||
|
||||
DeviceDetails *deviceDetails;
|
||||
void populateDeviceDetails();
|
||||
|
||||
QString selected_vendor;
|
||||
QString selected_product;
|
||||
};
|
||||
|
||||
#endif // CONFIGUREDIVECOMPUTERDIALOG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue