|
gtkmm 3.3.16
|
An action of which represents a list of recently used files. More...

Public Member Functions | |
| virtual | ~RecentAction () |
| GtkRecentAction* | gobj () |
| Provides access to the underlying C GObject. | |
| const GtkRecentAction* | gobj () const |
| Provides access to the underlying C GObject. | |
| GtkRecentAction* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
| bool | get_show_numbers () |
| Returns the value set by Gtk::RecentChooserMenu::set_show_numbers(). | |
| void | set_show_numbers (bool show_numbers=true) |
| Sets whether a number should be added to the items shown by the widgets representing action. | |
| Glib::PropertyProxy< bool > | property_show_numbers () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly < bool > | property_show_numbers () const |
| Whether the items should be displayed with a number. | |
Static Public Member Functions | |
| static Glib::RefPtr< RecentAction > | create () |
| static Glib::RefPtr< RecentAction > | create (const Glib::ustring& name, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) |
| Creates an action. | |
| static Glib::RefPtr< RecentAction > | create (const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring()) |
| Creates an action with a stock ID. | |
| static Glib::RefPtr< 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) |
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) | |
Related Functions | |
(Note that these are not member functions.) | |
| Glib::RefPtr< Gtk::RecentAction > | wrap (GtkRecentAction* object, bool take_copy=false) |
| A Glib::wrap() method for this object. | |
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.
| virtual Gtk::RecentAction::~RecentAction | ( | ) | [virtual] |
| Gtk::RecentAction::RecentAction | ( | ) | [protected] |
| Gtk::RecentAction::RecentAction | ( | const Glib::ustring & | name, |
| const StockID& | stock_id = StockID(), |
||
| const Glib::ustring & | label = Glib::ustring(), |
||
| const Glib::ustring & | tooltip = Glib::ustring() |
||
| ) | [explicit, protected] |
| 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 | ||
| ) | [explicit, protected] |
| static Glib::RefPtr<RecentAction> Gtk::RecentAction::create | ( | ) | [static] |
Reimplemented from Gtk::Action.
| static Glib::RefPtr<RecentAction> Gtk::RecentAction::create | ( | const Glib::ustring & | name, |
| const Glib::ustring & | label = Glib::ustring(), |
||
| const Glib::ustring & | tooltip = Glib::ustring() |
||
| ) | [static] |
Creates an action.
| name | A unique name for the action. |
| label | The label displayed in menu items and on buttons. |
| tooltip | A tooltip for the action. |
Reimplemented from Gtk::Action.
| 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] |
Creates an action with a stock ID.
The stock ID is used to set a default icon, text and accelerator for the action.
| name | A unique name for the action. |
| stock_id | The stock icon to display in widgets representing the action. |
| label | The label displayed in menu items and on buttons. |
| tooltip | A tooltip for the action. |
Reimplemented from Gtk::Action.
| 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] |
| bool Gtk::RecentAction::get_show_numbers | ( | ) |
Returns the value set by Gtk::RecentChooserMenu::set_show_numbers().
true if numbers should be shown. | const GtkRecentAction* Gtk::RecentAction::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gtk::Action.
| GtkRecentAction* Gtk::RecentAction::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gtk::Action.
| 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.
Reimplemented from Gtk::Action.
| Glib::PropertyProxy_ReadOnly< bool > Gtk::RecentAction::property_show_numbers | ( | ) | const |
Whether the items should be displayed with a number.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy< bool > Gtk::RecentAction::property_show_numbers | ( | ) |
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| 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.
| show_numbers | true if the shown items should be numbered. |
| Glib::RefPtr< Gtk::RecentAction > wrap | ( | GtkRecentAction * | object, |
| bool | take_copy = false |
||
| ) | [related] |
A Glib::wrap() method for this object.
| object | The C instance. |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
1.7.4