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;
34 void slotFillCorners (
int state);
35 void slotLineColor (
const QString &);
36 void slotLineWidth (
int);
37 void slotMinLength (
const QString &);
38 void slotPointSeparation (
const QString &);
46 void createControls (QGridLayout *layout,
int &row);
47 void createPreview (QGridLayout *layout,
int &row);
48 QImage createPreviewImage ()
const;
49 void updateControls();
52 QSpinBox *m_spinMinLength;
53 QSpinBox *m_spinPointSeparation;
54 QCheckBox *m_chkFillCorners;
55 QSpinBox *m_spinLineWidth;
56 QComboBox *m_cmbLineColor;
58 QGraphicsScene *m_scenePreview;
64 QList<Segment*> m_segments;
65 GraphicsPoints m_points;
70 #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.