bakery
2.6
|
This class implements Bakery::App using gtkmm. More...
#include <App_Gtk.h>
Public Types | |
typedef Gtk::Window | ParentWindow |
![]() | |
typedef std::vector < Glib::ustring > | type_vecStrings |
typedef sigc::signal< void > | type_signal_hide |
Public Member Functions | |
App_Gtk (const Glib::ustring &appname) | |
Don't forget to call init() too. More... | |
App_Gtk (BaseObjectType *cobject, const Glib::ustring &appname) | |
This constructor can be used to implement derived classes for use with Gnome::Glade::Xml::get_derived_widget(). More... | |
virtual | ~App_Gtk () |
virtual void | add (Gtk::Widget &child) |
Overidden to add a widget in the middle, under the menu, instead of replacing the whole contents. More... | |
![]() | |
App (const Glib::ustring &appname=Glib::ustring()) | |
Don't forget to call init() too. More... | |
virtual | ~App () |
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 () |
Static Public Member Functions | |
static Glib::ustring | util_bold_message (const Glib::ustring &message) |
For instance, to create bold primary text for a dialog box, without marking the markup for translation. More... | |
![]() | |
static void | set_about_information (const Glib::ustring &strVersion, const type_vecStrings &vecAuthors, const Glib::ustring &strCopyright, const Glib::ustring &strDescription) |
static 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) |
static void | set_command_line_args (int argc, char **&argv) |
Protected Member Functions | |
virtual void | init () |
virtual void | init_ui_manager () |
Builds the intial ui string, with placeholders. More... | |
virtual void | init_menus () |
Override this to add more menus or different menus. More... | |
virtual void | init_menus_file () |
Call this from init_menus() to add the standard file menu. More... | |
virtual void | init_menus_edit () |
Call this from init_menus() to add the standard edit menu. More... | |
virtual void | init_menus_help () |
Call this from init_menus() to add the standard help menu. More... | |
virtual void | init_toolbars () |
virtual void | init_layout () |
virtual void | add_ui_from_string (const Glib::ustring &ui_description) |
virtual void | on_hide () |
virtual void | on_menu_help_about () |
virtual void | on_about_close () |
virtual void | ui_hide () |
virtual void | ui_bring_to_front () |
virtual bool | on_delete_event (GdkEventAny *event) |
![]() | |
virtual App * | new_instance ()=0 |
Protected Attributes | |
Glib::RefPtr< Gtk::UIManager > | m_refUIManager |
Glib::RefPtr< Gtk::ActionGroup > | m_refFileActionGroup |
Glib::RefPtr< Gtk::ActionGroup > | m_refEditActionGroup |
Glib::RefPtr< Gtk::ActionGroup > | m_refHelpActionGroup |
Gtk::VBox * | m_pVBox |
Gtk::VBox | m_VBox_PlaceHolder |
Gtk::HandleBox | m_HandleBox_Toolbar |
![]() | |
type_signal_hide | m_signal_hide |
Static Protected Attributes | |
static Gtk::Window * | m_pAbout |
![]() | |
static Glib::ustring | m_strAppName |
static HelpInfo | m_HelpInfo |
static AppInstanceManager | m_AppInstanceManager |
static bool | m_bOperationCancelled |
static bool | m_bAboutShown |
static Glib::ustring | m_strCommandLine_0 |
Friends | |
class | AppInstanceManager |
Additional Inherited Members | |
![]() | |
static void | init_app_name (const Glib::ustring &appname) |
static void | set_operation_cancelled (bool bVal=true) |
static bool | get_operation_cancelled () |
This class implements Bakery::App using gtkmm.
Features:
typedef Gtk::Window Bakery::App_Gtk::ParentWindow |
Bakery::App_Gtk::App_Gtk | ( | const Glib::ustring & | appname) |
Don't forget to call init() too.
Bakery::App_Gtk::App_Gtk | ( | BaseObjectType * | cobject, |
const Glib::ustring & | appname | ||
) |
This constructor can be used to implement derived classes for use with Gnome::Glade::Xml::get_derived_widget().
|
virtual |
|
virtual |
Overidden to add a widget in the middle, under the menu, instead of replacing the whole contents.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from Bakery::App.
Reimplemented in Bakery::App_WithDoc_Gtk.
|
protectedvirtual |
|
protectedvirtual |
Override this to add more menus or different menus.
Reimplemented from Bakery::App.
|
protectedvirtual |
Call this from init_menus() to add the standard edit menu.
Implements Bakery::App.
|
protectedvirtual |
Call this from init_menus() to add the standard file menu.
Implements Bakery::App.
Reimplemented in Bakery::App_WithDoc_Gtk.
|
protectedvirtual |
Call this from init_menus() to add the standard help menu.
Implements Bakery::App.
|
protectedvirtual |
Reimplemented from Bakery::App.
Reimplemented in Bakery::App_WithDoc_Gtk.
|
protectedvirtual |
Builds the intial ui string, with placeholders.
This allows us to merge in actual menus and toolbars in the other init_*() methods.
Reimplemented from Bakery::App.
|
protectedvirtual |
Reimplemented from Bakery::App.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Implements Bakery::App.
|
protectedvirtual |
Implements Bakery::App.
|
protectedvirtual |
Implements Bakery::App.
|
static |
For instance, to create bold primary text for a dialog box, without marking the markup for translation.
|
friend |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |