KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_router_save_test_case.cpp
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, you may find one here:
18
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19
* or you may search the http://www.gnu.org website for the version 2 license,
20
* or you may write to the Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22
*/
23
24
#include <
dialogs/dialog_router_save_test_case.h
>
25
26
#include "
router/pns_logger.h
"
27
28
#include <
pcb_base_edit_frame.h
>
29
30
DIALOG_ROUTER_SAVE_TEST_CASE::DIALOG_ROUTER_SAVE_TEST_CASE
(
PCB_BASE_EDIT_FRAME
* aParent,
const
wxString& aTestCaseDir ) :
31
DIALOG_ROUTER_SAVE_TEST_CASE_BASE
( aParent ),
32
m_testCaseDir
( aTestCaseDir )
33
{
34
}
35
36
DIALOG_ROUTER_SAVE_TEST_CASE::~DIALOG_ROUTER_SAVE_TEST_CASE
()
37
{
38
}
39
40
bool
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataToWindow
()
41
{
42
m_testCaseDirCtrl
->SetValue(
m_testCaseDir
);
43
return
true
;
44
}
45
46
47
bool
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataFromWindow
()
48
{
49
switch
(
m_rbType
->GetSelection() )
50
{
51
case
0:
m_testCaseType
=
PNS::LOGGER::TCT_STRICT_GEOMETRY
;
break
;
52
case
1:
m_testCaseType
=
PNS::LOGGER::TCT_CONNECTIVITY_ONLY
;
break
;
53
case
2:
m_testCaseType
=
PNS::LOGGER::TCT_EXPECTED_FAIL
;
break
;
54
case
3:
m_testCaseType
=
PNS::LOGGER::TCT_KNOWN_BUG
;
break
;
55
default
:
return
false
;
56
}
57
58
m_testCaseName
=
m_testCaseNameCtrl
->GetValue();
59
return
true
;
60
}
61
DIALOG_ROUTER_SAVE_TEST_CASE_BASE::m_rbType
wxRadioBox * m_rbType
Definition
dialog_router_save_test_case_base.h:40
DIALOG_ROUTER_SAVE_TEST_CASE_BASE::DIALOG_ROUTER_SAVE_TEST_CASE_BASE
DIALOG_ROUTER_SAVE_TEST_CASE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Save Router Testcase"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Definition
dialog_router_save_test_case_base.cpp:12
DIALOG_ROUTER_SAVE_TEST_CASE_BASE::m_testCaseDirCtrl
wxTextCtrl * m_testCaseDirCtrl
Definition
dialog_router_save_test_case_base.h:37
DIALOG_ROUTER_SAVE_TEST_CASE_BASE::m_testCaseNameCtrl
wxTextCtrl * m_testCaseNameCtrl
Definition
dialog_router_save_test_case_base.h:39
DIALOG_ROUTER_SAVE_TEST_CASE::~DIALOG_ROUTER_SAVE_TEST_CASE
~DIALOG_ROUTER_SAVE_TEST_CASE()
Definition
dialog_router_save_test_case.cpp:36
DIALOG_ROUTER_SAVE_TEST_CASE::m_testCaseName
wxString m_testCaseName
Definition
dialog_router_save_test_case.h:46
DIALOG_ROUTER_SAVE_TEST_CASE::DIALOG_ROUTER_SAVE_TEST_CASE
DIALOG_ROUTER_SAVE_TEST_CASE(PCB_BASE_EDIT_FRAME *aParent, const wxString &aTestCaseDir)
Definition
dialog_router_save_test_case.cpp:30
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition
dialog_router_save_test_case.cpp:47
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataToWindow
bool TransferDataToWindow() override
Definition
dialog_router_save_test_case.cpp:40
DIALOG_ROUTER_SAVE_TEST_CASE::m_testCaseDir
wxString m_testCaseDir
Definition
dialog_router_save_test_case.h:45
DIALOG_ROUTER_SAVE_TEST_CASE::m_testCaseType
PNS::LOGGER::TEST_CASE_TYPE m_testCaseType
Definition
dialog_router_save_test_case.h:47
PCB_BASE_EDIT_FRAME
Common, abstract interface for edit frames.
Definition
pcb_base_edit_frame.h:50
PNS::LOGGER::TCT_STRICT_GEOMETRY
@ TCT_STRICT_GEOMETRY
Definition
pns_logger.h:54
PNS::LOGGER::TCT_KNOWN_BUG
@ TCT_KNOWN_BUG
Definition
pns_logger.h:57
PNS::LOGGER::TCT_EXPECTED_FAIL
@ TCT_EXPECTED_FAIL
Definition
pns_logger.h:56
PNS::LOGGER::TCT_CONNECTIVITY_ONLY
@ TCT_CONNECTIVITY_ONLY
Definition
pns_logger.h:55
dialog_router_save_test_case.h
pcb_base_edit_frame.h
pns_logger.h
src
pcbnew
dialogs
dialog_router_save_test_case.cpp
Generated on Fri Apr 3 2026 00:07:18 for KiCad PCB EDA Suite by
1.13.2