SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::gui::qt::QMenuFilesRecentlyOpened Class Reference

#include <QMenuFilesRecentlyOpened.h>

Inheritance diagram for sofa::gui::qt::QMenuFilesRecentlyOpened:

Protected Attributes

QMenu * menuRecentlyOpenedFiles
 
- Protected Attributes inherited from sofa::gui::FilesRecentlyOpenedManager
const unsigned int max_num_files
 
sofa::helper::vector< std::string > files
 
std::string path
 

Public Member Functions

 QMenuFilesRecentlyOpened (const std::string &configFile)
 
 ~QMenuFilesRecentlyOpened () override
 
void openFile (const std::string &file) override
 
QMenu * createWidget (QWidget *parent, const std::string &=std::string("Recently Opened Files ..."))
 
QMenu * getMenu ()
 
- Public Member Functions inherited from sofa::gui::FilesRecentlyOpenedManager
 FilesRecentlyOpenedManager (const std::string &configFile)
 
virtual ~FilesRecentlyOpenedManager ()
 
virtual std::string getFilename (unsigned int idx) const
 
unsigned int getMaxNumFiles () const
 
const std::string & getPath () const
 
void setPath (const std::string &p)
 
const sofa::helper::vector< std::string > & getFiles () const
 
void setFiles (const helper::vector< std::string > &f)
 

Protected Member Functions

void updateWidget ()
 
- Protected Member Functions inherited from sofa::gui::FilesRecentlyOpenedManager
void writeFiles () const
 

Attribute details

QMenu* sofa::gui::qt::QMenuFilesRecentlyOpened::menuRecentlyOpenedFiles
protected

Constructor details

sofa::gui::qt::QMenuFilesRecentlyOpened::QMenuFilesRecentlyOpened ( const std::string &  configFile)
inline
sofa::gui::qt::QMenuFilesRecentlyOpened::~QMenuFilesRecentlyOpened ( )
inlineoverride

Function details

QMenu * sofa::gui::qt::QMenuFilesRecentlyOpened::createWidget ( QWidget parent,
const std::string &  name = std::string("Recently Opened Files ...") 
)
QMenu* sofa::gui::qt::QMenuFilesRecentlyOpened::getMenu ( )
inline
void sofa::gui::qt::QMenuFilesRecentlyOpened::openFile ( const std::string &  file)
overridevirtual
void sofa::gui::qt::QMenuFilesRecentlyOpened::updateWidget ( )
protected