Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
globalpreferencesdialog.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <QCloseEvent>
6 #include <QDialog>
7 
8 class QEvent;
9 
10 namespace geometrize
11 {
12 
13 namespace dialog
14 {
15 
20 class GlobalPreferencesDialog : public QDialog
21 {
22  Q_OBJECT
23 
24 public:
25  explicit GlobalPreferencesDialog(QWidget* parent = nullptr);
26  virtual ~GlobalPreferencesDialog();
27 
28 protected:
29  void changeEvent(QEvent*) override;
30 
31 private slots:
32  void on_geometrizeLogo_toggled(bool checked);
33  void on_populateRecents_toggled(bool checked);
34  void on_populateTemplates_toggled(bool checked);
35 
38 
41 
42  void on_autoLoadImageTaskSettings_toggled(bool checked);
43  void on_autoSaveImageTaskSettings_toggled(bool checked);
44 
46  void on_showVectorResultsByDefault_toggled(bool checked);
47  void on_showPixmapResultsByDefault_toggled(bool checked);
49  void on_showScriptEditorsByDefault_toggled(bool checked);
50 
51  void on_imageResize_toggled(bool checked);
52  void on_resizeWidth_valueChanged(int value);
53  void on_resizeHeight_valueChanged(int value);
55 
56 private:
57  void populateUi();
58 
60  std::unique_ptr<GlobalPreferencesDialogImpl> d;
61 };
62 
63 }
64 
65 }
void on_populateRecents_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:232
std::unique_ptr< GlobalPreferencesDialogImpl > d
Definition: globalpreferencesdialog.h:59
void on_showImageTaskConsoleByDefault_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:287
void on_showVectorResultsByDefault_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:277
void on_resizeWidth_valueChanged(int value)
Definition: globalpreferencesdialog.cpp:302
void on_maxThreadsPerImageTask_valueChanged(int value)
Definition: globalpreferencesdialog.cpp:312
void changeEvent(QEvent *) override
Definition: globalpreferencesdialog.cpp:317
void on_resizeHeight_valueChanged(int value)
Definition: globalpreferencesdialog.cpp:307
void on_geometrizeLogo_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:227
void on_populateTemplates_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:237
void on_imageResize_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:297
void on_replaceTargetImageAlphaWithCustomColor_toggled(bool enabled)
Definition: globalpreferencesdialog.cpp:252
The GlobalPreferencesDialog class models the UI for a tabbed preferences dialog for application-level...
Definition: globalpreferencesdialog.h:20
void on_selectTargetImageAlphaReplacementColorButton_clicked()
Definition: globalpreferencesdialog.cpp:257
void on_autoSaveImageTaskSettings_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:267
void on_showPixmapResultsByDefault_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:282
void on_useCustomImageTaskBackgroundColor_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:242
void on_showScriptEditorsByDefault_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:292
virtual ~GlobalPreferencesDialog()
Definition: globalpreferencesdialog.cpp:223
void on_showLaunchWindowConsoleByDefault_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:272
GlobalPreferencesDialog(QWidget *parent=nullptr)
Definition: globalpreferencesdialog.cpp:219
void on_autoLoadImageTaskSettings_toggled(bool checked)
Definition: globalpreferencesdialog.cpp:262
void on_selectCustomImageBackgroundColorButton_clicked()
Definition: globalpreferencesdialog.cpp:247