📄 menu.hh
字号:
#include <gfc/main.hh>#include <gfc/gtk/menu.hh>#include <gfc/gtk/window.hh>using namespace GFC;class MenuWindow : public Gtk::Window{ MenuWindow(const MenuWindow&); MenuWindow& operator=(const MenuWindow&);protected: bool on_button_press(const Gdk::EventButton& event, Gtk::Menu *menu);public: MenuWindow(); virtual ~MenuWindow(); void menu_item_selected(const char *parent, const char *item); void on_file_new(); void on_file_open(); void on_file_save(); void on_file_save_as(); void on_file_quit(); void on_options_preferences(); void on_help_about();};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -