From 8835a458dc8c2860b184902cafac365bdd02e224 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 7 Oct 2015 07:58:01 +0200 Subject: [PATCH] #249 8BBTK Feature New Normal - wt-version kernel --- CMakeLists.txt | 10 ++++++++-- kernel/appli/bbi/CMakeLists.txt | 12 ++++++------ kernel/src/bbtkWt.h | 32 ++++++++++++++------------------ 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ced062..9514401 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,8 +83,14 @@ ADD_SUBDIRECTORY(packages) # The samples -#----JFGA ---- Por default. -SET(USE_WT OFF) +#----JFGA EED---- 06/10/2015 +OPTION(USE_WT "Build bbtk web" OFF) + +#IF(CREA_BUILD_BBTK_WEB) +# SET(USE_WT ON) +#ELSE(CREA_BUILD_BBTK_WEB) +# SET(USE_WT OFF) +#ENDIF(CREA_BUILD_BBTK_WEB) # WARNING diff --git a/kernel/appli/bbi/CMakeLists.txt b/kernel/appli/bbi/CMakeLists.txt index bfe73d5..a8a2ddb 100644 --- a/kernel/appli/bbi/CMakeLists.txt +++ b/kernel/appli/bbi/CMakeLists.txt @@ -46,13 +46,13 @@ ENDIF(BBTK_USE_WXWIDGETS AND WIN32) TARGET_LINK_LIBRARIES(bbi bbtk) INSTALL_TARGETS(/bin/ bbi) -SET(SOURCES - bbiWeb - ) -ADD_EXECUTABLE(bbiWeb.wt MACOSX_BUNDLE ${SOURCES}) -TARGET_LINK_LIBRARIES(bbiWeb.wt bbtk) -INSTALL_TARGETS(/bin/ bbiWeb.wt) +IF(USE_WT) + SET(SOURCES bbiWeb ) + ADD_EXECUTABLE(bbiWeb.wt MACOSX_BUNDLE ${SOURCES}) + TARGET_LINK_LIBRARIES(bbiWeb.wt bbtk) + INSTALL_TARGETS(/bin/ bbiWeb.wt) +ENDIF(USE_WT) diff --git a/kernel/src/bbtkWt.h b/kernel/src/bbtkWt.h index 0828d0b..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 @@ -74,30 +83,14 @@ #include #include -//typedef boost::signals::trackable SignalObserver; -// \BBTKWXSIG -//=========================================================================== - -//=========================================================================== -// 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 @@ -175,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(); -- 2.47.1