SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
qt
qtCategorySelectorView.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
11
#ifndef smtk_extension_qtCategorySelectorView_h
12
#define smtk_extension_qtCategorySelectorView_h
13
14
#include "smtk/extension/qt/Exports.h"
15
#include "smtk/extension/qt/qtBaseAttributeView.h"
16
40
class
qtCategorySelectorViewInternals
;
41
42
namespace
smtk
43
{
44
namespace
extension
45
{
46
class
SMTKQTEXT_EXPORT
qtCategorySelectorView
:
public
qtBaseAttributeView
47
{
48
Q_OBJECT
49
50
public
:
51
smtkTypenameMacro
(
qtCategorySelectorView
);
52
53
static
qtBaseView
* createViewWidget(
const
smtk::view::Information
& info);
54
qtCategorySelectorView
(
const
smtk::view::Information
& info);
55
~
qtCategorySelectorView
()
override
;
56
57
void
getChildView(
const
std::string& viewType, QList<qtBaseView*>& views);
58
qtBaseView
* getChildView(
int
pageIndex);
59
60
virtual
void
addChildView(
qtBaseView
*,
const
std::string& category);
61
virtual
void
clearChildViews();
62
const
QList<qtBaseView*>& childViews()
const
;
63
bool
isValid()
const override
;
64
65
public
Q_SLOTS:
66
void
updateUI()
override
;
67
void
showAdvanceLevelOverlay(
bool
show)
override
;
68
void
updateModelAssociation()
override
;
69
void
onShowCategory()
override
;
70
71
protected
:
72
void
createWidget()
override
;
73
bool
createChildren();
74
75
private
:
76
qtCategorySelectorViewInternals
* Internals;
77
78
};
// class
79
};
// namespace extension
80
};
// namespace smtk
81
82
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::extension::qtBaseAttributeView
Definition:
qtBaseAttributeView.h:29
smtk::extension::qtCategorySelectorView
Definition:
qtCategorySelectorView.h:46
smtk::extension::qtBaseView
A base class for all view types implemented using Qt.
Definition:
qtBaseView.h:46
smtk::view::Information
A class for information passed to views during initialization.
Definition:
Information.h:32
qtCategorySelectorViewInternals
Definition:
qtCategorySelectorView.cxx:39
smtkTypenameMacro
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition:
SharedFromThis.h:98
Generated by
1.8.17