CustomScpExplorer.h 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  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 __fastcall GetEnableFocusedOperation(TOperationSide Side, int FilesOnly);
  275. bool __fastcall GetEnableSelectedOperation(TOperationSide Side, int FilesOnly);
  276. void __fastcall SetTerminal(TTerminal * value);
  277. void __fastcall DoSetTerminal(TTerminal * value, bool Replace);
  278. void __fastcall SetQueue(TTerminalQueue * value);
  279. void __fastcall TransferListChange(TObject * Sender);
  280. void __fastcall TransferListDrawItem(TTBXCustomList * Sender, TCanvas * ACanvas,
  281. const TRect & ARect, int AIndex, int AHoverIndex, bool & DrawDefault);
  282. void __fastcall CloseInternalEditor(TObject * Sender);
  283. void __fastcall ForceCloseInternalEditor(TObject * Sender);
  284. void __fastcall ForceCloseLocalEditors();
  285. void __fastcall TerminalCaptureLog(const UnicodeString & AddedLine, TCaptureOutputType OutputType);
  286. void __fastcall HistoryItemClick(System::TObject* Sender);
  287. void __fastcall UpdateHistoryMenu(TOperationSide Side, bool Back);
  288. void __fastcall AdHocCustomCommandValidate(const TCustomCommandType & Command);
  289. void __fastcall SetDockAllowDrag(bool value);
  290. void __fastcall QueueSplitterDblClick(TObject * Sender);
  291. void __fastcall AddQueueItem(TTerminalQueue * Queue, TTransferDirection Direction,
  292. TStrings * FileList, const UnicodeString TargetDirectory,
  293. const TGUICopyParamType & CopyParam, int Params);
  294. void __fastcall AddQueueItem(TTerminalQueue * Queue, TQueueItem * QueueItem, TTerminal * Terminal);
  295. void __fastcall ClearTransferSourceSelection(TTransferDirection Direction);
  296. void __fastcall SessionsDDDragOver(int KeyState, const TPoint & Point, int & Effect);
  297. void __fastcall SessionsDDProcessDropped(TObject * Sender, int KeyState, const TPoint & Point, int Effect);
  298. void __fastcall RemoteFileControlDragDropFileOperation(
  299. TObject * Sender, int Effect, UnicodeString TargetPath, bool ForceQueue, bool Paste);
  300. void __fastcall SessionsDDDragEnter(_di_IDataObject DataObj, int KeyState,
  301. const TPoint & Point, int & Effect, bool & Accept);
  302. void __fastcall SessionsDDDragLeave();
  303. void __fastcall QueueDDProcessDropped(TObject * Sender, int KeyState, const TPoint & Point, int Effect);
  304. void __fastcall QueueDDDragEnter(_di_IDataObject DataObj, int KeyState,
  305. const TPoint & Point, int & Effect, bool & Accept);
  306. void __fastcall QueueDDDragLeave();
  307. void __fastcall EnableDDTransferConfirmation(TObject * Sender);
  308. void __fastcall CollectItemsWithTextDisplayMode(TWinControl * Control);
  309. void __fastcall CreateHiddenWindow();
  310. bool __fastcall IsQueueAutoPopup();
  311. void __fastcall UpdateSessionsPageControlHeight();
  312. TDragDropFilesEx * __fastcall CreateDragDropFilesEx();
  313. void __fastcall KeyProcessed(Word & Key, TShiftState Shift);
  314. void __fastcall CheckCustomCommandShortCut(TCustomCommandList * List, Word & Key, Classes::TShiftState Shift, TShortCut KeyShortCut);
  315. void __fastcall CMShowingChanged(TMessage & Message);
  316. void __fastcall WMClose(TMessage & Message);
  317. void __fastcall CMDpiChanged(TMessage & Message);
  318. void __fastcall WMDpiChanged(TMessage & Message);
  319. void __fastcall DoBookmarkClick(TOperationSide Side, TObject * Sender);
  320. void __fastcall LocalBookmarkClick(TObject * Sender);
  321. void __fastcall RemoteBookmarkClick(TObject * Sender);
  322. protected:
  323. TOperationSide FCurrentSide;
  324. bool FEverShown;
  325. TControl * FDDTargetControl;
  326. TProgressForm * FProgressForm;
  327. TSynchronizeProgressForm * FSynchronizeProgressForm;
  328. HANDLE FDDExtMapFile;
  329. TTimer * FUserActionTimer;
  330. TQueueItemProxy * FPendingQueueActionItem;
  331. TTBXPopupMenu * FHistoryMenu[2][2];
  332. bool FAllowTransferPresetAutoSelect;
  333. TStrings * FNotes;
  334. TTimer * FNoteTimer;
  335. TDateTime FNoteShown;
  336. UnicodeString FNote;
  337. TObject * FNoteData;
  338. UnicodeString FNoteHints;
  339. TNotifyEvent FOnNoteClick;
  340. unsigned int FLockLevel;
  341. unsigned int FLockSuspendLevel;
  342. bool FDisabledOnLockSuspend;
  343. bool FAlternativeDelete;
  344. TDragDropFilesEx * FSessionsDragDropFilesEx;
  345. TDragDropFilesEx * FQueueDragDropFilesEx;
  346. TPoint FLastContextPopupScreenPoint;
  347. bool FRemoteDirViewWasFocused;
  348. int FDoNotIdleCurrentTerminal;
  349. UnicodeString FFakeFileDropTarget;
  350. TFileColorData::TList FFileColors;
  351. UnicodeString FIncrementalSearch;
  352. int FIncrementalSearching;
  353. bool FIncrementalSearchHaveNext;
  354. virtual bool __fastcall CopyParamDialog(TTransferDirection Direction,
  355. TTransferType Type, bool Temp, TStrings * FileList,
  356. UnicodeString & TargetDirectory, TGUICopyParamType & CopyParam, bool Confirm,
  357. bool DragDrop, int Options);
  358. virtual void __fastcall CopyParamDialogAfter(TTransferDirection Direction, bool Temp, const UnicodeString & TargetDirectory);
  359. virtual bool __fastcall RemoteTransferDialog(TTerminal *& Session,
  360. TStrings * FileList, UnicodeString & Target, UnicodeString & FileMask, bool & DirectCopy,
  361. bool NoConfirmation, bool Move);
  362. virtual void __fastcall CreateParams(TCreateParams & Params);
  363. void __fastcall DeleteFiles(TOperationSide Side, TStrings * FileList, bool Alternative);
  364. bool __fastcall RemoteTransferFiles(TStrings * FileList, bool NoConfirmation,
  365. bool Move, TTerminal * Session);
  366. virtual void __fastcall DoDirViewExecFile(TObject * Sender, TListItem * Item, bool & AllowExec);
  367. virtual TControl * __fastcall GetComponent(Byte Component);
  368. bool __fastcall GetComponentVisible(Byte Component);
  369. virtual Boolean __fastcall GetHasDirView(TOperationSide Side);
  370. DYNAMIC void __fastcall KeyDown(Word & Key, Classes::TShiftState Shift);
  371. virtual void __fastcall RestoreFormParams();
  372. virtual void __fastcall RestoreParams();
  373. virtual void __fastcall SetComponentVisible(Byte Component, bool value);
  374. virtual void __fastcall ComponentShowing(Byte Component, bool value);
  375. virtual void __fastcall FixControlsPlacement();
  376. bool __fastcall SetProperties(TOperationSide Side, TStrings * FileList);
  377. void __fastcall CustomCommand(TStrings * FileList,
  378. const TCustomCommandType & Command, TStrings * ALocalFileList);
  379. void __fastcall RemoteCustomCommand(
  380. TStrings * FileList, const TCustomCommandType & ACommand,
  381. const TCustomCommandData & Data, const UnicodeString & CommandCommand);
  382. void __fastcall LocalCustomCommandPure(
  383. TStrings * FileList, const TCustomCommandType & ACommand, const UnicodeString & Command, TStrings * ALocalFileList,
  384. const TCustomCommandData & Data, bool LocalFileCommand, bool FileListCommand, UnicodeString * POutput);
  385. void __fastcall LocalCustomCommandWithLocalFiles(
  386. const TCustomCommandType & ACommand, const UnicodeString & Command, const TCustomCommandData & Data,
  387. bool FileListCommand, UnicodeString * POutput);
  388. void __fastcall LocalCustomCommand(TStrings * FileList,
  389. const TCustomCommandType & ACommand, TStrings * ALocalFileList,
  390. const TCustomCommandData & Data, const UnicodeString & CommandCommand);
  391. virtual void __fastcall TerminalChanging();
  392. virtual void __fastcall TerminalChanged(bool Replaced);
  393. virtual void __fastcall QueueChanged();
  394. void __fastcall InitStatusBar();
  395. void __fastcall UpdateStatusBar();
  396. virtual void __fastcall UpdateStatusPanelText(TTBXStatusPanel * Panel);
  397. virtual void __fastcall DoOperationFinished(TFileOperation Operation,
  398. TOperationSide Side, bool Temp, const UnicodeString & FileName, bool Success,
  399. TOnceDoneOperation & OnceDoneOperation);
  400. virtual void __fastcall DoOpenDirectoryDialog(TOpenDirectoryMode Mode, TOperationSide Side);
  401. void __fastcall CreateProgressForm(TSynchronizeProgress * SynchronizeProgress);
  402. void __fastcall DestroyProgressForm();
  403. virtual void __fastcall FileOperationProgress(TFileOperationProgressType & ProgressData);
  404. void __fastcall OperationComplete(const TDateTime & StartTime);
  405. void __fastcall ExecutedFileChanged(const UnicodeString FileName,
  406. TEditedFileData * Data, HANDLE UploadCompleteEvent);
  407. void __fastcall ExecutedFileReload(const UnicodeString FileName,
  408. const TEditedFileData * Data);
  409. void __fastcall ExecutedFileEarlyClosed(const TEditedFileData * Data,
  410. bool & KeepOpen);
  411. void __fastcall ExecutedFileUploadComplete(TObject * Sender);
  412. void __fastcall CMDialogChar(TMessage & AMessage);
  413. inline void __fastcall WMAppCommand(TMessage & Message);
  414. inline void __fastcall WMSysCommand(TMessage & Message);
  415. void __fastcall WMQueryEndSession(TMessage & Message);
  416. void __fastcall WMEndSession(TWMEndSession & Message);
  417. #ifdef _DEBUG
  418. inline void __fastcall WMWindowPosChanged(TWMWindowPosMsg & Message);
  419. #endif
  420. void __fastcall WMCopyData(TMessage & Message);
  421. virtual void __fastcall SysResizing(unsigned int Cmd);
  422. DYNAMIC void __fastcall DoShow();
  423. TStrings * __fastcall CreateVisitedDirectories(TOperationSide Side);
  424. void __fastcall HandleErrorList(TStringList *& ErrorList);
  425. void __fastcall TerminalSynchronizeDirectory(const UnicodeString LocalDirectory,
  426. const UnicodeString RemoteDirectory, bool & Continue, bool Collect);
  427. void __fastcall DoSynchronize(TSynchronizeController * Sender,
  428. const UnicodeString LocalDirectory, const UnicodeString RemoteDirectory,
  429. const TCopyParamType & CopyParam, const TSynchronizeParamType & Params,
  430. TSynchronizeChecklist ** Checklist, TSynchronizeOptions * Options, bool Full);
  431. void __fastcall DoSynchronizeInvalid(TSynchronizeController * Sender,
  432. const UnicodeString Directory, const UnicodeString ErrorStr);
  433. void __fastcall DoSynchronizeTooManyDirectories(TSynchronizeController * Sender,
  434. int & MaxDirectories);
  435. void __fastcall Synchronize(const UnicodeString LocalDirectory,
  436. const UnicodeString RemoteDirectory, TSynchronizeMode Mode,
  437. const TCopyParamType & CopyParam, int Params, TSynchronizeChecklist ** Checklist,
  438. TSynchronizeOptions * Options);
  439. void __fastcall SynchronizeSessionLog(const UnicodeString & Message);
  440. void __fastcall GetSynchronizeOptions(int Params, TSynchronizeOptions & Options);
  441. UnicodeString __fastcall SerializeCopyParamForCommandLine(const TCopyParamType * CopyParams);
  442. void __fastcall SynchronizeInNewWindow(const TSynchronizeParamType & Params, const TCopyParamType * CopyParams);
  443. void __fastcall FullSynchronizeInNewWindow(
  444. TSynchronizeMode Mode, int Params, const UnicodeString & LocalDirectory, const UnicodeString & RemoteDirectory,
  445. const TCopyParamType * CopyParams);
  446. bool __fastcall SynchronizeAllowSelectedOnly();
  447. virtual void __fastcall BatchStart(void *& Storage);
  448. virtual void __fastcall BatchEnd(void * Storage);
  449. bool __fastcall ExecuteFileOperation(TFileOperation Operation, TOperationSide Side,
  450. TStrings * FileList, bool NoConfirmation, void * Param);
  451. bool __fastcall ExecuteCopyMoveFileOperation(
  452. TFileOperation Operation, TOperationSide Side, TStrings * FileList, bool NoConfirmation, void * Param);
  453. bool __fastcall ExecuteDeleteFileOperation(TOperationSide Side, TStrings * FileList, void * Param);
  454. virtual bool __fastcall DDGetTarget(UnicodeString & Directory,
  455. bool & ForceQueue, UnicodeString & CounterName);
  456. virtual void __fastcall DDFakeFileInitDrag(TFileList * FileList, bool & Created);
  457. UnicodeString __fastcall CreateFakeTransferDirectory();
  458. void __fastcall DDFakeCreated(TObject * Sender, const UnicodeString FileName);
  459. void __fastcall ClipboardFakeCreated(TObject * Sender, const UnicodeString FileName);
  460. void __fastcall ClipboardDataObjectRelease(TObject * Sender);
  461. virtual void __fastcall SideEnter(TOperationSide Side);
  462. virtual TOperationSide __fastcall GetSide(TOperationSide Side);
  463. TStrings * __fastcall PanelExport(TOperationSide Side, TPanelExport Export);
  464. virtual void __fastcall PanelExportStore(TOperationSide Side,
  465. TPanelExport Export, TPanelExportDestination Destination,
  466. TStrings * ExportData);
  467. void __fastcall GenerateUrl(TStrings * Paths);
  468. void __fastcall QueueListUpdate(TTerminalQueue * Queue);
  469. void __fastcall QueueItemUpdate(TTerminalQueue * Queue, TQueueItem * Item);
  470. void __fastcall UpdateQueueStatus(bool QueueChanging);
  471. void __fastcall RefreshQueueItems();
  472. virtual int __fastcall GetStaticComponentsHeight();
  473. void __fastcall FillQueueViewItem(TListItem * Item,
  474. TQueueItemProxy * QueueItem, bool Detail);
  475. void __fastcall QueueViewDeleteItem(int Index);
  476. void __fastcall UserActionTimer(TObject * Sender);
  477. void __fastcall UpdateQueueView();
  478. bool __fastcall CanCloseQueue(TTerminalQueue * Queue);
  479. bool __fastcall CanCloseQueue();
  480. virtual bool __fastcall IsFileControl(TObject * Control, TOperationSide Side);
  481. virtual void __fastcall ReloadLocalDirectory(const UnicodeString Directory = L"");
  482. virtual bool __fastcall PanelOperation(TOperationSide Side, bool DragDrop);
  483. void __fastcall DoWarnLackOfTempSpace(const UnicodeString Path,
  484. __int64 RequiredSpace, bool & Continue);
  485. void __fastcall AddDelayedDirectoryDeletion(const UnicodeString TempDir, int SecDelay);
  486. void __fastcall DoDelayedDeletion(TObject * Sender);
  487. TDragDropFilesEx * __fastcall DragDropFiles(TObject * Sender);
  488. void __fastcall RemoteFileControlDDTargetDrop();
  489. bool __fastcall RemoteFileControlFileOperation(TObject * Sender,
  490. TFileOperation Operation, bool NoConfirmation, void * Param);
  491. void __fastcall DDDownload(
  492. TStrings * FilesToCopy, const UnicodeString & TargetDir, const TCopyParamType * CopyParam, int Params);
  493. bool __fastcall EnsureCommandSessionFallback(TFSCapability Capability);
  494. bool __fastcall CommandSessionFallback();
  495. void __fastcall FileTerminalRemoved(const UnicodeString FileName,
  496. TEditedFileData * Data, TObject * Token, void * Arg);
  497. void __fastcall FileConfigurationChanged(const UnicodeString FileName,
  498. TEditedFileData * Data, TObject * Token, void * Arg);
  499. void __fastcall CustomExecuteFile(TOperationSide Side,
  500. TExecuteFileBy ExecuteFileBy, UnicodeString FileName, UnicodeString OriginalFileName,
  501. const TEditorData * ExternalEditor, UnicodeString LocalRootDirectory,
  502. UnicodeString RemoteDirectory);
  503. void __fastcall ExecuteFile(TOperationSide Side,
  504. TExecuteFileBy ExecuteFileBy, const TEditorData * ExternalEditor,
  505. UnicodeString FullFileName, TObject * Object,
  506. const TFileMasks::TParams & MaskParams);
  507. bool __fastcall RemoteExecuteForceText(TExecuteFileBy ExecuteFileBy,
  508. const TEditorData * ExternalEditor);
  509. void __fastcall ExecuteFileNormalize(TExecuteFileBy & ExecuteFileBy,
  510. const TEditorData *& ExternalEditor, const UnicodeString & FileName,
  511. bool Local, const TFileMasks::TParams & MaskParams);
  512. void __fastcall ExecuteRemoteFile(
  513. const UnicodeString & FullFileName, TRemoteFile * File, TExecuteFileBy ExecuteFileBy);
  514. void __fastcall TemporaryFileCopyParam(TCopyParamType & CopyParam);
  515. void __fastcall TemporaryDirectoryForRemoteFiles(
  516. UnicodeString RemoteDirectory, TCopyParamType CopyParam,
  517. UnicodeString & Result, UnicodeString & RootDirectory);
  518. void __fastcall TemporarilyDownloadFiles(TStrings * FileList, bool ForceText,
  519. UnicodeString & RootTempDir, UnicodeString & TempDir, bool AllFiles, bool GetTargetNames,
  520. bool AutoOperation);
  521. void __fastcall LocalEditorClosed(TObject * Sender, bool Forced);
  522. TTBXPopupMenu * __fastcall HistoryMenu(TOperationSide Side, bool Back);
  523. UnicodeString __fastcall FileStatusBarText(const TStatusFileInfo & FileInfo, TOperationSide Side);
  524. void __fastcall UpdateFileStatusBar(TTBXStatusBar * StatusBar,
  525. const TStatusFileInfo & FileInfo, TOperationSide Side);
  526. void __fastcall UpdateFileStatusExtendedPanels(
  527. TTBXStatusBar * StatusBar, const TStatusFileInfo & FileInfo);
  528. void __fastcall FileStatusBarPanelClick(TTBXStatusPanel * Panel, TOperationSide Side);
  529. virtual void __fastcall DoDirViewLoaded(TCustomDirView * Sender);
  530. virtual void __fastcall UpdateControls();
  531. void __fastcall UpdateTransferList();
  532. void __fastcall UpdateTransferLabel();
  533. void __fastcall StartUpdates();
  534. void __fastcall TransferPresetAutoSelect();
  535. virtual void __fastcall GetTransferPresetAutoSelectData(TCopyParamRuleData & Data);
  536. inline bool __fastcall CustomCommandRemoteAllowed();
  537. void __fastcall CustomCommandMenu(
  538. TAction * Action, TStrings * LocalFileList, TStrings * RemoteFileList);
  539. void __fastcall LoadToolbarsLayoutStr(UnicodeString LayoutStr, UnicodeString ButtonsStr);
  540. UnicodeString __fastcall GetToolbarItemName(TTBCustomItem * Item);
  541. UnicodeString __fastcall GetToolbarsLayoutStr();
  542. UnicodeString __fastcall GetToolbarsButtonsStr();
  543. virtual void __fastcall Dispatch(void * Message);
  544. void __fastcall PostComponentHide(Byte Component);
  545. void __fastcall GetSpaceAvailable(const UnicodeString Path,
  546. TSpaceAvailable & ASpaceAvailable, bool & Close);
  547. void __fastcall CalculateSize(TStrings * FileList, __int64 & Size,
  548. TCalculateSizeStats & Stats, bool & Close);
  549. void __fastcall CalculateChecksum(const UnicodeString & Alg, TStrings * FileList,
  550. TCalculatedChecksumEvent OnCalculatedChecksum, bool & Close);
  551. void __fastcall UpdateCustomCommandsToolbar();
  552. virtual void __fastcall UpdateActions();
  553. void __fastcall UpdateSessionColor(TColor value);
  554. void __fastcall SetSessionColor(TColor value);
  555. void __fastcall NoteTimer(TObject * Sender);
  556. void __fastcall AddNote(UnicodeString Note, bool UpdateNow = true);
  557. void __fastcall PostNote(UnicodeString Note, unsigned int Seconds,
  558. TNotifyEvent OnNoteClick, TObject * NoteData);
  559. bool __fastcall CancelNote(bool Force);
  560. void __fastcall UpdatesChecked();
  561. void __fastcall UpdatesNoteClicked(TObject * Sender);
  562. void __fastcall TransferPresetNoteClicked(TObject * Sender);
  563. void __fastcall TransferPresetNoteMessage(TTransferPresetNoteData * NoteData,
  564. bool AllowNeverAskAgain);
  565. void __fastcall UpdateTrayIcon();
  566. void __fastcall TrayIconClick(TObject * Sender);
  567. void __fastcall Notify(TTerminal * Terminal, UnicodeString Message,
  568. TQueryType Type, bool Important = false, TNotifyEvent OnClick = NULL,
  569. TObject * UserData = NULL, Exception * E = NULL);
  570. virtual void __fastcall UpdateSessionData(TSessionData * Data);
  571. virtual void __fastcall UpdateRemotePathComboBox(bool TextOnly);
  572. virtual void __fastcall ToolbarItemResize(TTBXCustomDropDownItem * Item, int Width);
  573. virtual void __fastcall CreateWnd();
  574. virtual void __fastcall DestroyWnd();
  575. virtual bool __fastcall OpenBookmark(TOperationSide Side, TBookmark * Bookmark);
  576. void __fastcall DoFindFiles(TTerminal * Terminal, UnicodeString Directory, const TFileMasks & FileMask,
  577. TFileFoundEvent OnFileFound, TFindingFileEvent OnFindingFile);
  578. virtual void __fastcall DoFocusRemotePath(TTerminal * Terminal, const UnicodeString & Path);
  579. bool __fastcall CanOperateOnFoundFiles(TTerminal * ATerminal);
  580. void __fastcall DoOperationOnFoundFiles(
  581. TFileOperation Operation, TTerminal * ATerminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  582. void __fastcall DoDeleteFoundFiles(TTerminal * Terminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  583. void __fastcall DoDownloadFoundFiles(TTerminal * ATerminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  584. void __fastcall DoEditFoundFiles(TTerminal * ATerminal, TStrings * FileList, TFileOperationFinishedEvent OnFileOperationFinished);
  585. bool __fastcall ExecuteFileOperation(TFileOperation Operation, TOperationSide Side,
  586. bool OnFocused, bool NoConfirmation = false, void * Param = NULL);
  587. void __fastcall UpdateCopyParamCounters(const TCopyParamType & CopyParam);
  588. int __fastcall AddSessionColor(TColor Color);
  589. void __fastcall UpdateSessionTab(TTabSheet * TabSheet);
  590. void __fastcall UpdateNewSessionTab();
  591. void __fastcall AddFixedSessionImages();
  592. int __fastcall AddFixedSessionImage(int GlyphsSourceIndex);
  593. TObjectList * __fastcall DoCollectWorkspace();
  594. void __fastcall DoSaveWorkspace(const UnicodeString & Name,
  595. TObjectList * DataList, bool SavePasswords, bool Explicit);
  596. UnicodeString __fastcall WorkspaceName();
  597. virtual bool __fastcall EligibleForImageDisplayMode(TTBCustomItem * Item);
  598. virtual bool __fastcall UpdateToolbarDisplayMode();
  599. virtual void __fastcall QueueLabelUpdateStatus();
  600. void __fastcall EditorAutoConfig();
  601. void __fastcall DirViewContextPopupDefaultItem(
  602. TOperationSide Side, TTBXCustomItem * Item, TDoubleClickAction DoubleClickAction);
  603. void __fastcall DirViewContextPopup(
  604. TOperationSide Side, Byte PopupComponent, const TPoint & MousePos);
  605. bool __fastcall CommandLineFromAnotherInstance(const UnicodeString & CommandLine);
  606. bool __fastcall CanCommandLineFromAnotherInstance();
  607. void __fastcall SetQueueProgress();
  608. void __fastcall UpdateQueueLabel();
  609. void __fastcall SetTaskbarListProgressState(TBPFLAG Flags);
  610. void __fastcall SetTaskbarListProgressValue(TFileOperationProgressType * ProgressData);
  611. TTerminal * __fastcall GetSessionTabTerminal(TTabSheet * TabSheet);
  612. bool __fastcall SessionTabSwitched();
  613. void __fastcall RestoreApp();
  614. void __fastcall GoToQueue();
  615. virtual UnicodeString __fastcall DefaultDownloadTargetDirectory() = 0;
  616. void __fastcall LockFiles(TStrings * FileList, bool Lock);
  617. void __fastcall SaveInternalEditor(
  618. const UnicodeString FileName, TEditedFileData * Data, TObject * Token,
  619. void * Arg);
  620. void __fastcall SaveAllInternalEditors(TObject * Sender);
  621. void __fastcall InternalEditorModified(
  622. const UnicodeString FileName, TEditedFileData * Data, TObject * Token,
  623. void * Arg);
  624. void __fastcall AnyInternalEditorModified(TObject * Sender, bool & Modified);
  625. virtual void __fastcall StartingDisconnected();
  626. void __fastcall DoTerminalListChanged();
  627. void __fastcall NeedSession(bool ReloadSessions);
  628. bool __fastcall DraggingAllFilesFromDirView(TOperationSide Side, TStrings * FileList);
  629. bool __fastcall SelectedAllFilesInDirView(TCustomDirView * DView);
  630. TSessionData * __fastcall SessionDataForCode();
  631. void __fastcall RefreshPanel(const UnicodeString & Session, const UnicodeString & Path);
  632. DYNAMIC void __fastcall ChangeScale(int M, int D);
  633. virtual void __fastcall UpdateImages();
  634. void __fastcall UpdatePixelsPerInchMainWindowCounter();
  635. void __fastcall CopyPopup(TControl * DestControl, TControl * SourceControl);
  636. void __fastcall CreateRemoteDirectory(const UnicodeString & Path, TRemoteProperties & Properties);
  637. void __fastcall DoFullSynchronize(
  638. void * Token, TProcessedSynchronizationChecklistItem OnProcessedItem,
  639. TUpdatedSynchronizationChecklistItems OnUpdatedSynchronizationChecklistItems);
  640. void __fastcall DoSynchronizeChecklistCalculateSize(
  641. TSynchronizeChecklist * Checklist, const TSynchronizeChecklist::TItemList & Items, void * Token);
  642. void __fastcall DoSynchronizeMove(
  643. TOperationSide Side, const UnicodeString & FileName, const UnicodeString & NewFileName, TRemoteFile * RemoteFile);
  644. void __fastcall FullSynchronize(
  645. TSynchronizeParams & Params, TProcessedSynchronizationChecklistItem OnProcessedItem,
  646. TUpdatedSynchronizationChecklistItems OnUpdatedSynchronizationChecklistItems);
  647. void __fastcall SynchronizeProcessedItem(void * Token, const TSynchronizeChecklist::TItem * ChecklistItem);
  648. void __fastcall CreateOpenDirMenuList(TTBCustomItem * Menu, TOperationSide Side, TBookmarkList * BookmarkList);
  649. void __fastcall CreateOpenDirMenu(TTBCustomItem * Menu, TOperationSide Side);
  650. bool __fastcall TryOpenDirectory(TOperationSide Side, const UnicodeString & Path);
  651. void __fastcall ClipboardStop();
  652. void __fastcall ClipboardClear();
  653. void __fastcall ClipboardDownload(const UnicodeString & TargetDirectory, bool NoConfirmation, bool DragDrop);
  654. bool __fastcall DoesClipboardContainOurFiles();
  655. bool __fastcall CanPasteToDirViewFromClipBoard();
  656. void __fastcall CloseSessionTab(int Index);
  657. void __fastcall DoFileColorsChanged(TCustomDirView * DirView);
  658. virtual void __fastcall FileColorsChanged();
  659. TColor __fastcall PanelColor();
  660. TColor __fastcall DisabledPanelColor();
  661. void __fastcall WMWinIniChange(TMessage & Message);
  662. void __fastcall ResetIncrementalSearch();
  663. void __fastcall IncrementalSearch(const UnicodeString & Text, bool SkipCurrent, bool Reverse);
  664. TListItem * __fastcall GetNextFile(TListItem * Item, bool Reverse);
  665. TListItem * __fastcall SearchFile(const UnicodeString & Text, bool SkipCurrent, bool Reverse);
  666. void __fastcall CMDialogKey(TWMKeyDown & Message);
  667. DYNAMIC void __fastcall Deactivate();
  668. public:
  669. virtual __fastcall ~TCustomScpExplorerForm();
  670. void __fastcall AddBookmark(TOperationSide Side);
  671. virtual void __fastcall AddEditLink(TOperationSide Side, bool Add);
  672. bool __fastcall CanAddEditLink(TOperationSide Side);
  673. bool __fastcall LinkFocused();
  674. virtual Boolean __fastcall AllowedAction(TAction * Action, TActionAllowed Allowed);
  675. bool __fastcall IsBusy();
  676. virtual void __fastcall ConfigurationChanged();
  677. void __fastcall CreateDirectory(TOperationSide Side);
  678. void __fastcall ExecuteFileOperationCommand(TFileOperation Operation, TOperationSide Side,
  679. bool OnFocused, bool NoConfirmation = false, void * Param = NULL);
  680. void __fastcall ExecuteCopyOperationCommand(
  681. TOperationSide Side, bool OnFocused, unsigned int Flags);
  682. void __fastcall AdHocCustomCommand(bool OnFocused);
  683. virtual TCustomDirView * __fastcall DirView(TOperationSide Side);
  684. virtual bool __fastcall DirViewEnabled(TOperationSide Side);
  685. virtual void __fastcall ChangePath(TOperationSide Side) = 0;
  686. virtual void __fastcall StoreParams();
  687. int __fastcall CustomCommandState(const TCustomCommandType & Command, bool OnFocused, TCustomCommandListType ListType);
  688. bool __fastcall GetLastCustomCommand(bool OnFocused,
  689. TCustomCommandType & CustomCommand, int & State);
  690. void __fastcall LastCustomCommand(bool OnFocused);
  691. void __fastcall BothCustomCommand(const TCustomCommandType & Command);
  692. void __fastcall LockWindow(bool Force = false);
  693. void __fastcall UnlockWindow();
  694. void __fastcall SuspendWindowLock();
  695. void __fastcall ResumeWindowLock();
  696. void __fastcall NewSession(bool FromSite, const UnicodeString & SessionUrl = L"");
  697. void __fastcall DuplicateSession();
  698. void __fastcall RenameSession();
  699. void __fastcall CloseSession();
  700. void __fastcall OpenDirectory(TOperationSide Side);
  701. virtual void __fastcall HomeDirectory(TOperationSide Side);
  702. void __fastcall ReloadDirectory(TOperationSide Side);
  703. void __fastcall OpenStoredSession(TSessionData * Data);
  704. void __fastcall OpenFolderOrWorkspace(const UnicodeString & Name);
  705. void __fastcall Idle();
  706. __fastcall TCustomScpExplorerForm(TComponent* Owner);
  707. void __fastcall SaveCurrentSession();
  708. UnicodeString __fastcall CreateHiddenDuplicateSession();
  709. TSessionData * __fastcall CloneCurrentSessionData();
  710. bool __fastcall SaveWorkspace(bool EnableAutoSave);
  711. virtual void __fastcall CompareDirectories();
  712. void __fastcall ExecuteCurrentFile();
  713. virtual void __fastcall OpenConsole(UnicodeString Command = L"");
  714. virtual void __fastcall UpdateTerminal(TTerminal * Terminal);
  715. virtual void __fastcall SynchronizeDirectories();
  716. virtual void __fastcall FullSynchronizeDirectories() = 0;
  717. virtual void __fastcall ExploreLocalDirectory();
  718. virtual void __fastcall GoToCommandLine();
  719. virtual void __fastcall GoToTree();
  720. void __fastcall PanelExport(TOperationSide Side, TPanelExport Export,
  721. TPanelExportDestination Destination);
  722. void __fastcall Filter(TOperationSide Side);
  723. void __fastcall ExecuteFile(TOperationSide Side, TExecuteFileBy ExecuteFileBy,
  724. const TEditorData * ExternalEditor = NULL, bool AllSelected = false,
  725. bool OnFocused = false);
  726. void __fastcall ExecuteCurrentFileWith(bool OnFocused);
  727. void __fastcall EditNew(TOperationSide Side);
  728. bool __fastcall AllowQueueOperation(TQueueOperation Operation, void ** Param = NULL);
  729. void __fastcall ExecuteQueueOperation(TQueueOperation Operation, void * Param = NULL);
  730. TQueueOperation __fastcall DefaultQueueOperation();
  731. bool __fastcall GetQueueEnabled();
  732. void __fastcall ToggleQueueEnabled();
  733. UnicodeString __fastcall GetQueueProgressTitle();
  734. void __fastcall LastTerminalClosed(TObject * Sender);
  735. void __fastcall TerminalRemoved(TObject * Sender);
  736. void __fastcall TerminalListChanged(TObject * Sender);
  737. void __fastcall ApplicationTitleChanged();
  738. unsigned int __fastcall MoreMessageDialog(const UnicodeString Message,
  739. TStrings * MoreMessages, TQueryType Type, unsigned int Answers,
  740. UnicodeString HelpKeyword, const TMessageParams * Params = NULL,
  741. TTerminal * Terminal = NULL);
  742. void __fastcall OperationFinished(TFileOperation Operation, TOperationSide Side,
  743. bool Temp, const UnicodeString & FileName, bool Success, TOnceDoneOperation & OnceDoneOperation);
  744. void __fastcall OperationProgress(TFileOperationProgressType & ProgressData);
  745. UnicodeString __fastcall GetProgressTitle();
  746. void __fastcall ShowExtendedException(TTerminal * Terminal, Exception * E);
  747. void __fastcall InactiveTerminalException(TTerminal * Terminal, Exception * E);
  748. void __fastcall TerminalReady();
  749. void __fastcall QueueEvent(TTerminal * Terminal, TTerminalQueue * Queue, TQueueEvent Event);
  750. void __fastcall QueueEmptyNoteClicked(TObject * Sender);
  751. bool __fastcall DoSynchronizeDirectories(UnicodeString & LocalDirectory,
  752. UnicodeString & RemoteDirectory, bool UseDefaults);
  753. int __fastcall DoFullSynchronizeDirectories(UnicodeString & LocalDirectory,
  754. UnicodeString & RemoteDirectory, TSynchronizeMode & Mode, int Params, bool & SaveMode,
  755. bool UseDefaults);
  756. void __fastcall StandaloneEdit(const UnicodeString & FileName);
  757. bool __fastcall CanPasteFromClipBoard();
  758. virtual void __fastcall PasteFromClipBoard();
  759. virtual void __fastcall CopyFilesToClipboard(TOperationSide Side);
  760. void __fastcall ToggleQueueVisibility();
  761. virtual UnicodeString __fastcall PathForCaption();
  762. void __fastcall FileListFromClipboard();
  763. void __fastcall SelectAll(TOperationSide Side, TSelectMode Mode);
  764. void __fastcall SelectByMask(TOperationSide Side, bool Select);
  765. void __fastcall RestoreSelectedNames(TOperationSide Side);
  766. void __fastcall SelectSameExt(bool Select);
  767. void __fastcall PreferencesDialog(TPreferencesMode APreferencesMode);
  768. virtual void __fastcall BeforeAction();
  769. void __fastcall FileSystemInfo();
  770. void __fastcall SessionGenerateUrl();
  771. void __fastcall FileGenerateUrl();
  772. void __fastcall ReadDirectoryCancelled();
  773. void __fastcall SynchronizeBrowsingChanged();
  774. void __fastcall ToggleShowHiddenFiles();
  775. void __fastcall SetFormatSizeBytes(TFormatBytesStyle Style);
  776. void __fastcall ToggleAutoReadDirectoryAfterOp();
  777. void __fastcall PopupTrayBalloon(TTerminal * Terminal, const UnicodeString & Str,
  778. TQueryType Type, Exception * E = NULL, unsigned int Seconds = 0,
  779. TNotifyEvent OnBalloonClick = NULL, TObject * UserData = NULL);
  780. void __fastcall RemoteFindFiles();
  781. virtual void __fastcall HistoryGo(TOperationSide Side, int Index);
  782. void __fastcall UpdateTaskbarList(ITaskbarList3 * TaskbarList);
  783. virtual void __fastcall DisplaySystemContextMenu();
  784. virtual void __fastcall GoToAddress() = 0;
  785. bool __fastcall CanConsole();
  786. bool __fastcall CanChangePassword();
  787. void __fastcall ChangePassword();
  788. bool __fastcall CanPrivateKeyUpload();
  789. void __fastcall PrivateKeyUpload();
  790. bool __fastcall IsComponentPossible(Byte Component);
  791. void __fastcall ReplaceTerminal(TTerminal * value);
  792. __property bool ComponentVisible[Byte Component] = { read = GetComponentVisible, write = SetComponentVisible };
  793. __property bool EnableFocusedOperation[TOperationSide Side] = { read = GetEnableFocusedOperation, index = 0 };
  794. __property bool EnableSelectedOperation[TOperationSide Side] = { read = GetEnableSelectedOperation, index = 0 };
  795. __property bool EnableFocusedFileOperation[TOperationSide Side] = { read = GetEnableFocusedOperation, index = 1 };
  796. __property bool EnableSelectedFileOperation[TOperationSide Side] = { read = GetEnableSelectedOperation, index = 1 };
  797. __property bool HasDirView[TOperationSide Side] = { read = GetHasDirView };
  798. __property TTerminal * Terminal = { read = FTerminal, write = SetTerminal };
  799. __property TTerminalQueue * Queue = { read = FQueue, write = SetQueue };
  800. __property TColor SessionColor = { read = FSessionColor, write = SetSessionColor };
  801. };
  802. //---------------------------------------------------------------------------
  803. #endif