Qt
Core
pqRecentlyUsedResourceLoaderInterface.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
#ifndef pqRecentlyUsedResourceLoaderInterface_h
5
#define pqRecentlyUsedResourceLoaderInterface_h
6
7
#include <QObject>
8
9
#include "
pqCoreModule.h
"
// needed for export macro
10
#include <QIcon>
// needed for QIcon
11
#include <QtPlugin>
// needed for Q_DECLARE_INTERFACE
12
24
class
pqServer
;
25
class
pqServerResource
;
26
27
class
PQCORE_EXPORT
pqRecentlyUsedResourceLoaderInterface
28
{
29
public
:
30
virtual
~
pqRecentlyUsedResourceLoaderInterface
();
31
35
virtual
bool
canLoad(
const
pqServerResource
& resource) = 0;
36
42
virtual
bool
load
(
const
pqServerResource
& resource,
pqServer
* server) = 0;
43
48
virtual
QIcon icon(
const
pqServerResource
& resource);
49
53
virtual
QString label(
const
pqServerResource
& resource) = 0;
54
55
protected
:
56
pqRecentlyUsedResourceLoaderInterface
();
57
58
private
:
59
Q_DISABLE_COPY(
pqRecentlyUsedResourceLoaderInterface
)
60
};
61
62
Q_DECLARE_INTERFACE
(
63
pqRecentlyUsedResourceLoaderInterface
,
"com.kitware/paraview/recentlyusedresourceloader"
)
64
#endif
Q_DECLARE_INTERFACE
Q_DECLARE_INTERFACE(pqViewFrameActionsInterface, "com.kitware/paraview/viewframeactions")
pqCoreModule.h
load
load
pqRecentlyUsedResourceLoaderInterface
abstract interface used to load recently used resources.
Definition:
pqRecentlyUsedResourceLoaderInterface.h:27
PQCORE_EXPORT
#define PQCORE_EXPORT
Definition:
pqCoreModule.h:15
pqServerResource
pqServerResource encapsulates a resource in ParaView.
Definition:
pqServerResource.h:71
pqServer
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition:
pqServer.h:35
Generated by
1.8.13 on Tue Oct 1 2024