Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DlgSettingsAxesChecker.h
1 #ifndef DLG_SETTINGS_AXES_CHECKER_H
2 #define DLG_SETTINGS_AXES_CHECKER_H
3 
4 #include "DlgSettingsAbstractBase.h"
5 
8 class Checker;
9 class QAbstractButton;
10 class QButtonGroup;
11 class QComboBox;
12 class QGraphicsScene;
13 class QGridLayout;
14 class QRadioButton;
15 class ViewPreview;
16 
19 {
20  Q_OBJECT;
21 
22 public:
25  virtual ~DlgSettingsAxesChecker();
26 
27  virtual void createOptionalSaveDefault (QHBoxLayout *layout);
28  virtual QWidget *createSubPanel ();
29  virtual void load (CmdMediator &cmdMediator);
30 
31 private slots:
32  void slotGroupMode (QAbstractButton*);
33  void slotLineColor(const QString &);
34  void slotSeconds (const QString &);
35 
36 protected:
37  virtual void handleOk ();
38 
39 private:
40 
41  void createControls (QGridLayout *layout, int &row);
42  void createPoints ();
43  void createPreview (QGridLayout *layout, int &row);
44  void updateControls();
45  void updatePreview();
46 
47  QButtonGroup *m_groupMode;
48  QRadioButton *m_btnNever;
49  QRadioButton *m_btnNSeconds;
50  QRadioButton *m_btnForever;
51 
52  QComboBox *m_cmbSeconds; // Seconds when HIGHLIGHT_MODE_N_SECONDS is applied
53 
54  QComboBox *m_cmbLineColor;
55 
56  QGraphicsScene *m_scenePreview;
57  ViewPreview *m_viewPreview;
58  Checker *m_checker;
59 
60  DocumentModelAxesChecker *m_modelAxesCheckerBefore;
61  DocumentModelAxesChecker *m_modelAxesCheckerAfter;
62  DocumentModelCoords *m_modelCoords;
63 };
64 
65 #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:28
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
Definition: ViewPreview.h:8
Model for DlgSettingsCoords and CmdSettingsCoords.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
virtual void handleOk()
Process slotOk.
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
Command queue stack.
Definition: CmdMediator.h:16
Abstract base class for all Settings dialogs.
DlgSettingsAxesChecker(MainWindow &mainWindow)
Single constructor.
Dialog for editing axes checker settings.
MainWindow & mainWindow()
Get method for MainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:66
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.