#include <biasgdgt.h>
Definition at line 147 of file biasgdgt.h.
|
Definition at line 259 of file biasgdgt.h. 00259 { eNumberOfPresets = 5 };
|
|
Definition at line 179 of file biasgdgt.cpp. 00180 : pOwningBar_m( 0 ), 00181 : GadgetID_m( 0 ), 00182 BubbleID_m( 0 ), 00183 StatusID_m( 0 ), 00184 pDialog_m( 0 ) 00185 { 00186 useFillProfile = FALSE; 00187 useTranspFillProfile = FALSE; 00188 00189 StartColour = NULL; 00190 EndColour = NULL; 00191 EndColour2 = NULL; 00192 EndColour3 = NULL; 00193 FillEffect = NULL; 00194 StartTransp = NULL; 00195 EndTransp = NULL; 00196 EndTransp2 = NULL; 00197 EndTransp3 = NULL; 00198 }
|
|
Definition at line 220 of file biasgdgt.cpp. 00221 { 00222 00223 if (FillEffect) delete (FillEffect); 00224 00225 delete pDialog_m; 00226 00227 }
|
|
|
|
Function : CBiasGainGadget::CloseDialog Author : Mikhail Tatarnikov Purpose : Close the related dialog Returns : void Exceptions: Parameters: None Notes : Definition at line 401 of file biasgdgt.cpp. 00402 { 00403 if( pDialog_m != 0 ) 00404 { 00405 DialogMsg MessageCancel( 0, DIM_CANCEL, GadgetID_m ); 00406 00407 pDialog_m->Message( &MessageCancel ); 00408 } 00409 }
|
|
Function : CBiasGainGadget::DialogHasClosed() Author : Mikhail Tatarnikov Purpose : Handling the dialog closing event Returns : void Exceptions: Parameters: None Notes : Definition at line 443 of file biasgdgt.cpp. 00444 { 00445 delete pDialog_m; 00446 pDialog_m = 0; 00447 00448 // Unpush the gadget. 00449 pOwningDialog_m->SetLongGadgetValue(GadgetID_m, 0); 00450 }
|
|
Function : CBiasGainGadget::DialogHasOpened Author : Mikhail Tatarnikov Purpose : Handling the dialog opening event Returns : void Exceptions: Parameters: None Notes : Definition at line 427 of file biasgdgt.cpp. 00428 { 00429 // Put the gadet into the pushed state. 00430 pOwningDialog_m->SetLongGadgetValue(GadgetID_m, 1); 00431 }
|
|
Function : CBiasGainGadget::Enable Author : Mikhail Tatarnikov Purpose : Enables/disables the gadget. Returns : void Exceptions: Parameters: [in] BOOL Enable - TRUE for enabling, FALSE for disabling. Notes : Definition at line 272 of file biasgdgt.cpp. 00273 { 00274 pOwningDialog_m->EnableGadget(GadgetID_m, Enable); 00275 }
|
|
Function : CBiasGainGadget::FindPresetBiasGain Author : Mikhail Tatarnikov Purpose : Finds a preset index based on the value, or -1 if couldn't find (custom preset). Returns : INT32 - the found preset index. Exceptions: Parameters: [in] CProfileBiasGain const& Value - the preset we'll search for. Notes : Reverse operation for GetPresetBiasGainValue(). Definition at line 310 of file biasgdgt.cpp. 00311 { 00312 CProfileBiasGain preset; 00313 for (INT32 i = 0; i < (INT32)eNumberOfPresets; i++) 00314 { 00315 GetPresetBiasGainValue (i, preset); 00316 if (Value == preset) 00317 return i; // is a preset 00318 } 00319 00320 return -1; // is a custom 00321 }
|
|
Function : CBiasGainGadget::GetCurrentDialogProfile Author : Mikhail Tatarnikov Purpose : Reads the dialog profile value Returns : CProfileBiasGain - the value currently displayed in the dialog. Exceptions: Parameters: None Notes : The linked dialog MUST be open Definition at line 355 of file biasgdgt.cpp. 00356 { 00357 ERROR3IF (!IsDialogOpen (), "The dialogue isn't open - something is seriously wrong!"); 00358 return (pDialog_m->GetCurrentDialogProfile ()); 00359 }
|
|
Function : CBiasGainGadget::GetDialogTitle Author : Mikhail Tatarnikov Purpose : Returns the dialog title Returns : void Exceptions: Parameters: [out] String_256& DlgTitle - the dialog title. Notes : Definition at line 477 of file biasgdgt.cpp. 00478 { 00479 DlgTitle.Load( BubbleID_m ); 00480 }
|
|
Definition at line 214 of file biasgdgt.h. 00214 { return (EndColour); }
|
|
Definition at line 215 of file biasgdgt.h. 00215 { return (EndColour2); }
|
|
Definition at line 216 of file biasgdgt.h. 00216 { return (EndColour3); }
|
|
Definition at line 218 of file biasgdgt.h. 00218 { return (EndTransp); }
|
|
Definition at line 219 of file biasgdgt.h. 00219 { return (EndTransp2); }
|
|
Definition at line 220 of file biasgdgt.h. 00220 { return (EndTransp3); }
|
|
Definition at line 221 of file biasgdgt.h. 00221 { return (FillEffect); }
|
|
Function : CBiasGainGadget::GetGadgetID Author : Mikhail Tatarnikov Purpose : Returns ID of the attached adget Returns : CGadgetID - the attached gadget ID Exceptions: Parameters: None Notes : Definition at line 462 of file biasgdgt.cpp. 00463 { 00464 return GadgetID_m; 00465 }
|
|
Function : CBiasGainGadget::GetPresetBiasGainValue Author : Mikhail Tatarnikov Purpose : Obtains the preset value based on its index Returns : void Exceptions: Parameters: [in] WORD Index - the index of preset to obtain; [out] CProfileBiasGain& Value - preset value for the index. Notes : Reverse operation for FindPresetBiasGain(). Definition at line 290 of file biasgdgt.cpp. 00291 { 00292 // check preconditions 00293 if( Index <= WORD(eNumberOfPresets) ) 00294 { 00295 Value.SetBiasGain( AFp( kBiasPresets_s[ Index ] ), AFp( kGainPresets_s[ Index ] ) ); 00296 } 00297 }
|
|
Definition at line 213 of file biasgdgt.h. 00213 { return (StartColour); }
|
|
Definition at line 217 of file biasgdgt.h. 00217 { return (StartTransp); }
|
|
Definition at line 194 of file biasgdgt.h. 00194 { return (useFillProfile); }
|
|
Definition at line 199 of file biasgdgt.h. 00199 { return (useTranspFillProfile); }
|
|
Function : CBiasGainGadget::Init Author : Mikhail Tatarnikov Purpose : Initializes the gadget Returns : void Exceptions: Parameters: [in] DialogOp* pOwningDialog - the parent dialog; [in] CGadgetID GadgetID - the gadget ID; [in] UINT32 BubbleID - tooltip help string ID; [in] UINT32 StatusID - status bar string ID. Notes : Definition at line 248 of file biasgdgt.cpp. 00249 { 00250 // check preconditions 00251 if( ( pOwningDialog != 0 ) && ( GadgetID != 0 ) && ( BubbleID != 0 ) && ( StatusID != 0 ) ) 00252 { 00253 // set members 00254 pOwningDialog_m = pOwningDialog; 00255 GadgetID_m = GadgetID; 00256 InfobarGadgetID_m = (CGadgetID)-1; 00257 BubbleID_m = BubbleID; 00258 StatusID_m = StatusID; 00259 } 00260 }
|
|
Definition at line 189 of file biasgdgt.h.
|
|
Function : CBiasGainGadget::Message Author : Mikhail Tatarnikov Purpose : Message handling routing Returns : void Exceptions: Parameters: [in] DialogMsg* pMessage - an incoming message; [in] CProfileBiasGain const& BiasGain - Notes : Definition at line 387 of file biasgdgt.cpp.
|
|
Function : CBiasGainGadget::Message Author : Mikhail Tatarnikov Purpose : Message handling routine Returns : void Exceptions: Parameters: [in] DialogMsg* pMessage - a message to handle Notes : Definition at line 371 of file biasgdgt.cpp. 00372 { 00373 Message( pMessage, CProfileBiasGain() ); 00374 }
|
|
|
|
Function : CBiasGainGadget::ReInitialiseDialog Author : Mikhail Tatarnikov Purpose : Updates the dialog with a profile value Returns : void Exceptions: Parameters: [in] CProfileBiasGain* ReInitOn - the new value to display in the dialog; [in] BOOL bMany - Notes : Definition at line 334 of file biasgdgt.cpp. 00335 { 00336 if (/*(ReInitOn != NULL) &&*/ (pDialog_m != NULL)) 00337 { 00338 if ((ReInitOn != NULL) || (bMany == TRUE)) 00339 { 00340 pDialog_m->ReInitialiseDialog (ReInitOn, bMany); 00341 } 00342 } 00343 }
|
|
Definition at line 182 of file biasgdgt.h. 00182 { pDialog_m = pMyDlg; }
|
|
Definition at line 145 of file biasgdgt.cpp. 00146 { 00147 EndColour = NewCol; 00148 }
|
|
|
|
|
|
Definition at line 155 of file biasgdgt.cpp. 00156 { 00157 EndTransp = NewTransp; 00158 }
|
|
|
|
|
|
Definition at line 160 of file biasgdgt.cpp. 00161 { 00162 if (FillEffect) delete (FillEffect); 00163 FillEffect = NewFillEffect; 00164 }
|
|
Definition at line 185 of file biasgdgt.h. 00185 { InfobarGadgetID_m = gadg; }
|
|
Definition at line 140 of file biasgdgt.cpp. 00141 { 00142 StartColour = NewCol; 00143 }
|
|
Definition at line 150 of file biasgdgt.cpp. 00151 { 00152 StartTransp = NewTransp; 00153 }
|
|
Definition at line 192 of file biasgdgt.h. 00192 { useFillProfile = TRUE; }
|
|
Definition at line 197 of file biasgdgt.h. 00197 { useTranspFillProfile = TRUE; }
|
|
Definition at line 238 of file biasgdgt.h. |
|
Definition at line 249 of file biasgdgt.h. |
|
Definition at line 250 of file biasgdgt.h. |
|
Definition at line 251 of file biasgdgt.h. |
|
Definition at line 254 of file biasgdgt.h. |
|
Definition at line 255 of file biasgdgt.h. |
|
Definition at line 256 of file biasgdgt.h. |
|
Definition at line 252 of file biasgdgt.h. |
|
Definition at line 236 of file biasgdgt.h. |
|
Definition at line 237 of file biasgdgt.h. |
|
Definition at line 261 of file biasgdgt.h. |
|
Definition at line 262 of file biasgdgt.h. |
|
Definition at line 260 of file biasgdgt.h. |
|
Definition at line 241 of file biasgdgt.h. |
|
Definition at line 235 of file biasgdgt.h. |
|
Definition at line 248 of file biasgdgt.h. |
|
Definition at line 253 of file biasgdgt.h. |
|
Definition at line 239 of file biasgdgt.h. |
|
Definition at line 243 of file biasgdgt.h. |
|
Definition at line 245 of file biasgdgt.h. |