CustomScpExplorer.h 45 KB

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