1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : newunittestbasedlg.cpp
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
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.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
26
///////////////////////////////////////////////////////////////////////////
27
// C++ code generated with wxFormBuilder (version Apr 16 2008)
28
// http://www.wxformbuilder.org/
30
// PLEASE DO "NOT" EDIT THIS FILE!
31
///////////////////////////////////////////////////////////////////////////
33
#include "newunittestbasedlg.h"
35
///////////////////////////////////////////////////////////////////////////
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 )
39
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
42
bSizer19 = new wxBoxSizer( wxVERTICAL );
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 );
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 );
54
m_textCtrlTestName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
55
fgSizer6->Add( m_textCtrlTestName, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
57
m_checkBoxUseFixture = new wxCheckBox( this, wxID_ANY, wxT("Use fixture"), wxDefaultPosition, wxDefaultSize, 0 );
58
m_checkBoxUseFixture->SetValue(true);
60
fgSizer6->Add( m_checkBoxUseFixture, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
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 );
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 );
69
m_textCtrlFixtureName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
70
fgSizer6->Add( m_textCtrlFixtureName, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
72
bSizer19->Add( fgSizer6, 1, wxEXPAND|wxALL, 5 );
74
m_staticline11 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
75
bSizer19->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
78
bSizer20 = new wxBoxSizer( wxHORIZONTAL );
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 );
84
m_button23 = new wxButton( this, wxID_CANCEL, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
85
bSizer20->Add( m_button23, 0, wxALL, 5 );
87
bSizer19->Add( bSizer20, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
89
this->SetSizer( bSizer19 );
92
this->Centre( wxBOTH );
95
m_checkBoxUseFixture->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( NewUnitTestBaseDlg::OnUseFixture ), NULL, this );
98
NewUnitTestBaseDlg::~NewUnitTestBaseDlg()
101
m_checkBoxUseFixture->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( NewUnitTestBaseDlg::OnUseFixture ), NULL, this );