SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
qt
qtBadgeActionToggle.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_qtBadgeActionToggle_h
12
#define smtk_extension_qtBadgeActionToggle_h
13
14
#include "
smtk/PublicPointerDefs.h
"
15
#include "smtk/extension/qt/Exports.h"
16
#include "smtk/view/Badge.h"
17
18
#include <QItemSelection>
19
20
namespace
smtk
21
{
22
namespace
extension
23
{
24
31
class
SMTKQTEXT_EXPORT
qtBadgeActionToggle
:
public
smtk::view::BadgeActionToggle
32
{
33
public
:
34
qtBadgeActionToggle
(QItemSelection& phrases);
35
virtual
~
qtBadgeActionToggle
() =
default
;
36
37
void
visitRelatedPhrases(
PhraseVisitor
visitor)
const override
;
38
39
protected
:
40
qtBadgeActionToggle
();
41
42
QItemSelection& m_phrases;
43
};
44
}
// namespace extension
45
}
// namespace smtk
46
47
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
PublicPointerDefs.h
smtk::view::BadgeAction::PhraseVisitor
std::function< bool(DescriptivePhrase *)> PhraseVisitor
When visiting multiple phrases to which a badge action should apply, this function is supplied by the...
Definition:
Badge.h:40
smtk::view::BadgeActionToggle
The basic badge action: the user clicked on a badge.
Definition:
Badge.h:56
smtk::extension::qtBadgeActionToggle
A bulk-capable toggle action for badges.
Definition:
qtBadgeActionToggle.h:31
Generated by
1.8.17