Salome HOME
Merge branch 'master' into omu/workloadmanager
[modules/yacs.git] / src / genericgui / EditionScript.hxx
index 37a56851d2b86eaeea9388c945043dbe86f11d0b..08276237c98009a906d7467f1cbb0e4bc999ab9d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2020  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
 
 #include "yacsconfig.h"
 #include "EditionElementaryNode.hxx"
+#include "FormContainerDecorator.hxx"
 #include "FormComponent.hxx"
+#include <QRadioButton>
 
 class FormContainer;
 
-#if HAS_QSCI4>0
-class QsciScintilla;
+#ifdef HAS_PYEDITOR
+class PyEditor_Editor;
 #endif
 
 namespace YACS
@@ -43,6 +45,8 @@ namespace YACS
       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);
@@ -57,8 +61,8 @@ namespace YACS
     protected:
       SubjectInlineNode *_subInlineNode;
 
-#if HAS_QSCI4>0
-      QsciScintilla* _sci;
+#ifdef HAS_PYEDITOR
+      PyEditor_Editor* _sci;
 #else
       QTextEdit* _sci;
 #endif
@@ -67,9 +71,12 @@ namespace YACS
       QPushButton* _editor;
       bool _checked;
       bool _remote;
+      QFrame *fr_options;
       QFrame *fr_container;
       ComboBox* cb_container;
-      FormContainer* formcontainer;
+      QRadioButton* radiolocal;
+      QRadioButton* radioremote;
+      FormContainerDecorator* formcontainer;
     };
   }
 }