Ardour  9.0-pre0-386-g96ef4d20f2
Gtk::RecentAction Class Reference

#include <recentaction.h>

Inheritance diagram for Gtk::RecentAction:
[legend]

Public Member Functions

virtual ~RecentAction ()
 
GtkRecentActiongobj ()
 Provides access to the underlying C GObject. More...
 
const GtkRecentActiongobj () const
 Provides access to the underlying C GObject. More...
 
GtkRecentActiongobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
bool get_show_numbers ()
 
void set_show_numbers (bool show_numbers=true)
 
Glib::PropertyProxy< bool > property_show_numbers ()
 
Glib::PropertyProxy_ReadOnly< bool > property_show_numbers () const
 
- Public Member Functions inherited from Gtk::Action
virtual ~Action ()
 
GtkActiongobj ()
 Provides access to the underlying C GObject. More...
 
const GtkActiongobj () const
 Provides access to the underlying C GObject. More...
 
GtkActiongobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
Glib::ustring get_name () const
 
bool is_sensitive () const
 
bool get_sensitive () const
 
void set_sensitive (bool sensitive=true)
 
bool is_visible () const
 
bool get_visible () const
 
void set_visible (bool visible=true)
 
void activate ()
 
Imagecreate_icon (IconSize icon_size)
 
MenuItemcreate_menu_item ()
 
ToolItemcreate_tool_item ()
 
Menucreate_menu ()
 
void connect_proxy (Widget &proxy)
 
void disconnect_proxy (Widget &proxy)
 
Glib::SListHandle< Widget * > get_proxies ()
 
Glib::SListHandle< const Widget * > get_proxies () const
 
void connect_accelerator ()
 
void disconnect_accelerator ()
 
Glib::ustring get_accel_path () const
 
Glib::SignalProxy0< void > signal_activate ()
 
void set_accel_path (const Glib::ustring &accel_path)
 
void set_accel_group (const Glib::RefPtr< AccelGroup > &accel_group)
 
void set_label (const Glib::ustring &label)
 
Glib::ustring get_label () const
 
void set_short_label (const Glib::ustring &short_label)
 
Glib::ustring get_short_label () const
 
void set_tooltip (const Glib::ustring &tooltip)
 
Glib::ustring get_tooltip () const
 
void set_stock_id (const StockID &stock_id)
 
StockID get_stock_id () const
 
void set_gicon (const Glib::RefPtr< Gio::Icon > &icon)
 
Glib::RefPtr< Gio::Icon > get_gicon ()
 
Glib::RefPtr< const Gio::Icon > get_gicon () const
 
void set_icon_name (const Glib::ustring &icon_name)
 
Glib::ustring get_icon_name () const
 
void set_visible_horizontal (bool visible_horizontal=true)
 
bool get_visible_horizontal () const
 
void set_visible_vertical (bool visible_vertical=true)
 
bool get_visible_vertical () const
 
void set_is_important (bool is_important=true)
 
bool get_is_important () const
 
void set_always_show_image (bool always_show=true)
 
bool get_always_show_image () const
 
void block_activate ()
 
void unblock_activate ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name () const
 
Glib::PropertyProxy< Glib::ustring > property_label ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label () const
 
Glib::PropertyProxy< Glib::ustring > property_short_label ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_short_label () const
 
Glib::PropertyProxy< Glib::ustring > property_tooltip ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tooltip () const
 
Glib::PropertyProxy< StockIDproperty_stock_id ()
 
Glib::PropertyProxy_ReadOnly< StockIDproperty_stock_id () const
 
Glib::PropertyProxy< Glib::RefPtr< Gio::Icon > > property_gicon ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gio::Icon > > property_gicon () const
 
Glib::PropertyProxy< Glib::ustring > property_icon_name ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name () const
 
Glib::PropertyProxy< bool > property_visible_horizontal ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_horizontal () const
 
Glib::PropertyProxy< bool > property_visible_vertical ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_vertical () const
 
Glib::PropertyProxy< bool > property_visible_overflown ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_overflown () const
 
Glib::PropertyProxy< bool > property_is_important ()
 
Glib::PropertyProxy_ReadOnly< bool > property_is_important () const
 
Glib::PropertyProxy< bool > property_hide_if_empty ()
 
Glib::PropertyProxy_ReadOnly< bool > property_hide_if_empty () const
 
Glib::PropertyProxy< bool > property_sensitive ()
 
Glib::PropertyProxy_ReadOnly< bool > property_sensitive () const
 
Glib::PropertyProxy< bool > property_visible ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible () const
 
Glib::PropertyProxy< Glib::RefPtr< ActionGroup > > property_action_group ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< ActionGroup > > property_action_group () const
 
Glib::PropertyProxy< bool > property_always_show_image ()
 
Glib::PropertyProxy_ReadOnly< bool > property_always_show_image () const
 
- Public Member Functions inherited from Gtk::RecentChooser
virtual ~RecentChooser ()
 
