45 using namespace KIGFX;
57 _(
"New Track" ),
_(
"Starts laying a new track." ) );
62 _(
"End Track" ),
_(
"Stops laying the current meander." ) );
68 _(
"Length Tuning Settings..." ),
_(
"Sets the length tuning parameters for currently routed item." ),
74 _(
"Increase Spacing" ),
_(
"Increase meander spacing by one step." ),
80 _(
"Decrease Spacing" ),
_(
"Decrease meander spacing by one step." ),
86 _(
"Increase Amplitude" ),
_(
"Increase meander amplitude by one step." ),
92 _(
"Decrease Amplitude" ),
_(
"Decrease meander amplitude by one step." ),
96 #define _(s) wxGetTranslation((s)) 116 menu.DisplayTitle(
true );
141 wxPoint p = wxGetMousePosition();
171 auto placer = static_cast<PNS::MEANDER_PLACER_BASE*>(
m_router->
Placer() );
197 if( evt->IsCancelInteractive() || evt->IsActivate() )
201 else if( evt->IsMotion() )
203 end = evt->Position();
223 placer->AmplitudeStep( -1 );
229 placer->AmplitudeStep( 1 );
235 placer->SpacingStep( -1 );
241 placer->SpacingStep( 1 );
298 if( evt->IsCancelInteractive() || evt->IsActivate() )
302 else if( evt->IsMotion() )
339 if( settingsDlg.ShowModal() )
static TOOL_ACTION selectionClear
Clears the current selection.
const wxString & FailureReason() const
virtual void ShowCursor(bool aEnabled)
Enable or disables display of cursor.
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
virtual VECTOR2D GetMousePosition(bool aWorldCoordinates=true) const =0
Return the current mouse pointer position.
const BITMAP_OPAQUE router_len_tuner_setup_xpm[1]
#define LEGACY_HK_NAME(x)
Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
PLACEMENT_ALGO * Placer()
static TOOL_ACTION routerTuneDiffPair
Activation of the Push and Shove router (diff pair tuning mode)
static TOOL_ACTION cancelInteractive
void UndoRedoBlock(bool aBlock=true)
Function UndoRedoBlock Enables/disable undo and redo operations.
virtual void UpdateSettings(const MEANDER_SETTINGS &aSettings)
const BITMAP_OPAQUE router_len_tuner_dist_incr_xpm[1]
void SetCurrentCursor(KICURSOR cursor)
Set the current cursor shape for this panel.
static TOOL_ACTION routerTuneDiffPairSkew
Activation of the Push and Shove router (skew tuning mode)
void ShowInfoBarMsg(const wxString &aMsg, bool aShowCloseButton=false)
Show the WX_INFOBAR displayed on the top of the canvas with a message and an info icon on the left of...
const BITMAP_OPAQUE router_len_tuner_amplitude_incr_xpm[1]
const BITMAP_OPAQUE router_len_tuner_dist_decr_xpm[1]
bool FixRoute(const VECTOR2I &aP, ITEM *aItem, bool aForceFinish=false)
virtual void ForceCursorPosition(bool aEnabled, const VECTOR2D &aPosition=VECTOR2D(0, 0))
Place the cursor immediately at a given point.
virtual void SetActiveLayer(PCB_LAYER_ID aLayer)
void Move(const VECTOR2I &aP, ITEM *aItem)
bool StartRouting(const VECTOR2I &aP, ITEM *aItem, int aLayer)
virtual void SetAutoPan(bool aEnabled)
Turn on/off auto panning (this feature is used when there is a tool active (eg.
const BITMAP_OPAQUE router_len_tuner_amplitude_decr_xpm[1]
const BITMAP_OPAQUE router_len_tuner_xpm[1]
void SetMode(ROUTER_MODE aMode)
static LIB_PART * dummy()
Used to draw a dummy shape when a LIB_PART is not found in library.
virtual const MEANDER_SETTINGS & MeanderSettings() const
Function MeanderSettings()
PCB_LAYER_ID ToLAYER_ID(int aLayer)
const LAYER_RANGE & Layers() const
static TOOL_ACTION routerTuneSingleTrace
Activation of the Push and Shove router (tune single line mode)