SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
qt
qtCollapsibleGroupWidget.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
// .NAME qtCollapsibleGroupWidget -Widget that can be "collapsed/closed"
11
// .SECTION Description
12
// .SECTION See Also
13
14
#ifndef smtk_extension_qtCollapsibleGroupWidget_h
15
#define smtk_extension_qtCollapsibleGroupWidget_h
16
17
#include "smtk/extension/qt/Exports.h"
18
#include "smtk/view/Configuration.h"
19
#include <QWidget>
20
21
class
QFrame;
22
namespace
smtk
23
{
24
namespace
extension
25
{
26
class
qtCollapsibleGroupWidgetInternals;
27
28
class
SMTKQTEXT_EXPORT
qtCollapsibleGroupWidget
:
public
QWidget
29
{
30
Q_OBJECT
31
32
public
:
33
qtCollapsibleGroupWidget
(QWidget* parent,
smtk::view::ConfigurationPtr
viewConfig =
nullptr
);
34
~
qtCollapsibleGroupWidget
()
override
;
35
36
QLayout* contentsLayout()
const
;
37
void
setContentsLayout(QLayout* newLayout);
38
QFrame* contents()
const
;
39
void
setName(
const
QString& newName);
40
QString name()
const
;
41
42
public
Q_SLOTS:
43
void
open();
44
void
collapse();
45
46
protected
:
47
void
updateViewStateRecord(
bool
state);
48
49
qtCollapsibleGroupWidgetInternals
* m_internals;
50
smtk::view::ConfigurationPtr
m_viewConfig;
51
52
private
:
53
};
54
};
// namespace extension
55
};
// namespace smtk
56
57
#endif
/* smtk_extension_qtCollapsibleGroupWidget_h */
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::extension::qtCollapsibleGroupWidget
Definition:
qtCollapsibleGroupWidget.h:28
smtk::view::ConfigurationPtr
smtk::shared_ptr< smtk::view::Configuration > ConfigurationPtr
Definition:
PublicPointerDefs.h:649
smtk::extension::qtCollapsibleGroupWidgetInternals
Definition:
qtCollapsibleGroupWidget.cxx:17
Generated by
1.8.17