mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preferences UI: create new equipment tab
Remove the "Show unused cylinders" checkbox (Profile tab) and the "Set default cylinder" qTextEdit box (General tab) and put them in a separate and new Equipment tab. This sounds like a simple task but, as can be seen from the files changed, was actually a complex matter. Adapt the existing test programs (General and TechDetails) for creating a test program that tests parts of the Equipment tab. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c121afc96c
commit
3e853e37a5
25 changed files with 369 additions and 105 deletions
|
@ -8,7 +8,6 @@
|
|||
class qPrefGeneral : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool auto_recalculate_thumbnails READ auto_recalculate_thumbnails WRITE set_auto_recalculate_thumbnails NOTIFY auto_recalculate_thumbnailsChanged)
|
||||
Q_PROPERTY(QString default_cylinder READ default_cylinder WRITE set_default_cylinder NOTIFY default_cylinderChanged)
|
||||
Q_PROPERTY(QString default_filename READ default_filename WRITE set_default_filename NOTIFY default_filenameChanged)
|
||||
Q_PROPERTY(enum def_file_behavior default_file_behavior READ default_file_behavior WRITE set_default_file_behavior NOTIFY default_file_behaviorChanged)
|
||||
Q_PROPERTY(int defaultsetpoint READ defaultsetpoint WRITE set_defaultsetpoint NOTIFY defaultsetpointChanged)
|
||||
|
@ -35,7 +34,6 @@ public:
|
|||
|
||||
public:
|
||||
static bool auto_recalculate_thumbnails() { return prefs.auto_recalculate_thumbnails; }
|
||||
static QString default_cylinder() { return prefs.default_cylinder; }
|
||||
static QString default_filename() { return prefs.default_filename; }
|
||||
static enum def_file_behavior default_file_behavior() { return prefs.default_file_behavior; }
|
||||
static int defaultsetpoint() { return prefs.defaultsetpoint; }
|
||||
|
@ -53,7 +51,6 @@ public:
|
|||
|
||||
public slots:
|
||||
static void set_auto_recalculate_thumbnails(bool value);
|
||||
static void set_default_cylinder(const QString& value);
|
||||
static void set_default_filename(const QString& value);
|
||||
static void set_default_file_behavior(enum def_file_behavior value);
|
||||
static void set_defaultsetpoint(int value);
|
||||
|
@ -71,7 +68,6 @@ public slots:
|
|||
|
||||
signals:
|
||||
void auto_recalculate_thumbnailsChanged(bool value);
|
||||
void default_cylinderChanged(const QString& value);
|
||||
void default_filenameChanged(const QString& value);
|
||||
void default_file_behaviorChanged(enum def_file_behavior value);
|
||||
void defaultsetpointChanged(int value);
|
||||
|
@ -92,7 +88,6 @@ private:
|
|||
qPrefGeneral() {}
|
||||
|
||||
static void disk_auto_recalculate_thumbnails(bool doSync);
|
||||
static void disk_default_cylinder(bool doSync);
|
||||
static void disk_default_filename(bool doSync);
|
||||
static void disk_default_file_behavior(bool doSync);
|
||||
static void disk_defaultsetpoint(bool doSync);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue