2015-02-18 00:29:54 +00:00
|
|
|
/*
|
|
|
|
* KiRouter - a push-and-(sometimes-)shove PCB router
|
|
|
|
*
|
2017-01-18 08:04:11 +00:00
|
|
|
* Copyright (C) 2013-2017 CERN
|
2016-08-29 14:38:11 +00:00
|
|
|
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
|
2015-02-18 00:29:54 +00:00
|
|
|
* Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2017-11-01 11:14:16 +00:00
|
|
|
#include <core/optional.h>
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
#include "class_draw_panel_gal.h"
|
|
|
|
#include "class_board.h"
|
|
|
|
|
2018-01-29 20:58:58 +00:00
|
|
|
#include <pcb_edit_frame.h>
|
2015-02-18 00:29:54 +00:00
|
|
|
#include <pcbnew_id.h>
|
|
|
|
#include <view/view_controls.h>
|
|
|
|
#include <pcb_painter.h>
|
|
|
|
#include <dialogs/dialog_pns_settings.h>
|
|
|
|
#include <dialogs/dialog_pns_length_tuning_settings.h>
|
|
|
|
|
|
|
|
#include <tool/context_menu.h>
|
2015-05-05 18:39:41 +00:00
|
|
|
#include <tool/tool_manager.h>
|
2017-02-21 12:42:08 +00:00
|
|
|
#include <tools/pcb_actions.h>
|
2018-05-13 20:11:11 +00:00
|
|
|
#include <hotkeys.h>
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
#include "pns_segment.h"
|
|
|
|
#include "pns_router.h"
|
|
|
|
#include "pns_meander_placer.h" // fixme: move settings to separate header
|
|
|
|
#include "pns_tune_status_popup.h"
|
|
|
|
|
|
|
|
#include "length_tuner_tool.h"
|
2017-12-14 13:33:20 +00:00
|
|
|
#include <bitmaps.h>
|
2018-08-01 16:58:27 +00:00
|
|
|
#include <tools/tool_event_utils.h>
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
using namespace KIGFX;
|
|
|
|
|
2018-05-13 20:11:11 +00:00
|
|
|
static TOOL_ACTION ACT_StartTuning( "pcbnew.LengthTuner.StartTuning", AS_CONTEXT,
|
|
|
|
TOOL_ACTION::LegacyHotKey( HK_ADD_NEW_TRACK ),
|
2015-04-02 14:09:26 +00:00
|
|
|
_( "New Track" ), _( "Starts laying a new track." ) );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2015-04-02 14:09:26 +00:00
|
|
|
static TOOL_ACTION ACT_EndTuning( "pcbnew.LengthTuner.EndTuning", AS_CONTEXT, WXK_END,
|
|
|
|
_( "End Track" ), _( "Stops laying the current meander." ) );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2018-05-13 20:11:11 +00:00
|
|
|
static TOOL_ACTION ACT_Settings( "pcbnew.LengthTuner.Settings", AS_CONTEXT,
|
|
|
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_SETTINGS ),
|
2018-02-09 16:28:33 +00:00
|
|
|
_( "Length Tuning Settings..." ), _( "Sets the length tuning parameters for currently routed item." ),
|
2017-12-14 13:33:20 +00:00
|
|
|
router_len_tuner_setup_xpm );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2018-05-14 02:31:21 +00:00
|
|
|
static TOOL_ACTION ACT_SpacingIncrease( "pcbnew.LengthTuner.SpacingIncrease", AS_CONTEXT,
|
|
|
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_INCREASE_SPACING ),
|
2018-02-09 16:28:33 +00:00
|
|
|
_( "Increase Spacing" ), _( "Increase meander spacing by one step." ),
|
2017-12-14 13:33:20 +00:00
|
|
|
router_len_tuner_dist_incr_xpm );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2018-05-14 02:31:21 +00:00
|
|
|
static TOOL_ACTION ACT_SpacingDecrease( "pcbnew.LengthTuner.SpacingDecrease", AS_CONTEXT,
|
|
|
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_DECREASE_SPACING ),
|
2018-02-09 16:28:33 +00:00
|
|
|
_( "Decrease Spacing" ), _( "Decrease meander spacing by one step." ),
|
2017-12-14 13:33:20 +00:00
|
|
|
router_len_tuner_dist_decr_xpm );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2018-05-14 02:31:21 +00:00
|
|
|
static TOOL_ACTION ACT_AmplIncrease( "pcbnew.LengthTuner.AmplIncrease", AS_CONTEXT,
|
|
|
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_INCREASE_AMP ),
|
2018-02-09 16:28:33 +00:00
|
|
|
_( "Increase Amplitude" ), _( "Increase meander amplitude by one step." ),
|
2017-12-14 13:33:20 +00:00
|
|
|
router_len_tuner_amplitude_incr_xpm );
|
2015-04-02 14:09:26 +00:00
|
|
|
|
2018-05-14 02:31:21 +00:00
|
|
|
static TOOL_ACTION ACT_AmplDecrease( "pcbnew.LengthTuner.AmplDecrease", AS_CONTEXT,
|
|
|
|
TOOL_ACTION::LegacyHotKey( HK_ROUTE_TUNE_DECREASE_AMP ),
|
2018-02-09 16:28:33 +00:00
|
|
|
_( "Decrease Amplitude" ), _( "Decrease meander amplitude by one step." ),
|
2017-12-14 13:33:20 +00:00
|
|
|
router_len_tuner_amplitude_decr_xpm );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
LENGTH_TUNER_TOOL::LENGTH_TUNER_TOOL() :
|
2016-08-29 17:31:13 +00:00
|
|
|
TOOL_BASE( "pcbnew.LengthTuner" )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-01-20 17:33:11 +00:00
|
|
|
class TUNER_TOOL_MENU : public CONTEXT_MENU
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-01-20 17:33:11 +00:00
|
|
|
TUNER_TOOL_MENU()
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
2015-04-02 14:09:26 +00:00
|
|
|
SetTitle( _( "Length Tuner" ) );
|
2017-12-14 13:33:20 +00:00
|
|
|
SetIcon( router_len_tuner_xpm );
|
2017-01-23 13:47:49 +00:00
|
|
|
DisplayTitle( true );
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2018-08-01 16:58:27 +00:00
|
|
|
Add( ACTIONS::cancelInteractive );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2018-08-01 16:58:27 +00:00
|
|
|
AppendSeparator();
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
Add( ACT_SpacingIncrease );
|
|
|
|
Add( ACT_SpacingDecrease );
|
|
|
|
Add( ACT_AmplIncrease );
|
|
|
|
Add( ACT_AmplDecrease );
|
2015-02-18 16:53:46 +00:00
|
|
|
Add( ACT_Settings );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
2017-01-20 17:33:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
CONTEXT_MENU* create() const override
|
|
|
|
{
|
|
|
|
return new TUNER_TOOL_MENU();
|
|
|
|
}
|
2015-02-18 00:29:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
LENGTH_TUNER_TOOL::~LENGTH_TUNER_TOOL()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
void LENGTH_TUNER_TOOL::Reset( RESET_REASON aReason )
|
|
|
|
{
|
2018-04-24 23:28:13 +00:00
|
|
|
if( aReason == RUN )
|
|
|
|
TOOL_BASE::Reset( aReason );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-03-05 09:02:29 +00:00
|
|
|
void LENGTH_TUNER_TOOL::updateStatusPopup( PNS_TUNE_STATUS_POPUP& aPopup )
|
|
|
|
{
|
2018-12-23 17:57:40 +00:00
|
|
|
// fixme: wx code not allowed inside tools!
|
2015-03-09 10:06:54 +00:00
|
|
|
wxPoint p = wxGetMousePosition();
|
2015-03-05 09:02:29 +00:00
|
|
|
|
|
|
|
p.x += 20;
|
|
|
|
p.y += 20;
|
|
|
|
|
2015-03-09 10:06:54 +00:00
|
|
|
aPopup.UpdateStatus( m_router );
|
2015-03-05 09:02:29 +00:00
|
|
|
aPopup.Move( p );
|
|
|
|
}
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2017-01-18 08:04:11 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
void LENGTH_TUNER_TOOL::performTuning()
|
|
|
|
{
|
2015-02-18 16:53:46 +00:00
|
|
|
if( m_startItem )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
2017-08-03 15:53:07 +00:00
|
|
|
frame()->SetActiveLayer( ToLAYER_ID ( m_startItem->Layers().Start() ) );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
if( m_startItem->Net() >= 0 )
|
|
|
|
highlightNet( true, m_startItem->Net() );
|
|
|
|
}
|
|
|
|
|
2017-08-03 15:53:07 +00:00
|
|
|
controls()->ForceCursorPosition( false );
|
|
|
|
controls()->SetAutoPan( true );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
if( !m_router->StartRouting( m_startSnapPoint, m_startItem, 0 ) )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
2015-02-18 16:53:46 +00:00
|
|
|
wxMessageBox( m_router->FailureReason(), _( "Error" ) );
|
|
|
|
highlightNet( false );
|
2015-02-18 00:29:54 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
auto placer = static_cast<PNS::MEANDER_PLACER_BASE*>( m_router->Placer() );
|
2015-03-09 10:06:54 +00:00
|
|
|
|
2015-03-05 09:02:29 +00:00
|
|
|
placer->UpdateSettings( m_savedMeanderSettings );
|
|
|
|
|
|
|
|
VECTOR2I end( m_startSnapPoint );
|
|
|
|
|
2019-12-12 09:24:55 +00:00
|
|
|
// Create an instance of PNS_TUNE_STATUS_POPUP.
|
|
|
|
// DO NOT create it on the stack: otherwise on Windows, wxWidgets 3.1.3
|
|
|
|
// it creates a crash. I am pretty sure this crash is created by the stack switching
|
|
|
|
// when managing events (JPC).
|
|
|
|
std::unique_ptr<PNS_TUNE_STATUS_POPUP> statusPopup( new PNS_TUNE_STATUS_POPUP( frame() ) );
|
|
|
|
statusPopup->Popup();
|
2015-03-04 19:22:33 +00:00
|
|
|
|
2015-03-05 09:02:29 +00:00
|
|
|
m_router->Move( end, NULL );
|
2019-12-12 09:24:55 +00:00
|
|
|
updateStatusPopup( *statusPopup );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
while( OPT_TOOL_EVENT evt = Wait() )
|
|
|
|
{
|
2018-11-19 15:54:36 +00:00
|
|
|
if( TOOL_EVT_UTILS::IsCancelInteractive( *evt ) )
|
2015-02-18 00:29:54 +00:00
|
|
|
break;
|
|
|
|
else if( evt->IsMotion() )
|
|
|
|
{
|
|
|
|
end = evt->Position();
|
|
|
|
m_router->Move( end, NULL );
|
2019-12-12 09:24:55 +00:00
|
|
|
updateStatusPopup( *statusPopup );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
else if( evt->IsClick( BUT_LEFT ) )
|
|
|
|
{
|
|
|
|
if( m_router->FixRoute( evt->Position(), NULL ) )
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
else if( evt->IsAction( &ACT_EndTuning ) )
|
|
|
|
{
|
|
|
|
if( m_router->FixRoute( end, NULL ) )
|
|
|
|
break;
|
2015-02-18 16:53:46 +00:00
|
|
|
}
|
|
|
|
else if( evt->IsAction( &ACT_AmplDecrease ) )
|
|
|
|
{
|
2015-02-18 00:29:54 +00:00
|
|
|
placer->AmplitudeStep( -1 );
|
|
|
|
m_router->Move( end, NULL );
|
2019-12-12 09:24:55 +00:00
|
|
|
updateStatusPopup( *statusPopup );
|
2015-02-18 16:53:46 +00:00
|
|
|
}
|
|
|
|
else if( evt->IsAction( &ACT_AmplIncrease ) )
|
|
|
|
{
|
2015-02-18 00:29:54 +00:00
|
|
|
placer->AmplitudeStep( 1 );
|
|
|
|
m_router->Move( end, NULL );
|
2019-12-12 09:24:55 +00:00
|
|
|
updateStatusPopup( *statusPopup );
|
2015-02-18 16:53:46 +00:00
|
|
|
}
|
|
|
|
else if(evt->IsAction( &ACT_SpacingDecrease ) )
|
|
|
|
{
|
2015-02-18 00:29:54 +00:00
|
|
|
placer->SpacingStep( -1 );
|
|
|
|
m_router->Move( end, NULL );
|
2019-12-12 09:24:55 +00:00
|
|
|
updateStatusPopup( *statusPopup );
|
2015-02-18 16:53:46 +00:00
|
|
|
}
|
|
|
|
else if( evt->IsAction( &ACT_SpacingIncrease ) )
|
|
|
|
{
|
2015-02-18 00:29:54 +00:00
|
|
|
placer->SpacingStep( 1 );
|
|
|
|
m_router->Move( end, NULL );
|
2019-12-12 09:24:55 +00:00
|
|
|
updateStatusPopup( *statusPopup );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
2018-05-20 13:08:06 +00:00
|
|
|
else if( evt->IsAction( &ACT_Settings ) )
|
|
|
|
{
|
2019-12-12 09:24:55 +00:00
|
|
|
statusPopup->Hide();
|
2018-05-20 13:08:06 +00:00
|
|
|
TOOL_EVENT dummy;
|
|
|
|
meanderSettingsDialog( dummy );
|
2019-12-12 09:24:55 +00:00
|
|
|
statusPopup->Show();
|
2018-05-20 13:08:06 +00:00
|
|
|
}
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
m_router->StopRouting();
|
2018-06-13 04:11:21 +00:00
|
|
|
controls()->SetAutoPan( false );
|
|
|
|
controls()->ForceCursorPosition( false );
|
2015-02-18 00:29:54 +00:00
|
|
|
highlightNet( false );
|
|
|
|
}
|
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
|
|
|
|
int LENGTH_TUNER_TOOL::TuneSingleTrace( const TOOL_EVENT& aEvent )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
2017-08-03 15:53:07 +00:00
|
|
|
frame()->SetToolID( ID_TRACK_BUTT, wxCURSOR_PENCIL, _( "Tune Trace Length" ) );
|
2016-08-29 14:38:11 +00:00
|
|
|
return mainLoop( PNS::PNS_MODE_TUNE_SINGLE );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
|
|
|
|
int LENGTH_TUNER_TOOL::TuneDiffPair( const TOOL_EVENT& aEvent )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
2017-08-03 15:53:07 +00:00
|
|
|
frame()->SetToolID( ID_TRACK_BUTT, wxCURSOR_PENCIL, _( "Tune Diff Pair Length" ) );
|
2016-08-29 14:38:11 +00:00
|
|
|
return mainLoop( PNS::PNS_MODE_TUNE_DIFF_PAIR );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
|
|
|
|
int LENGTH_TUNER_TOOL::TuneDiffPairSkew( const TOOL_EVENT& aEvent )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
2017-08-03 15:53:07 +00:00
|
|
|
frame()->SetToolID( ID_TRACK_BUTT, wxCURSOR_PENCIL, _( "Tune Diff Pair Skew" ) );
|
2016-08-29 14:38:11 +00:00
|
|
|
return mainLoop( PNS::PNS_MODE_TUNE_DIFF_PAIR_SKEW );
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2017-07-31 12:30:51 +00:00
|
|
|
void LENGTH_TUNER_TOOL::setTransitions()
|
2017-01-18 08:04:11 +00:00
|
|
|
{
|
2017-08-03 15:53:07 +00:00
|
|
|
Go( &LENGTH_TUNER_TOOL::TuneSingleTrace, PCB_ACTIONS::routerActivateTuneSingleTrace.MakeEvent() );
|
|
|
|
Go( &LENGTH_TUNER_TOOL::TuneDiffPair, PCB_ACTIONS::routerActivateTuneDiffPair.MakeEvent() );
|
|
|
|
Go( &LENGTH_TUNER_TOOL::TuneDiffPairSkew, PCB_ACTIONS::routerActivateTuneDiffPairSkew.MakeEvent() );
|
2017-01-18 08:04:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
int LENGTH_TUNER_TOOL::mainLoop( PNS::ROUTER_MODE aMode )
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
|
|
|
// Deselect all items
|
2017-02-21 12:42:08 +00:00
|
|
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
Activate();
|
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
m_router->SetMode( aMode );
|
|
|
|
|
2017-08-03 15:53:07 +00:00
|
|
|
controls()->SetSnapping( true );
|
|
|
|
controls()->ShowCursor( true );
|
|
|
|
frame()->UndoRedoBlock( true );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2017-01-20 17:33:11 +00:00
|
|
|
std::unique_ptr<TUNER_TOOL_MENU> ctxMenu( new TUNER_TOOL_MENU );
|
2015-02-18 16:53:46 +00:00
|
|
|
SetContextMenu( ctxMenu.get() );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
// Main loop: keep receiving events
|
|
|
|
while( OPT_TOOL_EVENT evt = Wait() )
|
|
|
|
{
|
2018-11-19 15:54:36 +00:00
|
|
|
if( TOOL_EVT_UTILS::IsCancelInteractive( *evt ) )
|
2016-08-15 15:16:50 +00:00
|
|
|
{
|
2015-02-18 00:29:54 +00:00
|
|
|
break; // Finish
|
2016-08-15 15:16:50 +00:00
|
|
|
}
|
2015-02-18 00:29:54 +00:00
|
|
|
else if( evt->IsMotion() )
|
2016-08-15 15:16:50 +00:00
|
|
|
{
|
2015-02-18 00:29:54 +00:00
|
|
|
updateStartItem( *evt );
|
2016-08-15 15:16:50 +00:00
|
|
|
}
|
2015-02-18 00:29:54 +00:00
|
|
|
else if( evt->IsClick( BUT_LEFT ) || evt->IsAction( &ACT_StartTuning ) )
|
|
|
|
{
|
|
|
|
updateStartItem( *evt );
|
2015-08-04 21:08:13 +00:00
|
|
|
performTuning();
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
2018-05-20 13:08:06 +00:00
|
|
|
else if( evt->IsAction( &ACT_Settings ) )
|
|
|
|
{
|
|
|
|
TOOL_EVENT dummy;
|
|
|
|
meanderSettingsDialog( dummy );
|
|
|
|
}
|
2015-02-18 00:29:54 +00:00
|
|
|
}
|
|
|
|
|
2017-08-03 15:53:07 +00:00
|
|
|
frame()->SetNoToolSelected();
|
|
|
|
frame()->UndoRedoBlock( false );
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
// Store routing settings till the next invocation
|
|
|
|
m_savedSettings = m_router->Settings();
|
|
|
|
m_savedSizes = m_router->Sizes();
|
|
|
|
|
|
|
|
return 0;
|
2015-02-18 16:53:46 +00:00
|
|
|
}
|
2017-01-18 08:04:11 +00:00
|
|
|
|
|
|
|
int LENGTH_TUNER_TOOL::meanderSettingsDialog( const TOOL_EVENT& aEvent )
|
|
|
|
{
|
|
|
|
PNS::MEANDER_PLACER_BASE* placer = static_cast<PNS::MEANDER_PLACER_BASE*>( m_router->Placer() );
|
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
PNS::MEANDER_SETTINGS settings = placer ? placer->MeanderSettings() : m_savedMeanderSettings;
|
2017-08-03 15:53:07 +00:00
|
|
|
DIALOG_PNS_LENGTH_TUNING_SETTINGS settingsDlg( frame(), settings, m_router->Mode() );
|
2017-01-18 08:04:11 +00:00
|
|
|
|
|
|
|
if( settingsDlg.ShowModal() )
|
2018-05-20 13:08:06 +00:00
|
|
|
{
|
|
|
|
if( placer )
|
|
|
|
placer->UpdateSettings( settings );
|
2017-01-18 08:04:11 +00:00
|
|
|
|
2018-05-20 13:08:06 +00:00
|
|
|
m_savedMeanderSettings = settings;
|
|
|
|
}
|
2017-01-18 08:04:11 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|