~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to UnitTestCPP/newunittestbasedlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-01-12 15:46:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090112154655-sdynrljcb6u167yw
Tags: upstream-1.0.2674+dfsg
ImportĀ upstreamĀ versionĀ 1.0.2674+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// copyright            : (C) 2008 by Eran Ifrah                            
 
5
// file name            : newunittestbasedlg.cpp              
 
6
//                                                                          
 
7
// -------------------------------------------------------------------------
 
8
// A                                                                        
 
9
//              _____           _      _     _ _                            
 
10
//             /  __ \         | |    | |   (_) |                           
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
 
15
//                                                                          
 
16
//                                                  F i l e                 
 
17
//                                                                          
 
18
//    This program is free software; you can redistribute it and/or modify  
 
19
//    it under the terms of the GNU General Public License as published by  
 
20
//    the Free Software Foundation; either version 2 of the License, or     
 
21
//    (at your option) any later version.                                   
 
22
//                                                                          
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
 
 
26
///////////////////////////////////////////////////////////////////////////
 
27
// C++ code generated with wxFormBuilder (version Apr 16 2008)
 
28
// http://www.wxformbuilder.org/
 
29
//
 
30
// PLEASE DO "NOT" EDIT THIS FILE!
 
31
///////////////////////////////////////////////////////////////////////////
 
32
 
 
33
#include "newunittestbasedlg.h"
 
34
 
 
35
///////////////////////////////////////////////////////////////////////////
 
36
 
 
37
NewUnitTestBaseDlg::NewUnitTestBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
 
38
{
 
39
        this->SetSizeHints( wxDefaultSize, wxDefaultSize );
 
40
        
 
41
        wxBoxSizer* bSizer19;
 
42
        bSizer19 = new wxBoxSizer( wxVERTICAL );
 
43
        
 
44
        wxFlexGridSizer* fgSizer6;
 
45
        fgSizer6 = new wxFlexGridSizer( 2, 2, 0, 0 );
 
46
        fgSizer6->AddGrowableCol( 1 );
 
47
        fgSizer6->SetFlexibleDirection( wxBOTH );
 
48
        fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
49
        
 
50
        m_staticText30 = new wxStaticText( this, wxID_ANY, wxT("Test Name:"), wxDefaultPosition, wxDefaultSize, 0 );
 
51
        m_staticText30->Wrap( -1 );
 
52
        fgSizer6->Add( m_staticText30, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
53
        
 
54
        m_textCtrlTestName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
55
        fgSizer6->Add( m_textCtrlTestName, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
 
56
        
 
57
        m_checkBoxUseFixture = new wxCheckBox( this, wxID_ANY, wxT("Use fixture"), wxDefaultPosition, wxDefaultSize, 0 );
 
58
        m_checkBoxUseFixture->SetValue(true);
 
59
        
 
60
        fgSizer6->Add( m_checkBoxUseFixture, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
 
61
        
 
62
        m_filler = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
63
        fgSizer6->Add( m_filler, 1, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
 
64
        
 
65
        m_staticText32 = new wxStaticText( this, wxID_ANY, wxT("Fixture Name:"), wxDefaultPosition, wxDefaultSize, 0 );
 
66
        m_staticText32->Wrap( -1 );
 
67
        fgSizer6->Add( m_staticText32, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
68
        
 
69
        m_textCtrlFixtureName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
 
70
        fgSizer6->Add( m_textCtrlFixtureName, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
 
71
        
 
72
        bSizer19->Add( fgSizer6, 1, wxEXPAND|wxALL, 5 );
 
73
        
 
74
        m_staticline11 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
75
        bSizer19->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
 
76
        
 
77
        wxBoxSizer* bSizer20;
 
78
        bSizer20 = new wxBoxSizer( wxHORIZONTAL );
 
79
        
 
80
        m_button24 = new wxButton( this, wxID_OK, wxT("&Create"), wxDefaultPosition, wxDefaultSize, 0 );
 
81
        m_button24->SetDefault(); 
 
82
        bSizer20->Add( m_button24, 0, wxALL, 5 );
 
83
        
 
84
        m_button23 = new wxButton( this, wxID_CANCEL, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
 
85
        bSizer20->Add( m_button23, 0, wxALL, 5 );
 
86
        
 
87
        bSizer19->Add( bSizer20, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
 
88
        
 
89
        this->SetSizer( bSizer19 );
 
90
        this->Layout();
 
91
        
 
92
        this->Centre( wxBOTH );
 
93
        
 
94
        // Connect Events
 
95
        m_checkBoxUseFixture->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( NewUnitTestBaseDlg::OnUseFixture ), NULL, this );
 
96
}
 
97
 
 
98
NewUnitTestBaseDlg::~NewUnitTestBaseDlg()
 
99
{
 
100
        // Disconnect Events
 
101
        m_checkBoxUseFixture->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( NewUnitTestBaseDlg::OnUseFixture ), NULL, this );
 
102
}