ParaView
|
pqRecentlyUsedResourcesList encapsulates a persistent collection of recently-used resources (data files or state files). More...
#include <pqRecentlyUsedResourcesList.h>
Inherits QObject.
Public Types | |
typedef QList< pqServerResource > | ListT |
convenience typedef. More... | |
Signals | |
void | changed () |
Signal emitted whenever the collection is changed. More... | |
Public Member Functions | |
pqRecentlyUsedResourcesList (QObject *parent=0) | |
virtual | ~pqRecentlyUsedResourcesList () |
void | add (const pqServerResource &resource) |
Add a resource to the collection. More... | |
const QList< pqServerResource > & | list () const |
Returns the contents of the collection ordered from most-recently-used to least-recently-used. More... | |
void | load (pqSettings &) |
Load the collection (from local user preferences) More... | |
void | save (pqSettings &) const |
Save the collection (to local user preferences) More... | |
pqRecentlyUsedResourcesList encapsulates a persistent collection of recently-used resources (data files or state files).
Definition at line 46 of file pqRecentlyUsedResourcesList.h.
typedef QList<pqServerResource> pqRecentlyUsedResourcesList::ListT |
convenience typedef.
Definition at line 58 of file pqRecentlyUsedResourcesList.h.
pqRecentlyUsedResourcesList::pqRecentlyUsedResourcesList | ( | QObject * | parent = 0 | ) |
|
virtual |
void pqRecentlyUsedResourcesList::add | ( | const pqServerResource & | resource | ) |
Add a resource to the collection.
Moves the resource to the beginning of the list.
|
inline |
Returns the contents of the collection ordered from most-recently-used to least-recently-used.
Definition at line 70 of file pqRecentlyUsedResourcesList.h.
void pqRecentlyUsedResourcesList::load | ( | pqSettings & | ) |
Load the collection (from local user preferences)
void pqRecentlyUsedResourcesList::save | ( | pqSettings & | ) | const |
Save the collection (to local user preferences)
|
signal |
Signal emitted whenever the collection is changed.