Symlink.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //---------------------------------------------------------------------------
  2. #ifndef SymlinkH
  3. #define SymlinkH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. //---------------------------------------------------------------------------
  10. #include "CopyParam.h"
  11. #include "GUITools.h"
  12. //---------------------------------------------------------------------------
  13. class TSymlinkDialog : public TForm
  14. {
  15. __published:
  16. TGroupBox *SymlinkGroup;
  17. TButton *OkButton;
  18. TButton *CancelButton;
  19. TLabel *FileNameLabel;
  20. TEdit *FileNameEdit;
  21. TLabel *Label1;
  22. TEdit *PointToEdit;
  23. TCheckBox *HardLinkCheck;
  24. TButton *HelpButton;
  25. void __fastcall ControlChange(TObject *Sender);
  26. void __fastcall FormShow(TObject *Sender);
  27. void __fastcall HelpButtonClick(TObject *Sender);
  28. private:
  29. bool FAllowHardLink;
  30. bool FEdit;
  31. TOperationSide FSide;
  32. void __fastcall SetFileName(UnicodeString value);
  33. UnicodeString __fastcall GetFileName();
  34. void __fastcall SetPointTo(UnicodeString value);
  35. UnicodeString __fastcall GetPointTo();
  36. void __fastcall SetSymbolicLink(bool value);
  37. bool __fastcall GetSymbolicLink();
  38. void __fastcall SetAllowHardLink(bool value);
  39. void __fastcall SetEdit(bool value);
  40. void __fastcall SetSide(TOperationSide value);
  41. public:
  42. bool __fastcall Execute();
  43. __fastcall TSymlinkDialog(TComponent* Owner);
  44. __property bool AllowHardLink = { read = FAllowHardLink, write = SetAllowHardLink };
  45. __property bool Edit = { read = FEdit, write = SetEdit };
  46. __property UnicodeString FileName = { read = GetFileName, write = SetFileName };
  47. __property UnicodeString PointTo = { read = GetPointTo, write = SetPointTo };
  48. __property TOperationSide Side = { read = FSide, write = SetSide };
  49. __property bool SymbolicLink = { read = GetSymbolicLink, write = SetSymbolicLink };
  50. protected:
  51. void __fastcall UpdateControls();
  52. INTERFACE_HOOK
  53. };
  54. //---------------------------------------------------------------------------
  55. #endif