1 // Copyright (C) 2005 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.salome-platform.org/
21 #ifndef DIALOGBOX_OFFSET_H
22 #define DIALOGBOX_OFFSET_H
24 #include "VISU_Prs3d_i.hh"
38 class VisuGUI_OffsetDlg: public QDialog
42 VisuGUI_OffsetDlg (VisuGUI* theModule);
43 ~VisuGUI_OffsetDlg() {};
45 void addPresentation (VISU::Prs3d_i* thePrs);
46 int getPrsCount() const { return myPrsList.count(); }
48 void setOffset (const float* theOffset);
49 void getOffset (float* theOffset) const;
50 bool isToSave() const;
56 virtual void accept();
57 virtual void reject();
61 void updateOffset (VISU::Prs3d_i* thePrs, float* theOffset);
65 QtxDblSpinBox * myDxEdt;
66 QtxDblSpinBox * myDyEdt;
67 QtxDblSpinBox * myDzEdt;
68 QCheckBox * mySaveChk;
70 QPtrList<VISU::Prs3d_i> myPrsList;
71 QValueList<OffsetStruct> myOldOffsets;
74 #endif // DIALOGBOX_OFFSET_H