X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkWt.h;h=f1fcd5e39587cadf19dd470dd00b43af77723a04;hb=8835a458dc8c2860b184902cafac365bdd02e224;hp=299878eb13d0a3f4c2fb6c66e2c7a691420eb6a8;hpb=85be7d05390ee84a66308c17c740565456ce15d2;p=bbtk.git diff --git a/kernel/src/bbtkWt.h b/kernel/src/bbtkWt.h index 299878e..f1fcd5e 100644 --- a/kernel/src/bbtkWt.h +++ b/kernel/src/bbtkWt.h @@ -45,6 +45,15 @@ #include #include +//typedef boost::signals::trackable SignalObserver; +// \BBTKWXSIG +//=========================================================================== + + +//=========================================================================== +// Wt headers +// DEFINIR LOS HEADERS Wt que se necesitan *-*-*-*-*-*-*-*-*-* +#ifdef USE_WT //TODO Include libs in the CMake escription #include @@ -71,30 +80,17 @@ #include #include #include -//typedef boost::signals::trackable SignalObserver; -// \BBTKWXSIG -//=========================================================================== +#include +#include -//=========================================================================== -// Qt headers -// DEFINIR LOS HEADERS Wt que se necesitan *-*-*-*-*-*-*-*-*-* -/* -#ifdef USE_WT -#include "qwidget.h" -// EO Qt headers +#else //USE_WT -#else //USE_QT +#endif // EO USE_WT -// define QWidget -typedef void QWidget; -typedef void QBusyCursor; -#endif // EO USE_WXWIDGETS -//-*-*-*-* JFGA -*/ #ifdef USE_WT @@ -153,7 +149,7 @@ namespace bbtk typedef boost::signal Signal_type; typedef Signal_type::slot_function_type Slot_function_type; // \BBTKWXSIG - + /* static void ResetCursor(); static void BeginBusyCursor(); @@ -172,10 +168,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(); @@ -199,6 +198,9 @@ namespace bbtk //================================================================== #ifdef USE_WT + + + static std::string jScript; //================================================================== /// Conversion std::string to wxString inline Wt::WString std2wt(const std::string& s)