Salome HOME
Dialog SetupCurveDlg has been added
[modules/gui.git] / src / Plot2d / Plot2d_SetupCurveDlg.h
1 //  SALOME Plot2d : implementation of desktop and GUI kernel
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : Plot2d_SetupCurveDlg.h
8 //  Author : Vadim SANDLER
9 //  Module : SALOME
10 //  $Header$
11
12 #ifndef Plot2d_SetupCurveDlg_H
13 #define Plot2d_SetupCurveDlg_H
14
15 #include <qdialog.h>
16
17 //=================================================================================
18 // class    : Plot2d_SetupCurveDlg
19 // purpose  : Dialog box for setup Plot2d curve
20 //=================================================================================
21
22 class QPushButton;
23 class QComboBox;
24 class QSpinBox;
25 class QToolButton;
26
27 class Plot2d_SetupCurveDlg : public QDialog
28
29   Q_OBJECT
30
31 public:
32   Plot2d_SetupCurveDlg( QWidget* parent = 0 );
33   ~Plot2d_SetupCurveDlg();
34
35 public:
36   void   setLine( const int line, const int width );
37   int    getLine() const;
38   int    getLineWidth() const;
39   void   setMarker( const int marker );
40   int    getMarker() const ;
41   void   setColor( const QColor& color );
42   QColor getColor() const;
43   
44 protected slots:
45   void   onColorChanged();
46
47 private:
48   QPushButton* myOkBtn;
49   QPushButton* myCancelBtn;
50   QComboBox*   myLineCombo;
51   QSpinBox*    myLineSpin;
52   QComboBox*   myMarkerCombo;
53   QToolButton* myColorBtn;
54 };
55
56 #endif // Plot2d_SetupCurveDlg_H
57