KiCad PCB EDA Suite
|
#include <panel_image_editor.h>
Public Member Functions | |
PANEL_IMAGE_EDITOR (wxWindow *aParent, const BITMAP_BASE &aItem) | |
~PANEL_IMAGE_EDITOR () | |
bool | TransferDataFromWindow () override |
void | TransferToImage (BITMAP_BASE &aItem) |
Function TransferToImage copy edited image to aItem. | |
Protected Attributes | |
wxPanel * | m_panelDraw |
wxStaticText * | m_staticTextScale |
wxTextCtrl * | m_textCtrlScale |
wxStaticText * | m_staticTextPPI |
wxStaticText * | m_stPPI_Value |
wxButton * | m_buttonGrey |
Private Member Functions | |
void | OnGreyScaleConvert (wxCommandEvent &event) override |
void | OnRedrawPanel (wxPaintEvent &event) override |
bool | CheckValues () |
Private Attributes | |
std::unique_ptr< BITMAP_BASE > | m_workingImage |
Definition at line 34 of file panel_image_editor.h.
PANEL_IMAGE_EDITOR::PANEL_IMAGE_EDITOR | ( | wxWindow * | aParent, |
const BITMAP_BASE & | aItem | ||
) |
Definition at line 38 of file panel_image_editor.cpp.
References PANEL_IMAGE_EDITOR_BASE::m_stPPI_Value, PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale, and m_workingImage.
PANEL_IMAGE_EDITOR::~PANEL_IMAGE_EDITOR | ( | ) |
Definition at line 51 of file panel_image_editor.cpp.
|
private |
Definition at line 69 of file panel_image_editor.cpp.
References _, IsOK(), PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale, m_workingImage, MAX_SIZE, MIN_SIZE, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by TransferDataFromWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_IMAGE_EDITOR_BASE.
Definition at line 56 of file panel_image_editor.cpp.
References PANEL_IMAGE_EDITOR_BASE::m_panelDraw, and m_workingImage.
|
overrideprivatevirtual |
Reimplemented from PANEL_IMAGE_EDITOR_BASE.
Definition at line 120 of file panel_image_editor.cpp.
References PANEL_IMAGE_EDITOR_BASE::m_panelDraw, m_workingImage, VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 114 of file panel_image_editor.cpp.
References CheckValues().
Referenced by DIALOG_IMAGE_PROPERTIES::TransferDataFromWindow(), and DIALOG_REFERENCE_IMAGE_PROPERTIES::TransferDataFromWindow().
void PANEL_IMAGE_EDITOR::TransferToImage | ( | BITMAP_BASE & | aItem | ) |
Function TransferToImage copy edited image to aItem.
Definition at line 139 of file panel_image_editor.cpp.
References BITMAP_BASE::ImportData(), PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale, m_workingImage, and scale.
Referenced by DIALOG_IMAGE_PROPERTIES::TransferDataFromWindow(), and DIALOG_REFERENCE_IMAGE_PROPERTIES::TransferDataFromWindow().
|
protectedinherited |
Definition at line 44 of file panel_image_editor_base.h.
Referenced by PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE(), and PANEL_IMAGE_EDITOR_BASE::~PANEL_IMAGE_EDITOR_BASE().
|
protectedinherited |
Definition at line 39 of file panel_image_editor_base.h.
Referenced by OnGreyScaleConvert(), OnRedrawPanel(), PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE(), and PANEL_IMAGE_EDITOR_BASE::~PANEL_IMAGE_EDITOR_BASE().
|
protectedinherited |
Definition at line 42 of file panel_image_editor_base.h.
Referenced by PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE().
|
protectedinherited |
Definition at line 40 of file panel_image_editor_base.h.
Referenced by PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE().
|
protectedinherited |
Definition at line 43 of file panel_image_editor_base.h.
Referenced by PANEL_IMAGE_EDITOR(), and PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE().
|
protectedinherited |
Definition at line 41 of file panel_image_editor_base.h.
Referenced by CheckValues(), PANEL_IMAGE_EDITOR(), PANEL_IMAGE_EDITOR_BASE::PANEL_IMAGE_EDITOR_BASE(), and TransferToImage().
|
private |
Definition at line 56 of file panel_image_editor.h.
Referenced by CheckValues(), OnGreyScaleConvert(), OnRedrawPanel(), PANEL_IMAGE_EDITOR(), and TransferToImage().