/usr/include/bakery-2.6/bakery/App/App_WithDoc_Gtk.h is in libbakery-2.6-dev 2.6.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | /*
* Copyright 2000 Murray Cumming
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef BAKERY_APP_WITHDOC_GTK_H
#define BAKERY_APP_WITHDOC_GTK_H
#include <bakery/App/App_WithDoc.h>
#include <bakery/App/App_Gtk.h>
#include <bakery/Document/Document.h>
#include <gtkmm/toolbutton.h>
#include <gtkmm/recentmanager.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C" {
typedef struct _EggRecentItem EggRecentItem;
}
// We do not include gtkmm/recentchooser.h so that this still compiles
// with gtkmm-2.6
namespace Gtk {
class RecentChooser;
}
#endif // DOXYGEN_SHOULD_SKIP_THIS
namespace Bakery
{
/** This class implements Bakery::App_WithDoc using gtkmm.
*
* Your application's installation should register your document's MIME-type in GNOME's (freedesktop's) MIME-type system,
* and register your application as capable of opening documents of that MIME-type.
*
*
*/
class App_WithDoc_Gtk
//These are virtual base classes, with shared shared App and sigc::trackable base classes:
: public App_WithDoc,
public App_Gtk
{
public:
///Don't forget to call init() too.
App_WithDoc_Gtk(const Glib::ustring& appname);
/// This constructor can be used to implement derived classes for use with Gnome::Glade::Xml::get_derived_widget().
App_WithDoc_Gtk(BaseObjectType* cobject, const Glib::ustring& appname);
virtual ~App_WithDoc_Gtk();
virtual void init(); //Unique final overrider.
protected:
virtual void init_menus_file(); //overridden to add open/save/save as.
virtual void init_menus_file_recentfiles(const Glib::ustring& path); // call this in init_menus_file()
virtual void init_toolbars(); //overridden to add open/save
virtual void document_history_add(const Glib::ustring& file_uri); //overridden.
virtual void document_history_remove(const Glib::ustring& file_uri); //overridden.
virtual void update_window_title();
virtual void ui_warning(const Glib::ustring& text, const Glib::ustring& secondary_text);
virtual Glib::ustring ui_file_select_open(const Glib::ustring& starting_folder_uri = Glib::ustring());
virtual Glib::ustring ui_file_select_save(const Glib::ustring& old_file_uri);
virtual void ui_show_modification_status();
virtual enumSaveChanges ui_offer_to_save_changes();
void on_recent_files_activate(Gtk::RecentChooser& recent_chooser);
//Menu stuff:
Glib::RefPtr<Gtk::Action> m_action_save, m_action_saveas;
};
} //namespace
#endif //BAKERY_APP_WITHDOC_GTK_H
|