3 #ifndef _GTKMM_RECENTMANAGER_H
4 #define _GTKMM_RECENTMANAGER_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
35 #include <glibmm/object.h>
36 #include <glibmm/containers.h>
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 {
class RecentManager_Class; }
75 #ifndef DOXYGEN_SHOULD_SKIP_THIS
78 static void throw_func(GError* gobject);
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
92 class Value<
Gtk::RecentManagerError::Code> :
public Glib::Value_Enum<Gtk::RecentManagerError::Code>
95 static GType value_type() G_GNUC_CONST;
133 #ifndef DOXYGEN_SHOULD_SKIP_THIS
142 static CppClassType recentmanager_class_;
150 explicit RecentManager(
const Glib::ConstructParams& construct_params);
162 #ifndef DOXYGEN_SHOULD_SKIP_THIS
165 static GType get_base_type() G_GNUC_CONST;
185 static Glib::RefPtr<RecentManager>
create();
196 #ifndef GTKMM_DISABLE_DEPRECATED
217 static Glib::RefPtr<RecentManager>
get_for_screen(
const Glib::RefPtr<Gdk::Screen>& screen);
251 #ifndef GTKMM_DISABLE_DEPRECATED
311 Glib::RefPtr<const RecentInfo>
lookup_item(
const Glib::ustring& uri)
const;
331 bool move_item(
const Glib::ustring& uri,
const Glib::ustring& new_uri);
RecentManagerError(GError *gobject)
RecentManagerError(Code error_code, const Glib::ustring &error_message)
Glib::ustring display_name
Glib::ustring description
std::vector< Glib::ustring > groups
Glib::RefPtr< RecentInfo > lookup_item(const Glib::ustring &uri)
Glib::PropertyProxy_ReadOnly< int > property_limit() const
sigc::slot< void > SlotChanged
For instance, void on_changed();.
bool move_item(const Glib::ustring &uri, const Glib::ustring &new_uri)
bool add_item(const Glib::ustring &uri)
GtkRecentManager * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Glib::RefPtr< Gtk::RecentManager > wrap(GtkRecentManager *object, bool take_copy=false)
static Glib::RefPtr< RecentManager > create()
static Glib::RefPtr< RecentManager > get_default()
bool add_item(const Glib::ustring &uri, const Data &recent_data)
bool remove_item(const Glib::ustring &uri)
bool has_item(const Glib::ustring &uri) const
static Glib::RefPtr< RecentManager > get_for_screen(const Glib::RefPtr< Gdk::Screen > &screen)
Glib::RefPtr< const RecentInfo > lookup_item(const Glib::ustring &uri) const
Glib::SignalProxy0< void > signal_changed()
const GtkRecentManager * gobj() const
Provides access to the underlying C GObject.
virtual void on_changed()
This is a default handler for the signal signal_changed().
ListHandle_RecentInfos get_items() const
void set_screen(const Glib::RefPtr< Gdk::Screen > &screen)
Glib::ListHandle< RecentInfo, RecentInfoTraits > ListHandle_RecentInfos
Glib::PropertyProxy_ReadOnly< int > property_size() const
void set_limit(int limit)
GtkRecentManager * gobj()
Provides access to the underlying C GObject.
static GType get_type() G_GNUC_CONST
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_filename() const
Glib::PropertyProxy< int > property_limit()