X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWt.h;h=5fd982a66761e6808d395864c41aa5b4a2ef9367;hb=77a4fde2fb52c96576a24bcbdebb1f4e0e34ebe4;hp=5e3dd638e5d7b48847496d7e67db3cf00bea067f;hpb=75cedb45ce5353caf2b8cdd6c6f7fcff3b3a6555;p=bbtk.git diff --git a/kernel/src/bbtkWt.h b/kernel/src/bbtkWt.h index 5e3dd63..5fd982a 100644 --- a/kernel/src/bbtkWt.h +++ b/kernel/src/bbtkWt.h @@ -42,40 +42,59 @@ // SIGNAL/SLOT MECHANISM // FOR bbtk WINDOWS CREATION/DESTRUCTION OBSERVATION // BBTKWXSIG -#include -#include +//EED 2020-04-21 +//#include +#include + +#include -//TODO Include libs in the CMake escription -#include -#include -#include -#include -#include //typedef boost::signals::trackable SignalObserver; // \BBTKWXSIG //=========================================================================== //=========================================================================== -// Qt headers +// Wt headers // DEFINIR LOS HEADERS Wt que se necesitan *-*-*-*-*-*-*-*-*-* -/* #ifdef USE_WT -#include "qwidget.h" -// EO Qt headers -#else //USE_QT +//TODO Include libs in the CMake escription +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#else //USE_WT + +#endif // EO USE_WT -// define QWidget -typedef void QWidget; -typedef void QBusyCursor; -#endif // EO USE_WXWIDGETS -//-*-*-*-* JFGA -*/ #ifdef USE_WT @@ -130,11 +149,16 @@ namespace bbtk // BBTKWXSIG // The keyword 'signals' is also a macro in qt // typedef boost::signals::trackable SignalObserver; - typedef boost::signals::trackable SignalObserver; - typedef boost::signal Signal_type; + +//EED 2020-04-21 +// typedef boost::signals::trackable SignalObserver; +// typedef boost::signal Signal_type; + typedef boost::signals2::trackable SignalObserver; + typedef boost::signals2::signal Signal_type; + typedef Signal_type::slot_function_type Slot_function_type; // \BBTKWXSIG - + /* static void ResetCursor(); static void BeginBusyCursor(); @@ -153,10 +177,13 @@ namespace bbtk static void ProcessPendingEvents(); + +#ifdef USE_WT /// Sets the parent of all bbtk windows static void SetTopWindow(Wt::WContainerWidget*); /// Returns the parent of all bbtk windows static Wt::WContainerWidget* GetTopWindow(); +#endif // EO USE_WT static void IncNbWindowsAlive(); @@ -180,6 +207,9 @@ namespace bbtk //================================================================== #ifdef USE_WT + + + static std::string jScript; //================================================================== /// Conversion std::string to wxString inline Wt::WString std2wt(const std::string& s)