84        const double    r = 
m_xOffset.GetDoubleValue();
 
 
  105    double xOffset = 
m_xOffset.GetDoubleValue();
 
  106    double yOffset = 
m_yOffset.GetDoubleValue();
 
 
  158        m_clearX->SetToolTip( 
_( 
"Reset to the current distance from the reference position." ) );
 
  159        m_clearY->SetToolTip( 
_( 
"Reset to the current angle from the reference position." ) );
 
  166        m_clearX->SetToolTip( 
_( 
"Reset to the current X offset from the reference position." ) );
 
  167        m_clearY->SetToolTip( 
_( 
"Reset to the current Y offset from the reference position." ) );
 
 
  174    wxObject* obj = 
event.GetEventObject();
 
  176    wxASSERT( posrelTool );
 
 
  213    wxCHECK( pickerTool,  );
 
 
  227    wxCHECK( pickerTool,  );
 
 
  246        m_referenceInfo->SetLabel( 
_( 
"Reference location: local coordinates origin" ) );
 
  252        wxString       msg = 
_( 
"<none selected>" );
 
  257        m_referenceInfo->SetLabel( wxString::Format( 
_( 
"Reference item: %s" ), msg ) );
 
  262        m_referenceInfo->SetLabel( wxString::Format( 
_( 
"Reference location: selected point (%s, %s)" ),
 
 
  309        item = 
static_cast<const BOARD_ITEM*
>( aItem );
 
 
  352    wxTextCtrl* obj = 
static_cast<wxTextCtrl*
>( 
event.GetEventObject() );
 
  354    if( obj->GetValue().IsEmpty() )
 
  355        obj->SetValue( 
"0" );
 
 
constexpr EDA_IU_SCALE pcbIUScale
 
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
 
VECTOR2D m_LocalOrigin
Relative Screen cursor coordinate (on grid) in user units.
 
const VECTOR2I & GetGridOrigin() const
 
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
 
Information pertinent to a Pcbnew printed circuit board.
 
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
 
wxStaticText * m_referenceInfo
 
wxButton * m_stdButtonsOK
 
DIALOG_POSITION_RELATIVE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Position Relative To Reference Item"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
wxCheckBox * m_polarCoords
 
wxButton * m_stdButtonsCancel
 
bool getTranslationInIU(VECTOR2I &val, bool polar)
Get the (Cartesian) translation described by the text entries.
 
void OnUseGridOriginClick(wxCommandEvent &event) override
 
void OnPolarChanged(wxCommandEvent &event) override
 
void OnOkClick(wxCommandEvent &event) override
 
void updateDialogControls(bool aPolar)
 
void OnClear(wxCommandEvent &event) override
 
void OnSelectItemClick(wxCommandEvent &event) override
 
void UpdatePickedPoint(const std::optional< VECTOR2I > &aPoint) override
 
void OnSelectPointClick(wxCommandEvent &event) override
 
void UpdatePickedItem(const EDA_ITEM *aItem) override
 
VECTOR2I m_anchorItemPosition
 
void OnTextFocusLost(wxFocusEvent &event) override
Reset a text field to be 0 if it was exited while blank.
 
void OnUseUserOriginClick(wxCommandEvent &event) override
 
ANCHOR_TYPE
Persistent dialog options.
 
void ToPolarDeg(double x, double y, double &r, EDA_ANGLE &q)
Convert a given Cartesian point into a polar representation.
 
void updateAnchorInfo(const BOARD_ITEM *aItem)
 
static ANCHOR_TYPE s_anchorType
 
DIALOG_POSITION_RELATIVE(PCB_BASE_FRAME *aParent)
 
std::vector< wxWindow * > m_tabOrder
 
bool Show(bool show) override
 
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
 
void SetupStandardButtons(std::map< int, wxString > aLabels={})
 
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
 
EDA_BASE_FRAME * m_parentFrame
 
EDA_UNITS GetUserUnits() const
 
A base class for most all the KiCad significant classes used in schematics and boards.
 
virtual VECTOR2I GetPosition() const
 
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
 
bool IsBOARD_ITEM() const
 
static TOOL_ACTION selectPointInteractively
 
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
 
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
 
PCB_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
 
static constexpr EDA_ANGLE ANGLE_0
 
Functions for manipulating tab traversal in forms and dialogs.
 
VECTOR2< int32_t > VECTOR2I
 
VECTOR2< double > VECTOR2D