00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef MAINWINDOW_H
00023 #define MAINWINDOW_H
00024
00025 #include <gtkmm/actiongroup.h>
00026 #include <gtkmm/box.h>
00027 #include <gtkmm/button.h>
00028 #include <gtkmm/checkbutton.h>
00029 #include <gtkmm/label.h>
00030 #include <gtkmm/table.h>
00031 #include <gtkmm/uimanager.h>
00032 #include <gtkmm/window.h>
00033
00034
00035 struct _PlayerParams {
00036
00037 Glib::ustring path;
00038
00039
00040 Glib::ustring params;
00041 };
00042 typedef struct _PlayerParams PlayerParams;
00043
00044
00045 class MainWindow: public Gtk::Window {
00046 public:
00047
00048 MainWindow();
00049
00050
00051 PlayerParams* get_params();
00052
00053 private:
00054
00055 void construct();
00056
00057
00058 void on_play_clicked();
00059
00060
00061 void on_open();
00062
00063
00064 void on_quit();
00065
00066
00067 void on_about();
00068
00069
00070 Glib::RefPtr<Gtk::ActionGroup> m_ActionGroup;
00071 Glib::RefPtr<Gtk::UIManager> m_UIManager;
00072
00073
00074 Gtk::VBox *m_VB;
00075
00076
00077 Gtk::Button *m_PlayButton;
00078
00079
00080 Gtk::Label *m_PathLabel;
00081 Gtk::Label *m_EntryLabel;
00082
00083
00084 Gtk::CheckButton *m_NoSoundCB;
00085 Gtk::CheckButton *m_DebugModeCB;
00086 Gtk::CheckButton *m_FullscreenCB;
00087
00088
00089
00090 bool m_Closed;
00091 };
00092
00093 #endif