X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=kernel%2Fsrc%2FbbtkWx.h;h=7d64a023a94f22119dd08b7ad41ba1dac1bdeacf;hb=b9da3baf83b7791357c78322e3280314ec782f40;hp=c03b4d52c9a7f9406b5a63857794602623d992d8;hpb=a26195c366a89795288009cf7e20f11afa494970;p=bbtk.git diff --git a/kernel/src/bbtkWx.h b/kernel/src/bbtkWx.h index c03b4d5..7d64a02 100644 --- a/kernel/src/bbtkWx.h +++ b/kernel/src/bbtkWx.h @@ -35,15 +35,39 @@ namespace bbtk { //================================================================== /// Global wx handlers (cursor...) - - struct BBTK_EXPORT wx - { public: - static void ResetCursor(); - static void BeginBusyCursor(); - static void EndBusyCursor(); - static int mBeginBusyCallsCount; - }; // struct wx -//================================================================== + + struct BBTK_EXPORT Wx + { + public: + static void ResetCursor(); + static void BeginBusyCursor(); + static void EndBusyCursor(); + static int mBeginBusyCallsCount; + + /// Returns the global parent of all bbtk windows + static wxWindow* GetTopWindow(); + /// Sets the global parent of all bbtk windows + static void SetTopWindow(wxWindow*); + + static void IncNbWindowsAlive(); + static void DecNbWindowsAlive(); + static int GetNbWindowsAlive(); + static bool IsSomeWindowAlive(); + + static void IncNbWindowsShown(); + static void DecNbWindowsShown(); + static int GetNbWindowsShown(); + static bool IsSomeWindowShown(); + +/*EED + private: + static wxWindow* mgTopWindow; + static int mgNbWindowsAlive; + static int mgNbWindowsShown; +*/ + }; // struct Wx + //================================================================== + //================================================================== @@ -88,12 +112,23 @@ namespace bbtk namespace bbtk { - struct BBTK_EXPORT wx - { - static void ResetCursor() {} - static void BeginBusyCursor() {} - static void EndBusyCursor() {} - }; // struct wx + struct BBTK_EXPORT Wx + { + static void ResetCursor() {} + static void BeginBusyCursor() {} + static void EndBusyCursor() {} + static wxWindow* GetTopWindow() { return 0; } + static void SetTopWindow(wxWindow*) {} + static void IncNbWindowsAlive() {} + static void DecNbWindowsAlive() {} + static int GetNbWindowsAlive() { return 0; } + static bool IsSomeWindowAlive() { return false; } + + static void IncNbWindowsShown() {} + static void DecNbWindowsShown() {} + static int GetNbWindowsShown() { return 0; } + static bool IsSomeWindowShown() { return false; } + }; // struct Wx } // namespace bbtk