40 m_posX( aParent, m_XPosLabel, m_ModPositionX, m_XPosUnit ),
41 m_posY( aParent, m_YPosLabel, m_ModPositionY, m_YPosUnit )
69 if( dlg.ShowModal() == wxID_OK )
87 m_cbLocked->SetToolTip(
_(
"Locked items cannot be freely moved and oriented on the canvas "
88 "and can only be selected when the 'Locked items' checkbox is "
89 "checked in the selection filter." ) );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
virtual void SetLocked(bool aLocked)
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
virtual bool IsLocked() const
bool IsLayerEnabled(PCB_LAYER_ID aLayer) const
A proxy function that calls the correspondent function in m_BoardSettings tests whether a given layer...
Class DIALOG_REFERENCE_IMAGE_PROPERTIES_BASE.
PCB_LAYER_BOX_SELECTOR * m_LayerSelectionCtrl
DIALOG_REFERENCE_IMAGE_PROPERTIES(PCB_BASE_FRAME *aParent, PCB_REFERENCE_IMAGE *aBitmap)
PANEL_IMAGE_EDITOR * m_imageEditor
PCB_REFERENCE_IMAGE * m_bitmap
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...
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 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 ...
virtual void SaveCopyInUndoList(EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand)
Create a new entry in undo list of commands.
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.
void SetBoardFrame(PCB_BASE_FRAME *aFrame)
void ShowNonActivatedLayers(bool aShow)
Object to handle a bitmap image that can be inserted in a PCB.
VECTOR2I GetPosition() const override
BITMAP_BASE * MutableImage() const
Only use this if you really need to modify the underlying image.
void SetPosition(const VECTOR2I &aPosition) override
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)
VECTOR2< int32_t > VECTOR2I