testbrowserdialog.h

来自「c++单元测试框架」· C头文件 代码 · 共 67 行

H
67
字号
/////////////////////////////////////////////////////////////////////////////// Name:        TestBrowserDialog.h// Purpose:     Header for class TestBrowserDialog// Author:      Baptiste Lepilleur// Modified by: Anthon Pang// Created:     2003.09.11// RCS-ID:// Copyright:   (C) 2003 by Anthon Pang and Baptiste Lepilleur// Licence:     LGPL// Reference:   cppunit/src/qttestrunner/TestBrowserDlgImpl.h/////////////////////////////////////////////////////////////////////////////#ifndef TESTBROWSERDIALOG_H#define TESTBROWSERDIALOG_H#ifndef CPPUNIT_TEST_H#include <cppunit/Test.h>#endif#include <wx/treectrl.h>class MyTreeCtrl;class TestBrowserDialog : public wxDialog{DECLARE_EVENT_TABLE()private:    // data    CPPUNIT_NS::Test *m_selectedTest;    CPPUNIT_NS::Test *m_rootTest;    MyTreeCtrl *m_treeTests;public:    // constructors    TestBrowserDialog(wxWindow *parent, CPPUNIT_NS::Test *test = 0);    virtual ~TestBrowserDialog();private:    // not implemented    TestBrowserDialog( const TestBrowserDialog &copy );    TestBrowserDialog &operator =( const TestBrowserDialog &copy );public:    // manipulators    void initializeLayout();    void addTestsToTree();    void deleteTestsFromTree();    wxTreeItemId addTestTo( CPPUNIT_NS::Test *test,                          wxTreeItemId& hParent );    void addTestSuiteChildrenTo( CPPUNIT_NS::Test *suite,                                 wxTreeItemId& hItemSuite );    void goSelectTest( CPPUNIT_NS::Test *test );    void setRootTest( CPPUNIT_NS::Test *test );    // event handlers    void OnItemSelected(wxTreeEvent& event);    void OnItemActivated(wxTreeEvent& event);    void OnKeyDown(wxTreeEvent& event);    // accessors    bool findTest( CPPUNIT_NS::Test *test, wxTreeItemId& foundTid ) const;    CPPUNIT_NS::Test *getSelectedTest() const;};#endif // TESTBROWSERDIALOG_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?