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 ??
;;
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
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
#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)
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 )
}
-
-
+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;
}
}
#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);