Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/yacs.git] / src / genericgui / EditionScript.hxx
index ff8530dfb55f0c3862129ef75fb0677929992311..2f71c5ae325a2340048680ff7a21c9692d8da3db 100644 (file)
@@ -1,26 +1,29 @@
-//  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2012  CEA/DEN, EDF R&D
 //
-//  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.
+// 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.
 //
-//  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.
+// 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
+// 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
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 #ifndef _EDITIONSCRIPT_HXX_
 #define _EDITIONSCRIPT_HXX_
 
 #include "yacsconfig.h"
 #include "EditionElementaryNode.hxx"
+#include "FormComponent.hxx"
+#include <QRadioButton>
 
 #if HAS_QSCI4>0
 class QsciScintilla;
@@ -38,12 +41,19 @@ namespace YACS
       virtual void onApply();
       virtual void onCancel();
       virtual void onScriptModified();
+      virtual void onEdit();
+      virtual void on_tb_options_toggled(bool checked);
+      virtual void on_remote_toggled(bool checked);
+      virtual void fillContainerPanel();
+      virtual void changeContainer(int);
+      virtual void update(GuiEvent event, int type, Subject* son);
 
     public:
       EditionScript(Subject* subject,
                   QWidget* parent = 0,
                   const char* name = 0);
       virtual ~EditionScript();
+      virtual void synchronize();
 
     protected:
       SubjectInlineNode *_subInlineNode;
@@ -53,7 +63,16 @@ namespace YACS
 #else
       QTextEdit* _sci;
 #endif
-
+      QVBoxLayout* _glayout;
+      QVBoxLayout* _portslayout;
+      QPushButton* _editor;
+      bool _checked;
+      bool _remote;
+      QFrame *fr_options;
+      QFrame *fr_container;
+      ComboBox* cb_container;
+      QRadioButton* radiolocal;
+      QRadioButton* radioremote;
     };
   }
 }