#include <visiattr.h>
Inheritance diagram for VisibleStyleReference:
Public Member Functions | |
VisibleStyleReference (const WizOpStyle &Style) | |
Debug function that provides descriptions for TemplateAttribute (WizOp) records.Sets up a VisibleStyleReference so it actually references a style and so we can play with it. | |
virtual BOOL | Display (DialogOp &Dialog) |
This displays the StyleReference to the user. | |
virtual BOOL | Interact (DialogOp &Dialog) |
This allows the user to change this VisibleStyleReference. Except it does nothing. | |
virtual void | Hide () |
Hides any interaction with the user. | |
virtual StringBase & | GetText (StringBase &Description) const |
Gives the VisibleListItem its text to display. | |
virtual NodeAttribute * | CreateNewAttribute () |
Creates a new StyleReferenceAttribute that this VisibleStyleReference represents to put in the tree. | |
VisibleLabel & | GetParamHintLabel () |
void | SetParamHintString (const StringBase &HintToShow) |
EditableText & | GetParamText () |
void | SetParamText (const StringBase &ParamToShow) |
const WizOpStyle & | GetStyle () |
Private Attributes | |
const WizOpStyle & | m_Style |
EditableText | m_Question |
VisibleLabel | m_ParamHintLabel |
EditableText | m_Param |
Definition at line 220 of file visiattr.h.
|
Debug function that provides descriptions for TemplateAttribute (WizOp) records.Sets up a VisibleStyleReference so it actually references a style and so we can play with it.
Definition at line 1555 of file tmpltatr.cpp. 01555 : 01556 m_Style(Style) 01557 { 01558 m_Question = m_Style.GetQuestion(); 01559 }
|
|
Creates a new StyleReferenceAttribute that this VisibleStyleReference represents to put in the tree.
Implements VisibleAttribute. Definition at line 1676 of file tmpltatr.cpp. 01677 { 01678 return new StyleReferenceAttribute(m_Style); 01679 }
|
|
This displays the StyleReference to the user.
Implements UserInterface. Definition at line 1597 of file tmpltatr.cpp. 01598 { 01599 BOOL Ok = TRUE; 01600 01601 PORTNOTETRACE("other","TemplateAttribute::Display - do nothing"); 01602 #ifndef EXCLUDE_FROM_XARALX 01603 ERROR3IF(!((&Dialog)->IS_KIND_OF(TemplateDialog)), "Dialog isn't kind of TemplateDialog"); 01604 01605 TemplateDialog& BetterBeThisDialog = (TemplateDialog&)Dialog; 01606 01607 Ok = m_Question.Display(BetterBeThisDialog.GetValueControl()); 01608 01609 if (Ok) 01610 { 01611 SetParamHintString(GetStyle().GetWizOp().GetParamHint()); 01612 // bodgy bit this... 01613 Ok = GetParamHintLabel().Display(Dialog); 01614 } 01615 01616 if (Ok) 01617 { 01618 SetParamText(GetStyle().GetParam()); 01619 // bodgy bit this... 01620 Ok = GetParamText().Display(BetterBeThisDialog.GetKeyControl()); 01621 } 01622 #endif 01623 return Ok; 01624 }
|
|
Definition at line 1697 of file tmpltatr.cpp. 01698 { 01699 return m_ParamHintLabel; 01700 }
|
|
Definition at line 1704 of file tmpltatr.cpp. 01705 { 01706 return m_Param; 01707 }
|
|
Definition at line 1690 of file tmpltatr.cpp. 01691 { 01692 return m_Style; 01693 }
|
|
Gives the VisibleListItem its text to display.
Implements VisibleAttribute. Definition at line 1575 of file tmpltatr.cpp.
|
|
Hides any interaction with the user.
Implements UserInterface. Definition at line 1655 of file tmpltatr.cpp. 01656 { 01657 m_Question.Hide(); 01658 GetParamHintLabel().Hide(); 01659 GetParamText().Hide(); 01660 }
|
|
This allows the user to change this VisibleStyleReference. Except it does nothing.
Reimplemented from VisibleAttribute. Definition at line 1639 of file tmpltatr.cpp. 01640 { 01641 return TRUE; 01642 }
|
|
Definition at line 1684 of file tmpltatr.cpp. 01685 { 01686 m_ParamHintLabel = HintToShow; 01687 }
|
|
Definition at line 1711 of file tmpltatr.cpp. 01712 { 01713 m_Param = ParamToShow; 01714 }
|
|
Definition at line 247 of file visiattr.h. |
|
Definition at line 246 of file visiattr.h. |
|
Definition at line 245 of file visiattr.h. |
|
Definition at line 244 of file visiattr.h. |