calendar.hh

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

HH
39
字号
#include <gfc/main.hh>#include <gfc/gtk/calendar.hh>#include <gfc/gtk/checkbutton.hh>#include <gfc/gtk/label.hh>#include <gfc/gtk/fontselection.hh>#include <gfc/gtk/window.hh>using namespace GFC;class CalendarWindow : public Gtk::Window{	static const int DEF_PAD = 10;	static const int DEF_PAD_SMALL = 5;	static const int TM_YEAR_BASE = 1900;	Pointer<Gtk::Calendar> calendar;	Pointer<Gtk::Label> last_signal;	Pointer<Gtk::Label> previous_signal;	Pointer<Gtk::Label> previous2_signal;	std::vector<Gtk::CheckButton*> checkboxes;	std::vector<bool> settings;	void set_flags();	void set_signal_strings(const char *str);	String date_to_string();protected:	void on_toggle_flag(Gtk::CheckButton *toggle);	void on_select_font();	void on_font_selection_ok(Gtk::FontSelectionDialog *font_dialog);	void on_day_selected_double_click();public:	CalendarWindow();	virtual ~CalendarWindow();};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?