00001 #ifndef __CAboutWindow__ 00002 #define __CAboutWindow__ 00003 00004 #include "CWindow.hpp" 00005 using Exponent::GUI::Windowing::CWindow; 00006 00007 namespace Exponent 00008 { 00009 namespace GUI 00010 { 00011 namespace Windowing 00012 { 00030 class CAboutWindow : public CWindow 00031 { 00033 EXPONENT_CLASS_DECLARATION; 00036 // =========================================================================== 00037 00038 public: 00039 00040 // =========================================================================== 00041 00048 CAboutWindow(const CSystemString &aboutWindowImagePath, const CString imageName, const double alpha); 00049 00054 CAboutWindow(const double alpha); 00055 00059 virtual ~CAboutWindow(); 00060 00061 // =========================================================================== 00062 00067 virtual void lostFocus(IWindow *window); 00068 00069 // =========================================================================== 00070 00071 #ifndef WIN32 00072 00075 virtual void openWindow(); 00076 #endif 00077 00078 // =========================================================================== 00079 00080 protected: 00081 00082 // =========================================================================== 00083 00088 class CAboutRoot : public CControlRoot 00089 { 00090 public: 00091 00096 CAboutRoot(IWindow *parent) : CControlRoot(parent) { } 00097 00101 virtual ~CAboutRoot() { } 00102 00107 virtual void handleLeftButtonDown(CMouseEvent &event) { m_parentWindow->closeWindow(); } 00108 00109 }; 00110 }; 00111 } 00112 } 00113 } 00114 #endif // End of CAboutWindow.hpp