Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

App_WithDoc_Gtk.h

Go to the documentation of this file.
00001 /* 00002 * Copyright 2000 Murray Cumming 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Library General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public 00015 * License along with this library; if not, write to the Free 00016 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef BAKERY_APP_WITHDOC_GTK_H 00020 #define BAKERY_APP_WITHDOC_GTK_H 00021 00022 #include <bakery/App/App_WithDoc.h> 00023 #include <bakery/App/App_Gtk.h> 00024 #include <bakery/Document/Document.h> 00025 00026 namespace Bakery 00027 { 00028 00032 class App_WithDoc_Gtk 00033 //These are virtual base classes, with shared shared App and SigC::Object base classes: 00034 : public App_WithDoc, 00035 public App_Gtk 00036 { 00037 public: 00039 App_WithDoc_Gtk(const Glib::ustring& appname); 00040 virtual ~App_WithDoc_Gtk(); 00041 00042 virtual void init(); //Unique final overrider. 00043 00044 protected: 00045 virtual void init_menus_file(); //overridden to add open/save/save as. 00046 virtual void init_toolbars(); //overridden to add open/save 00047 00048 virtual void update_window_title(); 00049 virtual void show_document_history(); //override 00050 00051 virtual void ui_warning(const Glib::ustring& text); 00052 virtual Glib::ustring ui_file_select_open(); 00053 virtual Glib::ustring ui_file_select_save(const Glib::ustring& old_filepath); 00054 virtual void ui_show_modification_status(); 00055 virtual enumSaveChanges ui_offer_to_save_changes(); 00056 virtual bool ui_ask_overwrite(const std::string& filepath); 00057 00058 //Menu stuff: 00059 Gtk::Menu m_SubMenu_RecentFiles; 00060 Gtk::Widget* m_pMenuItem_File_Save; 00061 Gtk::Widget* m_pToolbarItem_Save; 00062 }; 00063 00064 } //namespace 00065 00066 #endif //BAKERY_APP_WITHDOC_GTK_H

Generated on Fri Aug 13 08:56:32 2004 for bakery by doxygen 1.3.7