summaryrefslogtreecommitdiffstats
path: root/qt-ui/configuredivecomputerdialog.h
diff options
context:
space:
mode:
authorGravatar Joseph W. Joshua <joejoshw@gmail.com>2014-06-11 11:47:25 +0300
committerGravatar Thiago Macieira <thiago@macieira.org>2014-08-13 10:48:14 -0700
commit8ccf2e8f1d05fb34854ce5f5de935d523484e163 (patch)
tree875be8317c39ef3e4aae1c1cebe99e2bbed8401b /qt-ui/configuredivecomputerdialog.h
parent09ec8a44e5c48b6b6a2e4ebb1253fd3cd94154ae (diff)
downloadsubsurface-8ccf2e8f1d05fb34854ce5f5de935d523484e163.tar.gz
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>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.h')
-rw-r--r--qt-ui/configuredivecomputerdialog.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/qt-ui/configuredivecomputerdialog.h b/qt-ui/configuredivecomputerdialog.h
index ee1eb4c99..de068c609 100644
--- a/qt-ui/configuredivecomputerdialog.h
+++ b/qt-ui/configuredivecomputerdialog.h
@@ -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