30 lines
783 B
C++
30 lines
783 B
C++
|
#pragma once
|
||
|
|
||
|
#include <gtkmm.h>
|
||
|
|
||
|
class MyWin : public Gtk::Window{
|
||
|
public:
|
||
|
MyWin();
|
||
|
private:
|
||
|
//Child widgets
|
||
|
Gtk::Box vbox,hbox,btnbox,*infobox;
|
||
|
Gtk::ScrolledWindow sw1,sw2;
|
||
|
Glib::RefPtr<Gtk::TextBuffer> buffer1;
|
||
|
Gtk::TextView textview1;
|
||
|
Gtk::Button btn_copy,btn_paste,btn_open,btn_save;
|
||
|
Gtk::InfoBar infobar;
|
||
|
Gtk::Label label1;
|
||
|
//File Dialog
|
||
|
Glib::RefPtr<Gtk::FileChooserNative> dialog;
|
||
|
//Signal Handlers
|
||
|
void btnopen_clicked();
|
||
|
void opendialog_response(int response);
|
||
|
void btnsave_clicked();
|
||
|
void savedialog_response(int response);
|
||
|
void btncopy_clicked();
|
||
|
void btnpaste_clicked();
|
||
|
void buffer1_changed();
|
||
|
void clipboard_receive(const Glib::ustring &text);
|
||
|
void infobar_response(int response);
|
||
|
};
|