Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgSettingsAxesChecker.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef DLG_SETTINGS_AXES_CHECKER_H
8#define DLG_SETTINGS_AXES_CHECKER_H
9
11
12class ButtonWhatsThis;
15class Checker;
16class QAbstractButton;
17class QButtonGroup;
18class QComboBox;
19class QGraphicsScene;
20class QGridLayout;
21class QPushButton;
22class QRadioButton;
23class ViewPreview;
24
27{
28 Q_OBJECT;
29
30public:
34
35 virtual void createOptionalSaveDefault (QHBoxLayout *layout);
36 virtual QWidget *createSubPanel ();
37 virtual void load (CmdMediator &cmdMediator);
38 virtual void setSmallDialogs (bool smallDialogs);
39
40private slots:
41 void slotGroupMode (QAbstractButton*);
42 void slotLineColor(const QString &);
43 void slotSeconds (const QString &);
44 void slotWhatsThis ();
45
46protected:
47 virtual void handleOk ();
48
49private:
50
51 void createControls (QGridLayout *layout, int &row);
52 void createPoints ();
53 void createPreview (QGridLayout *layout, int &row);
54 void updateControls();
55 void updatePreview();
56
57 ButtonWhatsThis *m_btnWhatsThis;
58
59 QButtonGroup *m_groupMode;
60 QRadioButton *m_btnNever;
61 QRadioButton *m_btnNSeconds;
62 QRadioButton *m_btnForever;
63
64 QComboBox *m_cmbSeconds; // Seconds when HIGHLIGHT_MODE_N_SECONDS is applied
65
66 QComboBox *m_cmbLineColor;
67
68 QGraphicsScene *m_scenePreview;
69 ViewPreview *m_viewPreview;
70 Checker *m_checker;
71
72 DocumentModelAxesChecker *m_modelAxesCheckerBefore;
73 DocumentModelAxesChecker *m_modelAxesCheckerAfter;
74 DocumentModelCoords *m_modelCoords;
75};
76
77#endif // DLG_SETTINGS_AXES_CHECKER_H
Unobtrusive button to trigger QWhatsThis since some operating systems (Linux Mint) do not show WhatsT...
Box shape that is drawn through the three axis points, to temporarily (usually) or permanently (rarel...
Definition Checker.h:34
Command queue stack.
Definition CmdMediator.h:24
DlgSettingsAbstractBase(const QString &title, const QString &dialogName, MainWindow &mainWindow)
Single constructor.
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
MainWindow & mainWindow()
Get method for MainWindow.
virtual void handleOk()
Process slotOk.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
DlgSettingsAxesChecker(MainWindow &mainWindow)
Single constructor.
virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
Model for DlgSettingsCoords and CmdSettingsCoords.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window,...
Definition ViewPreview.h:15