1 // File : Plot2d_SetupPlot2dDlg.h
2 // Created : Wed Jun 27 16:38:42 2001
3 // Author : Vadim SANDLER
6 // Copyright : Open CASCADE
9 #ifndef Plot2d_SetupPlot2dDlg_H
10 #define Plot2d_SetupPlot2dDlg_H
15 #include <SALOMEconfig.h>
16 #include CORBA_SERVER_HEADER(SALOMEDS)
17 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
19 //=================================================================================
20 // class : Plot2d_SetupPlot2dDlg
21 // purpose : Dialog box for setup Plot2d view
22 //=================================================================================
31 class Plot2d_ItemContainer;
32 class Plot2d_CurveContainer;
34 class Plot2d_SetupPlot2dDlg : public QDialog
39 Plot2d_SetupPlot2dDlg( SALOMEDS::SObject_var object, QWidget* parent = 0 );
40 ~Plot2d_SetupPlot2dDlg();
42 void getCurves( Plot2d_CurveContainer& container );
43 void getCurvesSource( int& horIndex, QValueList<int>& verIndexes );
44 bool getCurveAttributes( const int vIndex, bool& isAuto, int& marker, int& line, int& lineWidth, QColor& color);
47 void onHBtnToggled( bool );
48 void onVBtnToggled( bool );
49 void enableControls();
54 QPushButton* myCancelBtn;
55 QList<Plot2d_ItemContainer> myItems;
57 SALOMEDS::SObject_var myObject;
60 class Plot2d_ItemContainer : public QObject
65 Plot2d_ItemContainer( QObject* parent = 0, const char* name = 0 );
67 void createWidgets( QWidget* parentWidget );
68 void enableWidgets( bool enable );
70 void setHorizontalOn( bool on );
71 bool isHorizontalOn() const;
72 void setVerticalOn( bool on );
73 bool isVerticalOn() const;
74 bool isAutoAssign() const;
75 void setAutoAssign( bool on );
76 void setLine( const int line, const int width );
78 int getLineWidth() const;
79 void setMarker( const int marker );
80 int getMarker() const;
81 void setColor( const QColor& color );
82 QColor getColor() const;
89 void horToggled( bool );
90 void verToggled( bool );
94 void onColorChanged();
95 void onHVToggled( bool );
103 QCheckBox* myAutoCheck;
104 QComboBox* myLineCombo;
105 QSpinBox* myLineSpin;
106 QComboBox* myMarkerCombo;
107 QToolButton* myColorBtn;
110 #endif // Plot2d_SetupPlot2dDlg_H