EditorPreferences.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //---------------------------------------------------------------------------
  2. #ifndef EditorPreferencesH
  3. #define EditorPreferencesH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "HistoryComboBox.hpp"
  10. //---------------------------------------------------------------------------
  11. class TEditorPreferencesDialog : public TForm
  12. {
  13. __published:
  14. TGroupBox *ExternalEditorGroup;
  15. TCheckBox *ExternalEditorTextCheck;
  16. TCheckBox *SDIExternalEditorCheck;
  17. TGroupBox *EditorGroup2;
  18. TRadioButton *EditorInternalButton;
  19. TRadioButton *EditorExternalButton;
  20. THistoryComboBox *ExternalEditorEdit;
  21. TButton *ExternalEditorBrowseButton;
  22. TGroupBox *MaskGroup;
  23. TLabel *MaskLabel;
  24. THistoryComboBox *MaskEdit;
  25. TButton *OkButton;
  26. TButton *CancelButton;
  27. TButton *HelpButton;
  28. TCheckBox *RememberCheck;
  29. TRadioButton *EditorOpenButton;
  30. TButton *DefaultButton;
  31. void __fastcall ExternalEditorEditExit(TObject *Sender);
  32. void __fastcall ExternalEditorBrowseButtonClick(TObject *Sender);
  33. void __fastcall HelpButtonClick(TObject *Sender);
  34. void __fastcall ControlChange(TObject *Sender);
  35. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  36. void __fastcall MaskEditExit(TObject *Sender);
  37. void __fastcall FormShow(TObject *Sender);
  38. void __fastcall DefaultButtonClick(TObject *Sender);
  39. public:
  40. virtual __fastcall TEditorPreferencesDialog(TComponent * Owner);
  41. void __fastcall Init(TEditorPreferencesMode Mode, bool MayRemote);
  42. bool __fastcall Execute(TEditorData * Editor, bool & Remember);
  43. private:
  44. void __fastcall UpdateControls();
  45. void __fastcall DecideExternalEditorText();
  46. bool FMayRemote;
  47. UnicodeString FSystemExternalEditor;
  48. };
  49. //---------------------------------------------------------------------------
  50. #endif