#include <visiattr.h>
Inheritance diagram for VisibleTemplateAttribute:
Public Member Functions | |
VisibleTemplateAttribute (const WizOp &Handler, const StringBase &Question=NullString, const StringBase &Param=NullString) | |
Debug function that provides descriptions for TemplateAttribute (WizOp) records.Constructor to ensure the data members are set up correctly. | |
virtual StringBase & | GetText (StringBase &Description) const |
Gives the user something to chew on in the "Used Properties" list of the Wizard Properties dialog. | |
virtual BOOL | Display (DialogOp &Dialog) |
Lets the user see the contents of this VisibleTemplateAttribute on the given dialog. Overrides the base class to provide a param hint. | |
virtual BOOL | Interact (DialogOp &Dialog) |
This allows the user to change this VisibleTemplateAttribute. | |
virtual void | Hide () |
Hides this VisibleTemplateAttribute from the user. Overrides the base class to hide the param hint. | |
virtual NodeAttribute * | CreateNewAttribute () |
Creates a new used property. | |
Protected Member Functions | |
const WizOp & | GetWizOp () |
VisibleLabel & | GetParamHint () |
void | SetParamHint (const StringBase &HintToShow) |
Private Attributes | |
const WizOp & | m_Handler |
VisibleLabel | m_ParamHint |
Definition at line 183 of file visiattr.h.
|
Debug function that provides descriptions for TemplateAttribute (WizOp) records.Constructor to ensure the data members are set up correctly.
Definition at line 844 of file tmpltatr.cpp. 00846 : 00847 VisibleUserAttribute(NullString, NullString), 00848 m_Handler(Handler) 00849 { 00850 // do something here so it can create its text 00851 00852 SetLongKey(Param); 00853 SetValue(Question); 00854 }
|
|
Creates a new used property.
Reimplemented from VisibleUserAttribute. Definition at line 974 of file tmpltatr.cpp. 00975 { 00976 return new TemplateAttribute( m_Handler.GetInternalName(), GetValue(), GetLongKey() ); 00977 }
|
|
Lets the user see the contents of this VisibleTemplateAttribute on the given dialog. Overrides the base class to provide a param hint.
Reimplemented from VisibleUserAttribute. Definition at line 892 of file tmpltatr.cpp. 00893 { 00894 SetParamHint( GetWizOp().GetParamHint() ); 00895 // bodgy bit this... 00896 BOOL fOk = GetParamHint().Display( Dialog ); 00897 00898 if( fOk ) 00899 { 00900 fOk = VisibleUserAttribute::Display(Dialog); 00901 } 00902 00903 return fOk; 00904 }
|
|
Definition at line 993 of file tmpltatr.cpp. 00994 { 00995 return m_ParamHint; 00996 }
|
|
Gives the user something to chew on in the "Used Properties" list of the Wizard Properties dialog.
Reimplemented from VisibleUserAttribute. Definition at line 870 of file tmpltatr.cpp. 00871 { 00872 Description = m_Handler.GetUserName(); 00873 return Description; 00874 }
|
|
Definition at line 981 of file tmpltatr.cpp. 00982 { 00983 return m_Handler; 00984 }
|
|
Hides this VisibleTemplateAttribute from the user. Overrides the base class to hide the param hint.
Reimplemented from VisibleUserAttribute. Definition at line 954 of file tmpltatr.cpp. 00955 { 00956 GetParamHint().Hide(); 00957 00958 VisibleUserAttribute::Hide(); 00959 }
|
|
This allows the user to change this VisibleTemplateAttribute.
Reimplemented from VisibleUserAttribute. Definition at line 918 of file tmpltatr.cpp. 00919 { 00920 PORTNOTETRACE("other","TemplateAttribute::Interact - do nothing"); 00921 #ifndef EXCLUDE_FROM_XARALX 00922 ERROR3IF(!((&Dialog)->IS_KIND_OF(TemplateDialog)), "Dialog isn't kind of TemplateDialog"); 00923 00924 TemplateDialog& BetterBeThisDialog = (TemplateDialog&)Dialog; 00925 00926 // if there's a parameter hint, then let them edit the parameter 00927 // we'll blam 'em with an error message if they give us a duplicate 00928 if (IsNew() && !GetWizOp().GetParamHint().IsEmpty()) 00929 { 00930 BetterBeThisDialog.GetParamHintControl().Enable(); 00931 BetterBeThisDialog.GetKeyControl().Enable(); 00932 } 00933 00934 // always let them change the question 00935 BetterBeThisDialog.GetValueControl().Enable(); 00936 #endif 00937 return TRUE; 00938 }
|
|
Definition at line 987 of file tmpltatr.cpp. 00988 { 00989 m_ParamHint = HintToShow; 00990 }
|
|
Definition at line 205 of file visiattr.h. |
|
Definition at line 206 of file visiattr.h. |