Xe-Release/XeRelease_Gtkmm3/src/MyDialog.hh

34 lines
703 B
C++
Raw Normal View History

2021-06-23 21:03:44 +08:00
#pragma once
#include <gtkmm.h>
class MyDialog : public Gtk::Dialog{
2021-06-23 22:26:32 +08:00
public:
MyDialog(Gtk::Window &parent);
void set_filename(const char *filename);
void set_msg(Glib::ustring msg);
protected:
void on_response(int response_id) override;
private:
//Child widgets
Gtk::Label msg_label,label2;
Gtk::Entry entry;
Gtk::Box *vbox;
//File Proprties
char filename1[57];
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;
};