2021-07-05 19:57:22 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gtkmm.h>
|
|
|
|
|
|
|
|
class MyWin : public Gtk::Window{
|
|
|
|
public:
|
|
|
|
MyWin();
|
|
|
|
private:
|
|
|
|
//Child Widgets
|
|
|
|
Gtk::FontButton fontbtn;
|
2021-07-06 21:36:02 +08:00
|
|
|
Gtk::Button btnsave,btnload;
|
2021-07-05 19:57:22 +08:00
|
|
|
Gtk::Label label1;
|
|
|
|
Gtk::Box main_box;
|
2021-07-06 21:36:02 +08:00
|
|
|
//A Dialog
|
|
|
|
Glib::RefPtr<Gtk::FileChooserNative> dialog;
|
2021-07-05 19:57:22 +08:00
|
|
|
//Signal Handlers
|
|
|
|
void font_changed();
|
2021-07-06 21:36:02 +08:00
|
|
|
void save_dialog();
|
|
|
|
void load_dialog();
|
|
|
|
void load_font(int response);
|
|
|
|
void save_font(int response);
|
2021-07-05 19:57:22 +08:00
|
|
|
};
|