#include <attraggl.h>
Inheritance diagram for CommonAppliedAttribute:
Public Member Functions | |
CommonAppliedAttribute (NodeAttribute &AttrInstance) | |
This constructor tries to create a UserInterface in the form of a VisibleUserAttribute so the user can alter the attributes' contents. | |
virtual | ~CommonAppliedAttribute () |
CommonAppliedAttribute (const CommonAppliedAttribute &Other) | |
virtual BOOL | Display (DialogOp &Dialog) |
Displays some information about the applied attribute. | |
virtual void | Hide () |
Hides the information provided by Display(). | |
virtual StringBase & | GetText (StringBase &Description) const |
This text is gonna be stuck in the Used Properties list of the Wizard Properties Dialog (aka TemplateDialog). | |
virtual AttributeIdentifier | GetAttrID () const |
virtual BOOL | ApplyAttribute (Operation &OpToApplyWith) |
Applies the attribute using the given op (slight bodge here). | |
virtual VisibleAttribute * | GetVisibleAttribute () |
Private Member Functions | |
CC_DECLARE_MEMDUMP (CommonAppliedAttribute) | |
Private Attributes | |
VisibleAttribute * | m_pVisibleAttribute |
AttributeIdentifier | m_AttrID |
Definition at line 385 of file attraggl.h.
|
This constructor tries to create a UserInterface in the form of a VisibleUserAttribute so the user can alter the attributes' contents.
Definition at line 1094 of file attraggl.cpp. 01094 : 01095 m_AttrID(AttrInstance.GetAttributeClassID()) 01096 { 01097 m_pVisibleAttribute = AttrInstance.CreateVisibleAttribute(); 01098 }
|
|
Definition at line 1100 of file attraggl.cpp. 01101 { 01102 delete m_pVisibleAttribute; 01103 m_pVisibleAttribute = NULL; 01104 }
|
|
Definition at line 393 of file attraggl.h. 00393 : m_AttrID(NullString) 00394 { TRACE( wxT("CommonAppliedAttribute copy constructor not implemented\n") ); }
|
|
Applies the attribute using the given op (slight bodge here).
Implements AppliedAttribute. Definition at line 1216 of file attraggl.cpp. 01217 { 01218 return TRUE; 01219 }
|
|
|
|
Displays some information about the applied attribute.
Reimplemented from VisibleListItem. Definition at line 1154 of file attraggl.cpp. 01155 { 01156 BOOL Ok = TRUE; 01157 01158 if (m_pVisibleAttribute != NULL) 01159 { 01160 m_pVisibleAttribute->Display(Dialog); 01161 } 01162 else 01163 { 01164 TRACE(_T("CommonAppliedAttribute::Display() : NULL Members")); 01165 Ok = FALSE; 01166 } 01167 01168 return Ok; 01169 }
|
|
Implements AppliedAttribute. Definition at line 405 of file attraggl.h. 00405 { return m_AttrID; }
|
|
This text is gonna be stuck in the Used Properties list of the Wizard Properties Dialog (aka TemplateDialog).
Implements VisibleListItem. Definition at line 1121 of file attraggl.cpp. 01122 { 01123 if (m_pVisibleAttribute != NULL) 01124 { 01125 String_64 AttrDescription; 01126 m_pVisibleAttribute->GetText(AttrDescription); 01127 Description.MakeMsg(_R(IDS_DUPLICATE), &AttrDescription); 01128 } 01129 else 01130 { 01131 String_64 AttrDescription(_R(IDS_ERRORS_UNKNOWN)); 01132 Description.MakeMsg(_R(IDS_DUPLICATE), &AttrDescription); 01133 } 01134 01135 return Description; 01136 }
|
|
Implements AppliedAttribute. Definition at line 407 of file attraggl.h. 00407 { return m_pVisibleAttribute; }
|
|
Hides the information provided by Display().
Reimplemented from VisibleListItem. Definition at line 1187 of file attraggl.cpp. 01188 { 01189 if (m_pVisibleAttribute != NULL) 01190 { 01191 m_pVisibleAttribute->Hide(); 01192 } 01193 else 01194 { 01195 TRACE(_T("CommonAppliedAttribute::Hide() : NULL Members")); 01196 } 01197 }
|
|
Definition at line 412 of file attraggl.h. |
|
Definition at line 411 of file attraggl.h. |