7 #ifndef DLG_SETTINGS_CURVE_PROPERTIES_H 8 #define DLG_SETTINGS_CURVE_PROPERTIES_H 10 #include "CurveStyles.h" 11 #include "DlgSettingsAbstractBase.h" 12 #include "MainWindowModel.h" 40 void slotCurveName(
const QString &);
41 void slotLineColor(
const QString &);
42 void slotLineType(
const QString &);
43 void slotLineWidth(
int);
44 void slotPointColor(
const QString &);
45 void slotPointLineWidth (
int);
46 void slotPointRadius(
int);
47 void slotPointShape(
const QString &);
48 void slotSaveDefault();
55 void createCurveName (QGridLayout *layout,
int &row);
56 void createLine (QGridLayout *layout,
int &row);
57 void createPoint (QGridLayout *layout,
int &row);
58 void createPreview (QGridLayout *layout,
int &row);
59 void drawLine (
bool isRelation,
61 void drawPoints (
const PointStyle &pointStyle);
62 void loadForCurveName(
const QString &curveName);
63 void resetSceneRectangle();
64 void updateControls();
69 QComboBox *m_cmbCurveName;
71 QGroupBox *m_groupPoint;
72 QComboBox *m_cmbPointShape;
73 QSpinBox *m_spinPointRadius;
74 QSpinBox *m_spinPointLineWidth;
75 QComboBox *m_cmbPointColor;
77 QGroupBox *m_groupLine;
78 QSpinBox *m_spinLineWidth;
79 QComboBox *m_cmbLineColor;
80 QComboBox *m_cmbLineType;
82 QPushButton *m_btnSaveDefault;
84 QGraphicsScene *m_scenePreview;
93 #endif // DLG_SETTINGS_CURVE_PROPERTIES_H void setCurveName(const QString &curveName)
Load information for the specified curve name. When called externally, the load method must have been...
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
DlgSettingsCurveProperties(MainWindow &mainWindow)
Single constructor.
virtual void handleOk()
Process slotOk.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
Details for a specific Point.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
Model for DlgSettingsMainWindow.
Details for a specific Line.
Graphics item for drawing a circular or polygonal Point.
Dialog for editing curve properties settings.
Abstract base class for all Settings dialogs.
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.