2009-11-25 09:22:48 +00:00
|
|
|
#ifndef GUI_H
|
|
|
|
#define GUI_H
|
|
|
|
|
|
|
|
#include <gtkmm.h>
|
2009-11-26 07:47:47 +00:00
|
|
|
#include "matrix.h"
|
2009-11-25 09:22:48 +00:00
|
|
|
|
2009-11-26 08:34:17 +00:00
|
|
|
extern Glib::RefPtr<Gtk::Builder> g_builder;
|
|
|
|
|
2009-11-25 09:22:48 +00:00
|
|
|
class Gui : public Gtk::Window
|
|
|
|
{
|
|
|
|
private:
|
2009-11-26 10:38:37 +00:00
|
|
|
Gtk::ScrolledWindow *m_scrolledwindow_audio;
|
|
|
|
Gtk::ScrolledWindow *m_scrolledwindow_midi;
|
2009-11-25 09:22:48 +00:00
|
|
|
Matrix m_matrix;
|
|
|
|
|
|
|
|
public:
|
2009-11-26 08:34:17 +00:00
|
|
|
Gui(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder);
|
|
|
|
|
|
|
|
static Gui *Open();
|
2009-11-25 09:22:48 +00:00
|
|
|
virtual ~Gui();
|
|
|
|
|
|
|
|
void Refresh();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool on_idle();
|
|
|
|
};
|
|
|
|
|
2009-11-26 10:38:37 +00:00
|
|
|
class Preferences : public Gtk::Dialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Preferences(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder);
|
|
|
|
static Preferences *Open();
|
|
|
|
};
|
|
|
|
|
2009-11-25 09:22:48 +00:00
|
|
|
#endif // GUI_H
|