65 m_Size( aParent, m_sizeLabel, m_sizeCtrl, m_sizeUnits ),
66 m_Thickness( aParent, m_thicknessLabel, m_thicknessCtrl, m_thicknessUnits )
109 commit.
Push(
_(
"Edit Alignment Target" ) );
constexpr EDA_IU_SCALE pcbIUScale
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
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...
Class DIALOG_TARGET_PROPERTIES_BASE.
DIALOG_TARGET_PROPERTIES(PCB_EDIT_FRAME *aParent, PCB_TARGET *aTarget)
~DIALOG_TARGET_PROPERTIES()
bool TransferDataToWindow() override
bool TransferDataFromWindow() override
PCB_EDIT_FRAME * m_Parent
EDA_ITEM_FLAGS GetEditFlags() const
void SetFlags(EDA_ITEM_FLAGS aMask)
The main frame for Pcbnew.
void ShowTargetOptionsDialog(PCB_TARGET *aTarget)
void SetWidth(int aWidth)
void SetShape(int aShape)
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED)
Validate the control against the given range, informing the user of any errors found.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
#define IN_EDIT
Item currently edited.
constexpr int Mils2IU(const EDA_IU_SCALE &aIuScale, int mils)