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, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#include <
dialogs/dialog_router_save_test_case.h
>
21
22
#include "
router/pns_logger.h
"
23
24
#include <
pcb_base_edit_frame.h
>
25
26
DIALOG_ROUTER_SAVE_TEST_CASE::DIALOG_ROUTER_SAVE_TEST_CASE
(
PCB_BASE_EDIT_FRAME
* aParent,
const
wxString& aTestCaseDir ) :
27
DIALOG_ROUTER_SAVE_TEST_CASE_BASE
( aParent ),
28
m_testCaseDir
( aTestCaseDir )
29
{
30
}
31
32
DIALOG_ROUTER_SAVE_TEST_CASE::~DIALOG_ROUTER_SAVE_TEST_CASE
()
33
{
34
}
35
36
bool
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataToWindow
()
37
{
38
m_testCaseDirCtrl
->SetValue(
m_testCaseDir
);
39
return
true
;
40
}
41
42
43
bool
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataFromWindow
()
44
{
45
switch
(
m_rbType
->GetSelection() )
46
{
47
case
0:
m_testCaseType
=
PNS::LOGGER::TCT_STRICT_GEOMETRY
;
break
;
48
case
1:
m_testCaseType
=
PNS::LOGGER::TCT_CONNECTIVITY_ONLY
;
break
;
49
case
2:
m_testCaseType
=
PNS::LOGGER::TCT_EXPECTED_FAIL
;
break
;
50
case
3:
m_testCaseType
=
PNS::LOGGER::TCT_KNOWN_BUG
;
break
;
51
default
:
return
false
;
52
}
53
54
m_testCaseName
=
m_testCaseNameCtrl
->GetValue();
55
return
true
;
56
}
57
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:32
DIALOG_ROUTER_SAVE_TEST_CASE::m_testCaseName
wxString m_testCaseName
Definition
dialog_router_save_test_case.h:42
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:26
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition
dialog_router_save_test_case.cpp:43
DIALOG_ROUTER_SAVE_TEST_CASE::TransferDataToWindow
bool TransferDataToWindow() override
Definition
dialog_router_save_test_case.cpp:36
DIALOG_ROUTER_SAVE_TEST_CASE::m_testCaseDir
wxString m_testCaseDir
Definition
dialog_router_save_test_case.h:41
DIALOG_ROUTER_SAVE_TEST_CASE::m_testCaseType
PNS::LOGGER::TEST_CASE_TYPE m_testCaseType
Definition
dialog_router_save_test_case.h:43
PCB_BASE_EDIT_FRAME
Common, abstract interface for edit frames.
Definition
pcb_base_edit_frame.h:46
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 Jun 26 2026 00:05:39 for KiCad PCB EDA Suite by
1.13.2