96 m_cbLocked->SetToolTip(
_(
"Locked items cannot be freely moved and oriented on the canvas and can only be "
97 "selected when the 'Locked items' checkbox is checked in the selection filter." ) );
133 double newWidth =
m_width.GetDoubleValue();
148 double newHeight =
m_height.GetDoubleValue();
156 m_width.ChangeDoubleValue( newSize.
x );
170 m_width.ChangeDoubleValue( size.
x );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
wxStaticText * m_HeightUnit
wxTextCtrl * m_ModPositionY
wxStaticText * m_WidthLabel
PCB_LAYER_BOX_SELECTOR * m_LayerSelectionCtrl
wxStaticText * m_YPosUnit
wxStaticText * m_YPosLabel
wxStaticText * m_HeightLabel
wxTextCtrl * m_ModPositionX
wxStaticText * m_XPosLabel
wxBoxSizer * m_imageSizer
wxStaticText * m_XPosUnit
wxStaticText * m_WidthUnit
DIALOG_REFERENCE_IMAGE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Reference Image Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void onWidthChanged(wxCommandEvent &aEvent)
PANEL_IMAGE_EDITOR * m_imageEditor
DIALOG_REFERENCE_IMAGE_PROPERTIES(PCB_BASE_FRAME *aParent, PCB_REFERENCE_IMAGE &aBitmap)
void onHeightChanged(wxCommandEvent &aEvent)
PCB_REFERENCE_IMAGE & m_bitmap
void onScaleChanged(wxCommandEvent &aEvent)
PCB_BASE_FRAME * m_frame
The reference image being edited.
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
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...
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
void RecacheAllItems()
Rebuild GAL display lists.
void ShowReferenceImagePropertiesDialog(BOARD_ITEM *aBitmap)
Set the angle used for rotate operations.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
void OnModify() override
Must be called after a change in order to set the "modify" flag and update other data structures and ...
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
Object to handle a bitmap image that can be inserted in a PCB.
REFERENCE_IMAGE & GetReferenceImage()
BITMAP_BASE & MutableImage() const
Only use this if you really need to modify the underlying image.
PCB_LAYER_ID ToLAYER_ID(int aLayer)
VECTOR2< int32_t > VECTOR2I