EditorPreferences.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. void __fastcall ExternalEditorEditExit(TObject *Sender);
  31. void __fastcall ExternalEditorBrowseButtonClick(TObject *Sender);
  32. void __fastcall HelpButtonClick(TObject *Sender);
  33. void __fastcall ControlChange(TObject *Sender);
  34. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  35. void __fastcall MaskEditExit(TObject *Sender);
  36. void __fastcall FormShow(TObject *Sender);
  37. public:
  38. virtual __fastcall TEditorPreferencesDialog(TComponent * Owner);
  39. void __fastcall Init(TEditorPreferencesMode Mode, bool MayRemote);
  40. bool __fastcall Execute(TEditorData * Editor, bool & Remember);
  41. private:
  42. void __fastcall UpdateControls();
  43. bool FMayRemote;
  44. };
  45. //---------------------------------------------------------------------------
  46. #endif