#include <gadget.h>
Inheritance diagram for StaticTextControl:
Public Member Functions | |
StaticTextControl (DialogOp *const pDialog, CGadgetID ControlID, const StringBase &InitialText=NullString, Notifiable *const pTell=&Nobody) | |
Default constructor for a TextControl. | |
virtual | ~StaticTextControl () |
void | UpdateText (const StringBase &NewString) |
Sets the text in this control. | |
void | RetrieveText (StringBase *const pExistingString) const |
Gets the text currently displayed in this StaticTextControl. | |
virtual void | OnChange () |
Don't use this (yet!). | |
Protected Member Functions | |
const StaticTextControl & | operator= (const StaticTextControl &OtherControl) |
StaticTextControl (const StaticTextControl &OtherControl) | |
Private Member Functions | |
CC_DECLARE_MEMDUMP (StaticTextControl) | |
Private Attributes | |
Notifiable * | m_pObserver |
Definition at line 527 of file gadget.h.
|
Default constructor for a TextControl.
Definition at line 316 of file gadget.cpp. 00318 : 00319 DialogMgrGadget(pDialog, ControlID), 00320 m_pObserver(pTell) 00321 { 00322 if (!InitialText.IsEmpty()) 00323 { 00324 pDialog->SetStringGadgetValue(m_ControlID, InitialText); 00325 } 00326 }
|
|
Definition at line 537 of file gadget.h.
|
|
Definition at line 396 of file gadget.cpp. 00396 : 00397 DialogMgrGadget(NULL, 0) 00398 { 00399 ERROR3("StaticTextControl copy constructor not implemented\n"); 00400 }
|
|
|
|
Don't use this (yet!).
Definition at line 383 of file gadget.cpp. 00384 { 00385 Notify(m_pObserver); 00386 }
|
|
Definition at line 389 of file gadget.cpp. 00390 { 00391 ERROR3("StaticTextControl assignment not implemented\n"); 00392 00393 return *this; 00394 }
|
|
Gets the text currently displayed in this StaticTextControl.
Definition at line 362 of file gadget.cpp. 00363 { 00364 ASSERT(m_ControlID != 0 && m_pDialog != NULL); 00365 00366 if (pDisplayedString != NULL) 00367 { 00368 *pDisplayedString = m_pDialog->GetStringGadgetValue(m_ControlID); 00369 } 00370 }
|
|
Sets the text in this control.
Definition at line 341 of file gadget.cpp. 00342 { 00343 ASSERT(m_ControlID != 0 && m_pDialog != NULL); 00344 00345 m_pDialog->SetStringGadgetValue(m_ControlID, NewString); 00346 Notify(m_pObserver); 00347 }
|
|
|