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. #include "XPThemes.hpp"
  11. //---------------------------------------------------------------------------
  12. class TEditorPreferencesDialog : public TForm
  13. {
  14. __published:
  15. TXPGroupBox *ExternalEditorGroup;
  16. TCheckBox *ExternalEditorTextCheck;
  17. TCheckBox *MDIExternalEditorCheck;
  18. TXPGroupBox *EditorGroup;
  19. TRadioButton *EditorInternalButton;
  20. TRadioButton *EditorExternalButton;
  21. THistoryComboBox *ExternalEditorEdit;
  22. TButton *ExternalEditorBrowseButton;
  23. TXPGroupBox *MaskGroup;
  24. TLabel *Label1;
  25. THistoryComboBox *MaskEdit;
  26. TButton *OkButton;
  27. TButton *CancelButton;
  28. TButton *HelpButton;
  29. void __fastcall ExternalEditorEditChange(TObject *Sender);
  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. public:
  37. __fastcall TEditorPreferencesDialog(TComponent * Owner,
  38. TEditorPreferencesMode Mode);
  39. bool __fastcall Execute(TEditorPreferences * Editor);
  40. private:
  41. TEditorPreferencesMode FMode;
  42. bool FAfterFilenameEditDialog;
  43. void __fastcall UpdateControls();
  44. };
  45. //---------------------------------------------------------------------------
  46. #endif