7#ifndef DLG_SETTINGS_SEGMENTS_H
8#define DLG_SETTINGS_SEGMENTS_H
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;
QList< GraphicsPoint * > GraphicsPoints
Abstract base class for all Settings dialogs.
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
MainWindow & mainWindow()
Get method for MainWindow.
Dialog for editing Segments settings, for DigitizeStateSegment.
virtual void handleOk()
Process slotOk.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
virtual ~DlgSettingsSegments()
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
Model for DlgSettingsSegments and CmdSettingsSegments.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Selectable piecewise-defined line that follows a filtered line in the image.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window,...