00001 /* -*- mode:c++ -*- */ 00002 00019 class WindowController 00020 { 00021 %TypeHeaderCode 00022 #include "qt/WindowController.h" 00023 %End 00024 00025 00026 public: 00027 00028 00031 WindowController ( ); 00032 00034 ~WindowController(); 00035 00037 static WindowController * instance (); 00038 00041 static const std::string & version (); 00042 00044 void createInspector ( ); 00045 00047 void newWindow ( CanvasWindow * ); 00048 00052 void aboutToClose ( CanvasWindow * ); 00053 00057 void quitOnLastWindowClose ( bool = true ); 00058 00062 void hasBeenHidden ( CanvasWindow * ); 00063 00066 void unHide ( CanvasWindow * ); 00067 00072 bool okToQuit (); 00073 00075 CanvasWindow * currentCanvas (); 00076 00081 void setCurrentCanvas ( CanvasWindow * ); 00082 00084 Inspector * getInspector(); 00085 00091 void updateActions (); 00092 00096 void closeAllWindows (); 00097 00100 void setFirstWindow (); 00101 00102 }; 00103 00104 char * __facility__; 00105 char * __abstract__; 00106 char * __author__; 00107 char * __date__; 00108 char * __version__; 00109 char * __credits__; 00110 00111 %ModuleCode 00112 static char * __facility__ = "HippoDraw"; 00113 static char * __abstract__ = "Data display package"; 00114 static char * __author__ = "Paul F. Kunz and others"; 00115 static char * __date__ = "$Date: 2005/03/19 16:24:13 $"; 00116 static char * __version__ = 00117 const_cast < char * > (WindowController::version().c_str()); 00118 static char * __credits__ = "Stanford Linear Accelerator Center"; 00119 %End