98 bool pushCommit = (
m_Target->GetEditFlags() == 0 );
109 commit.
Push(
_(
"Edit Alignment Target" ) );
constexpr EDA_IU_SCALE pcbIUScale
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
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...
wxStaticText * m_thicknessUnits
wxStaticText * m_sizeLabel
wxStaticText * m_sizeUnits
wxStaticText * m_thicknessLabel
DIALOG_TARGET_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Target Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxTextCtrl * m_thicknessCtrl
DIALOG_TARGET_PROPERTIES(PCB_EDIT_FRAME *aParent, PCB_TARGET *aTarget)
~DIALOG_TARGET_PROPERTIES()
bool TransferDataToWindow() override
bool TransferDataFromWindow() override
PCB_EDIT_FRAME * m_Parent
The main frame for Pcbnew.
void ShowTargetOptionsDialog(PCB_TARGET *aTarget)
#define IN_EDIT
Item currently edited.
constexpr int Mils2IU(const EDA_IU_SCALE &aIuScale, int mils)