+ //=========================================================================
+ void Wx::IncNbWindowsAlive()
+ {
+ mgNbWindowsAlive++;
+ bbtkDebugMessage("wx",2,"* Number of windows alive = "<<mgNbWindowsAlive
+ <<std::endl);
+ // BBTKWXSIG
+ mgWxSignal();
+ // \BBTKWXSIG
+ }
+ //=========================================================================
+
+ //=========================================================================
+ void Wx::DecNbWindowsAlive()
+ {
+ mgNbWindowsAlive--;
+ bbtkDebugMessage("wx",2,"* Number of windows alive = "<<mgNbWindowsAlive
+ <<std::endl);
+
+ // BBTKWXSIG
+ mgWxSignal();
+ // \BBTKWXSIG
+ }
+ //=========================================================================
+
+ //=========================================================================
+ int Wx::GetNbWindowsAlive()
+ {
+ return mgNbWindowsAlive;
+ }
+ //=========================================================================
+
+ //=========================================================================
+ bool Wx::IsSomeWindowAlive()
+ {
+ return (mgNbWindowsAlive!=0);
+ }
+ //=========================================================================
+
+
+ //=========================================================================
+ Wx::BusyCursor::BusyCursor()
+ {
+ mCursor = 0;
+ if (wxApp::GetInstance()!=0)
+ {
+ bbtkDebugMessage("wx",2,
+ "Wx::BusyCursor::BusyCursor() : creating new cursor"
+ <<std::endl);
+ //mCursor = new wxBusyCursor;
+ }
+ }
+ //=========================================================================
+ //=========================================================================
+ Wx::BusyCursor::~BusyCursor()
+ {
+ if (mCursor)
+ {
+ //delete mCursor;
+ bbtkDebugMessage("wx",2,
+ "Wx::BusyCursor::~BusyCursor() : deleting cursor"<<std::endl);
+ }
+ }
+ //=========================================================================
+
+
+
+} // namespace bbtk
+
+#else
+//=======================================================================
+// WITHOUT WX
+//=========================================================================
+namespace bbtk
+{
+ //=========================================================================
+ Wx::BusyCursor::BusyCursor()
+ {
+ }
+ Wx::BusyCursor::~BusyCursor()
+ {
+ }
+ //=========================================================================
+
+} // namespace bbtk