SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
pqSMTKAppComponentsAutoStart.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_pqSMTKAppComponentsAutoStart_h
11 #define smtk_extension_paraview_appcomponents_pqSMTKAppComponentsAutoStart_h
12 
13 #include "smtk/extension/paraview/appcomponents/smtkPQComponentsExtModule.h"
14 
15 #include "smtk/extension/paraview/appcomponents/pqQtKeywordWrapping.h"
16 
17 #include <QObject>
18 
19 class pqSMTKWrapper;
20 class pqServer;
21 class vtkSMProxy;
22 
23 class SMTKPQCOMPONENTSEXT_EXPORT pqSMTKAppComponentsAutoStart : public QObject
24 {
25  Q_OBJECT
26  using Superclass = QObject;
27 
28  static vtkSMProxy* resourceManager();
29 
30 public:
31  pqSMTKAppComponentsAutoStart(QObject* parent = nullptr);
32  ~pqSMTKAppComponentsAutoStart() override;
33 
34  void startup();
35  void shutdown();
36 
37 protected Q_SLOTS:
41  virtual void observeWrapper(pqSMTKWrapper* wrapper, pqServer* server);
43  virtual void unobserveWrapper(pqSMTKWrapper* wrapper, pqServer* server);
44 
45 protected:
46  class pqInternal;
47  pqInternal* m_p;
48 
49 private:
50  Q_DISABLE_COPY(pqSMTKAppComponentsAutoStart);
51 };
52 
53 #endif
pqSMTKAppComponentsAutoStart::pqInternal
Definition: pqSMTKAppComponentsAutoStart.cxx:67
pqSMTKAppComponentsAutoStart
Definition: pqSMTKAppComponentsAutoStart.h:23