1 #ifndef DLG_SETTINGS_CURVE_PROPERTIES_H
2 #define DLG_SETTINGS_CURVE_PROPERTIES_H
4 #include "CurveStyles.h"
5 #include "DlgSettingsAbstractBase.h"
33 void slotCurveName(
const QString &);
34 void slotLineColor(
const QString &);
35 void slotLineType(
const QString &);
36 void slotLineWidth(
int);
37 void slotPointColor(
const QString &);
38 void slotPointLineWidth (
int);
39 void slotPointRadius(
int);
40 void slotPointShape(
const QString &);
41 void slotSaveDefault();
48 void createCurveName (QGridLayout *layout,
int &row);
49 void createLine (QGridLayout *layout,
int &row);
50 void createPoint (QGridLayout *layout,
int &row);
51 void createPreview (QGridLayout *layout,
int &row);
52 void drawLine (
bool isRelation,
54 void drawPoints (
const PointStyle &pointStyle);
55 void loadForCurveName(
const QString &curveName);
56 void resetSceneRectangle();
57 void updateControls();
60 QComboBox *m_cmbCurveName;
62 QGroupBox *m_groupPoint;
63 QComboBox *m_cmbPointShape;
64 QSpinBox *m_spinPointRadius;
65 QSpinBox *m_spinPointLineWidth;
66 QComboBox *m_cmbPointColor;
68 QGroupBox *m_groupLine;
69 QSpinBox *m_spinLineWidth;
70 QComboBox *m_cmbLineColor;
71 QComboBox *m_cmbLineType;
73 QPushButton *m_btnSaveDefault;
75 QGraphicsScene *m_scenePreview;
84 #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.
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.