📄 actions.hh
字号:
#include <gfc/main.hh>#include <gfc/gtk/box.hh>#include <gfc/gtk/menu.hh>#include <gfc/gtk/toolbar.hh>#include <gfc/gtk/window.hh>#include <gfc/gtk/uimanager.hh>using namespace GFC;class ActionWindow : public Gtk::Window{ Pointer<Gtk::ActionGroup> group; Pointer<Gtk::UIManager> manager; void add_actions();protected: bool on_button_press(const Gdk::EventButton& event, Gtk::Menu *menu);public: ActionWindow(); virtual ~ActionWindow(); 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_test(); void on_help_about();};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -