1 #ifndef DLG_SETTINGS_SEGMENTS_H
2 #define DLG_SETTINGS_SEGMENTS_H
4 #include "DlgSettingsAbstractBase.h"
5 #include "GraphicsPoint.h"
18 typedef QList<GraphicsPoint*> GraphicsPoints;
35 void slotFillCorners (
int state);
36 void slotLineColor (
const QString &);
37 void slotLineWidth (
int);
38 void slotMinLength (
const QString &);
39 void slotPointSeparation (
const QString &);
47 void createControls (QGridLayout *layout,
int &row);
48 void createPreview (QGridLayout *layout,
int &row);
49 QImage createPreviewImage ()
const;
50 void updateControls();
53 QSpinBox *m_spinMinLength;
54 QSpinBox *m_spinPointSeparation;
55 QCheckBox *m_chkFillCorners;
56 QSpinBox *m_spinLineWidth;
57 QComboBox *m_cmbLineColor;
59 QGraphicsScene *m_scenePreview;
65 QList<Segment*> m_segments;
66 GraphicsPoints m_points;
71 #endif // DLG_SETTINGS_SEGMENTS_H
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.