1
0

EditorPreferences.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #include <GUITools.h>
  12. //---------------------------------------------------------------------------
  13. class TEditorPreferencesDialog : public TForm
  14. {
  15. __published:
  16. TGroupBox *ExternalEditorGroup;
  17. TCheckBox *ExternalEditorTextCheck;
  18. TCheckBox *SDIExternalEditorCheck;
  19. TGroupBox *EditorGroup2;
  20. TRadioButton *EditorInternalButton;
  21. TRadioButton *EditorExternalButton;
  22. THistoryComboBox *ExternalEditorEdit;
  23. TButton *ExternalEditorBrowseButton;
  24. TGroupBox *MaskGroup;
  25. TLabel *MaskLabel;
  26. THistoryComboBox *MaskEdit;
  27. TButton *OkButton;
  28. TButton *CancelButton;
  29. TButton *HelpButton;
  30. TCheckBox *RememberCheck;
  31. TRadioButton *EditorOpenButton;
  32. TButton *DefaultButton;
  33. void __fastcall ExternalEditorEditExit(TObject *Sender);
  34. void __fastcall ExternalEditorBrowseButtonClick(TObject *Sender);
  35. void __fastcall HelpButtonClick(TObject *Sender);
  36. void __fastcall ControlChange(TObject *Sender);
  37. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  38. void __fastcall MaskEditExit(TObject *Sender);
  39. void __fastcall FormShow(TObject *Sender);
  40. void __fastcall DefaultButtonClick(TObject *Sender);
  41. public:
  42. virtual __fastcall TEditorPreferencesDialog(TComponent * Owner);
  43. void __fastcall Init(TEditorPreferencesMode Mode, bool MayRemote);
  44. bool __fastcall Execute(TEditorData * Editor, bool & Remember);
  45. private:
  46. void __fastcall UpdateControls();
  47. void __fastcall DecideExternalEditorText();
  48. bool FMayRemote;
  49. UnicodeString FSystemExternalEditor;
  50. INTERFACE_HOOK;
  51. };
  52. //---------------------------------------------------------------------------
  53. #endif