24#include <dialogs/dialog_image_properties.h>
36 m_posX( aParent, m_XPosLabel, m_ModPositionX, m_XPosUnit ),
37 m_posY( aParent, m_YPosLabel, m_ModPositionY, m_YPosUnit )
65 if( dlg.ShowModal() == wxID_OK )
83 m_cbLocked->SetToolTip(
_(
"Locked footprints cannot be freely moved and oriented on the "
84 "canvas and can only be selected when the 'Locked items' checkbox "
85 "is enabled in the selection filter." ) );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Class DIALOG_IMAGE_PROPERTIES_BASE.
PCB_LAYER_BOX_SELECTOR * m_LayerSelectionCtrl
PANEL_IMAGE_EDITOR * m_imageEditor
DIALOG_IMAGE_PROPERTIES(SCH_EDIT_FRAME *aParent, SCH_BITMAP *aBitmap)
bool TransferDataToWindow() override
bool TransferDataFromWindow() 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...
EDA_ITEM_FLAGS GetEditFlags() const
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.
int GetLayerSelection() const
int SetLayerSelection(int layer)
bool SetLayersHotkeys(bool value)
void TransferToImage(BITMAP_BASE *aItem)
Function TransferToImage copy edited image to aItem.
bool TransferDataFromWindow() override
void ShowBitmapPropertiesDialog(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.
Object to handle a bitmap image that can be inserted in a PCB.
BITMAP_BASE * MutableImage() const
Only use this if you really need to modify the underlying image.
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
void SetBoardFrame(PCB_BASE_FRAME *aFrame)
void ShowNonActivatedLayers(bool aShow)
VECTOR2I GetPosition() const override
void SetPosition(const VECTOR2I &aPosition) override
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend, bool aDirtyConnectivity=true)
Create a copy of the current schematic item, and put it in the undo list.
virtual bool IsLocked() const
virtual void SetLocked(bool aLocked)
Set the 'lock' status to aLocked for of this item.
void SetLayer(SCH_LAYER_ID aLayer)
Set the layer this item is on.
SCH_LAYER_ID GetLayer() const
Return the layer this item is on.
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void SetCoordType(ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType)
Set the current origin transform mode.
PCB_LAYER_ID ToLAYER_ID(int aLayer)