7 #ifndef DLG_SETTINGS_SEGMENTS_H 8 #define DLG_SETTINGS_SEGMENTS_H 10 #include "DlgSettingsAbstractBase.h" 11 #include "GraphicsPoint.h" 24 typedef QList<GraphicsPoint*> GraphicsPoints;
42 void slotFillCorners (
int state);
43 void slotLineColor (
const QString &);
44 void slotLineWidth (
int);
45 void slotMinLength (
const QString &);
46 void slotPointSeparation (
const QString &);
54 void createControls (QGridLayout *layout,
int &row);
55 void createPreview (QGridLayout *layout,
int &row);
56 QImage createPreviewImage ()
const;
57 void updateControls();
60 QSpinBox *m_spinMinLength;
61 QSpinBox *m_spinPointSeparation;
62 QCheckBox *m_chkFillCorners;
63 QSpinBox *m_spinLineWidth;
64 QComboBox *m_cmbLineColor;
66 QGraphicsScene *m_scenePreview;
72 QList<Segment*> m_segments;
73 GraphicsPoints m_points;
78 #endif // DLG_SETTINGS_SEGMENTS_H virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
Dialog for editing Segments settings, for DigitizeStateSegment.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
Selectable piecewise-defined line that follows a filtered line in the image.
DlgSettingsSegments(MainWindow &mainWindow)
Single constructor.
Model for DlgSettingsSegments and CmdSettingsSegments.
Abstract base class for all Settings dialogs.
virtual void handleOk()
Process slotOk.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
MainWindow & mainWindow()
Get method for MainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.