Engauge Digitizer  2
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 QWidget *createSubPanel ();
28  virtual void load (CmdMediator &cmdMediator);
29 
30 private slots:
31  void slotGroupMode (QAbstractButton*);
32  void slotLineColor(const QString &);
33  void slotSeconds (const QString &);
34 
35 protected:
36  virtual void handleOk ();
37 
38 private:
39 
40  void createControls (QGridLayout *layout, int &row);
41  void createPoints ();
42  void createPreview (QGridLayout *layout, int &row);
43  void updateControls();
44  void updatePreview();
45 
46  QButtonGroup *m_groupMode;
47  QRadioButton *m_btnNever;
48  QRadioButton *m_btnNSeconds;
49  QRadioButton *m_btnForever;
50 
51  QComboBox *m_cmbSeconds; // Seconds when HIGHLIGHT_MODE_N_SECONDS is applied
52 
53  QComboBox *m_cmbLineColor;
54 
55  QGraphicsScene *m_scenePreview;
56  ViewPreview *m_viewPreview;
57  Checker *m_checker;
58 
59  DocumentModelAxesChecker *m_modelAxesCheckerBefore;
60  DocumentModelAxesChecker *m_modelAxesCheckerAfter;
61  DocumentModelCoords *m_modelCoords;
62 };
63 
64 #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 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:60
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.