KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_IMAGE_EDITOR Class Reference

#include <panel_image_editor.h>

Inheritance diagram for PANEL_IMAGE_EDITOR:
PANEL_IMAGE_EDITOR_BASE

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_BASEm_workingImage
 

Detailed Description

Definition at line 34 of file panel_image_editor.h.

Constructor & Destructor Documentation

◆ PANEL_IMAGE_EDITOR()

PANEL_IMAGE_EDITOR::PANEL_IMAGE_EDITOR ( wxWindow *  aParent,
const BITMAP_BASE aItem 
)

◆ ~PANEL_IMAGE_EDITOR()

PANEL_IMAGE_EDITOR::~PANEL_IMAGE_EDITOR ( )

Definition at line 51 of file panel_image_editor.cpp.

Member Function Documentation

◆ CheckValues()

bool PANEL_IMAGE_EDITOR::CheckValues ( )
private

◆ OnGreyScaleConvert()

void PANEL_IMAGE_EDITOR::OnGreyScaleConvert ( wxCommandEvent &  event)
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.

◆ OnRedrawPanel()

void PANEL_IMAGE_EDITOR::OnRedrawPanel ( wxPaintEvent &  event)
overrideprivatevirtual

◆ TransferDataFromWindow()

bool PANEL_IMAGE_EDITOR::TransferDataFromWindow ( )
override

◆ TransferToImage()

void PANEL_IMAGE_EDITOR::TransferToImage ( BITMAP_BASE aItem)

Member Data Documentation

◆ m_buttonGrey

wxButton* PANEL_IMAGE_EDITOR_BASE::m_buttonGrey
protectedinherited

◆ m_panelDraw

wxPanel* PANEL_IMAGE_EDITOR_BASE::m_panelDraw
protectedinherited

◆ m_staticTextPPI

wxStaticText* PANEL_IMAGE_EDITOR_BASE::m_staticTextPPI
protectedinherited

◆ m_staticTextScale

wxStaticText* PANEL_IMAGE_EDITOR_BASE::m_staticTextScale
protectedinherited

◆ m_stPPI_Value

wxStaticText* PANEL_IMAGE_EDITOR_BASE::m_stPPI_Value
protectedinherited

◆ m_textCtrlScale

wxTextCtrl* PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale
protectedinherited

◆ m_workingImage

std::unique_ptr<BITMAP_BASE> PANEL_IMAGE_EDITOR::m_workingImage
private

The documentation for this class was generated from the following files: