//--------------------------------------------------------------------------- void __fastcall TEditorForm::EditorActionsExecute(TBasicAction *Action, bool &Handled) { Handled = true; if (Action == SaveAction) { assert(!FFileName.IsEmpty()); SaveToFile(); if (FOnFileChanged) { FOnFileChanged(this); } EditorMemo->Modified = false; UpdateControls(); } else if (Action == PreferencesAction) { DoPreferencesDialog(pmEditor); } else if (Action == ReloadAction) { Reload(); } else if (Action == FindAction || Action == ReplaceAction) { StartFind(Action == FindAction); } else if (Action == FindNextAction) { if (!FLastFindDialog) { FLastFindDialog = FFindDialog; } Find(); } else if (Action == GoToLineAction) { GoToLine(); } else if (Action == EditRedo) { EditorMemo->Redo(); } else if (Action == HelpAction) { FormHelp(this); } else if (Action == DefaultEncodingAction) { ChangeEncoding(TEncoding::Default); } else if (Action == UTF8EncodingAction) { ChangeEncoding(TEncoding::UTF8); } else { Handled = false; } }
//--------------------------------------------------------------------------- void __fastcall TSynchronizeChecklistDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TFileFindDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TEditMaskDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TCleanupDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TFullSynchronizeDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TGenerateUrlDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TRemoteTransferDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TCustomCommandDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }
//--------------------------------------------------------------------------- void __fastcall TCreateDirectoryDialog::HelpButtonClick(TObject * /*Sender*/) { FormHelp(this); }