CreateDirectory.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //----------------------------------------------------------------------------
  2. #ifndef CreateDirectoryH
  3. #define CreateDirectoryH
  4. //----------------------------------------------------------------------------
  5. #include "Rights.h"
  6. #include "RightsExt.h"
  7. #include <System.Classes.hpp>
  8. #include <Vcl.Controls.hpp>
  9. #include <Vcl.ExtCtrls.hpp>
  10. #include <Vcl.Forms.hpp>
  11. #include <Vcl.StdCtrls.hpp>
  12. //----------------------------------------------------------------------------
  13. #include <Bookmarks.h>
  14. #include <GUITools.h>
  15. #include "RightsExt.h"
  16. #include "Rights.h"
  17. //----------------------------------------------------------------------------
  18. class TCreateDirectoryDialog : public TForm
  19. {
  20. __published:
  21. TButton *OKBtn;
  22. TButton *CancelBtn;
  23. TEdit *DirectoryEdit;
  24. TLabel *EditLabel;
  25. TButton *HelpButton;
  26. TPanel *MorePanel;
  27. TGroupBox *AttributesGroup;
  28. TRightsFrame *RightsFrame;
  29. TCheckBox *SetRightsCheck;
  30. TCheckBox *SaveSettingsCheck;
  31. void __fastcall ControlChange(TObject *Sender);
  32. void __fastcall DirectoryEditChange(TObject *Sender);
  33. void __fastcall FormShow(TObject *Sender);
  34. void __fastcall HelpButtonClick(TObject *Sender);
  35. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  36. public:
  37. __fastcall TCreateDirectoryDialog(TComponent* AOwner, int AllowedChanges, bool Remote);
  38. virtual __fastcall ~TCreateDirectoryDialog();
  39. bool __fastcall Execute(UnicodeString & Directory, TRemoteProperties * Properties,
  40. bool & SaveSettings);
  41. protected:
  42. void __fastcall UpdateControls();
  43. INTERFACE_HOOK;
  44. private:
  45. int FAllowedChanges;
  46. };
  47. //----------------------------------------------------------------------------
  48. #endif