Salome HOME
Fix for the IPAL22822: Changes of plots in hexa8
[modules/visu.git] / src / VISUGUI / VisuGUI_VectorsDlg.h
index 70d99b7c5379c902c7c8353b09066defed321ca1..13cef05b8033236b29017f16f668e85231d17159 100644 (file)
@@ -1,62 +1,64 @@
-//  VISU VISUGUI : GUI of VISU component
-//
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
+//  VISU VISUGUI : GUI of VISU component
 //  File   : VisuGUI_VectorsDlg.h
 //  Author : Laurent CORNABE & Hubert ROLLAND
 //  Module : VISU
 //  $Header$
-
+//
 #ifndef VISUGUI_VECTORSDLG_H
 #define VISUGUI_VECTORSDLG_H
 
-#include "VisuGUI_ScalarBarDlg.h"
-#include "QtxDblSpinBox.h"
+#include "VisuGUI_Prs3dDlg.h"
 
-#include <qdialog.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qspinbox.h>
-#include <qpushbutton.h>
+class QGroupBox;
+class QTabWidget;
+class QRadioButton;
+class QButtonGroup;
+class QCheckBox;
+class QPushButton;
+class QtxColorButton;
 
 #include "SALOMEconfig.h"
 #include CORBA_CLIENT_HEADER(VISU_Gen)
 
 class SalomeApp_Module;
+class SalomeApp_IntSpinBox;
+class VisuGUI_InputPane;
+class SalomeApp_DoubleSpinBox;
 
-namespace VISU{
+namespace VISU
+{
   class Vectors_i;
 }
 
-class VisuGUI_VectorsDlg : public QDialog
+class VisuGUI_VectorsDlg : public VisuGUI_ScalarBarBaseDlg
 {
     Q_OBJECT
 
 public:
     VisuGUI_VectorsDlg (SalomeApp_Module* theModule);
-    ~VisuGUI_VectorsDlg() {};
+    ~VisuGUI_VectorsDlg();
 
     void   setScaleFactor( double sf );
     double getScaleFactor();
@@ -76,40 +78,49 @@ public:
     VISU::Vectors::GlyphPos getGlyphPos();
     void   enableMagnColor( bool enable );
 
-    void initFromPrsObject(VISU::Vectors_i* thePrs);
-    int storeToPrsObject(VISU::Vectors_i* thePrs);
+    virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
+                                    bool theInit );
+
+    virtual int  storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
 
 protected slots:
-  void accept();
+  virtual QString GetContextHelpFilePath();
 
 private:
     QGroupBox*      TopGroup;
     QCheckBox*      UseMagn;
-    //QLabel*         ColorLab;
-    QPushButton*    SelColor;
+    QtxColorButton* SelColor;
     QLabel*         LineWidLabel;
-    QSpinBox*       LinWid;
+    SalomeApp_IntSpinBox* LinWid;
     QLabel*         ScaleLabel;
-    QtxDblSpinBox*  ScalFact;
+    SalomeApp_DoubleSpinBox* ScalFact;
     QCheckBox*      UseGlyph;
     QButtonGroup*   TypeGlyph;
+    QGroupBox*      TypeGB;
     QRadioButton*   RBCones6;
     QRadioButton*   RBCones2;
     QRadioButton*   RBArrows;
     QButtonGroup*   PosGlyph;
+    QGroupBox*      PosGB;
     QRadioButton*   RBTail;
     QRadioButton*   RBCent;
     QRadioButton*   RBHead;
     QGroupBox*      GroupButtons;
     QPushButton*    buttonOk;
     QPushButton*    buttonCancel;
+    QPushButton*    buttonHelp;
 
     QColor          myColor;
+    QTabWidget*            myTabBox;
+
     VisuGUI_ScalarBarPane* myScalarPane;
+    VisuGUI_InputPane*     myInputPane;
+
+    SALOME::GenericObjPtr<VISU::Vectors_i> myPrsCopy;
 
 private slots:
     void enableGlyphType();
-    void setVColor();
+//void setVColor();
     void enableSetColor();
 };