SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
qt
qtGroupItem.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 qtGroupItem - UI components for attribute GroupItem
11
// .SECTION Description
12
// .SECTION See Also
13
// qtItem
14
15
#ifndef smtk_extension_qtGroupItem_h
16
#define smtk_extension_qtGroupItem_h
17
18
#include "smtk/extension/qt/Exports.h"
19
#include "smtk/extension/qt/qtItem.h"
20
21
class
qtGroupItemInternals
;
22
23
namespace
smtk
24
{
25
namespace
extension
26
{
27
class
SMTKQTEXT_EXPORT
qtGroupItem
:
public
qtItem
28
{
29
Q_OBJECT
30
31
public
:
32
static
qtItem
* createItemWidget(
const
qtAttributeItemInfo
& info);
33
qtGroupItem
(
const
qtAttributeItemInfo
& info);
34
~
qtGroupItem
()
override
;
35
void
setLabelVisible(
bool
)
override
;
36
QWidget* lastEditor()
const override
;
37
38
public
Q_SLOTS:
39
void
updateItemData()
override
;
40
41
protected
Q_SLOTS:
42
virtual
void
setEnabledState(
int
checked);
43
virtual
void
onAddSubGroup();
44
virtual
void
onRemoveSubGroup();
45
void
onChildWidgetSizeChanged()
override
;
46
virtual
void
onChildItemModified();
47
void
onImportFromFile();
48
void
onEditingWidgetChanged();
49
50
protected
:
51
void
createWidget()
override
;
52
virtual
void
addSubGroup(
int
i);
53
virtual
void
updateExtensibleState();
54
virtual
void
addItemsToTable(
int
i);
55
// Calculate the height of the table of sub groups
56
void
calculateTableHeight();
57
void
updateValidityStatus();
58
59
bool
m_prependMode;
60
61
private
:
62
qtGroupItemInternals
* m_internals;
63
64
};
// class
65
};
// namespace extension
66
};
// namespace smtk
67
68
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::extension::qtItem
an abstract UI class for attribute item
Definition:
qtItem.h:61
smtk::extension::qtGroupItem
Definition:
qtGroupItem.h:27
smtk::extension::qtAttributeItemInfo
Class used to generate widgets for Attribute Items.
Definition:
qtAttributeItemInfo.h:39
qtGroupItemInternals
Definition:
qtGroupItem.cxx:43
Generated by
1.8.17