CustomScpExplorer.h 44 KB

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