//--------------------------------------------------------------------------- void __fastcall TCopyDialog::CopyParamGroupClick(TObject * /*Sender*/) { if (CopyParamGroup->Enabled) { if (DoCopyParamCustomDialog(FCopyParams, FCopyParamAttrs)) { UpdateControls(); } } }
//--------------------------------------------------------------------------- void __fastcall TSynchronizeDialog::CopyParamGroupClick(TObject * /*Sender*/) { // PreserveTime is forced for some settings, but avoid hard-setting it until // user really confirms it on cutom dialog TCopyParamType ACopyParams = CopyParams; if (DoCopyParamCustomDialog(ACopyParams, ActualCopyParamAttrs())) { FCopyParams = ACopyParams; UpdateControls(); } }
//--------------------------------------------------------------------------- bool __fastcall CopyParamListPopupClick(TObject * Sender, TCopyParamType & Param, UnicodeString & Preset, int CopyParamAttrs, bool * SaveSettings) { TComponent * Item = dynamic_cast<TComponent *>(Sender); assert(Item != NULL); assert((Item->Tag >= cpiSaveSettings) && (Item->Tag < GUIConfiguration->CopyParamList->Count)); bool Result; if (Item->Tag == cpiConfigure) { bool MatchedPreset = (GUIConfiguration->CopyParamPreset[Preset] == Param); DoPreferencesDialog(pmPresets); Result = (MatchedPreset && GUIConfiguration->HasCopyParamPreset[Preset]); if (Result) { Param = GUIConfiguration->CopyParamPreset[Preset]; } } else if (Item->Tag == cpiCustom) { Result = DoCopyParamCustomDialog(Param, CopyParamAttrs); } else if (Item->Tag == cpiSaveSettings) { if (ALWAYS_TRUE(SaveSettings != NULL)) { *SaveSettings = !*SaveSettings; } Result = false; } else { Preset = (Item->Tag >= 0) ? GUIConfiguration->CopyParamList->Names[Item->Tag] : UnicodeString(); Param = GUIConfiguration->CopyParamPreset[Preset]; Result = true; } return Result; }