CustomScpExplorer.h 44 KB

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