X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWx.h;h=13bc15ad2ff32de2ff42b19d04557774959974bb;hb=f45b7f05b03f411759981fe13645466a1c289e6a;hp=fd674b4f4972d91c76321c2466594474dba18af6;hpb=038dbbd7dd8b34107ec932a34170a4625368eb25;p=bbtk.git diff --git a/kernel/src/bbtkWx.h b/kernel/src/bbtkWx.h index fd674b4..13bc15a 100644 --- a/kernel/src/bbtkWx.h +++ b/kernel/src/bbtkWx.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkWx.h,v $ Language: C++ - Date: $Date: 2009/04/08 07:56:11 $ - Version: $Revision: 1.10 $ + Date: $Date: 2009/05/28 08:12:06 $ + Version: $Revision: 1.11 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -120,14 +120,6 @@ namespace bbtk typedef Signal_type::slot_function_type Slot_function_type; // \BBTKWXSIG - /* - static void ResetCursor(); - static void BeginBusyCursor(); - static void EndBusyCursor(); - */ - - static void LoopUntilAllWindowsClose(); - class BusyCursor { public: @@ -136,38 +128,29 @@ namespace bbtk wxBusyCursor* mCursor; }; - static void SetTopWindowParent(wxWindow*); - static void SetAutoDestroyTopWindow(bool); - - /// Returns the creation time parent of all bbtk windows - /// (window can be reparented after creation) - static wxWindow* GetTopWindow(); - static bool TopWindowExists(); + static void ProcessPendingEvents(); + /// Sets the parent of all bbtk windows + static void SetTopWindow(wxWindow*); + /// Returns the parent of all bbtk windows + static wxWindow* GetTopWindow(); + + static void IncNbWindowsAlive(); static void DecNbWindowsAlive(); static int GetNbWindowsAlive(); static bool IsSomeWindowAlive(); - static void IncNbWindowsShown(); - static void DecNbWindowsShown(); - static int GetNbWindowsShown(); - static bool IsSomeWindowShown(); - - // BBTKWXSIG + // BBTKWXSIG static void AddSignalObserver(Slot_function_type); // \BBTKWXSIG + private: static void CreateWxAppIfNeeded(); static void DestroyWxAppIfNeeded(); - static void CreateTopWindowIfNeeded(); - static void DestroyTopWindowIfNeeded(); - - /// Sets the creation time parent of all bbtk windows - static void SetTopWindow(wxWindow*); }; // struct Wx //==================================================================