Salome HOME
CCAR: It seems that the tagged version (V2_1_0) does not work. Bidon V2_2_0 V2_2_0a1 V2_2_0b4 V2_2_1 V2_2_2
authorcaremoli <caremoli>
Mon, 3 Jan 2005 13:37:16 +0000 (13:37 +0000)
committercaremoli <caremoli>
Mon, 3 Jan 2005 13:37:16 +0000 (13:37 +0000)
First, the branch V1_4_1a has not been merged in main trunk.
Then the configure.in.base does not test properly if the sstream include
is present or not (HAVE_SSTREAM).
This version should be tagged ??

configure.in.base
src/HELLOGUI/HELLOGUI.cxx
src/HELLOGUI/HELLOGUI.h

index 386022d543aef2128acc768b100f3b0b2190abdf..80563ef8a3dc49798dec161c5ffae9f947a74ff6 100644 (file)
@@ -86,6 +86,50 @@ case "$INSTALL" in
       ;;
 esac
 
+echo
+echo ---------------------------------------------
+echo testing C/C++
+echo ---------------------------------------------
+echo
+
+cc_ok=no
+dnl inutil car libtool
+dnl AC_PROG_CC
+AC_PROG_CXX
+AC_CXX_WARNINGS
+AC_CXX_TEMPLATE_OPTIONS
+AC_DEPEND_FLAG
+# AC_CC_WARNINGS([ansi])
+cc_ok=yes
+
+dnl Library libdl :
+AC_CHECK_LIB(dl,dlopen)
+
+dnl Library librt : for alpha/osf
+AC_CHECK_LIB(rt,nanosleep)
+
+dnl add library libm :
+AC_CHECK_LIB(m,ceil)
+
+AC_CXX_USE_STD_IOSTREAM
+AC_CXX_HAVE_SSTREAM
+
+dnl
+dnl ---------------------------------------------
+dnl testing linker
+dnl ---------------------------------------------
+dnl
+
+AC_LINKER_OPTIONS
+
+echo
+echo ---------------------------------------------
+echo testing threads
+echo ---------------------------------------------
+echo
+
+ENABLE_PTHREADS
+
 echo
 echo ---------------------------------------------
 echo testing python
@@ -146,7 +190,7 @@ echo ---------------------------------------------
 echo
 
 echo Configure
-variables="python_ok omniORB_ok Kernel_ok qt_ok"
+variables="cc_ok threads_ok python_ok omniORB_ok Kernel_ok qt_ok"
 
 for var in $variables
 do
index fc631e9ee9c13b4b5bfce35b381b58e4a0bc510c..83ea5ba7c28a17cd13c7e0cd8603291e4ace8bb4 100644 (file)
@@ -20,6 +20,10 @@ using namespace std;
 #include <qinputdialog.h>
 #include <qmessagebox.h>
 
+HELLOGUI::HELLOGUI( const QString& theName, QObject* theParent ) :
+  SALOMEGUI( theName, theParent )
+{}
+
 
 // launch HELLO component and return a handle
 HELLO_ORB::HELLO_Gen_ptr HELLOGUI::InitHELLOGen(QAD_Desktop* parent)
@@ -97,9 +101,10 @@ bool HELLOGUI::CustomPopup ( QAD_Desktop* parent,
   return true;
 }
 
-void HELLOGUI::ActiveStudyChanged( QAD_Desktop* parent )
+bool HELLOGUI::ActiveStudyChanged( QAD_Desktop* parent )
 {
   MESSAGE("HELLOGUI::ActiveStudyChanged");
+  return true;
 }
 
 void HELLOGUI::DefinePopup( QString & theContext, QString & theParent, QString & theObject )
@@ -110,38 +115,10 @@ void HELLOGUI::DefinePopup( QString & theContext, QString & theParent, QString &
 }
 
 
-
-
+static HELLOGUI aGUI("");
 extern "C"
 {
-  bool OnGUIEvent(int theCommandID, QAD_Desktop* parent)
-  {
-    return HELLOGUI::OnGUIEvent(theCommandID, parent);
-  }
-
-
-  bool SetSettings ( QAD_Desktop* parent )
-  {
-    return HELLOGUI::SetSettings( parent );
-  }
-
-  bool customPopup ( QAD_Desktop* parent,
-                    QPopupMenu* popup,
-                    const QString & theContext,
-                    const QString & theParent,
-                    const QString & theObject )
-  {
-    return HELLOGUI::CustomPopup( parent, popup, theContext,
-                               theParent, theObject );
-  }
-
-  void definePopup ( QString & theContext, QString & theParent, QString & theObject )
-  {
-    HELLOGUI::DefinePopup( theContext, theParent, theObject );
-  }
-  
-  bool activeStudyChanged ( QAD_Desktop* parent )
-  {
-    HELLOGUI::ActiveStudyChanged( parent );
+  Standard_EXPORT SALOMEGUI* GetComponentGUI() {
+    return &aGUI;
   }
 }
index 577ca5f595434e25ddb588a426e3121de0fcdf49..2559c9dfc57b5ac37d32a2e117e21d16a1b7928d 100644 (file)
@@ -4,6 +4,7 @@
 #ifndef _HELLOGUI_H_
 #define _HELLOGUI_H_
 
+#include "SALOMEGUI.h"
 #include "QAD_Desktop.h"
 
 #include <SALOMEconfig.h>
 
 
 
-class HELLOGUI: public QObject
+class HELLOGUI: public SALOMEGUI
 {
   Q_OBJECT
 
 public:
+  HELLOGUI( const QString& name = "", QObject* parent = 0 );
 
-  static bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
+  virtual bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
 
-  static bool SetSettings (QAD_Desktop* parent);
+  virtual bool SetSettings (QAD_Desktop* parent);
 
-  static bool CustomPopup ( QAD_Desktop* parent,
+  virtual bool CustomPopup ( QAD_Desktop* parent,
                            QPopupMenu* popup,
                            const QString & theContext,
                            const QString & theParent,
                            const QString & theObject);
 
-  static void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
+  virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
 
-  static void ActiveStudyChanged ( QAD_Desktop* parent );
+  virtual bool ActiveStudyChanged ( QAD_Desktop* parent );
 
   static HELLO_ORB::HELLO_Gen_ptr InitHELLOGen(QAD_Desktop* parent);