-
- 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() { return mgTopWindow; }
+ /// Sets the global parent of all bbtk windows
+ static void SetTopWindow(wxWindow*);
+
+ static void IncNbWindowsAlive() { mgNbWindowsAlive++; }
+ static void DecNbWindowsAlive();
+ static int GetNbWindowsAlive() { return mgNbWindowsAlive; }
+ static bool IsSomeWindowAlive() { return (mgNbWindowsAlive>0);}
+
+ static void IncNbWindowsShown() { mgNbWindowsShown++; }
+ static void DecNbWindowsShown();
+ static int GetNbWindowsShown() { return mgNbWindowsShown; }
+ static bool IsSomeWindowShown() { return (mgNbWindowsShown>0);}
+
+ private:
+ static wxWindow* mgTopWindow;
+ static int mgNbWindowsAlive;
+ static int mgNbWindowsShown;
+
+ }; // struct Wx
+ //==================================================================
+
+