VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Typedefs | Enumerations | Functions
VICI::gth Namespace Reference

The namespace for the GUI Test Harness. More...

Classes

class  Adaptor
 Defines an abstract base class for widget adaptors. More...
 
class  LuaScript
 Provides a wrapper for a lua_State object. More...
 
struct  TestAction
 A single action that can be applied to a GUI. More...
 
class  TestsForWindow
 Provides a thread for applying test cases to a window. More...
 
class  UserEscaper
 A class for allowing the user to suspend the test. More...
 
class  GTHTest
 An AbstractTest derived class for testing GUI programs. More...
 
class  GTHTestCase
 Interface for test cases that do gui testing. More...
 
class  DefaultTestCase
 Provides a test case to use for actions that don't have an explicit test case. More...
 
class  ScriptXML
 Provides an interface to the script XML file. More...
 
class  MouseEventReporter
 Provides a means of getting scene coordinates in a QGraphicsView. More...
 
class  AdaptorST
 Adds a static method to Adaptor to describe it;. More...
 
class  AdaptorT
 The interpreter for the script commands. More...
 

Typedefs

typedef std::vector< std::string > ParamList
 ParamList is used for the parameters of a command.
 
typedef std::vector< std::list
< std::string > > 
ListOfLists
 ListOfLists is used to describe the commands and parameters of an Adaptor.
 
typedef std::shared_ptr
< ScriptXML
ScriptXmlPtr
 Provide for automatic destruction when owner is deleted.
 
typedef std::shared_ptr
< LuaScript
LuaScriptPtr
 Provides for automatic destruction when the owner is deleted.
 
typedef std::shared_ptr
< TestsForWindow
TestsForWindowPtr
 Provides for automatic destruction when the owner is deleted.
 

Enumerations

enum  WidgetType {
  Action, Button, CheckBox, ComboBox,
  Dock, List, ListView, Label,
  LineEdit, SpinBox, Splitter, Table,
  Tabs, TextEdit, Tree, View,
  Window, MessageBox, FileDialog, FontDialog,
  ColorDialog, Script
}
 List the types of widgets that we can interact with during testing. More...
 
enum  ConDes { Constructor, Destructor }
 Enumerates the stages at which the actions for a test case can be run.
 

Functions

void RegnFn (std::function< void(void *, WidgetType, csr)> reg)
 Register the widgets for use by the GUI Test Harness. More...
 

Detailed Description

The namespace for the GUI Test Harness.

Enumeration Type Documentation

List the types of widgets that we can interact with during testing.

Enumerator
Action 

For objects of type QAction.

Button 

For objects of type QPushButton.

CheckBox 

For objects of type QCheckBox.

ComboBox 

For objects of type QComboBox.

Dock 

For objects of type QDockWidget.

List 

For objects of type QListWidget.

ListView 

For objects of type QListView.

Label 

For objects of type QLabel.

LineEdit 

For objects of type QLineEdit.

SpinBox 

For objects of type QSpinBox.

Splitter 

For objects of type QSplitter.

Table 

For objects of type QTableWidget.

Tabs 

For objects of type QTabWidget.

TextEdit 

For objects of type QTextEdit.

Tree 

For objects of type QTreeView.

View 

For objects of type QGraphicsView.

Window 

For objects of type QMainWindow.

MessageBox 

For objects of type QMessageBox.

FileDialog 

For objects of type QFileDialog.

FontDialog 

For objects of type QFontDialog.

ColorDialog 

For objects of type QColorDialog.

Script 

For LUA Scripts.

Function Documentation

void VICI::gth::RegnFn ( std::function< void(void *, WidgetType, csr)>  reg)

Register the widgets for use by the GUI Test Harness.

The function is passed as a parameter so that the application code will be able to link even when the test plug-in has not been loaded.

The parameters for the function pointer are the address of the widget, the type of the widget, and a name that will refer to the widget in the test script.

Parameters
regThe function that should be called for each widget.