#ifndef MAINWINDOW_H_ #define MAINWINDOW_H_ #include #include #include #include #include #include #include "PreferencesWindow.h" class MainWindow { public: MainWindow(); virtual ~MainWindow(); // The window. This is public so we can hook into events and // call kit.run(window) against it, if needed. Gtk::Window *window; private: // Contains the Xml reference for this window and it's widgets. Glib::RefPtr refXml; // Widgets in the window. // Child Windows PreferencesWindow *preferences_window; // Methods bool on_delete_event(GdkEventAny *e); void on_preferences_open(); bool on_preferences_close(GdkEventAny *e); void on_preferences_hide(); }; #endif /*MAINWINDOW_H_*/