wxShapeFramework  1.13.0 beta
wxSFDetachedContentCtrl Class Reference

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

#include <EditTextShape.h>

Inheritance diagram for wxSFDetachedContentCtrl:
Collaboration diagram for wxSFDetachedContentCtrl:

Public Member Functions

 wxSFDetachedContentCtrl (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Edit content"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
 ~wxSFDetachedContentCtrl ()
 Destructor. More...
 
void SetContent (const wxString &txt)
 Set content of dialog's text edit control. More...
 
wxString GetContent () const
 Get content of dialog's text edit control. More...
 

Protected Attributes

wxTextCtrl * m_pText
 

Detailed Description

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

See also
wxSFEditTextShape

Constructor & Destructor Documentation

◆ wxSFDetachedContentCtrl()

wxSFDetachedContentCtrl::wxSFDetachedContentCtrl ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  title = _("Edit content"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER 
)
\brief Constructor.
Parameters
parentPointer to the parent window
idID of the text control window
titleDialog's title
posInitial position
sizeInitial size
styleWindow style

◆ ~wxSFDetachedContentCtrl()

wxSFDetachedContentCtrl::~wxSFDetachedContentCtrl ( )

Destructor.

Member Function Documentation

◆ GetContent()

wxString wxSFDetachedContentCtrl::GetContent ( ) const
inline

Get content of dialog's text edit control.

Returns
Edited text

◆ SetContent()

void wxSFDetachedContentCtrl::SetContent ( const wxString &  txt)
inline

Set content of dialog's text edit control.

Parameters
txtText content

Member Data Documentation

◆ m_pText

wxTextCtrl* wxSFDetachedContentCtrl::m_pText
protected

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