CustomScpExplorer.h 44 KB

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