actions.hh

来自「gfc编程示例 gfc sample of Linux GFC」· HH 代码 · 共 34 行

HH
34
字号
#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 + =
减小字号Ctrl + -
显示快捷键?