00001 //----------------------------------------------------------------------------------------
00011 // RCS-ID: $Id: plucker-desktop.h,v 1.13 2003/02/16 16:06:56 robertoconnor Exp $
00012 //----------------------------------------------------------------------------------------
00013
00014 //----------------------------------------------------------------------------------------
00015 // Begin single inclusion of this .h file condition
00016 //----------------------------------------------------------------------------------------
00017
00018 #ifndef _PLUCKER_DESKTOP_H_
00019 #define _PLUCKER_DESKTOP_H_
00020
00021 //----------------------------------------------------------------------------------------
00022 // GCC interface
00023 //----------------------------------------------------------------------------------------
00024
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "plucker-desktop.h"
00027 #endif
00028
00029 //----------------------------------------------------------------------------------------
00030 // Shared defines
00031 //----------------------------------------------------------------------------------------
00032
00033 #include "plucker_defines.h"
00034
00035 //----------------------------------------------------------------------------------------
00036 // Headers
00037 //----------------------------------------------------------------------------------------
00038
00039 #include "wx/app.h" // wxApp
00040 #if ( setupUSE_SINGLE_INSTANCE_CHECKER )
00041 #include "wx/snglinst.h" // wxSingleInstanceChecker
00042 #endif
00043 #if ( setupUSE_INTERNATIONALIZATION )
00044 #include "wx/intl.h" // wxLocale and other internationalization methods
00045 #endif
00046
00047 //----------------------------------------------------------------------------------------
00048 // Class definition: the_app
00049 //----------------------------------------------------------------------------------------
00050
00052 class the_app : public wxApp
00053 {
00054
00055 public:
00056
00058
00064 virtual bool OnInit();
00065
00067
00073 virtual int OnExit();
00074
00076 void set_application_return_code( int return_code );
00077
00078 #if ( setupUSE_INTERNATIONALIZATION )
00079
00080
00083 wxLocale* get_application_locale() { return &m_locale; }
00084 #endif
00085
00086 protected:
00087
00088 #if ( setupUSE_INTERNATIONALIZATION )
00089
00090 wxLocale m_locale;
00091 #endif
00092
00093 private:
00094
00096 void on_startup_common();
00097
00099
00103 void on_startup_with_commandline_arguments( int argc, char** argv );
00104
00106 void on_startup_without_commandline_arguments();
00107
00109
00113 void load_xrc_resource( const wxString& xrc_filename );
00114
00115 #if ( setupUSE_SINGLE_INSTANCE_CHECKER )
00116
00117 wxSingleInstanceChecker* m_single_instance_checker;
00118 #endif
00119
00121 int m_return_code;
00122
00123 };
00124
00125 //----------------------------------------------------------------------------------------
00126 // wxWindows macro: Declare the application
00127 //----------------------------------------------------------------------------------------
00128
00137 DECLARE_APP( the_app );
00138
00139 //----------------------------------------------------------------------------------------
00140 // End single inclusion of this .h file condition
00141 //----------------------------------------------------------------------------------------
00142
00143 #endif // _ADD_CHANNEL_WIZARD_H_