My Project
|
#include <Win32Gui.h>
Public Member Functions | |
void | enterGui (int &argc, char **argv) |
void | enterWorld (const WorldDescription &wd) |
void | guiEnterSuite (const char *suiteName) |
void | guiEnterTest (const char *suiteName, const char *testName) |
void | yellowBar () |
void | redBar () |
void | leaveGui () |
Public Member Functions inherited from CxxTest::GuiListener | |
GuiListener () | |
virtual | ~GuiListener () |
virtual void | runGui (int &argc, char **argv, TestListener &listener) |
virtual void | enterGui (int &, char **) |
virtual void | leaveGui () |
virtual void | guiEnterWorld (unsigned) |
virtual void | guiEnterSuite (const char *) |
virtual void | guiEnterTest (const char *, const char *) |
virtual void | yellowBar () |
virtual void | redBar () |
void | enterWorld (const WorldDescription &d) |
void | enterSuite (const SuiteDescription &d) |
void | enterTest (const TestDescription &d) |
void | leaveTest (const TestDescription &) |
void | leaveSuite (const SuiteDescription &) |
void | leaveWorld (const WorldDescription &) |
void | warning (const char *, unsigned, const char *) |
void | failedTest (const char *, unsigned, const char *) |
void | failedAssert (const char *, unsigned, const char *) |
void | failedAssertEquals (const char *, unsigned, const char *, const char *, const char *, const char *) |
void | failedAssertSameData (const char *, unsigned, const char *, const char *, const char *, const void *, const void *, unsigned) |
void | failedAssertDelta (const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *) |
void | failedAssertDiffers (const char *, unsigned, const char *, const char *, const char *) |
void | failedAssertLessThan (const char *, unsigned, const char *, const char *, const char *, const char *) |
void | failedAssertLessThanEquals (const char *, unsigned, const char *, const char *, const char *, const char *) |
void | failedAssertPredicate (const char *, unsigned, const char *, const char *, const char *) |
void | failedAssertRelation (const char *, unsigned, const char *, const char *, const char *, const char *, const char *) |
void | failedAssertThrows (const char *, unsigned, const char *, const char *, bool) |
void | failedAssertThrowsNot (const char *, unsigned, const char *) |
Public Member Functions inherited from CxxTest::TestListener | |
TestListener () | |
virtual | ~TestListener () |
virtual void | enterWorld (const WorldDescription &) |
virtual void | enterSuite (const SuiteDescription &) |
virtual void | enterTest (const TestDescription &) |
virtual void | trace (const char *, unsigned, const char *) |
virtual void | warning (const char *, unsigned, const char *) |
virtual void | failedTest (const char *, unsigned, const char *) |
virtual void | failedAssert (const char *, unsigned, const char *) |
virtual void | failedAssertEquals (const char *, unsigned, const char *, const char *, const char *, const char *) |
virtual void | failedAssertSameData (const char *, unsigned, const char *, const char *, const char *, const void *, const void *, unsigned) |
virtual void | failedAssertDelta (const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *) |
virtual void | failedAssertDiffers (const char *, unsigned, const char *, const char *, const char *) |
virtual void | failedAssertLessThan (const char *, unsigned, const char *, const char *, const char *, const char *) |
virtual void | failedAssertLessThanEquals (const char *, unsigned, const char *, const char *, const char *, const char *) |
virtual void | failedAssertPredicate (const char *, unsigned, const char *, const char *, const char *) |
virtual void | failedAssertRelation (const char *, unsigned, const char *, const char *, const char *, const char *, const char *) |
virtual void | failedAssertThrows (const char *, unsigned, const char *, const char *, bool) |
virtual void | failedAssertThrowsNot (const char *, unsigned, const char *) |
virtual void | leaveTest (const TestDescription &) |
virtual void | leaveSuite (const SuiteDescription &) |
virtual void | leaveWorld (const WorldDescription &) |
Private Types | |
enum | { STATUS_SUITE_NAME , STATUS_SUITE_TIME , STATUS_TEST_NAME , STATUS_TEST_TIME , STATUS_TESTS_DONE , STATUS_WORLD_TIME , STATUS_TOTAL_PARTS } |
enum | { TIMER_ID = 1 , TIMER_DELAY = 1000 } |
Private Member Functions | |
void | parseCommandLine (int argc, char **argv) |
void | getTotalTests () |
void | getTotalTests (const WorldDescription &wd) |
void | startGuiThread () |
void | gui () |
void | registerWindowClass () |
void | createMainWindow () |
void | initCommonControls () |
void | createProgressBar () |
void | createStatusBar () |
void | setRatios (unsigned suiteNameRatio, unsigned suiteTimeRatio, unsigned testNameRatio, unsigned testTimeRatio, unsigned testsDoneRatio, unsigned worldTimeRatio) |
HWND | createWindow (LPCTSTR className, DWORD style, HWND parent=(HWND) NULL) |
void | progressBarMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) |
void | centerMainWindow () |
void | getScreenArea (RECT &area) |
bool | getScreenAreaWithoutTaskbar (RECT &area) |
void | getWholeScreenArea (RECT &area) |
void | showMainWindow () |
void | showMainWindow (int mode) |
void | startTimer () |
void | reset (DWORD &tick) |
void | startTests () |
void | messageLoop () |
LRESULT | handle (HWND window, UINT message, WPARAM wParam, LPARAM lParam) |
void | resizeControls () |
void | setStatusParts (LONG width) |
void | statusBarMessage (UINT message, WPARAM wParam=0, const void *lParam=0) |
void | greenBar () |
void | setColor (BYTE, BYTE, BYTE) |
void | setIcon (LPCTSTR icon) |
HICON | loadStandardIcon (LPCTSTR icon) |
void | setTestCaption (const char *suiteName, const char *testName) |
void | setCaption (const char *a="", const char *b="", const char *c="", const char *d="") |
void | showSuiteName (const char *suiteName) |
void | showTestName (const char *testName) |
void | showTestsDone () |
void | updateTime () |
void | setStatusTime (unsigned part, DWORD start) |
bool | keep () |
void | showSummary () |
void | setStatusPart (unsigned part, const char *text) |
void | stopTimer () |
void | setSummaryStatusBar () |
void | setSummaryCaption () |
char * | allocate (unsigned length) |
void | deallocate (char *data) |
Static Private Member Functions | |
static DWORD WINAPI | guiThread (LPVOID parameter) |
static LRESULT CALLBACK | windowProcedure (HWND window, UINT message, WPARAM wParam, LPARAM lParam) |
static void | setUp (HWND window, LPCREATESTRUCT create) |
Private Attributes | |
const char * | _title |
bool | _startMinimized |
bool | _keep |
HANDLE | _gui |
WNDCLASSEX | _windowClass |
HWND | _mainWindow |
HWND | _progressBar |
HWND | _statusBar |
HANDLE | _canStartTests |
unsigned | _numTotalTests |
unsigned | _testsDone |
char | _strTotalTests [WorldDescription::MAX_STRLEN_TOTAL_TESTS] |
int | _statusWidths [STATUS_TOTAL_PARTS] |
unsigned | _statusOffsets [STATUS_TOTAL_PARTS] |
unsigned | _statusTotal |
char | _statusTestsDone [sizeof("1000000000 of (100%)")+WorldDescription::MAX_STRLEN_TOTAL_TESTS] |
DWORD | _worldStart |
DWORD | _suiteStart |
DWORD | _testStart |
char | _timeString [sizeof("00:00:00")] |
Additional Inherited Members | |
Protected Member Functions inherited from CxxTest::GuiListener | |
void | yellowBarSafe () |
void | redBarSafe () |
Definition at line 27 of file Win32Gui.h.
|
private |
Enumerator | |
---|---|
STATUS_SUITE_NAME | |
STATUS_SUITE_TIME | |
STATUS_TEST_NAME | |
STATUS_TEST_TIME | |
STATUS_TESTS_DONE | |
STATUS_WORLD_TIME | |
STATUS_TOTAL_PARTS |
Definition at line 93 of file Win32Gui.h.
|
private |
|
inlineprivate |
Definition at line 519 of file Win32Gui.h.
|
inlineprivate |
Definition at line 244 of file Win32Gui.h.
|
inlineprivate |
Definition at line 180 of file Win32Gui.h.
|
inlineprivate |
Definition at line 199 of file Win32Gui.h.
|
inlineprivate |
Definition at line 214 of file Win32Gui.h.
|
inlineprivate |
Definition at line 233 of file Win32Gui.h.
|
inlineprivate |
Definition at line 524 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 30 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 35 of file Win32Gui.h.
|
inlineprivate |
Definition at line 266 of file Win32Gui.h.
|
inlineprivate |
Definition at line 272 of file Win32Gui.h.
|
inlineprivate |
Definition at line 122 of file Win32Gui.h.
|
inlineprivate |
Definition at line 127 of file Win32Gui.h.
|
inlineprivate |
Definition at line 277 of file Win32Gui.h.
|
inlineprivate |
Definition at line 385 of file Win32Gui.h.
|
inlineprivate |
Definition at line 147 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 42 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 48 of file Win32Gui.h.
|
inlinestaticprivate |
Definition at line 141 of file Win32Gui.h.
|
inlineprivate |
Definition at line 337 of file Win32Gui.h.
|
inlineprivate |
Definition at line 185 of file Win32Gui.h.
|
inlineprivate |
Definition at line 472 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 74 of file Win32Gui.h.
|
inlineprivate |
Definition at line 407 of file Win32Gui.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 106 of file Win32Gui.h.
|
inlineprivate |
Definition at line 239 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 65 of file Win32Gui.h.
|
inlineprivate |
Definition at line 162 of file Win32Gui.h.
|
inlineprivate |
Definition at line 305 of file Win32Gui.h.
|
inlineprivate |
Definition at line 355 of file Win32Gui.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 397 of file Win32Gui.h.
|
inlineprivate |
Definition at line 402 of file Win32Gui.h.
|
inlineprivate |
Definition at line 220 of file Win32Gui.h.
|
inlineprivate |
Definition at line 488 of file Win32Gui.h.
|
inlineprivate |
Definition at line 372 of file Win32Gui.h.
|
inlineprivate |
Definition at line 457 of file Win32Gui.h.
|
inlineprivate |
Definition at line 514 of file Win32Gui.h.
|
inlineprivate |
Definition at line 499 of file Win32Gui.h.
|
inlineprivate |
Definition at line 412 of file Win32Gui.h.
|
inlinestaticprivate |
Definition at line 332 of file Win32Gui.h.
|
inlineprivate |
Definition at line 284 of file Win32Gui.h.
|
inlineprivate |
Definition at line 290 of file Win32Gui.h.
|
inlineprivate |
Definition at line 432 of file Win32Gui.h.
|
inlineprivate |
Definition at line 481 of file Win32Gui.h.
|
inlineprivate |
Definition at line 437 of file Win32Gui.h.
|
inlineprivate |
Definition at line 442 of file Win32Gui.h.
|
inlineprivate |
Definition at line 133 of file Win32Gui.h.
|
inlineprivate |
Definition at line 310 of file Win32Gui.h.
|
inlineprivate |
Definition at line 297 of file Win32Gui.h.
|
inlineprivate |
Definition at line 380 of file Win32Gui.h.
|
inlineprivate |
Definition at line 493 of file Win32Gui.h.
|
inlineprivate |
Definition at line 450 of file Win32Gui.h.
|
inlinestaticprivate |
Definition at line 323 of file Win32Gui.h.
|
inlinevirtual |
Reimplemented from CxxTest::GuiListener.
Definition at line 58 of file Win32Gui.h.
|
private |
Definition at line 90 of file Win32Gui.h.
|
private |
Definition at line 87 of file Win32Gui.h.
|
private |
Definition at line 86 of file Win32Gui.h.
|
private |
Definition at line 89 of file Win32Gui.h.
|
private |
Definition at line 91 of file Win32Gui.h.
|
private |
Definition at line 89 of file Win32Gui.h.
|
private |
Definition at line 86 of file Win32Gui.h.
|
private |
Definition at line 89 of file Win32Gui.h.
|
private |
Definition at line 100 of file Win32Gui.h.
|
private |
Definition at line 102 of file Win32Gui.h.
|
private |
Definition at line 101 of file Win32Gui.h.
|
private |
Definition at line 99 of file Win32Gui.h.
|
private |
Definition at line 92 of file Win32Gui.h.
|
private |
Definition at line 103 of file Win32Gui.h.
|
private |
Definition at line 91 of file Win32Gui.h.
|
private |
Definition at line 103 of file Win32Gui.h.
|
private |
Definition at line 104 of file Win32Gui.h.
|
private |
Definition at line 85 of file Win32Gui.h.
|
private |
Definition at line 88 of file Win32Gui.h.
|
private |
Definition at line 103 of file Win32Gui.h.