2021-06-23 21:03:44 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gtkmm.h>
|
2021-09-20 10:46:08 +08:00
|
|
|
#include <fstream>
|
|
|
|
#include "../cfgfile2/cfgfile.hh"
|
2021-06-23 21:03:44 +08:00
|
|
|
|
|
|
|
class MyDialog : public Gtk::Dialog{
|
2021-06-23 22:26:32 +08:00
|
|
|
public:
|
2021-09-20 10:46:08 +08:00
|
|
|
MyDialog(BaseObjectType* cobject,const Glib::RefPtr<Gtk::Builder>& ref_builder);
|
|
|
|
static MyDialog * create(Gtk::Window& parent);
|
2021-06-23 22:26:32 +08:00
|
|
|
protected:
|
|
|
|
void on_response(int response_id) override;
|
|
|
|
private:
|
2021-09-20 10:46:08 +08:00
|
|
|
Glib::RefPtr<Gtk::Builder> ref_Glade;
|
|
|
|
Gtk::Entry * entry_lts,* entry_stable,* entry_dev;
|
2021-06-23 21:03:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class MsgBox : public Gtk::Dialog{
|
|
|
|
public:
|
|
|
|
MsgBox(Gtk::Window &parent);
|
|
|
|
void Init(Glib::ustring msg);
|
|
|
|
protected:
|
|
|
|
//Signal Handler
|
|
|
|
void on_response(int response_id) override;
|
|
|
|
private:
|
|
|
|
//Child Widgets
|
|
|
|
Gtk::Image image;
|
|
|
|
Gtk::Label msg_label;
|
|
|
|
Gtk::Box *vbox,hbox;
|
|
|
|
};
|