/* * Enhancing the main menu example of gtkmm-tutorial/unstable presented in * https://developer.gnome.org/gtkmm-tutorial/unstable/\ * sec-menus-examples.html.de#menu-example-main * to show an application menu as suggested in * https://wiki.gnome.org/ThreePointThree/Features/ApplicationMenu, * described in * https://wiki.gnome.org/HowDoI/ApplicationMenu * and realised using gtkmm in * https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/\ * application/app_and_win_menus * * Started on 2014-11-10 * Current version: 2014-11-10 * Performed by: Jürgen Kleber (jkleber2701 t-online de) * * Original file downloaded on Sunday, 9th of November, 2014 from * https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/\ * application/app_and_win_menus/exampleapplication.h */ #ifndef GTKMM_EXAMPLEAPPLICATION_H #define GTKMM_EXAMPLEAPPLICATION_H #include #include #include #include "examplewindow.h" class ExampleApplication: public Gtk::Application { protected: ExampleApplication(); public: static Glib::RefPtr create(); protected: //Overrides of default signal handlers: virtual void on_activate(); virtual void on_startup(); private: Glib::RefPtr newstandard_action; Glib::RefPtr newfoo_action; Glib::RefPtr newgoo_action; Glib::RefPtr quit_action; Glib::RefPtr about_action; Glib::RefPtr m_refBuilder; ExampleWindow* win; void on_menu_file_new_generic(); void on_menu_file_quit(); void on_menu_others(); void create_window(); void on_window_hide(Gtk::Window* window); }; #endif /* GTKMM_EXAMPLEAPPLICATION_H */