KiCad PCB EDA Suite
length_tuner_tool.h
Go to the documentation of this file.
1 /*
2  * KiRouter - a push-and-(sometimes-)shove PCB router
3  *
4  * Copyright (C) 2013-2017 CERN
5  * Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
6  * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
7  * Author: Maciej Suminski <maciej.suminski@cern.ch>
8  *
9  * This program is free software: you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the
11  * Free Software Foundation, either version 3 of the License, or (at your
12  * option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef __LENGTH_TUNER_TOOL_H
24 #define __LENGTH_TUNER_TOOL_H
25 
26 #include "pns_tool_base.h"
27 #include "pns_meander.h"
28 
30 
32 {
33 public:
36 
37  void Reset( RESET_REASON aReason ) override;
38 
39  int TuneSingleTrace( const TOOL_EVENT& aEvent );
40  int TuneDiffPair( const TOOL_EVENT& aEvent );
41  int TuneDiffPairSkew( const TOOL_EVENT& aEvent );
42 
43  void setTransitions() override;
44 
45 private:
46  void performTuning();
47  int mainLoop( PNS::ROUTER_MODE aMode );
48  void updateStatusPopup( PNS_TUNE_STATUS_POPUP& aPopup );
49 
50  int routerOptionsDialog( const TOOL_EVENT& aEvent );
51  int meanderSettingsDialog( const TOOL_EVENT& aEvent );
52 
54 };
55 
56 #endif
#define APIEXPORT
Macros which export functions from a DLL/DSO.
Definition: import_export.h:44
Class MEANDER_SETTINGS.
Definition: pns_meander.h:57
virtual void Reset(RESET_REASON aReason) override
Function Reset() Brings the tool to a known, initial state.
PNS::MEANDER_SETTINGS m_savedMeanderSettings
Class TOOL_EVENT.
Definition: tool_event.h:162
virtual void setTransitions()=0
This method is meant to be overridden in order to specify handlers for events.
ROUTER_MODE
Definition: pns_router.h:64
RESET_REASON
Determines the reason of reset for a tool
Definition: tool_base.h:80