VisibleWizOpStyle Class Reference

Provides the user with a style to play with. They can appear in a list control via this class. More...

Inheritance diagram for VisibleWizOpStyle:

AvailableProperty VisibleListItem UserInterface List of all members.

Public Member Functions

 VisibleWizOpStyle (const WizOpStyle &Style)
virtual BOOL Display (DialogOp &Dialog)
virtual BOOL Interact (DialogOp &Dialog)
virtual void Hide ()
virtual StringBaseGetText (StringBase &Description) const
virtual AppliedAttributeCreateUsedProperty ()
virtual BOOL CanBecomeStyle () const

Private Member Functions

 CC_DECLARE_MEMDUMP (VisibleWizOpStyle)

Private Attributes

const WizOpStylem_Style
EditableText m_Question
EditableText m_Param
VisibleLabel m_ParamHint

Detailed Description

Provides the user with a style to play with. They can appear in a list control via this class.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/96

Definition at line 262 of file tmpltdlg.cpp.


Constructor & Destructor Documentation

VisibleWizOpStyle::VisibleWizOpStyle const WizOpStyle Style  ) 
 

Definition at line 1077 of file tmpltdlg.cpp.

01077                                                             :
01078     m_Style(Style)
01079 {
01080     m_ParamHint = Style.GetWizOp().GetParamHint();
01081     m_Param     = Style.GetParam();
01082     m_Question  = Style.GetQuestion();
01083 }


Member Function Documentation

virtual BOOL VisibleWizOpStyle::CanBecomeStyle  )  const [inline, virtual]
 

Implements AvailableProperty.

Definition at line 275 of file tmpltdlg.cpp.

00275 {   return FALSE;   }

VisibleWizOpStyle::CC_DECLARE_MEMDUMP VisibleWizOpStyle   )  [private]
 

AppliedAttribute * VisibleWizOpStyle::CreateUsedProperty  )  [virtual]
 

Implements AvailableProperty.

Definition at line 1134 of file tmpltdlg.cpp.

01135 {
01136     StyleReferenceAttribute NewReference(m_Style);
01137 
01138     AppliedAttribute* pNewVisibleAttr = new SingletonAppliedAttribute(NewReference);
01139 
01140     return pNewVisibleAttr;
01141 }

BOOL VisibleWizOpStyle::Display DialogOp Dialog  )  [virtual]
 

Reimplemented from VisibleListItem.

Definition at line 1086 of file tmpltdlg.cpp.

01087 {
01088     BOOL Ok = TRUE;
01089 
01090     Ok = m_Param.Display(Dialog);
01091 
01092     if (Ok)
01093     {
01094         Ok = m_Question.Display(Dialog);
01095     }
01096 
01097     if (Ok)
01098     {
01099         Ok = m_ParamHint.Display(Dialog);
01100     }
01101 
01102     return Ok;
01103 }

virtual StringBase& VisibleWizOpStyle::GetText StringBase Description  )  const [inline, virtual]
 

Implements VisibleListItem.

Definition at line 272 of file tmpltdlg.cpp.

00272 {   return (Description = m_Style.GetName());   }

void VisibleWizOpStyle::Hide  )  [virtual]
 

Reimplemented from VisibleListItem.

Definition at line 1127 of file tmpltdlg.cpp.

01128 {
01129     m_Param.Hide();
01130     m_Question.Hide();
01131     m_ParamHint.Hide();
01132 }

BOOL VisibleWizOpStyle::Interact DialogOp Dialog  )  [virtual]
 

Reimplemented from VisibleListItem.

Definition at line 1105 of file tmpltdlg.cpp.

01106 {
01107     ERROR3IF(!((&Dialog)->IS_KIND_OF(TemplateDialog)), "Dialog isn't kind of TemplateDialog");
01108 
01109     TemplateDialog& BetterBeThisDialog = (TemplateDialog&)Dialog;
01110 
01111     BOOL Ok = TRUE;
01112 
01113     Ok = m_Param.Display(BetterBeThisDialog.GetKeyControl());
01114     if (Ok)
01115     {
01116         Ok = m_Question.Display(BetterBeThisDialog.GetValueControl());
01117     }
01118     if (Ok)
01119     {
01120         Ok = m_ParamHint.Display(Dialog);
01121     }
01122 
01123     return Ok;
01124 }


Member Data Documentation

EditableText VisibleWizOpStyle::m_Param [private]
 

Definition at line 280 of file tmpltdlg.cpp.

VisibleLabel VisibleWizOpStyle::m_ParamHint [private]
 

Definition at line 281 of file tmpltdlg.cpp.

EditableText VisibleWizOpStyle::m_Question [private]
 

Definition at line 279 of file tmpltdlg.cpp.

const WizOpStyle& VisibleWizOpStyle::m_Style [private]
 

Definition at line 278 of file tmpltdlg.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:03:05 2007 for Camelot by  doxygen 1.4.4