GtkRecentChoosergobj ()
 Provides access to the underlying C GObject. More...
 
const GtkRecentChoosergobj () const
 Provides access to the underlying C GObject. More...
 
void set_show_private (bool show_private=true)
 
bool get_show_private () const
 
void set_show_not_found (bool show_not_found=true)
 
bool get_show_not_found () const
 
void set_select_multiple (bool select_multiple=true)
 
bool get_select_multiple () const
 
void set_limit (int limit)
 
void unset_limit ()
 
int get_limit () const
 
void set_local_only (bool local_only=true)
 
bool get_local_only () const
 
void set_show_tips (bool show_tips=true)
 
bool get_show_tips () const
 
void set_show_icons (bool show_icons=true)
 
bool get_show_icons () const
 
void set_sort_type (RecentSortType sort_type)
 
RecentSortType get_sort_type () const
 
void set_sort_func (const SlotCompare &slot)
 
bool set_current_uri (const Glib::ustring &uri)
 
Glib::ustring get_current_uri () const
 
Glib::RefPtr< RecentInfoget_current_item ()
 
Glib::RefPtr< const RecentInfoget_current_item () const
 
bool select_uri (const Glib::ustring &uri)
 
void unselect_uri (const Glib::ustring &uri)
 
void select_all ()
 
void unselect_all ()
 
ListHandle_RecentInfos get_items () const
 
Glib::StringArrayHandle get_uris () const
 
void add_filter (const RecentFilter &filter)
 
void remove_filter (const RecentFilter &filter)
 
Glib::SListHandle< RecentFilter * > list_filters ()
 
Glib::SListHandle< const RecentFilter * > list_filters () const
 
void set_filter (const RecentFilter &filter)
 
RecentFilterget_filter ()
 
const RecentFilterget_filter () const
 
Glib::SignalProxy0< void > signal_selection_changed ()
 
Glib::SignalProxy0< void > signal_item_activated ()
 
Glib::PropertyProxy< bool > property_show_private ()
 
Glib::PropertyProxy_ReadOnly< bool > property_show_private () const
 
Glib::PropertyProxy< bool > property_show_tips ()
 
Glib::PropertyProxy_ReadOnly< bool > property_show_tips () const
 
Glib::PropertyProxy< bool > property_show_icons ()
 
Glib::PropertyProxy_ReadOnly< bool > property_show_icons () const
 
Glib::PropertyProxy< bool > property_show_not_found ()
 
Glib::PropertyProxy_ReadOnly< bool > property_show_not_found () const
 
Glib::PropertyProxy< bool > property_select_multiple ()
 
Glib::PropertyProxy_ReadOnly< bool > property_select_multiple () const
 
Glib::PropertyProxy< bool > property_local_only ()
 
Glib::PropertyProxy_ReadOnly< bool > property_local_only () const
 
Glib::PropertyProxy< int > property_limit ()
 
Glib::PropertyProxy_ReadOnly< int > property_limit () const
 
Glib::PropertyProxy< RecentSortTypeproperty_sort_type ()
 
Glib::PropertyProxy_ReadOnly< RecentSortTypeproperty_sort_type () const
 
Glib::PropertyProxy< RecentFilter * > property_filter ()
 
Glib::PropertyProxy_ReadOnly< RecentFilter * > property_filter () const
 

Static Public Member Functions

static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< RecentActioncreate ()
 
