wxShapeFramework  1.13.0 beta
wxSFContentCtrl Class Reference

Auxiliary class providing neccessary functionality needed for in-place modification of a content of the text shape. More...

#include <EditTextShape.h>

Inheritance diagram for wxSFContentCtrl:
Collaboration diagram for wxSFContentCtrl:

Public Member Functions

 wxSFContentCtrl (wxWindow *parent, wxWindowID id, wxSFEditTextShape *parentShape, const wxString &content, wxPoint pos, wxSize size, int style)
 
void Quit (bool apply=sfAPPLY_TEXT_CHANGES)
 Finish the editing process/. More...
 

Protected Member Functions

void OnKillFocus (wxFocusEvent &event)
 
void OnKeyDown (wxKeyEvent &event)
 Event handler called if the key was pressed in the text control. More...
 
 DECLARE_EVENT_TABLE ()
 

Protected Attributes

wxWindow * m_pParent
 
wxSFEditTextShapem_pParentShape
 
wxString m_sPrevContent
 

Detailed Description

Auxiliary class providing neccessary functionality needed for in-place modification of a content of the text shape.

See also
wxSFEditTextShape

Constructor & Destructor Documentation

◆ wxSFContentCtrl()

wxSFContentCtrl::wxSFContentCtrl ( wxWindow *  parent,
wxWindowID  id,
wxSFEditTextShape parentShape,
const wxString &  content,
wxPoint  pos,
wxSize  size,
int  style 
)
\brief Constructor.
Parameters
parentPointer to the parent window
idID of the text control window
parentShapePointer to the parent editable text shape
contentInitial content of the text control
posInitial position
sizeInitial size
styleWindow style

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

wxSFContentCtrl::DECLARE_EVENT_TABLE ( )
protected

◆ OnKeyDown()

void wxSFContentCtrl::OnKeyDown ( wxKeyEvent &  event)
protected

Event handler called if the key was pressed in the text control.

Parameters
eventReference to the event class instance

◆ OnKillFocus()

void wxSFContentCtrl::OnKillFocus ( wxFocusEvent &  event)
protected
\brief Event handler called if the text control lost the focus.
Parameters
eventReference to the event class instance

◆ Quit()

void wxSFContentCtrl::Quit ( bool  apply = sfAPPLY_TEXT_CHANGES)

Finish the editing process/.

Parameters
applyIf TRUE then changes made in eddited text will be applied on text shape, otherwise it will be canceled

Member Data Documentation

◆ m_pParent

wxWindow* wxSFContentCtrl::m_pParent
protected

◆ m_pParentShape

wxSFEditTextShape* wxSFContentCtrl::m_pParentShape
protected

◆ m_sPrevContent

wxString wxSFContentCtrl::m_sPrevContent
protected

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