| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- //----------------------------------------------------------------------------
- #ifndef PropertiesH
- #define PropertiesH
- //----------------------------------------------------------------------------
- #include <vcl\System.hpp>
- #include <vcl\Windows.hpp>
- #include <vcl\SysUtils.hpp>
- #include <vcl\Classes.hpp>
- #include <vcl\Graphics.hpp>
- #include <vcl\StdCtrls.hpp>
- #include <vcl\Forms.hpp>
- #include <vcl\Controls.hpp>
- #include <vcl\Buttons.hpp>
- #include <vcl\ExtCtrls.hpp>
- #include <ComCtrls.hpp>
- #include <PathLabel.hpp>
- #include "Rights.h"
- #include "RightsExt.h"
- //----------------------------------------------------------------------------
- class TTerminal;
- struct TCalculateSizeStats;
- //----------------------------------------------------------------------------
- class TPropertiesDialog : public TForm
- {
- __published:
- TButton *OkButton;
- TButton *CancelButton;
- TPageControl *PageControl;
- TTabSheet *CommonSheet;
- TImage *FilesIconImage;
- TBevel *Bevel1;
- TLabel *FileLabel;
- TLabel *Label1;
- TPathLabel *LocationLabel;
- TLabel *Label2;
- TLabel *SizeLabel;
- TLabel *LinksToLabelLabel;
- TPathLabel *LinksToLabel;
- TBevel *Bevel2;
- TLabel *Label3;
- TBevel *Bevel3;
- TLabel *Label4;
- TComboBox *GroupComboBox;
- TLabel *Label5;
- TComboBox *OwnerComboBox;
- TImage *FileIconImage;
- TBevel *RecursiveBevel;
- TCheckBox *RecursiveCheck;
- TButton *CalculateSizeButton;
- TRightsExtFrame *RightsFrame;
- TButton *HelpButton;
- void __fastcall ControlChange(TObject *Sender);
- void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
- void __fastcall CalculateSizeButtonClick(TObject *Sender);
- void __fastcall HelpButtonClick(TObject *Sender);
-
- private:
- int FAllowedChanges;
- TStrings * FFileList;
- TRemoteProperties FOrigProperties;
- bool FGroupsSet;
- bool FUsersSet;
- TImageList * FShellImageList;
- bool FAllowCalculateStats;
- bool FStatsNotCalculated;
- TTerminal * FTerminal;
- TNotifyEvent FPrevTerminalClose;
- void __fastcall SetDirectory(const AnsiString value);
- AnsiString __fastcall GetDirectory();
- TRemoteProperties __fastcall GetFileProperties();
- TStrings * __fastcall GetGroupList();
- TStrings * __fastcall GetUserList();
- bool __fastcall GetMultiple();
- void __fastcall SetAllowedChanges(int value);
- void __fastcall SetFileList(TStrings * value);
- void __fastcall SetFileProperties(TRemoteProperties value);
- void __fastcall SetGroupList(TStrings * value);
- void __fastcall SetUserList(TStrings * value);
- void __fastcall TerminalClose(TObject * /*Sender*/);
- protected:
- void __fastcall LoadInfo();
- void __fastcall UpdateControls();
- void __fastcall LoadStats(__int64 FilesSize, const TCalculateSizeStats & Stats);
- __property bool Multiple = { read = GetMultiple };
- public:
- virtual __fastcall ~TPropertiesDialog();
- bool __fastcall Execute();
- virtual __fastcall TPropertiesDialog(TComponent * AOwner);
-
- __property int AllowedChanges = { read = FAllowedChanges, write = SetAllowedChanges };
- __property AnsiString Directory = { read = GetDirectory, write = SetDirectory };
- __property TStrings * FileList = { read = FFileList, write = SetFileList };
- __property TRemoteProperties FileProperties = { read = GetFileProperties, write = SetFileProperties };
- __property TStrings * GroupList = { read = GetGroupList, write = SetGroupList };
- __property TStrings * UserList = { read = GetUserList, write = SetUserList };
- __property TTerminal * Terminal = { read = FTerminal, write = FTerminal };
- };
- //----------------------------------------------------------------------------
- #endif
|