CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Libs
QtTesting
ctkQtTestingUtility.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Library: CTK
4
5
Copyright (c) Kitware Inc.
6
7
Licensed under the Apache License, Version 2.0 (the "License");
8
you may not use this file except in compliance with the License.
9
You may obtain a copy of the License at
10
11
http://www.apache.org/licenses/LICENSE-2.0.txt
12
13
Unless required by applicable law or agreed to in writing, software
14
distributed under the License is distributed on an "AS IS" BASIS,
15
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
See the License for the specific language governing permissions and
17
limitations under the License.
18
19
=========================================================================*/
20
21
#ifndef __ctkQtTestingUtility_h
22
#define __ctkQtTestingUtility_h
23
24
// QtTesting includes
25
#include <pqTestUtility.h>
26
27
// CTKQtTesting includes
28
#if !defined(NO_SYMBOL_EXPORT)
29
# include "ctkQtTestingExport.h"
30
#else
31
# define CTK_QTTESTING_EXPORT
32
#endif
33
34
35
class
CTK_QTTESTING_EXPORT
ctkQtTestingUtility
:
public
pqTestUtility
36
{
37
Q_OBJECT
38
39
public
:
40
typedef
pqTestUtility
Superclass
;
41
42
ctkQtTestingUtility
(QObject* parent=0);
43
~ctkQtTestingUtility
();
44
45
void
addDefaultCTKWidgetEventTranslatorsToTranslator
(pqTestUtility* util);
46
void
addDefaultCTKWidgetEventPlayersToPlayer
(pqTestUtility* util);
47
48
void
addTranslator
(pqWidgetEventTranslator* translator);
49
void
addPlayer
(pqWidgetEventPlayer* player);
50
53
static
QString
eventTypeToString
(
int
eventType);
54
58
static
int
eventTypeFromString
(
const
QString& eventTypeStr);
59
};
60
61
#endif
ctkQtTestingUtility::addDefaultCTKWidgetEventPlayersToPlayer
void addDefaultCTKWidgetEventPlayersToPlayer(pqTestUtility *util)
ctkQtTestingUtility::addTranslator
void addTranslator(pqWidgetEventTranslator *translator)
ctkQtTestingUtility::~ctkQtTestingUtility
~ctkQtTestingUtility()
ctkQtTestingUtility::Superclass
pqTestUtility Superclass
Definition:
ctkQtTestingUtility.h:40
ctkQtTestingUtility::eventTypeToString
static QString eventTypeToString(int eventType)
ctkQtTestingUtility::addPlayer
void addPlayer(pqWidgetEventPlayer *player)
ctkQtTestingUtility::eventTypeFromString
static int eventTypeFromString(const QString &eventTypeStr)
ctkQtTestingUtility::ctkQtTestingUtility
ctkQtTestingUtility(QObject *parent=0)
ctkQtTestingUtility
Definition:
ctkQtTestingUtility.h:36
ctkQtTestingUtility::addDefaultCTKWidgetEventTranslatorsToTranslator
void addDefaultCTKWidgetEventTranslatorsToTranslator(pqTestUtility *util)
Generated on Fri Sep 4 2020 00:00:00 for CTK by
1.8.20