static Glib::RefPtr< RecentActioncreate (const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
static Glib::RefPtr< RecentActioncreate (const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
static Glib::RefPtr< RecentActioncreate (const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label, const Glib::ustring &tooltip, const Glib::RefPtr< RecentManager > &recent_manager)
 
- Static Public Member Functions inherited from Gtk::Action
static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< Actioncreate ()
 
static Glib::RefPtr< Actioncreate (const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
static Glib::RefPtr< Actioncreate (const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
static Glib::RefPtr< Actioncreate_with_icon_name (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip)
 
- Static Public Member Functions inherited from Gtk::RecentChooser
static void add_interface (GType gtype_implementer)
 
static GType get_type () G_GNUC_CONST
 

Protected Member Functions

 RecentAction ()
 
 RecentAction (const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
 RecentAction (const Glib::ustring &name, const StockID &stock_id, const Glib::ustring &label, const Glib::ustring &tooltip, const Glib::RefPtr< RecentManager > &recent_manager)
 
- Protected Member Functions inherited from Gtk::Action
 Action ()
 
 Action (const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
 Action (const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
 
void block_activate_from (Widget &proxy)
 
void unblock_activate_from (Widget &proxy)
 
virtual Widgetcreate_menu_item_vfunc ()
 
virtual Widgetcreate_tool_item_vfunc ()
 
virtual void connect_proxy_vfunc (Widget *proxy)
 
virtual void disconnect_proxy_vfunc (Widget *proxy)
 
virtual void on_activate ()
 This is a default handler for the signal signal_activate(). More...
 
- Protected Member Functions inherited from Gtk::RecentChooser
 RecentChooser ()
 
virtual Glib::ustring get_current_uri_vfunc () const
 
virtual void unselect_uri_vfunc (const Glib::ustring &uri)
 
virtual void select_all_vfunc ()
 
virtual void unselect_all_vfunc ()
 
virtual Glib::RefPtr< RecentManagerget_recent_manager_vfunc ()
 
virtual void add_filter_vfunc (const RecentFilter &filter)
 
virtual void remove_filter_vfunc (const RecentFilter &filter)
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gtk::RecentActionwrap (GtkRecentAction *object, bool take_copy=false)
 

Additional Inherited Members

- Public Types inherited from Gtk::Action
typedef sigc::slot< void > SlotActivate
 For instance, void on_activate();. More...
 
- Public Types inherited from Gtk::RecentChooser
typedef sigc::slot< int, const Glib::RefPtr< RecentInfo > &, const Glib::RefPtr< RecentInfo > & > SlotCompare
 
typedef Glib::ListHandle< RecentInfo, RecentInfoTraits > ListHandle_RecentInfos
 

Detailed Description

An action of which represents a list of recently used files.

A Gtk::RecentAction represents a list of recently used files, which can be shown by widgets such as Gtk::RecentChooserDialog or Gtk::RecentChooserMenu. To construct a submenu showing recently used files, use a Gtk::RecentAction as the action for a menuitem. To construct a menu toolbutton showing the recently used files in the popup menu, use a Gtk::RecentAction as the action for a toolitem element.

See also the methods in the RecentChooser base class.

Definition at line 64 of file recentaction.h.

Constructor & Destructor Documentation

◆ ~RecentAction()

virtual Gtk::RecentAction::~RecentAction ( )
virtual

◆ RecentAction() [1/3]

Gtk::RecentAction::RecentAction ( )
protected

◆ RecentAction() [2/3]

Gtk::RecentAction::RecentAction ( const Glib::ustring &  name,
const StockID stock_id = StockID(),
const Glib::ustring &  label = Glib::ustring(),
const Glib::ustring &  tooltip = Glib::ustring() 
)
explicitprotected

◆ RecentAction() [3/3]

Gtk::RecentAction::RecentAction ( const Glib::ustring &  name,
const StockID stock_id,
const Glib::ustring &  label,
const Glib::ustring &  tooltip,
const Glib::RefPtr< RecentManager > &  recent_manager 
)
explicitprotected

Member Function Documentation

◆ create() [1/4]

static Glib::RefPtr<RecentAction> Gtk::RecentAction::create ( )
static

◆ create() [2/4]

static Glib::RefPtr<RecentAction> Gtk::RecentAction::create ( const Glib::ustring &  name,
const Glib::ustring &  label = Glib::ustring(),
const Glib::ustring &  tooltip = Glib::ustring() 
)
static

◆ create() [3/4]

static Glib::RefPtr<RecentAction> Gtk::RecentAction::create ( const Glib::ustring &  name,
const Gtk::StockID stock_id,
const Glib::ustring &  label,
const Glib::ustring &  tooltip,
const Glib::RefPtr< RecentManager > &  recent_manager 
)
static

◆ create() [4/4]

static Glib::RefPtr<RecentAction> Gtk::RecentAction::create ( const Glib::ustring &  name,
const Gtk::StockID stock_id,
const Glib::ustring &  label = Glib::ustring(),
const Glib::ustring &  tooltip = Glib::ustring() 
)
static

◆ get_show_numbers()

bool Gtk::RecentAction::get_show_numbers ( )

Returns the value set by Gtk::RecentChooserMenu::set_show_numbers().

Returns
true if numbers should be shown.

◆ get_type()

static GType Gtk::RecentAction::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ gobj() [1/2]

GtkRecentAction* Gtk::RecentAction::gobj ( )
inline

Provides access to the underlying C GObject.

Definition at line 105 of file recentaction.h.

◆ gobj() [2/2]

const GtkRecentAction* Gtk::RecentAction::gobj ( ) const
inline

Provides access to the underlying C GObject.

Definition at line 108 of file recentaction.h.

◆ gobj_copy()

GtkRecentAction* Gtk::RecentAction::gobj_copy ( )

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

◆ property_show_numbers() [1/2]

Glib::PropertyProxy< bool > Gtk::RecentAction::property_show_numbers ( )

Whether the items should be displayed with a number.

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_show_numbers() [2/2]

Glib::PropertyProxy_ReadOnly< bool > Gtk::RecentAction::property_show_numbers ( ) const

Whether the items should be displayed with a number.

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ set_show_numbers()

void Gtk::RecentAction::set_show_numbers ( bool  show_numbers = true)

Sets whether a number should be added to the items shown by the widgets representing action. The numbers are shown to provide a unique character for a mnemonic to be used inside the menu item's label. Only the first ten items get a number to avoid clashes.

Parameters
show_numberstrue if the shown items should be numbered.

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gtk::RecentAction > wrap ( GtkRecentAction object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file: