SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
paraview
appcomponents
ApplicationConfiguration.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
#ifndef smtk_extension_paraview_appcomponents_ApplicationConfiguration_h
11
#define smtk_extension_paraview_appcomponents_ApplicationConfiguration_h
12
13
#include "smtk/extension/paraview/appcomponents/smtkPQComponentsExtModule.h"
14
15
#include "smtk/view/Information.h"
16
17
#include <QObject>
18
19
#include <functional>
20
#include <vector>
21
22
class
QWidget;
23
24
namespace
smtk
25
{
26
namespace
paraview
27
{
28
39
class
SMTKPQCOMPONENTSEXT_EXPORT
ApplicationConfiguration
40
{
41
public
:
42
using
ConfigurationObserver = std::function<void(
ApplicationConfiguration
&)>;
43
57
static
bool
notify(ConfigurationObserver observer);
58
64
virtual
smtk::view::Information
panelConfiguration(
const
QWidget* panel) = 0;
65
66
protected
:
68
static
bool
found(QObject* iface);
69
71
static
std::vector<ConfigurationObserver>
s_uiComponents
;
72
};
73
74
}
// namespace paraview
75
}
// namespace smtk
76
77
Q_DECLARE_INTERFACE(
78
smtk::paraview::ApplicationConfiguration
,
79
"com.kitware.smtk.ApplicationConfiguration"
);
80
81
#endif // smtk_extension_paraview_appcomponents_ApplicationConfiguration_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::view::Information
A class for information passed to views during initialization.
Definition:
Information.h:32
smtk::paraview::ApplicationConfiguration::s_uiComponents
static std::vector< ConfigurationObserver > s_uiComponents
Observers waiting for an interface to be invoked.
Definition:
ApplicationConfiguration.h:71
smtk::paraview::ApplicationConfiguration
An interface by which applications can configure SMTK UI elements.
Definition:
ApplicationConfiguration.h:39
Generated by
1.8.17