|
Public Types |
typedef std::vector< Glib::ustring > | type_vecStrings |
typedef sigc::signal< void > | type_signal_hide |
Public Member Functions |
| App (const Glib::ustring &appname=Glib::ustring()) |
| Don't forget to call init() too.
|
virtual | ~App () |
virtual void | init () |
virtual Glib::ustring | get_version () const |
type_signal_hide | ui_signal_hide () |
virtual void | on_menu_file_new () |
virtual void | on_menu_file_close () |
virtual void | on_menu_file_exit () |
virtual void | on_menu_edit_cut () |
virtual void | on_menu_edit_copy () |
virtual void | on_menu_edit_paste () |
virtual void | on_menu_edit_clear () |
virtual void | on_menu_help_about ()=0 |
virtual void | on_about_close () |
Static Public Member Functions |
void | set_about_information (const Glib::ustring &strVersion, const type_vecStrings &vecAuthors, const Glib::ustring &strCopyright, const Glib::ustring &strDescription) |
void | set_about_information (const Glib::ustring &strVersion, const type_vecStrings &vecAuthors, const Glib::ustring &strCopyright, const Glib::ustring &strDescription, const type_vecStrings &vecDocumenters, const Glib::ustring &strTranslatorCredits) |
void | set_command_line_args (int argc, char **&argv) |
Protected Member Functions |
virtual void | init_ui_manager () |
| Builds the intial ui string, with placeholders.
|
virtual void | init_menus () |
| Override this to add more menus or different menus.
|
virtual void | init_menus_file ()=0 |
| Call this from init_menus() to add the standard file menu.
|
virtual void | init_menus_edit ()=0 |
| Call this from init_menus() to add the standard edit menu.
|
virtual void | init_menus_help ()=0 |
| Call this from init_menus() to add the standard help menu.
|
virtual void | init_toolbars () |
virtual App * | new_instance ()=0 |
virtual void | ui_hide ()=0 |
virtual void | ui_bring_to_front ()=0 |
Static Protected Member Functions |
void | init_app_name (const Glib::ustring &appname) |
void | set_operation_cancelled (bool bVal=true) |
bool | get_operation_cancelled () |
Protected Attributes |
type_signal_hide | m_signal_hide |
Static Protected Attributes |
Glib::ustring | m_strAppName |
HelpInfo | m_HelpInfo |
AppInstanceManager | m_AppInstanceManager |
bool | m_bOperationCancelled |
bool | m_bAboutShown |
Glib::ustring | m_strCommandLine_0 |
Friends |
class | AppInstanceManager |