Salome HOME
Remove useless code, Improve resources file
authorjfa <jfa@opencascade.com>
Wed, 15 Jun 2005 12:48:28 +0000 (12:48 +0000)
committerjfa <jfa@opencascade.com>
Wed, 15 Jun 2005 12:48:28 +0000 (12:48 +0000)
src/VISUGUI/VISU_msg_en.po
src/VISUGUI/VisuGUI_CutPlanesDlg.cxx
src/VISUGUI/VisuGUI_CutPlanesDlg.h

index 951f6947cf5f2d8eb8a5a9589e44a5ffa48a508f..22245b12184a67329d6d226cfbcf60aa83be0963 100644 (file)
@@ -138,9 +138,6 @@ msgstr "Erase"
 msgid "VisuGUI::MEN_EXPORT_TABLE"
 msgstr "Export Table"
 
-#msgid "VisuGUI::MEN_FILE"
-#msgstr ""
-
 msgid "VisuGUI::MEN_INSIDEFRAME"
 msgstr "Insideframe"
 
@@ -239,9 +236,6 @@ msgstr "Copy"
 msgid "VisuGUI::MEN_SELECTION"
 msgstr "Selection"
 
-msgid "VisuGUI::MEN_REPRESENTATION"
-msgstr "Representation"
-
 msgid "VisuGUI::MEN_DISPLAY_SELECTION"
 msgstr "Display Selection"
 
index 0614b3c4c96e49f86fc89af2b31e190ee486b211..3478808fb2c55c8b483e86d96f5b0890b21798a5 100644 (file)
@@ -454,7 +454,6 @@ void VisuGUI_CutPlanesPane::onPreviewCheck (bool thePreview)
 //###################################################################
 
 
-
 /*!
   Constructor
 */
@@ -516,49 +515,26 @@ VisuGUI_CutPlanesDlg::VisuGUI_CutPlanesDlg (QWidget* parent, bool theIsCreation,
   //        this, SLOT(onWindowActivated(SUIT_ViewWindow*)));
 }
 
-void VisuGUI_CutPlanesDlg::accept() {
+void VisuGUI_CutPlanesDlg::initFromPrsObject (VISU::CutPlanes_i* thePrs)
+{
+  myPrs = thePrs;
+  myScalarPane->initFromPrsObject(thePrs);
+  myCutPane->initFromPrsObject(thePrs);
+}
+
+int VisuGUI_CutPlanesDlg::storeToPrsObject (VISU::CutPlanes_i* thePrs)
+{
+  return (myScalarPane->storeToPrsObject(thePrs) &&
+          myCutPane->storeToPrsObject(thePrs));
+}
+
+void VisuGUI_CutPlanesDlg::accept()
+{
   if (myScalarPane->check())
     QDialog::accept();
-/*jfa tmp:
-  if (myScalarPane->check()) {
-    if (!isModal()) {
-      if (storeToPrsObject(myPrs)) {
-       if (myIsCreation) {
-         if (VISU::GetViewWindow() != NULL) {
-           try {
-           visuGUI->CreateActor(myPrs);
-           }
-           catch (...) {
-             reject();
-             return;
-           }
-           VISU::GetViewWindow()->onFitAll();
-         }
-       } else {
-         visuGUI->RecreateActor(myPrs);
-         if (SVTK_ViewWindow* vf = VISU::GetViewWindow()) {
-            if (vf->getRenderer()->GetActors()->GetNumberOfItems() > 0) {
-             vf->getRenderer()->ResetCameraClippingRange();
-             vf->Repaint();
-           }
-         }
-       }
-      } else {
-       if (myIsCreation) {
-         visuGUI->DeletePresentation(myPrs);
-       }
-      }
-    }
-    QDialog::accept();
-  }
-*/
 }
 
 void VisuGUI_CutPlanesDlg::reject() {
-  //jfa tmp:if (myIsCreation && (!isModal())) {
-  //jfa tmp:  visuGUI->DeletePresentation(myPrs);
-  //jfa tmp:  VisuGUI::application()->objectBrowser()->updateTree();
-  //jfa tmp:}
   QDialog::reject();
 }
 
index 0fb35b6f88271ce704cff7fb2ca5a1b0a66a48d8..19d10b82716ef4fca86e529d5a28428cf205158f 100644 (file)
@@ -101,43 +101,34 @@ private slots:
 };
 
 
-
 class VisuGUI_CutPlanesDlg : public QDialog
 {
     Q_OBJECT
 
 public:
     //VisuGUI_CutPlanesDlg(QWidget* parent, bool theIsCreation = true, bool theIsModal = false);
-    VisuGUI_CutPlanesDlg(QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
+    VisuGUI_CutPlanesDlg (QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
     ~VisuGUI_CutPlanesDlg() {};
 
-    void initFromPrsObject(VISU::CutPlanes_i* thePrs)
-      {myPrs=thePrs; myScalarPane->initFromPrsObject(thePrs); myCutPane->initFromPrsObject(thePrs);}
-
-    int storeToPrsObject(VISU::CutPlanes_i* thePrs)
-      {return myScalarPane->storeToPrsObject(thePrs) && myCutPane->storeToPrsObject(thePrs);}
+    void initFromPrsObject (VISU::CutPlanes_i* thePrs);
+    int  storeToPrsObject  (VISU::CutPlanes_i* thePrs);
 
 protected slots:
-  void accept();
-  void reject();
-  void onWindowActivated( SUIT_ViewWindow* );
+    void accept();
+    void reject();
+    void onWindowActivated (SUIT_ViewWindow*);
 
 private:
     VisuGUI_CutPlanesPane* myCutPane;
     VisuGUI_ScalarBarPane* myScalarPane;
-    VISU::CutPlanes_i* myPrs;
+    VISU::CutPlanes_i*     myPrs;
 
     bool myIsCreation;
-
-    //SUIT_ViewManager  *myMgr;
-    //SUIT_ViewWindow   *myStudyWnd;
 };
 
 
 class VisuGUI_NumEditItem: public QTableItem
 {
-  //    Q_OBJECT
-
 public:
     VisuGUI_NumEditItem(QTable* table, EditType et, const QString& text ):
       QTableItem(table, et, text) {};
@@ -146,5 +137,4 @@ public:
     QWidget* createEditor() const;
 };
 
-
 #endif // VISUGUI_CUTPLANESDLG_H