4 #ifndef pqStandardRecentlyUsedResourceLoaderImplementation_h 5 #define pqStandardRecentlyUsedResourceLoaderImplementation_h 14 #include <QStringList> 33 typedef QObject Superclass;
47 static bool addDataFilesToRecentResources(
48 pqServer* server,
const QStringList& files,
const QString& smgroup,
const QString& smname);
53 static bool addStateFileToRecentResources(
virtual bool load(const pqServerResource &resource, pqServer *server)=0
Loads the resource and returns the true if successfully loaded, otherwise false.
#define PQAPPLICATIONCOMPONENTS_EXPORT
virtual bool canLoad(const pqServerResource &resource)=0
Return true of the interface supports loading the given resource.
abstract interface used to load recently used resources.
virtual QString label(const pqServerResource &resource)=0
Return label to use for the resource.
support loading states, and data files when loaded from pqRecentFilesMenu.
virtual QIcon icon(const pqServerResource &resource)
Return an icon, if any, to use for the resource.
pqServerResource encapsulates a resource in ParaView.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...