CustomScpExplorer.h 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. //---------------------------------------------------------------------------
  2. #ifndef CustomScpExplorerH
  3. #define CustomScpExplorerH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <CustomDirView.hpp>
  10. #include <CustomUnixDirView.hpp>
  11. #include <IEListView.hpp>
  12. #include <NortonLikeListView.hpp>
  13. #include <UnixDirView.h>
  14. #include <ComCtrls.hpp>
  15. #include <ExtCtrls.hpp>
  16. #include <ToolWin.hpp>
  17. #include <WinInterface.h>
  18. #include <WinConfiguration.h>
  19. #include <Terminal.h>
  20. #include <Queue.h>
  21. #include "QueueController.h"
  22. #include "UnixDriveView.h"
  23. #include "CustomDriveView.hpp"
  24. #include "TBX.hpp"
  25. #include "TB2Dock.hpp"
  26. #include "TBXExtItems.hpp"
  27. #include "TBXStatusBars.hpp"
  28. #include "TB2Item.hpp"
  29. #include "TB2Toolbar.hpp"
  30. #include "TBXToolPals.hpp"
  31. #include "PngImageList.hpp"
  32. #include "ThemePageControl.h"
  33. #include "PathLabel.hpp"
  34. #include <Vcl.AppEvnts.hpp>
  35. //---------------------------------------------------------------------------
  36. class TProgressForm;
  37. class TSynchronizeProgressForm;
  38. class TTerminalQueue;
  39. class TTerminalQueueStatus;
  40. class TQueueItem;
  41. class TQueueItemProxy;
  42. class TQueueController;
  43. class TSynchronizeController;
  44. class TEditorManager;
  45. class TEditorData;
  46. class TTransferPresetNoteData;
  47. struct TEditedFileData;
  48. class ITaskbarList3;
  49. //---------------------------------------------------------------------------
  50. enum TActionAllowed { aaShortCut, aaUpdate, aaExecute };
  51. enum TActionFlag { afLocal = 1, afRemote = 2, afExplorer = 4 , afCommander = 8 };
  52. enum TExecuteFileBy { efShell = 1, efInternalEditor = 2, efExternalEditor = 3, efDefaultEditor = 100 };
  53. enum TPanelExport { pePath, peFileList, peFullFileList };
  54. enum TPanelExportDestination { pedClipboard, pedCommandLine };
  55. enum TCopyOperationCommandFlag {
  56. cocNone = 0x00, cocShortCutHint = 0x01, cocQueue = 0x02, cocNonQueue = 0x04
  57. };
  58. enum TCustomCommandListType { ccltAll, ccltBoth, ccltNonFile, ccltFile };
  59. //---------------------------------------------------------------------------
  60. class TCustomScpExplorerForm : public TForm
  61. {
  62. __published:
  63. TPanel *RemotePanel;
  64. TTBXStatusBar *RemoteStatusBar;
  65. TUnixDirView *RemoteDirView;
  66. TTBXDock *TopDock;
  67. TListView *QueueView3;
  68. TPanel *QueuePanel;
  69. TSplitter *QueueSplitter;
  70. TTBXToolbar *QueueToolbar;
  71. TTBXDock *QueueDock;
  72. TTBXItem *QueueEnableItem;
  73. TTBXSeparatorItem *TBXSeparatorItem203;
  74. TTBXItem *TBXItem201;
  75. TTBXItem *TBXItem202;
  76. TTBXItem *TBXItem203;
  77. TTBXItem *TBXItem204;
  78. TTBXItem *TBXItem205;
  79. TTBXSeparatorItem *TBXSeparatorItem201;
  80. TTBXItem *TBXItem206;
  81. TTBXItem *TBXItem207;
  82. TTBXSeparatorItem *TBXSeparatorItem202;
  83. TTBXItem *TBXItem208;
  84. TUnixDriveView *RemoteDriveView;
  85. TSplitter *RemotePanelSplitter;
  86. TTBXItem *TBXItem194;
  87. TTBXItem *TBXItem195;
  88. TTBXSubmenuItem *TBXSubmenuItem27;
  89. TTBXItem *TBXItem211;
  90. TTBXItem *TBXItem225;
  91. TTBXItem *TBXItem226;
  92. TTabSheet *TabSheet1;
  93. TThemePageControl *SessionsPageControl;
  94. TPathLabel *QueueLabel;
  95. TTBXSeparatorItem *TBXSeparatorItem57;
  96. TTBXItem *QueueDeleteAllDoneQueueToolbarItem;
  97. TTBXItem *TBXItem173;
  98. TApplicationEvents *ApplicationEvents;
  99. void __fastcall ApplicationMinimize(TObject * Sender);
  100. void __fastcall ApplicationRestore(TObject * Sender);
  101. void __fastcall RemoteDirViewContextPopup(TObject *Sender,
  102. const TPoint &MousePos, bool &Handled);
  103. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  104. void __fastcall RemoteDirViewDisplayProperties(TObject *Sender);
  105. void __fastcall DirViewColumnRightClick(TObject *Sender,
  106. TListColumn *Column, TPoint &Point);
  107. void __fastcall DirViewExecFile(TObject *Sender, TListItem *Item, bool &AllowExec);
  108. void __fastcall ToolBarResize(TObject *Sender);
  109. void __fastcall FileControlDDDragEnter(TObject *Sender,
  110. _di_IDataObject DataObj, int grfKeyState, const TPoint &Point,
  111. int &dwEffect, bool &Accept);
  112. void __fastcall FileControlDDDragLeave(TObject *Sender);
  113. void __fastcall RemoteFileControlDDCreateDragFileList(TObject *Sender,
  114. TFileList *FileList, bool &Created);
  115. void __fastcall RemoteFileControlDDEnd(TObject *Sender);
  116. void __fastcall RemoteFileControlDDCreateDataObject(TObject *Sender,
  117. TDataObject *&DataObject);
  118. void __fastcall RemoteFileControlDDGiveFeedback(TObject *Sender,
  119. int dwEffect, HRESULT &Result);
  120. void __fastcall QueueSplitterCanResize(TObject *Sender, int &NewSize,
  121. bool &Accept);
  122. void __fastcall QueueView3ContextPopup(TObject *Sender, TPoint &MousePos,
  123. bool &Handled);
  124. void __fastcall QueueView3Deletion(TObject *Sender, TListItem *Item);
  125. void __fastcall QueueView3StartDrag(TObject *Sender,
  126. TDragObject *&DragObject);
  127. void __fastcall QueueView3DragOver(TObject *Sender, TObject *Source,
  128. int X, int Y, TDragState State, bool &Accept);
  129. void __fastcall QueueView3DragDrop(TObject *Sender, TObject *Source,
  130. int X, int Y);
  131. void __fastcall QueueView3Enter(TObject *Sender);
  132. void __fastcall QueueView3SelectItem(TObject *Sender, TListItem *Item,
  133. bool Selected);
  134. void __fastcall RemoteFileControlDDFileOperation(TObject * Sender,
  135. int Effect, UnicodeString SourcePath, UnicodeString TargetPath,
  136. bool & DoOperation);
  137. void __fastcall RemoteFileContolDDChooseEffect(TObject * Sender,
  138. int grfKeyState, int & dwEffect);
  139. void __fastcall RemoteFileControlDDDragFileName(TObject * Sender,
  140. TRemoteFile * File, UnicodeString & FileName);
  141. void __fastcall RemoteFileControlDDDragDetect(TObject * Sender,
  142. int grfKeyState, const TPoint & DetectStart, const TPoint & Point,
  143. TDragDetectStatus DragStatus);
  144. void __fastcall RemoteFileControlDDQueryContinueDrag(TObject *Sender,
  145. BOOL FEscapePressed, int grfKeyState, HRESULT &Result);
  146. void __fastcall RemoteDirViewEnter(TObject *Sender);
  147. void __fastcall RemoteDriveViewEnter(TObject *Sender);
  148. void __fastcall DirViewMatchMask(TObject *Sender, UnicodeString FileName,
  149. bool Directory, __int64 Size, TDateTime Modification,
  150. UnicodeString Masks, bool &Matches, bool AllowImplicitMatches);
  151. void __fastcall DirViewGetOverlay(TObject *Sender, TListItem *Item,
  152. WORD &Indexes);
  153. void __fastcall DirViewHistoryChange(TCustomDirView *Sender);
  154. void __fastcall RemoteStatusBarClick(TObject *Sender);
  155. void __fastcall DirViewLoaded(TObject *Sender);
  156. void __fastcall ToolbarGetBaseSize(TTBCustomToolbar * Toolbar, TPoint & ASize);
  157. void __fastcall FormConstrainedResize(TObject * Sender, int & MinWidth,
  158. int &MinHeight, int &MaxWidth, int &MaxHeight);
  159. void __fastcall StatusBarPanelDblClick(TTBXCustomStatusBar * Sender,
  160. TTBXStatusPanel * Panel);
  161. void __fastcall RemotePathComboBoxAdjustImageIndex(
  162. TTBXComboBoxItem * Sender, const UnicodeString AText, int AIndex,
  163. int & ImageIndex);
  164. void __fastcall RemotePathComboBoxDrawItem(TTBXCustomList * Sender,
  165. TCanvas * ACanvas, TRect & ARect, int AIndex, int AHoverIndex,
  166. bool & DrawDefault);
  167. void __fastcall RemotePathComboBoxMeasureWidth(TTBXCustomList * Sender,
  168. TCanvas * ACanvas, int AIndex, int & AWidth);
  169. void __fastcall RemotePathComboBoxItemClick(TObject * Sender);
  170. void __fastcall RemotePathComboBoxCancel(TObject * Sender);
  171. void __fastcall DirViewEditing(TObject *Sender, TListItem *Item,
  172. bool &AllowEdit);
  173. void __fastcall FormShow(TObject *Sender);
  174. void __fastcall SessionsPageControlChange(TObject *Sender);
  175. void __fastcall SessionsPageControlMouseDown(TObject *Sender, TMouseButton Button,
  176. TShiftState Shift, int X, int Y);
  177. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  178. void __fastcall RemoteDirViewRead(TObject *Sender);
  179. void __fastcall DirViewSelectItem(TObject *Sender, TListItem *Item, bool Selected);
  180. void __fastcall SessionsPageControlDragDrop(TObject *Sender, TObject *Source, int X,
  181. int Y);
  182. void __fastcall SessionsPageControlDragOver(TObject *Sender, TObject *Source, int X,
  183. int Y, TDragState State, bool &Accept);
  184. void __fastcall QueueView3Exit(TObject *Sender);
  185. void __fastcall EditMenuItemPopup(TTBCustomItem *Sender, bool FromLink);
  186. void __fastcall DirViewBusy(TObject *Sender, int Busy, bool & Allow);
  187. void __fastcall SessionsPageControlContextPopup(TObject *Sender, TPoint &MousePos, bool &Handled);
  188. void __fastcall DockContextPopup(TObject *Sender, TPoint &MousePos, bool &Handled);
  189. private:
  190. TTerminal * FTerminal;
  191. TTerminalQueue * FQueue;
  192. TTerminalQueueStatus * FQueueStatus;
  193. TCriticalSection * FQueueStatusSection;
  194. bool FQueueStatusInvalidated;
  195. bool FQueueItemInvalidated;
  196. bool FFormRestored;
  197. bool FAutoOperation;
  198. TFileOperationFinishedEvent FOnFileOperationFinished;
  199. bool FForceExecution;
  200. unsigned short FIgnoreNextDialogChar;
  201. TStringList * FErrorList;
  202. HANDLE FDDExtMutex;
  203. UnicodeString FDragFakeDirectory;
  204. TObjectList * FDragFakeMonitors;
  205. TStrings * FDelayedDeletionList;
  206. TTimer * FDelayedDeletionTimer;
  207. TStrings * FDDFileList;
  208. __int64 FDDTotalSize;
  209. std::unique_ptr<ExtException> FDragDropSshTerminate;
  210. HINSTANCE FOle32Library;
  211. HCURSOR FDragMoveCursor;
  212. UnicodeString FDragTempDir;
  213. bool FRefreshLocalDirectory;
  214. bool FRefreshRemoteDirectory;
  215. TListItem * FQueueActedItem;
  216. TQueueController * FQueueController;
  217. int FLastDropEffect;
  218. bool FPendingTempSpaceWarn;
  219. TEditorManager * FEditorManager;
  220. TList * FLocalEditors;
  221. TStrings * FCapturedLog;
  222. bool FDragDropOperation;
  223. UnicodeString FCopyParamDefault;
  224. UnicodeString FCopyParamAutoSelected;
  225. bool FEditingFocusedAdHocCommand;
  226. TList * FDocks;
  227. TSynchronizeController * FSynchronizeController;
  228. UnicodeString FTransferDropDownHint;
  229. int FTransferListHoverIndex;
  230. TColor FSessionColor;
  231. TPngImageList * FSessionColors;
  232. int FNewSessionTabImageIndex;
  233. int FSessionTabImageIndex;
  234. int FSessionColorMaskImageIndex;
  235. ::TTrayIcon * FTrayIcon;
  236. TCustomCommandType FLastCustomCommand;
  237. TFileMasks FDirViewMatchMask;
  238. TTBXPopupMenu * FCustomCommandMenu;
  239. TStrings * FCustomCommandLocalFileList;
  240. TStrings * FCustomCommandRemoteFileList;
  241. ITaskbarList3 * FTaskbarList;
  242. bool FShowing;
  243. int FMaxQueueLength;
  244. TDateTime FSessionsPageControlNewSessionTime;
  245. bool FAppIdle;
  246. typedef std::set<TTBCustomItem *> TItemsWithTextDisplayMode;
  247. TItemsWithTextDisplayMode FItemsWithTextDisplayMode;
  248. HWND FHiddenWindow;
  249. TStrings * FTransferResumeList;
  250. bool FMoveToQueue;
  251. bool FStandaloneEditing;
  252. TFeedSynchronizeError FOnFeedSynchronizeError;
  253. bool FNeedSession;
  254. TTerminal * FFileFindTerminal;
  255. bool __fastcall GetEnableFocusedOperation(TOperationSide Side, int FilesOnly);
  256. bool __fastcall GetEnableSelectedOperation(TOperationSide Side, int FilesOnly);
  257. void __fastcall SetTerminal(TTerminal * value);
  258. void __fastcall SetQueue(TTerminalQueue * value);
  259. void __fastcall TransferListChange(TObject * Sender);
  260. void __fastcall TransferListDrawItem(TTBXCustomList * Sender, TCanvas * ACanvas,
  261. const TRect & ARect, int AIndex, int AHoverIndex, bool & DrawDefault);
  262. void __fastcall CloseInternalEditor(TObject * Sender);
  263. void __fastcall ForceCloseInternalEditor(TObject * Sender);
  264. void __fastcall ForceCloseLocalEditors();
  265. void __fastcall TerminalCaptureLog(const UnicodeString & AddedLine, TCaptureOutputType OutputType);
  266. void __fastcall HistoryItemClick(System::TObject* Sender);
  267. void __fastcall UpdateHistoryMenu(TOperationSide Side, bool Back);
  268. void __fastcall AdHocCustomCommandValidate(const TCustomCommandType & Command);
  269. void __fastcall SetDockAllowDrag(bool value);
  270. void __fastcall QueueSplitterDblClick(TObject * Sender);
  271. void __fastcall AddQueueItem(TTerminalQueue * Queue, TTransferDirection Direction,
  272. TStrings * FileList, const UnicodeString TargetDirectory,
  273. const TGUICopyParamType & CopyParam, int Params);
  274. void __fastcall AddQueueItem(TTerminalQueue * Queue, TQueueItem * QueueItem, TTerminal * Terminal);
  275. void __fastcall ClearTransferSourceSelection(TTransferDirection Direction);
  276. void __fastcall SessionsDDDragOver(int KeyState, const TPoint & Point, int & Effect);
  277. void __fastcall SessionsDDProcessDropped(TObject * Sender, int KeyState, const TPoint & Point, int Effect);
  278. void __fastcall RemoteFileControlDragDropFileOperation(
  279. TObject * Sender, int Effect, UnicodeString TargetPath, bool ForceQueue);
  280. void __fastcall SessionsDDDragEnter(_di_IDataObject DataObj, int KeyState,
  281. const TPoint & Point, int & Effect, bool & Accept);
  282. void __fastcall SessionsDDDragLeave();
  283. void __fastcall QueueDDProcessDropped(TObject * Sender, int KeyState, const TPoint & Point, int Effect);
  284. void __fastcall QueueDDDragEnter(_di_IDataObject DataObj, int KeyState,
  285. const TPoint & Point, int & Effect, bool & Accept);
  286. void __fastcall QueueDDDragLeave();
  287. void __fastcall EnableDDTransferConfirmation(TObject * Sender);
  288. void __fastcall CollectItemsWithTextDisplayMode(TWinControl * Control);
  289. void __fastcall CreateHiddenWindow();
  290. bool __fastcall IsQueueAutoPopup();
  291. void __fastcall UpdateSessionsPageControlHeight();
  292. TDragDropFilesEx * __fastcall CreateDragDropFilesEx();
  293. void __fastcall KeyProcessed(Word & Key, TShiftState Shift);
  294. void __fastcall CheckCustomCommandShortCut(TCustomCommandList * List, Word & Key, Classes::TShiftState Shift, TShortCut KeyShortCut);
  295. bool __fastcall CanPasteToDirViewFromClipBoard();
  296. void __fastcall CMShowingChanged(TMessage & Message);
  297. void __fastcall WMClose(TMessage & Message);
  298. void __fastcall CMDpiChanged(TMessage & Message);
  299. void __fastcall WMDpiChanged(TMessage & Message);
  300. protected:
  301. TOperationSide FCurrentSide;
  302. bool FEverShown;
  303. TControl * FDDTargetControl;
  304. TProgressForm * FProgressForm;
  305. TSynchronizeProgressForm * FSynchronizeProgressForm;
  306. HANDLE FDDExtMapFile;
  307. bool FDDMoveSlipped;
  308. TTimer * FUserActionTimer;
  309. TQueueItemProxy * FPendingQueueActionItem;
  310. TTBXPopupMenu * FHistoryMenu[2][2];
  311. bool FAllowTransferPresetAutoSelect;
  312. TStrings * FNotes;
  313. TTimer * FNoteTimer;
  314. TDateTime FNoteShown;
  315. UnicodeString FNote;
  316. TObject * FNoteData;
  317. UnicodeString FNoteHints;
  318. TNotifyEvent FOnNoteClick;
  319. unsigned int FLockLevel;
  320. unsigned int FLockSuspendLevel;
  321. bool FDisabledOnLockSuspend;
  322. bool FAlternativeDelete;
  323. TDragDropFilesEx * FSessionsDragDropFilesEx;
  324. TDragDropFilesEx * FQueueDragDropFilesEx;
  325. TPoint FLastContextPopupScreenPoint;
  326. bool FRemoteDirViewWasFocused;
  327. bool FDoNotIdleCurrentTerminal;
  328. UnicodeString FFakeFileDropTarget;
  329. virtual bool __fastcall CopyParamDialog(TTransferDirection Direction,
  330. TTransferType Type, bool Temp, TStrings * FileList,
  331. UnicodeString & TargetDirectory, TGUICopyParamType & CopyParam, bool Confirm,
  332. bool DragDrop, int Options);
  333. virtual void __fastcall CopyParamDialogAfter(TTransferDirection Direction, bool Temp, const UnicodeString & TargetDirectory);
  334. virtual bool __fastcall RemoteTransferDialog(TTerminal *& Session,
  335. TStrings * FileList, UnicodeString & Target, UnicodeString & FileMask, bool & DirectCopy,
  336. bool NoConfirmation, bool Move);
  337. virtual void __fastcall CreateParams(TCreateParams & Params);
  338. void __fastcall DeleteFiles(TOperationSide Side, TStrings * FileList, bool Alternative);
  339. bool __fastcall RemoteTransferFiles(TStrings * FileList, bool NoConfirmation,
  340. bool Move, TTerminal * Session);
  341. virtual void __fastcall DoDirViewExecFile(TObject * Sender, TListItem * Item, bool & AllowExec);
  342. virtual TControl * __fastcall GetComponent(Byte Component);
  343. bool __fastcall GetComponentVisible(Byte Component);
  344. virtual Boolean __fastcall GetHasDirView(TOperationSide Side);
  345. DYNAMIC void __fastcall KeyDown(Word & Key, Classes::TShiftState Shift);
  346. virtual void __fastcall RestoreFormParams();
  347. virtual void __fastcall RestoreParams();
  348. virtual void __fastcall SetComponentVisible(Byte Component, bool value);
  349. virtual void __fastcall ComponentShowing(Byte Component, bool value);
  350. virtual void __fastcall FixControlsPlacement();
  351. bool __fastcall SetProperties(TOperationSide Side, TStrings * FileList);
  352. void __fastcall CustomCommand(TStrings * FileList,
  353. const TCustomCommandType & Command, TStrings * ALocalFileList);
  354. void __fastcall RemoteCustomCommand(
  355. TStrings * FileList, const TCustomCommandType & ACommand,
  356. const TCustomCommandData & Data, const UnicodeString & CommandCommand);
  357. void __fastcall LocalCustomCommandPure(
  358. TStrings * FileList, const TCustomCommandType & ACommand, const UnicodeString & Command, TStrings * ALocalFileList,
  359. const TCustomCommandData & Data, bool LocalFileCommand, bool FileListCommand, UnicodeString * POutput);
  360. void __fastcall LocalCustomCommandWithRemoteFiles(
  361. const TCustomCommandType & ACommand, const UnicodeString & Command, const TCustomCommandData & Data,
  362. bool FileListCommand, UnicodeString * POutput);
  363. void __fastcall LocalCustomCommand(TStrings * FileList,
  364. const TCustomCommandType & ACommand, TStrings * ALocalFileList,
  365. const TCustomCommandData & Data, const UnicodeString & CommandCommand);
  366. virtual void __fastcall TerminalChanging();
  367. virtual void __fastcall TerminalChanged();
  368. virtual void __fastcall QueueChanged();
  369. void __fastcall InitStatusBar();
  370. void __fastcall UpdateStatusBar();
  371. virtual void __fastcall UpdateStatusPanelText(TTBXStatusPanel * Panel);
  372. virtual void __fastcall DoOperationFinished(TFileOperation Operation,
  373. TOperationSide Side, bool Temp, const UnicodeString & FileName, bool Success,
  374. TOnceDoneOperation & OnceDoneOperation);
  375. virtual void __fastcall DoOpenDirectoryDialog(TOpenDirectoryMode Mode, TOperationSide Side);
  376. virtual void __fastcall FileOperationProgress(TFileOperationProgressType & ProgressData);
  377. void __fastcall OperationComplete(const TDateTime & StartTime);
  378. void __fastcall ExecutedFileChanged(const UnicodeString FileName,
  379. TEditedFileData * Data, HANDLE UploadCompleteEvent);
  380. void __fastcall ExecutedFileReload(const UnicodeString FileName,
  381. const TEditedFileData * Data);
  382. void __fastcall ExecutedFileEarlyClosed(const TEditedFileData * Data,
  383. bool & KeepOpen);
  384. void __fastcall ExecutedFileUploadComplete(TObject * Sender);
  385. void __fastcall CMDialogChar(TMessage & AMessage);
  386. inline void __fastcall WMAppCommand(TMessage & Message);
  387. inline void __fastcall WMSysCommand(TMessage & Message);
  388. void __fastcall WMQueryEndSession(TMessage & Message);
  389. void __fastcall WMEndSession(TWMEndSession & Message);
  390. #ifdef _DEBUG
  391. inline void __fastcall WMWindowPosChanged(TWMWindowPosMsg & Message);
  392. #endif
  393. void __fastcall WMCopyData(TMessage & Message);
  394. virtual void __fastcall SysResizing(unsigned int Cmd);
  395. DYNAMIC void __fastcall DoShow();
  396. TStrings * __fastcall CreateVisitedDirectories(TOperationSide Side);
  397. void __fastcall HandleErrorList(TStringList *& ErrorList);
  398. void __fastcall TerminalSynchronizeDirectory(const UnicodeString LocalDirectory,
  399. const UnicodeString RemoteDirectory, bool & Continue, bool Collect);
  400. void __fastcall DoSynchronize(TSynchronizeController * Sender,
  401. const UnicodeString LocalDirectory, const UnicodeString RemoteDirectory,
  402. const TCopyParamType & CopyParam, const TSynchronizeParamType & Params,
  403. TSynchronizeChecklist ** Checklist, TSynchronizeOptions * Options, bool Full);
  404. void __fastcall DoSynchronizeInvalid(TSynchronizeController * Sender,
  405. const UnicodeString Directory, const UnicodeString ErrorStr);
  406. void __fastcall DoSynchronizeTooManyDirectories(TSynchronizeController * Sender,
  407. int & MaxDirectories);
  408. void __fastcall Synchronize(const UnicodeString LocalDirectory,
  409. const UnicodeString RemoteDirectory, TSynchronizeMode Mode,
  410. const TCopyParamType & CopyParam, int Params, TSynchronizeChecklist ** Checklist,
  411. TSynchronizeOptions * Options);
  412. void __fastcall SynchronizeSessionLog(const UnicodeString & Message);
  413. void __fastcall GetSynchronizeOptions(int Params, TSynchronizeOptions & Options);
  414. void __fastcall SynchronizeInNewWindow(const TSynchronizeParamType & Params, const TCopyParamType * CopyParams);
  415. bool __fastcall SynchronizeAllowSelectedOnly();
  416. virtual void __fastcall BatchStart(void *& Storage);
  417. virtual void __fastcall BatchEnd(void * Storage);
  418. bool __fastcall ExecuteFileOperation(TFileOperation Operation, TOperationSide Side,
  419. TStrings * FileList, bool NoConfirmation, void * Param);
  420. virtual bool __fastcall DDGetTarget(UnicodeString & Directory,
  421. bool & ForceQueue, UnicodeString & CounterName);
  422. virtual void __fastcall DDFakeFileInitDrag(TFileList * FileList, bool & Created);
  423. void __fastcall DDFakeCreated(TObject * Sender, const UnicodeString FileName);
  424. virtual void __fastcall SideEnter(TOperationSide Side);
  425. virtual TOperationSide __fastcall GetSide(TOperationSide Side);
  426. TStrings * __fastcall PanelExport(TOperationSide Side, TPanelExport Export);
  427. virtual void __fastcall PanelExportStore(TOperationSide Side,
  428. TPanelExport Export, TPanelExportDestination Destination,
  429. TStrings * ExportData);
  430. void __fastcall GenerateUrl(TStrings * Paths);
  431. void __fastcall QueueListUpdate(TTerminalQueue * Queue);
  432. void __fastcall QueueItemUpdate(TTerminalQueue * Queue, TQueueItem * Item);
  433. void __fastcall UpdateQueueStatus(bool QueueChanging);
  434. void __fastcall RefreshQueueItems();
  435. virtual int __fastcall GetStaticComponentsHeight();
  436. void __fastcall FillQueueViewItem(TListItem * Item,
  437. TQueueItemProxy * QueueItem, bool Detail);
  438. void __fastcall QueueViewDeleteItem(int Index);
  439. void __fastcall UserActionTimer(TObject * Sender);
  440. void __fastcall UpdateQueueView();
  441. bool __fastcall CanCloseQueue();
  442. virtual bool __fastcall IsFileControl(TObject * Control, TOperationSide Side);
  443. virtual void __fastcall ReloadLocalDirectory(const UnicodeString Directory = L"");
  444. virtual bool __fastcall PanelOperation(TOperationSide Side, bool DragDrop);
  445. void __fastcall DoWarnLackOfTempSpace(const UnicodeString Path,
  446. __int64 RequiredSpace, bool & Continue);
  447. void __fastcall AddDelayedDirectoryDeletion(const UnicodeString TempDir, int SecDelay);
  448. void __fastcall DoDelayedDeletion(TObject * Sender);
  449. TDragDropFilesEx * __fastcall DragDropFiles(TObject * Sender);
  450. void __fastcall RemoteFileControlDDTargetDrop();
  451. bool __fastcall RemoteFileControlFileOperation(TObject * Sender,
  452. TFileOperation Operation, bool NoConfirmation, void * Param);
  453. void __fastcall DDDownload(TStrings * FilesToCopy,
  454. const UnicodeString TargetDir, const TCopyParamType * CopyParam, int Params);
  455. bool __fastcall EnsureCommandSessionFallback(TFSCapability Capability);
  456. bool __fastcall CommandSessionFallback();
  457. void __fastcall FileTerminalRemoved(const UnicodeString FileName,
  458. TEditedFileData * Data, TObject * Token, void * Arg);
  459. void __fastcall FileConfigurationChanged(const UnicodeString FileName,
  460. TEditedFileData * Data, TObject * Token, void * Arg);
  461. void __fastcall CustomExecuteFile(TOperationSide Side,
  462. TExecuteFileBy ExecuteFileBy, UnicodeString FileName, UnicodeString OriginalFileName,
  463. const TEditorData * ExternalEditor, UnicodeString LocalRootDirectory,
  464. UnicodeString RemoteDirectory);
  465. void __fastcall ExecuteFile(TOperationSide Side,
  466. TExecuteFileBy ExecuteFileBy, const TEditorData * ExternalEditor,
  467. UnicodeString FullFileName, TObject * Object,
  468. const TFileMasks::TParams & MaskParams);
  469. bool __fastcall RemoteExecuteForceText(TExecuteFileBy ExecuteFileBy,
  470. const TEditorData * ExternalEditor);
  471. void __fastcall ExecuteFileNormalize(TExecuteFileBy & ExecuteFileBy,
  472. const TEditorData *& ExternalEditor, const UnicodeString & FileName,
  473. bool Local, const TFileMasks::TParams & MaskParams);
  474. void __fastcall ExecuteRemoteFile(
  475. const UnicodeString & FullFileName, TRemoteFile * File, TExecuteFileBy ExecuteFileBy);
  476. void __fastcall TemporaryFileCopyParam(TCopyParamType & CopyParam);
  477. void __fastcall TemporaryDirectoryForRemoteFiles(
  478. UnicodeString RemoteDirectory, TCopyParamType CopyParam,
  479. UnicodeString & Result, UnicodeString & RootDirectory);
  480. void __fastcall TemporarilyDownloadFiles(TStrings * FileList, bool ForceText,
  481. UnicodeString & RootTempDir, UnicodeString & TempDir, bool AllFiles, bool GetTargetNames,
  482. bool AutoOperation);
  483. void __fastcall LocalEditorClosed(TObject * Sender, bool Forced);
  484. TTBXPopupMenu * __fastcall HistoryMenu(TOperationSide Side, bool Back);
  485. UnicodeString __fastcall FileStatusBarText(const TStatusFileInfo & FileInfo, TOperationSide Side);
  486. void __fastcall UpdateFileStatusBar(TTBXStatusBar * StatusBar,
  487. const TStatusFileInfo & FileInfo, TOperationSide Side);
  488. void __fastcall UpdateFileStatusExtendedPanels(
  489. TTBXStatusBar * StatusBar, const TStatusFileInfo & FileInfo);
  490. void __fastcall FileStatusBarPanelClick(TTBXStatusPanel * Panel, TOperationSide Side);
  491. virtual void __fastcall DoDirViewLoaded(TCustomDirView * Sender);
  492. virtual void __fastcall UpdateControls();
  493. void __fastcall UpdateTransferList();
  494. void __fastcall UpdateTransferLabel();
  495. void __fastcall StartUpdates();
  496. void __fastcall TransferPresetAutoSelect();
  497. virtual void __fastcall GetTransferPresetAutoSelectData(TCopyParamRuleData & Data);
  498. inline bool __fastcall CustomCommandRemoteAllowed();
  499. void __fastcall CustomCommandMenu(
  500. TAction * Action, TStrings * LocalFileList, TStrings * RemoteFileList);
  501. void __fastcall LoadToolbarsLayoutStr(UnicodeString LayoutStr, UnicodeString ButtonsStr);
  502. UnicodeString __fastcall GetToolbarItemName(TTBCustomItem * Item);
  503. UnicodeString __fastcall GetToolbarsLayoutStr();
  504. UnicodeString __fastcall GetToolbarsButtonsStr();
  505. virtual void __fastcall Dispatch(void * Message);
  506. void __fastcall PostComponentHide(Byte Component);
  507. void __fastcall GetSpaceAvailable(const UnicodeString Path,
  508. TSpaceAvailable & ASpaceAvailable, bool & Close);
  509. void __fastcall CalculateSize(TStrings * FileList, __int64 & Size,
  510. TCalculateSizeStats & Stats, bool & Close);
  511. void __fastcall CalculateChecksum(const UnicodeString & Alg, TStrings * FileList,
  512. TCalculatedChecksumEvent OnCalculatedChecksum, bool & Close);
  513. void __fastcall UpdateCustomCommandsToolbar();
  514. virtual void __fastcall UpdateActions();
  515. void __fastcall SetSessionColor(TColor value);
  516. void __fastcall NoteTimer(TObject * Sender);
  517. void __fastcall AddNote(UnicodeString Note, bool UpdateNow = true);
  518. void __fastcall PostNote(UnicodeString Note, unsigned int Seconds,
  519. TNotifyEvent OnNoteClick, TObject * NoteData);
  520. bool __fastcall CancelNote(bool Force);
  521. void __fastcall UpdatesChecked();
  522. void __fastcall UpdatesNoteClicked(TObject * Sender);
  523. void __fastcall TransferPresetNoteClicked(TObject * Sender);
  524. void __fastcall TransferPresetNoteMessage(TTransferPresetNoteData * NoteData,
  525. bool AllowNeverAskAgain);
  526. void __fastcall UpdateTrayIcon();
  527. void __fastcall TrayIconClick(TObject * Sender);
  528. void __fastcall Notify(TTerminal * Terminal, UnicodeString Message,
  529. TQueryType Type, bool Important = false, TNotifyEvent OnClick = NULL,
  530. TObject * UserData = NULL, Exception * E = NULL);
  531. virtual void __fastcall UpdateSessionData(TSessionData * Data);
  532. virtual void __fastcall UpdateRemotePathComboBox(bool TextOnly);
  533. virtual void __fastcall ToolbarItemResize(TTBXCustomDropDownItem * Item, int Width);
  534. virtual void __fastcall CreateWnd();
  535. virtual void __fastcall DestroyWnd();
  536. virtual bool __fastcall OpenBookmark(UnicodeString Local, UnicodeString Remote);
  537. void __fastcall DoFindFiles(TTerminal * Terminal, UnicodeString Directory, const TFileMasks & FileMask,
  538. TFileFoundEvent OnFileFound, TFindingFileEvent OnFindingFile);
  539. virtual void __fastcall DoFocusRemotePath(TTerminal * Terminal, const UnicodeString & Path);
  540. bool __fastcall CanOperateOnFoundFiles(TTerminal * ATerminal);
  541. void __fastcall DoOperationOnFoundFiles(
  542. TFileOperation Operation, TTerminal * ATerminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  543. void __fastcall DoDeleteFoundFiles(TTerminal * Terminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  544. void __fastcall DoDownloadFoundFiles(TTerminal * ATerminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  545. void __fastcall DoEditFoundFiles(TTerminal * ATerminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  546. bool __fastcall ExecuteFileOperation(TFileOperation Operation, TOperationSide Side,
  547. bool OnFocused, bool NoConfirmation = false, void * Param = NULL);
  548. void __fastcall UpdateCopyParamCounters(const TCopyParamType & CopyParam);
  549. int __fastcall AddSessionColor(TColor Color);
  550. void __fastcall UpdateSessionTab(TTabSheet * TabSheet);
  551. void __fastcall UpdateNewSessionTab();
  552. void __fastcall AddFixedSessionImages();
  553. int __fastcall AddFixedSessionImage(int GlyphsSourceIndex);
  554. TObjectList * __fastcall DoCollectWorkspace();
  555. void __fastcall DoSaveWorkspace(const UnicodeString & Name,
  556. TObjectList * DataList, bool SavePasswords);
  557. UnicodeString __fastcall WorkspaceName();
  558. virtual bool __fastcall EligibleForImageDisplayMode(TTBCustomItem * Item);
  559. virtual bool __fastcall UpdateToolbarDisplayMode();
  560. virtual void __fastcall QueueLabelUpdateStatus();
  561. void __fastcall EditorAutoConfig();
  562. void __fastcall DirViewContextPopupDefaultItem(
  563. TOperationSide Side, TTBXCustomItem * Item, TDoubleClickAction DoubleClickAction);
  564. void __fastcall DirViewContextPopup(
  565. TOperationSide Side, Byte PopupComponent, const TPoint & MousePos);
  566. bool __fastcall CommandLineFromAnotherInstance(const UnicodeString & CommandLine);
  567. bool __fastcall CanCommandLineFromAnotherInstance();
  568. void __fastcall SetQueueProgress();
  569. void __fastcall UpdateQueueLabel();
  570. void __fastcall SetTaskbarListProgressState(TBPFLAG Flags);
  571. void __fastcall SetTaskbarListProgressValue(TFileOperationProgressType * ProgressData);
  572. TTerminal * __fastcall GetSessionTabTerminal(TTabSheet * TabSheet);
  573. bool __fastcall SessionTabSwitched();
  574. void __fastcall RestoreApp();
  575. void __fastcall GoToQueue();
  576. virtual UnicodeString __fastcall DefaultDownloadTargetDirectory() = 0;
  577. void __fastcall LockFiles(TStrings * FileList, bool Lock);
  578. void __fastcall SaveInternalEditor(
  579. const UnicodeString FileName, TEditedFileData * Data, TObject * Token,
  580. void * Arg);
  581. void __fastcall SaveAllInternalEditors(TObject * Sender);
  582. void __fastcall InternalEditorModified(
  583. const UnicodeString FileName, TEditedFileData * Data, TObject * Token,
  584. void * Arg);
  585. void __fastcall AnyInternalEditorModified(TObject * Sender, bool & Modified);
  586. virtual void __fastcall StartingDisconnected();
  587. void __fastcall DoTerminalListChanged(bool Force);
  588. void __fastcall NeedSession(bool ReloadSessions);
  589. bool __fastcall DraggingAllFilesFromDirView(TOperationSide Side, TStrings * FileList);
  590. bool __fastcall SelectedAllFilesInDirView(TCustomDirView * DView);
  591. TSessionData * __fastcall SessionDataForCode();
  592. void __fastcall RefreshPanel(const UnicodeString & Session, const UnicodeString & Path);
  593. DYNAMIC void __fastcall ChangeScale(int M, int D);
  594. virtual void __fastcall UpdateImages();
  595. void __fastcall UpdatePixelsPerInchMainWindowCounter();
  596. void __fastcall CopyPopup(TControl * DestControl, TControl * SourceControl);
  597. public:
  598. virtual __fastcall ~TCustomScpExplorerForm();
  599. void __fastcall AddBookmark(TOperationSide Side);
  600. virtual void __fastcall AddEditLink(TOperationSide Side, bool Add);
  601. bool __fastcall CanAddEditLink(TOperationSide Side);
  602. bool __fastcall LinkFocused();
  603. virtual Boolean __fastcall AllowedAction(TAction * Action, TActionAllowed Allowed);
  604. bool __fastcall IsBusy();
  605. virtual void __fastcall ConfigurationChanged();
  606. void __fastcall CreateDirectory(TOperationSide Side);
  607. void __fastcall ExecuteFileOperationCommand(TFileOperation Operation, TOperationSide Side,
  608. bool OnFocused, bool NoConfirmation = false, void * Param = NULL);
  609. void __fastcall ExecuteCopyOperationCommand(
  610. TOperationSide Side, bool OnFocused, unsigned int Flags);
  611. void __fastcall AdHocCustomCommand(bool OnFocused);
  612. virtual TCustomDirView * __fastcall DirView(TOperationSide Side);
  613. virtual bool __fastcall DirViewEnabled(TOperationSide Side);
  614. virtual void __fastcall ChangePath(TOperationSide Side) = 0;
  615. virtual void __fastcall StoreParams();
  616. int __fastcall CustomCommandState(const TCustomCommandType & Command, bool OnFocused, TCustomCommandListType ListType);
  617. bool __fastcall GetLastCustomCommand(bool OnFocused,
  618. TCustomCommandType & CustomCommand, int & State);
  619. void __fastcall LastCustomCommand(bool OnFocused);
  620. void __fastcall BothCustomCommand(const TCustomCommandType & Command);
  621. void __fastcall LockWindow(bool Force = false);
  622. void __fastcall UnlockWindow();
  623. void __fastcall SuspendWindowLock();
  624. void __fastcall ResumeWindowLock();
  625. void __fastcall NewSession(bool FromSite, const UnicodeString & SessionUrl = L"");
  626. void __fastcall DuplicateSession();
  627. void __fastcall CloseSession();
  628. void __fastcall OpenDirectory(TOperationSide Side);
  629. virtual void __fastcall HomeDirectory(TOperationSide Side);
  630. void __fastcall OpenStoredSession(TSessionData * Data);
  631. void __fastcall OpenFolderOrWorkspace(const UnicodeString & Name);
  632. void __fastcall Idle();
  633. __fastcall TCustomScpExplorerForm(TComponent* Owner);
  634. void __fastcall SaveCurrentSession();
  635. UnicodeString __fastcall CreateHiddenDuplicateSession();
  636. TSessionData * __fastcall CloneCurrentSessionData();
  637. bool __fastcall SaveWorkspace(bool EnableAutoSave);
  638. virtual void __fastcall CompareDirectories();
  639. void __fastcall ExecuteCurrentFile();
  640. virtual void __fastcall OpenConsole(UnicodeString Command = L"");
  641. virtual void __fastcall UpdateTerminal(TTerminal * Terminal);
  642. virtual void __fastcall SynchronizeDirectories();
  643. virtual void __fastcall FullSynchronizeDirectories() = 0;
  644. virtual void __fastcall ExploreLocalDirectory();
  645. virtual void __fastcall GoToCommandLine();
  646. virtual void __fastcall GoToTree();
  647. void __fastcall PanelExport(TOperationSide Side, TPanelExport Export,
  648. TPanelExportDestination Destination);
  649. void __fastcall Filter(TOperationSide Side);
  650. void __fastcall ExecuteFile(TOperationSide Side, TExecuteFileBy ExecuteFileBy,
  651. const TEditorData * ExternalEditor = NULL, bool AllSelected = false,
  652. bool OnFocused = false);
  653. void __fastcall ExecuteCurrentFileWith(bool OnFocused);
  654. void __fastcall EditNew(TOperationSide Side);
  655. bool __fastcall AllowQueueOperation(TQueueOperation Operation, void ** Param = NULL);
  656. void __fastcall ExecuteQueueOperation(TQueueOperation Operation, void * Param = NULL);
  657. TQueueOperation __fastcall DefaultQueueOperation();
  658. bool __fastcall GetQueueEnabled();
  659. void __fastcall ToggleQueueEnabled();
  660. UnicodeString __fastcall GetQueueProgressTitle();
  661. void __fastcall LastTerminalClosed(TObject * Sender);
  662. void __fastcall TerminalRemoved(TObject * Sender);
  663. void __fastcall TerminalListChanged(TObject * Sender);
  664. void __fastcall ApplicationTitleChanged();
  665. unsigned int __fastcall MoreMessageDialog(const UnicodeString Message,
  666. TStrings * MoreMessages, TQueryType Type, unsigned int Answers,
  667. UnicodeString HelpKeyword, const TMessageParams * Params = NULL,
  668. TTerminal * Terminal = NULL);
  669. void __fastcall OperationFinished(TFileOperation Operation, TOperationSide Side,
  670. bool Temp, const UnicodeString & FileName, bool Success, TOnceDoneOperation & OnceDoneOperation);
  671. void __fastcall OperationProgress(TFileOperationProgressType & ProgressData);
  672. void __fastcall ShowExtendedException(TTerminal * Terminal, Exception * E);
  673. void __fastcall InactiveTerminalException(TTerminal * Terminal, Exception * E);
  674. void __fastcall TerminalReady();
  675. void __fastcall QueueEvent(TTerminal * Terminal, TTerminalQueue * Queue, TQueueEvent Event);
  676. void __fastcall QueueEmptyNoteClicked(TObject * Sender);
  677. bool __fastcall DoSynchronizeDirectories(UnicodeString & LocalDirectory,
  678. UnicodeString & RemoteDirectory, bool UseDefaults);
  679. bool __fastcall DoFullSynchronizeDirectories(UnicodeString & LocalDirectory,
  680. UnicodeString & RemoteDirectory, TSynchronizeMode & Mode, bool & SaveMode,
  681. bool UseDefaults);
  682. void __fastcall StandaloneEdit(const UnicodeString & FileName);
  683. bool __fastcall CanPasteFromClipBoard();
  684. void __fastcall PasteFromClipBoard();
  685. void __fastcall ToggleQueueVisibility();
  686. virtual UnicodeString __fastcall PathForCaption();
  687. void __fastcall FileListFromClipboard();
  688. void __fastcall SelectAll(TOperationSide Side, TSelectMode Mode);
  689. void __fastcall SelectByMask(TOperationSide Side, bool Select);
  690. void __fastcall RestoreSelectedNames(TOperationSide Side);
  691. void __fastcall SelectSameExt(bool Select);
  692. void __fastcall PreferencesDialog(TPreferencesMode APreferencesMode);
  693. virtual void __fastcall BeforeAction();
  694. void __fastcall FileSystemInfo();
  695. void __fastcall SessionGenerateUrl();
  696. void __fastcall FileGenerateUrl();
  697. void __fastcall ReadDirectoryCancelled();
  698. void __fastcall SynchronizeBrowsingChanged();
  699. void __fastcall ToggleShowHiddenFiles();
  700. void __fastcall SetFormatSizeBytes(TFormatBytesStyle Style);
  701. void __fastcall ToggleAutoReadDirectoryAfterOp();
  702. void __fastcall PopupTrayBalloon(TTerminal * Terminal, const UnicodeString & Str,
  703. TQueryType Type, Exception * E = NULL, unsigned int Seconds = 0,
  704. TNotifyEvent OnBalloonClick = NULL, TObject * UserData = NULL);
  705. void __fastcall RemoteFindFiles();
  706. virtual void __fastcall HistoryGo(TOperationSide Side, int Index);
  707. void __fastcall UpdateTaskbarList(ITaskbarList3 * TaskbarList);
  708. virtual void __fastcall DisplaySystemContextMenu();
  709. virtual void __fastcall GoToAddress() = 0;
  710. bool __fastcall CanConsole();
  711. bool __fastcall CanChangePassword();
  712. void __fastcall ChangePassword();
  713. bool __fastcall CanPrivateKeyUpload();
  714. void __fastcall PrivateKeyUpload();
  715. bool __fastcall IsComponentPossible(Byte Component);
  716. __property bool ComponentVisible[Byte Component] = { read = GetComponentVisible, write = SetComponentVisible };
  717. __property bool EnableFocusedOperation[TOperationSide Side] = { read = GetEnableFocusedOperation, index = 0 };
  718. __property bool EnableSelectedOperation[TOperationSide Side] = { read = GetEnableSelectedOperation, index = 0 };
  719. __property bool EnableFocusedFileOperation[TOperationSide Side] = { read = GetEnableFocusedOperation, index = 1 };
  720. __property bool EnableSelectedFileOperation[TOperationSide Side] = { read = GetEnableSelectedOperation, index = 1 };
  721. __property bool HasDirView[TOperationSide Side] = { read = GetHasDirView };
  722. __property TTerminal * Terminal = { read = FTerminal, write = SetTerminal };
  723. __property TTerminalQueue * Queue = { read = FQueue, write = SetQueue };
  724. __property TColor SessionColor = { read = FSessionColor, write = SetSessionColor };
  725. };
  726. //---------------------------------------------------------------------------
  727. #endif