Gui::RecentFilesAction Class Reference
The RecentFilesAction class holds a menu listed with the recent files. More...
#include <Action.h>
Public Member Functions | |
void activateFile (int) | |
void appendFile (const QString &) | |
Adds the new item to the recent files. More... | |
RecentFilesAction (Command *pcCmd, QObject *parent=0) | |
void resizeList (int) | |
virtual ~RecentFilesAction () | |
![]() | |
ActionGroup (Command *pcCmd, QObject *parent=0) | |
Constructs an action called name with parent parent. More... | |
QList< QAction * > actions () const | |
QAction * addAction (const QString &) | |
QAction * addAction (QAction *) | |
void addTo (QWidget *w) | |
Adds this action to widget w. More... | |
int checkedAction () const | |
bool isExclusive () const | |
void setCheckedAction (int) | |
void setDisabled (bool) | |
void setDropDownMenu (bool b) | |
void setEnabled (bool) | |
Sets whether the action is enabled. More... | |
void setExclusive (bool) | |
void setVisible (bool) | |
virtual ~ActionGroup () | |
![]() | |
QAction * action () | |
Action (Command *pcCmd, QAction *action, QObject *parent) | |
Action takes ownership of the 'action' object. More... | |
Action (Command *pcCmd, QObject *parent=0) | |
Constructs an action called name with parent parent. More... | |
QIcon icon () const | |
bool isChecked () const | |
void setCheckable (bool) | |
void setChecked (bool, bool no_signal=false) | |
void setIcon (const QIcon &) | |
void setMenuRole (QAction::MenuRole menuRole) | |
void setShortcut (const QString &) | |
void setStatusTip (const QString &) | |
void setText (const QString &) | |
void setToolTip (const QString &) | |
void setWhatsThis (const QString &) | |
QKeySequence shortcut () const | |
QString statusTip () const | |
QString text () const | |
QString toolTip () const | |
QString whatsThis () const | |
virtual ~Action () | |
Additional Inherited Members | |
![]() | |
void onActivated () | |
Activates the command. More... | |
void onActivated (QAction *) | |
Activates the command. More... | |
void onHovered (QAction *) | |
void onToggled (bool) | |
![]() | |
virtual void onActivated () | |
Activates the command. More... | |
virtual void onToggled (bool) | |
Sets whether the command is toggled. More... | |
Detailed Description
The RecentFilesAction class holds a menu listed with the recent files.
Constructor & Destructor Documentation
◆ RecentFilesAction()
◆ ~RecentFilesAction()
|
virtual |
Member Function Documentation
◆ activateFile()
void RecentFilesAction::activateFile | ( | int | id | ) |
References Gui::getMainWindow(), Gui::SelectModule::importHandler(), Gui::Application::Instance, and Gui::Application::open().
Referenced by StdCmdRecentFiles::activated().
◆ appendFile()
void RecentFilesAction::appendFile | ( | const QString & | filename | ) |
Adds the new item to the recent files.
References App::Application::Config(), App::GetApplication(), ParameterGrp::GetBool(), App::Application::GetParameterGroupByPath(), App::Application::GetParameterSet(), and ParameterManager::SaveDocument().
Referenced by Gui::MainWindow::appendRecentFile().
◆ resizeList()
void RecentFilesAction::resizeList | ( | int | size | ) |
The documentation for this class was generated from the following files:
- src/Gui/Action.h
- src/Gui/Action.cpp