X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWt.h;h=f1fcd5e39587cadf19dd470dd00b43af77723a04;hb=f5ee1c433d1c86bc0aa11fdaba7aa891cbad9b8a;hp=5e3dd638e5d7b48847496d7e67db3cf00bea067f;hpb=75cedb45ce5353caf2b8cdd6c6f7fcff3b3a6555;p=bbtk.git diff --git a/kernel/src/bbtkWt.h b/kernel/src/bbtkWt.h index 5e3dd63..f1fcd5e 100644 --- a/kernel/src/bbtkWt.h +++ b/kernel/src/bbtkWt.h @@ -45,37 +45,52 @@ #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 @@ -134,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(); @@ -153,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(); @@ -180,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)