1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 // File : VisuGUI_CubeAxesDlg.h
23 // Author : Sergey LITONIN
27 #ifndef VisuGUI_CubeAxesDlg_H
28 #define VisuGUI_CubeAxesDlg_H
45 * Class : VisuGUI_CubeAxesDlg
46 * Description : Dialog for specifynig cube axes properties
48 class VisuGUI_CubeAxesDlg : public QDialog
53 VisuGUI_CubeAxesDlg( QWidget* );
54 virtual ~VisuGUI_CubeAxesDlg();
63 void onWindowActivated( QWidget* );
66 QWidget* createButtonFrame( QWidget* );
67 QWidget* createMainFrame ( QWidget* );
72 QCheckBox* myIsVisible;
75 QPushButton* myApplyBtn;
76 QPushButton* myCloseBtn;
77 VisuGUI_AxisWg* myAxes[ 3 ];
81 * Class : VisuGUI_AxisWg
82 * Description : Tab of dialog
84 class VisuGUI_AxisWg : public QFrame
89 VisuGUI_AxisWg( QWidget* );
92 void UseName( const bool );
93 void SetName( const QString& );
94 void SetNameFont( const QColor&, const int, const bool, const bool, const bool );
95 bool ReadData( vtkAxisActor2D* );
96 bool Apply( vtkAxisActor2D* );
99 bool eventFilter(QObject*, QEvent*);
102 void onNameChecked();
103 void onLabelsChecked();
104 void onTicksChecked();
107 void updateControlState();
108 void setEnabled( QGroupBox*, const bool );
112 QGroupBox* myNameGrp;
113 QCheckBox* myIsNameVisible;
114 QLineEdit* myAxisName;
115 VisuGUI_FontWg* myNameFont;
118 QGroupBox* myLabelsGrp;
119 QCheckBox* myIsLabelsVisible;
120 QLineEdit* myLabelNumber;
121 QLineEdit* myLabelOffset;
122 VisuGUI_FontWg* myLabelsFont;
125 QGroupBox* myTicksGrp;
126 QCheckBox* myIsTicksVisible;
127 QLineEdit* myTickLength;
129 friend class VisuGUI_CubeAxesDlg;