59 lines
1.0 KiB
C
59 lines
1.0 KiB
C
|
#ifndef SESSION_GUI_H
|
||
|
#define SESSION_GUI_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <gtkmm.h>
|
||
|
|
||
|
class SessionOpenGui : public Gtk::Dialog
|
||
|
{
|
||
|
private:
|
||
|
Gtk::ComboBox *combobox_session_open;
|
||
|
Gtk::Button *button_session_open_cancel;
|
||
|
Gtk::Button *button_session_open_okay;
|
||
|
|
||
|
public:
|
||
|
SessionOpenGui(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder);
|
||
|
|
||
|
static SessionOpenGui *Open();
|
||
|
void Refresh();
|
||
|
|
||
|
protected:
|
||
|
void on_cancel();
|
||
|
void on_okay();
|
||
|
|
||
|
class ModelColumns : public Gtk::TreeModel::ColumnRecord
|
||
|
{
|
||
|
public:
|
||
|
ModelColumns()
|
||
|
{
|
||
|
add(m_name);
|
||
|
}
|
||
|
|
||
|
Gtk::TreeModelColumn<std::string> m_name;
|
||
|
};
|
||
|
|
||
|
ModelColumns m_columns;
|
||
|
Glib::RefPtr<Gtk::ListStore> m_tree_model;
|
||
|
};
|
||
|
|
||
|
|
||
|
class SessionSaveGui : public Gtk::Dialog
|
||
|
{
|
||
|
private:
|
||
|
Gtk::Entry *entry_session_name;
|
||
|
Gtk::Button *button_session_save_cancel;
|
||
|
Gtk::Button *button_session_save_okay;
|
||
|
|
||
|
public:
|
||
|
SessionSaveGui(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder);
|
||
|
|
||
|
static SessionSaveGui *Open();
|
||
|
void Refresh();
|
||
|
|
||
|
protected:
|
||
|
void on_cancel();
|
||
|
void on_okay();
|
||
|
};
|
||
|
|
||
|
#endif // SESSION_GUI_H
|