/* === S Y N F I G ========================================================= */ /*! \file mainwindow.h ** \brief MainWindow ** ** $Id$ ** ** \legal ** ......... ... 2013 Ivan Mahonin ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as ** published by the Free Software Foundation; either version 2 of ** the License, or (at your option) any later version. ** ** This package is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** General Public License for more details. ** \endlegal */ /* ========================================================================= */ /* === S T A R T =========================================================== */ #ifndef __SYNFIG_STUDIO_MAINWINDOW_H #define __SYNFIG_STUDIO_MAINWINDOW_H /* === H E A D E R S ======================================================= */ #include #include #include #include #include #include /* === M A C R O S ========================================================= */ /* === T Y P E D E F S ===================================================== */ /* === C L A S S E S & S T R U C T S ======================================= */ namespace studio { class Dockable; class DockBook; class MainWindow: public Gtk::Window { private: Gtk::Bin *bin_; DockBook *main_dock_book_; Glib::RefPtr window_action_group; //! Constructor Helper - Initializes all of the menus void init_menus(); static void show_dialog_input(); void on_recent_files_changed(); void on_dockable_registered(Dockable* dockable); void on_dockable_unregistered(Dockable* dockable); void toggle_show_menubar(); Glib::RefPtr toggle_menubar; bool toggling_show_menubar; public: MainWindow(); virtual ~MainWindow(); Gtk::Bin& root() { return *bin_; } const Gtk::Bin& root() const { return *bin_; } DockBook& main_dock_book() { return *main_dock_book_; } const DockBook& main_dock_book() const { return *main_dock_book_; } }; }; // END of namespace studio /* === E N D =============================================================== */ #endif