
Public Member Functions | |
| virtual IShParameterComponent *MCCOMAPI | GetThisParameterComponent ()=0 |
| virtual TMCCommandBindingContextList *MCCOMAPI | GetCommandBindingContexts ()=0 |
To implement a prefs component:
Now for the component that wants to store its preferences, declare a 'CINF' resource and put the ID of the prefs component in its fPrefsCompID field. Example:
/// resource 'CINF' (R_PathAnimationMethod, "Motion Path")
/// {
/// 'path',
/// kAnyPlatform,
/// kAnyAppKind,
/// kAnyAppMode,
/// };
/// Now in the code of component that wants to access its preferences, you can call GetMyPrefsComponent (implemented by TBasicDataExchanger). Example:
IShParameterComponent* myPrefsComp= GetMyPrefsComponent(); if (MCVerify(myPrefsComp)) { TMCPoint tbPos= kDefaultMPToolbarPos; myPrefsComp->GetParameter(kToolBarParamID, &tbPos); //... }
| virtual IShParameterComponent* MCCOMAPI IShPrefsComponent::GetThisParameterComponent | ( | ) | [pure virtual] |
IShPrefsComponent is always an IShParameterComponent
| virtual TMCCommandBindingContextList* MCCOMAPI IShPrefsComponent::GetCommandBindingContexts | ( | ) | [pure virtual] |
Returns the binding contexts of the external component
1.5.3