From efb7f109e89c3d8c093c238fb7671c7ab2475f25 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 24 May 2013 15:19:48 -0300 Subject: Added support for a preliminary Preferences Dialog Dirk asked me to try to make it more modern, so I used as a base, the Firefox preferences. currently it saves / loads the preferences, and also smits a signal 'preferencesChanged' that should be connected to anything that uses preferenes, via the PreferencesDialog::intance() object. In the future, I plan to make it have a signal / slot for each member that changes. I also moved the icons to a new folder this time, because the amount of icons is now more than just two, and it was becoming messy. Signed-off-by: Tomaz Canabrava --- qt-ui/preferences.ui | 890 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 890 insertions(+) create mode 100644 qt-ui/preferences.ui (limited to 'qt-ui/preferences.ui') diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui new file mode 100644 index 000000000..e36aef5b3 --- /dev/null +++ b/qt-ui/preferences.ui @@ -0,0 +1,890 @@ + + + PreferencesDialog + + + + 0 + 0 + 444 + 386 + + + + Dialog + + + + + + + + + 0 + 0 + + + + + 80 + 0 + + + + + 80 + 16777215 + + + + + 40 + 40 + + + + Qt::ElideNone + + + QListView::Static + + + true + + + QListView::Batched + + + 0 + + + + 70 + 60 + + + + QListView::IconMode + + + false + + + true + + + -1 + + + + Defaults + + + + :/subsurface-icon + + + + + + Units + + + + :/units + + + + + + Graph + + + + :/graph + + + + + + + + + + 0 + 0 + + + + 1 + + + + + + + Lists and Tables + + + + + + Font + + + + + + + + + + Font size + + + + + + + + + + + + + Dives + + + + + + Default Dive file + + + + + + + + + + + + ... + + + + + + + + + Display Invalid + + + + + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + System + + + + + + + Metric + + + + + + + Imperial + + + + + + + + + Personalize + + + true + + + false + + + + + + Depth + + + + + + + Meter + + + buttonGroup + + + + + + + Feet + + + buttonGroup + + + + + + + Pressure + + + + + + + Bar + + + buttonGroup_2 + + + + + + + Psi + + + buttonGroup_2 + + + + + + + Volume + + + + + + + Liter + + + buttonGroup_3 + + + + + + + CuFt + + + buttonGroup_3 + + + + + + + Temperature + + + + + + + Celsius + + + buttonGroup_4 + + + + + + + Fahrenheit + + + buttonGroup_4 + + + + + + + Weigth + + + + + + + Kg + + + buttonGroup_5 + + + + + + + lbs + + + buttonGroup_5 + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Show + + + + + + + + pO2 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + threshould + + + + + + + false + + + + + + + + + + + pN2 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + threshould + + + + + + + false + + + + + + + + + + + pHe + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + threshould + + + + + + + false + + + + + + + + + + + MOD + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + max PP02 + + + + + + + false + + + + + + + + + EAD END EADD + + + + + + + Dive computer reported ceiling + + + + + + + + + Calculated ceiling + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + 3m increments + + + + + + + + + + + + Misc + + + + + + GFLow + + + + + + + + + + GFHigh + + + + + + + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Apply|QDialogButtonBox::Discard|QDialogButtonBox::Ok + + + + + + + + + + + buttonBox + accepted() + PreferencesDialog + accept() + + + 226 + 522 + + + 157 + 274 + + + + + buttonBox + rejected() + PreferencesDialog + reject() + + + 294 + 522 + + + 286 + 274 + + + + + listWidget + currentRowChanged(int) + stackedWidget + setCurrentIndex(int) + + + 37 + 97 + + + 186 + 8 + + + + + po2 + clicked(bool) + label_12 + setEnabled(bool) + + + 288 + 179 + + + 681 + 194 + + + + + po2 + clicked(bool) + po2Threashould + setEnabled(bool) + + + 301 + 179 + + + 742 + 184 + + + + + pn2 + clicked(bool) + label_13 + setEnabled(bool) + + + 295 + 208 + + + 673 + 216 + + + + + pn2 + clicked(bool) + pn2Threshould + setEnabled(bool) + + + 301 + 206 + + + 740 + 216 + + + + + phe + clicked(bool) + label_17 + setEnabled(bool) + + + 296 + 240 + + + 683 + 242 + + + + + phe + clicked(bool) + pheThreshould + setEnabled(bool) + + + 304 + 232 + + + 760 + 236 + + + + + mod + clicked(bool) + label_18 + setEnabled(bool) + + + 294 + 267 + + + 692 + 271 + + + + + mod + clicked(bool) + maxppo2 + setEnabled(bool) + + + 286 + 261 + + + 760 + 269 + + + + + calculated_ceiling + clicked(bool) + increment_3m + setEnabled(bool) + + + 288 + 344 + + + 555 + 351 + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2