+
+// BBTKWXSIG
+#define bbtkAddWxSignalObserver(METHOD) \
+ Wx::AddSignalObserver(boost::bind(&METHOD, this))
+// \BBTKWXSIG
+
+ struct BBTK_EXPORT Wx
+ {
+ public:
+ // BBTKWXSIG
+ typedef boost::signals::trackable SignalObserver;
+ typedef boost::signal<void ()> Signal_type;
+ 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:
+ BusyCursor();
+ ~BusyCursor();
+ };
+
+ 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 IncNbWindowsAlive();
+ static void DecNbWindowsAlive();
+ static int GetNbWindowsAlive();
+ static bool IsSomeWindowAlive();
+
+ static void IncNbWindowsShown();
+ static void DecNbWindowsShown();
+ static int GetNbWindowsShown();
+ static bool IsSomeWindowShown();
+
+ // 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
+ //==================================================================
+