/* * 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/menus/\ * main_menu/examplewindow.h */ #ifndef GTKMM_EXAMPLEWINDOW_H #define GTKMM_EXAMPLEWINDOW_H #include class ExampleWindow: public Gtk::ApplicationWindow { public: ExampleWindow(); virtual ~ExampleWindow(); protected: //Signal handlers: void on_menu_others(); void on_menu_choices(const Glib::ustring& parameter); void on_menu_choices_other(int parameter); void on_menu_toggle(); //Child widgets: Gtk::Box m_Box; //Two sets of choices: Glib::RefPtr m_refChoice, m_refChoiceOther; Glib::RefPtr m_refToggle; }; #endif //GTKMM_EXAMPLEWINDOW_H