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
14class Checker;
15class QAbstractButton;
16class QButtonGroup;
17class QComboBox;
18class QGraphicsScene;
19class QGridLayout;
20class QRadioButton;
21class ViewPreview;
22
25{
26 Q_OBJECT;
27
28public:
32
33 virtual void createOptionalSaveDefault (QHBoxLayout *layout);
34 virtual QWidget *createSubPanel ();
35 virtual void load (CmdMediator &cmdMediator);
36 virtual void setSmallDialogs (bool smallDialogs);
37
38private slots:
39 void slotGroupMode (QAbstractButton*);
40 void slotLineColor(const QString &);
41 void slotSeconds (const QString &);
42
43protected:
44 virtual void handleOk ();
45
46private:
47
48 void createControls (QGridLayout *layout, int &row);
49 void createPoints ();
50 void createPreview (QGridLayout *layout, int &row);
51 void updateControls();
52 void updatePreview();
53
54 QButtonGroup *m_groupMode;
55 QRadioButton *m_btnNever;
56 QRadioButton *m_btnNSeconds;
57 QRadioButton *m_btnForever;
58
59 QComboBox *m_cmbSeconds; // Seconds when HIGHLIGHT_MODE_N_SECONDS is applied
60
61 QComboBox *m_cmbLineColor;
62
63 QGraphicsScene *m_scenePreview;
64 ViewPreview *m_viewPreview;
65 Checker *m_checker;
66
67 DocumentModelAxesChecker *m_modelAxesCheckerBefore;
68 DocumentModelAxesChecker *m_modelAxesCheckerAfter;
69 DocumentModelCoords *m_modelCoords;
70};
71
72#endif // DLG_SETTINGS_AXES_CHECKER_H
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
Abstract base class for all Settings dialogs.
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
MainWindow & mainWindow()
Get method for MainWindow.
Dialog for editing axes checker settings.
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:92
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window,...
Definition ViewPreview.h:15