CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
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);
44 
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
void addPlayer(pqWidgetEventPlayer *player)
void addDefaultCTKWidgetEventPlayersToPlayer(pqTestUtility *util)
static int eventTypeFromString(const QString &eventTypeStr)
ctkQtTestingUtility(QObject *parent=0)
void addTranslator(pqWidgetEventTranslator *translator)
void addDefaultCTKWidgetEventTranslatorsToTranslator(pqTestUtility *util)
static QString eventTypeToString(int eventType)