X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWx.h;h=e160c3ae7b1eecbc994674bb8c27be450bbb8230;hb=c2a4b1893412e50a3d9abff221938a2d16c4a7cb;hp=a27aae1e88a87b5f3439313b68db913facb5d193;hpb=5ca30b861f60def2666a1c675e8b45df0a713f95;p=bbtk.git diff --git a/kernel/src/bbtkWx.h b/kernel/src/bbtkWx.h index a27aae1..e160c3a 100644 --- a/kernel/src/bbtkWx.h +++ b/kernel/src/bbtkWx.h @@ -44,30 +44,33 @@ namespace bbtk static void EndBusyCursor(); static int mBeginBusyCallsCount; + static void CreateInvisibleTopWindow(); /// Returns the global parent of all bbtk windows - static wxWindow* GetTopWindow() { return mgTopWindow; } + static wxWindow* GetTopWindow(); /// Sets the global parent of all bbtk windows static void SetTopWindow(wxWindow*); - static void IncNbWindowsAlive() { mgNbWindowsAlive++; } + static void IncNbWindowsAlive(); static void DecNbWindowsAlive(); - static int GetNbWindowsAlive() { return mgNbWindowsAlive; } - static bool IsSomeWindowAlive() { return (mgNbWindowsAlive>0);} + static int GetNbWindowsAlive(); + static bool IsSomeWindowAlive(); - static void IncNbWindowsShown() { mgNbWindowsShown++; } + static void IncNbWindowsShown(); static void DecNbWindowsShown(); - static int GetNbWindowsShown() { return mgNbWindowsShown; } - static bool IsSomeWindowShown() { return (mgNbWindowsShown>0);} + static int GetNbWindowsShown(); + static bool IsSomeWindowShown(); +/*EED private: static wxWindow* mgTopWindow; static int mgNbWindowsAlive; static int mgNbWindowsShown; - +*/ }; // struct Wx //================================================================== - + + //================================================================== /// Conversion std::string to wxString inline wxString std2wx(const std::string& s){ @@ -115,6 +118,7 @@ namespace bbtk static void ResetCursor() {} static void BeginBusyCursor() {} static void EndBusyCursor() {} + static void CreateInvisibleTopWindow() {} static wxWindow* GetTopWindow() { return 0; } static void SetTopWindow(wxWindow*) {} static void IncNbWindowsAlive() {}