Go to the documentation of this file.
4 #ifndef pqStandardRecentlyUsedResourceLoaderImplementation_h
5 #define pqStandardRecentlyUsedResourceLoaderImplementation_h
9 #include "pqApplicationComponentsModule.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 QString label(const pqServerResource &resource)=0
Return label to use for the resource.
virtual QIcon icon(const pqServerResource &resource)
Return an icon, if any, to use for the resource.
virtual bool canLoad(const pqServerResource &resource)=0
Return true of the interface supports loading the given resource.
virtual bool load(const pqServerResource &resource, pqServer *server)=0
Loads the resource and returns the true if successfully loaded, otherwise false.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
pqServerResource encapsulates a resource in ParaView.
abstract interface used to load recently used resources.
support loading states, and data files when loaded from pqRecentFilesMenu.