WinConfiguration.h 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. //---------------------------------------------------------------------------
  2. #ifndef WinConfigurationH
  3. #define WinConfigurationH
  4. //---------------------------------------------------------------------------
  5. #include "CustomWinConfiguration.h"
  6. #include "CustomDirView.hpp"
  7. //---------------------------------------------------------------------------
  8. enum TEditor { edInternal, edExternal, edOpen };
  9. enum TGenerateUrlCodeTarget { guctUrl, guctScript, guctAssembly };
  10. enum TScriptFormat { sfScriptFile, sfBatchFile, sfCommandLine };
  11. enum TLocaleFlagOverride { lfoLanguageIfRecommended, lfoLanguage, lfoAlways, lfoNever };
  12. //---------------------------------------------------------------------------
  13. #define C(Property) (Property != rhc.Property) ||
  14. struct TScpExplorerConfiguration {
  15. UnicodeString WindowParams;
  16. UnicodeString DirViewParams;
  17. UnicodeString ToolbarsLayout;
  18. bool SessionsTabs;
  19. bool StatusBar;
  20. UnicodeString LastLocalTargetDirectory;
  21. int ViewStyle;
  22. bool ShowFullAddress;
  23. bool DriveView;
  24. int DriveViewWidth;
  25. int DriveViewWidthPixelsPerInch;
  26. bool __fastcall operator !=(TScpExplorerConfiguration & rhc)
  27. { return C(WindowParams) C(DirViewParams) C(ToolbarsLayout)
  28. C(SessionsTabs) C(StatusBar)
  29. C(LastLocalTargetDirectory) C(ViewStyle) C(ShowFullAddress)
  30. C(DriveView) C(DriveViewWidth) C(DriveViewWidthPixelsPerInch) 0; };
  31. };
  32. //---------------------------------------------------------------------------
  33. struct TScpCommanderPanelConfiguration {
  34. UnicodeString DirViewParams;
  35. bool StatusBar;
  36. bool DriveView;
  37. int DriveViewHeight;
  38. int DriveViewHeightPixelsPerInch;
  39. int DriveViewWidth;
  40. int DriveViewWidthPixelsPerInch;
  41. bool __fastcall operator !=(TScpCommanderPanelConfiguration & rhc)
  42. { return C(DirViewParams) C(StatusBar)
  43. C(DriveView) C(DriveViewHeight) C(DriveViewHeightPixelsPerInch)
  44. C(DriveViewWidth) C(DriveViewWidthPixelsPerInch) 0; };
  45. };
  46. //---------------------------------------------------------------------------
  47. struct TScpCommanderConfiguration {
  48. UnicodeString WindowParams;
  49. double LocalPanelWidth;
  50. UnicodeString ToolbarsLayout;
  51. bool SessionsTabs;
  52. bool StatusBar;
  53. TOperationSide CurrentPanel;
  54. TNortonLikeMode NortonLikeMode;
  55. bool PreserveLocalDirectory;
  56. TScpCommanderPanelConfiguration LocalPanel;
  57. TScpCommanderPanelConfiguration RemotePanel;
  58. bool CompareByTime;
  59. bool CompareBySize;
  60. bool SwappedPanels;
  61. bool TreeOnLeft;
  62. bool ExplorerKeyboardShortcuts;
  63. bool SystemContextMenu;
  64. bool __fastcall operator !=(TScpCommanderConfiguration & rhc)
  65. { return C(WindowParams) C(LocalPanelWidth) C(ToolbarsLayout)
  66. C(SessionsTabs) C(StatusBar)
  67. C(LocalPanel) C(RemotePanel) C(CurrentPanel)
  68. C(NortonLikeMode) C(PreserveLocalDirectory)
  69. C(CompareBySize) C(CompareByTime) C(SwappedPanels)
  70. C(TreeOnLeft) C(ExplorerKeyboardShortcuts) C(SystemContextMenu) 0; };
  71. TCompareCriterias __fastcall CompareCriterias()
  72. {
  73. TCompareCriterias Criterias;
  74. if (CompareByTime)
  75. {
  76. Criterias << ccTime;
  77. }
  78. if (CompareBySize)
  79. {
  80. Criterias << ccSize;
  81. }
  82. return Criterias;
  83. }
  84. };
  85. //---------------------------------------------------------------------------
  86. struct TFontConfiguration
  87. {
  88. UnicodeString FontName;
  89. int FontSize;
  90. int FontCharset;
  91. int FontStyle;
  92. __fastcall TFontConfiguration()
  93. {
  94. FontSize = 0;
  95. FontCharset = DEFAULT_CHARSET;
  96. FontStyle = 0;
  97. }
  98. // keep in sync with SameFont
  99. bool __fastcall operator !=(const TFontConfiguration & rhc)
  100. { return !SameText(FontName, rhc.FontName) || C(FontSize)
  101. C(FontCharset) C(FontStyle) 0; };
  102. };
  103. //---------------------------------------------------------------------------
  104. struct TEditorConfiguration {
  105. TFontConfiguration Font;
  106. TColor FontColor;
  107. TColor BackgroundColor;
  108. bool WordWrap;
  109. UnicodeString FindText;
  110. UnicodeString ReplaceText;
  111. bool FindMatchCase;
  112. bool FindWholeWord;
  113. bool FindDown;
  114. unsigned int TabSize;
  115. unsigned int MaxEditors;
  116. unsigned int EarlyClose;
  117. bool SDIShellEditor;
  118. UnicodeString WindowParams;
  119. int Encoding;
  120. bool WarnOnEncodingFallback;
  121. bool WarnOrLargeFileSize;
  122. bool __fastcall operator !=(TEditorConfiguration & rhc)
  123. { return C(Font) C(FontColor) C(BackgroundColor) C(WordWrap) C(FindText) C(ReplaceText)
  124. C(FindMatchCase) C(FindWholeWord) C(FindDown) C(TabSize)
  125. C(MaxEditors) C(EarlyClose) C(SDIShellEditor) C(WindowParams)
  126. C(Encoding) C(WarnOnEncodingFallback) C(WarnOrLargeFileSize) 0; };
  127. };
  128. //---------------------------------------------------------------------------
  129. enum TQueueViewShow { qvShow, qvHideWhenEmpty, qvHide };
  130. struct TQueueViewConfiguration {
  131. int Height;
  132. int HeightPixelsPerInch;
  133. UnicodeString Layout;
  134. TQueueViewShow Show;
  135. TQueueViewShow LastHideShow;
  136. bool ToolBar;
  137. bool Label;
  138. bool __fastcall operator !=(TQueueViewConfiguration & rhc)
  139. { return C(Height) C(HeightPixelsPerInch) C(Layout) C(Show) C(LastHideShow) C(ToolBar) C(Label) 0; };
  140. };
  141. //---------------------------------------------------------------------------
  142. struct TUpdatesData
  143. {
  144. int ForVersion;
  145. int Version;
  146. UnicodeString Message;
  147. bool Critical;
  148. UnicodeString Release;
  149. bool Disabled;
  150. UnicodeString Url;
  151. UnicodeString UrlButton;
  152. UnicodeString NewsUrl;
  153. TSize NewsSize;
  154. UnicodeString DownloadUrl;
  155. __int64 DownloadSize;
  156. UnicodeString DownloadSha256;
  157. UnicodeString AuthenticationError;
  158. bool OpenGettingStarted;
  159. UnicodeString DownloadingUrl;
  160. TSize TipsSize;
  161. UnicodeString TipsUrl;
  162. UnicodeString Tips;
  163. int TipsIntervalDays;
  164. int TipsIntervalRuns;
  165. bool __fastcall operator !=(TUpdatesData & rhc)
  166. { return C(ForVersion) C(Version) C(Message) C(Critical) C(Release)
  167. C(Disabled) C(Url) C(UrlButton) C(NewsUrl) C(NewsSize)
  168. C(DownloadUrl) C(DownloadSize) C(DownloadSha256) C(AuthenticationError)
  169. C(OpenGettingStarted) C(DownloadingUrl)
  170. C(TipsSize) C(TipsUrl) C(Tips) C(TipsIntervalDays) C(TipsIntervalRuns) 0; };
  171. void Reset()
  172. {
  173. ForVersion = 0;
  174. Version = 0;
  175. Message = L"";
  176. Critical = false;
  177. Release = L"";
  178. Disabled = false;
  179. Url = L"";
  180. UrlButton = L"";
  181. NewsUrl = L"";
  182. NewsSize = TSize();
  183. DownloadUrl = L"";
  184. DownloadSize = 0;
  185. DownloadSha256 = L"";
  186. AuthenticationError = L"";
  187. OpenGettingStarted = false;
  188. DownloadingUrl = L"";
  189. TipsSize = TSize();
  190. TipsUrl = L"";
  191. Tips = L"";
  192. TipsIntervalDays = 7;
  193. TipsIntervalRuns = 5;
  194. }
  195. };
  196. //---------------------------------------------------------------------------
  197. enum TConnectionType { ctDirect, ctAuto, ctProxy };
  198. //---------------------------------------------------------------------------
  199. struct TUpdatesConfiguration
  200. {
  201. TDateTime Period;
  202. TDateTime LastCheck;
  203. TConnectionType ConnectionType;
  204. UnicodeString ProxyHost;
  205. int ProxyPort;
  206. TAutoSwitch BetaVersions;
  207. bool ShowOnStartup;
  208. UnicodeString AuthenticationEmail;
  209. bool HaveResults;
  210. bool ShownResults;
  211. UnicodeString DotNetVersion;
  212. UnicodeString ConsoleVersion;
  213. TUpdatesData Results;
  214. bool __fastcall operator !=(TUpdatesConfiguration & rhc)
  215. { return C(Period) C(LastCheck) C(ConnectionType) C(ProxyHost) C(ProxyPort)
  216. C(BetaVersions) C(ShowOnStartup) C(AuthenticationEmail)
  217. C(HaveResults) C(ShownResults) C(DotNetVersion)
  218. C(ConsoleVersion) C(Results) 0; };
  219. bool __fastcall HaveValidResultsForVersion(int CompoundVersion)
  220. {
  221. return
  222. HaveResults &&
  223. (double(Period) > 0) &&
  224. (Results.ForVersion == CompoundVersion);
  225. }
  226. };
  227. //---------------------------------------------------------------------------
  228. struct TEditorData
  229. {
  230. __fastcall TEditorData();
  231. __fastcall TEditorData(const TEditorData & Source);
  232. TFileMasks FileMask;
  233. TEditor Editor;
  234. UnicodeString ExternalEditor;
  235. bool ExternalEditorText;
  236. bool SDIExternalEditor;
  237. bool DetectMDIExternalEditor;
  238. bool __fastcall operator ==(const TEditorData & rhd) const;
  239. void __fastcall DecideExternalEditorText();
  240. static bool __fastcall DecideExternalEditorText(UnicodeString ExternalEditor);
  241. };
  242. //---------------------------------------------------------------------------
  243. #undef C
  244. //---------------------------------------------------------------------------
  245. class TEditorPreferences
  246. {
  247. public:
  248. __fastcall TEditorPreferences();
  249. __fastcall TEditorPreferences(const TEditorData & Data);
  250. bool __fastcall Matches(const UnicodeString FileName, bool Local,
  251. const TFileMasks::TParams & Params) const;
  252. void __fastcall Load(THierarchicalStorage * Storage, bool Legacy);
  253. void __fastcall Save(THierarchicalStorage * Storage) const;
  254. void __fastcall LegacyDefaults();
  255. UnicodeString __fastcall ExtractExternalEditorName() const;
  256. static UnicodeString __fastcall GetDefaultExternalEditor();
  257. bool __fastcall operator ==(const TEditorPreferences & rhp) const;
  258. __property const TEditorData * Data = { read = GetConstData };
  259. __property UnicodeString Name = { read = GetName };
  260. TEditorData * __fastcall GetData();
  261. private:
  262. TEditorData FData;
  263. mutable UnicodeString FName;
  264. UnicodeString __fastcall GetName() const;
  265. const TEditorData * __fastcall GetConstData() const { return &FData; };
  266. };
  267. //---------------------------------------------------------------------------
  268. class TEditorList
  269. {
  270. public:
  271. __fastcall TEditorList();
  272. virtual __fastcall ~TEditorList();
  273. const TEditorPreferences * __fastcall Find(const UnicodeString FileName,
  274. bool Local, const TFileMasks::TParams & Params) const;
  275. void __fastcall Load(THierarchicalStorage * Storage);
  276. void __fastcall Save(THierarchicalStorage * Storage) const;
  277. TEditorList & __fastcall operator=(const TEditorList & rhl);
  278. bool __fastcall operator==(const TEditorList & rhl) const;
  279. void __fastcall Clear();
  280. void __fastcall Add(TEditorPreferences * Editor);
  281. void __fastcall Insert(int Index, TEditorPreferences * Editor);
  282. void __fastcall Change(int Index, TEditorPreferences * Editor);
  283. void __fastcall Move(int CurIndex, int NewIndex);
  284. void __fastcall Delete(int Index);
  285. void __fastcall Saved();
  286. bool __fastcall IsDefaultList() const;
  287. __property int Count = { read = GetCount };
  288. __property const TEditorPreferences * Editors[int Index] = { read = GetEditor };
  289. __property bool Modified = { read = FModified };
  290. private:
  291. TList * FEditors;
  292. bool FModified;
  293. int __fastcall GetCount() const;
  294. void __fastcall Init();
  295. void __fastcall Modify();
  296. const TEditorPreferences * __fastcall GetEditor(int Index) const;
  297. };
  298. //---------------------------------------------------------------------------
  299. class TBookmarks;
  300. class TBookmarkList;
  301. class TCustomCommandList;
  302. enum TPathInCaption { picShort, picFull, picNone };
  303. // constants must be compatible with legacy CopyOnDoubleClick
  304. enum TDoubleClickAction { dcaOpen = 0, dcaCopy = 1, dcaEdit = 2 };
  305. //---------------------------------------------------------------------------
  306. typedef void __fastcall (__closure *TMasterPasswordPromptEvent)();
  307. //---------------------------------------------------------------------------
  308. class TWinConfiguration : public TCustomWinConfiguration
  309. {
  310. private:
  311. UnicodeString FAutoStartSession;
  312. TDoubleClickAction FDoubleClickAction;
  313. bool FCopyOnDoubleClickConfirmation;
  314. bool FDDAllowMove;
  315. bool FDDAllowMoveInit;
  316. TAutoSwitch FDDTransferConfirmation;
  317. bool FDeleteToRecycleBin;
  318. bool FDimmHiddenFiles;
  319. bool FRenameWholeName;
  320. TScpCommanderConfiguration FScpCommander;
  321. TScpExplorerConfiguration FScpExplorer;
  322. bool FSelectDirectories;
  323. UnicodeString FSelectMask;
  324. bool FShowHiddenFiles;
  325. TFormatBytesStyle FFormatSizeBytes;
  326. bool FShowInaccesibleDirectories;
  327. bool FConfirmTransferring;
  328. bool FConfirmDeleting;
  329. bool FConfirmRecycling;
  330. bool FUseLocationProfiles;
  331. bool FUseSharedBookmarks;
  332. UnicodeString FDDTemporaryDirectory;
  333. bool FDDWarnLackOfTempSpace;
  334. bool FDDExtEnabled;
  335. bool FDDFakeFile;
  336. int FDDExtInstalled;
  337. int FDDExtTimeout;
  338. bool FConfirmClosingSession;
  339. double FDDWarnLackOfTempSpaceRatio;
  340. UnicodeString FTemporarySessionFile;
  341. UnicodeString FTemporaryKeyFile;
  342. TBookmarks * FBookmarks;
  343. TCustomCommandList * FCustomCommandList;
  344. TCustomCommandList * FExtensionList;
  345. UnicodeString FExtensionsDeleted;
  346. UnicodeString FExtensionsOrder;
  347. bool FCustomCommandsDefaults;
  348. TEditorConfiguration FEditor;
  349. TQueueViewConfiguration FQueueView;
  350. bool FEnableQueueByDefault;
  351. bool FEmbeddedSessions;
  352. bool FExpertMode;
  353. bool FDisableOpenEdit;
  354. bool FDefaultDirIsHome;
  355. int FDDDeleteDelay;
  356. bool FTemporaryDirectoryAppendSession;
  357. bool FTemporaryDirectoryAppendPath;
  358. bool FTemporaryDirectoryDeterministic;
  359. bool FTemporaryDirectoryCleanup;
  360. bool FConfirmTemporaryDirectoryCleanup;
  361. UnicodeString FDefaultTranslationFile;
  362. UnicodeString FInvalidDefaultTranslationMessage;
  363. bool FPreservePanelState;
  364. UnicodeString FLastStoredSession;
  365. UnicodeString FLastWorkspace;
  366. bool FAutoSaveWorkspace;
  367. bool FAutoSaveWorkspacePasswords;
  368. UnicodeString FAutoWorkspace;
  369. TPathInCaption FPathInCaption;
  370. bool FMinimizeToTray;
  371. bool FMinimizeToTrayOnce;
  372. bool FBalloonNotifications;
  373. unsigned int FNotificationsTimeout;
  374. unsigned int FNotificationsStickTime;
  375. TUpdatesConfiguration FUpdates;
  376. UnicodeString FVersionHistory;
  377. bool FCopyParamAutoSelectNotice;
  378. bool FLockToolbars;
  379. bool FSelectiveToolbarText;
  380. TEditorList * FEditorList;
  381. TEditorPreferences * FLegacyEditor;
  382. UnicodeString FDefaultKeyFile;
  383. bool FAutoOpenInPutty;
  384. TDateTime FDefaultUpdatesPeriod;
  385. bool FRefreshRemotePanel;
  386. TDateTime FRefreshRemotePanelInterval;
  387. TFontConfiguration FPanelFont;
  388. bool FNaturalOrderNumericalSorting;
  389. bool FFullRowSelect;
  390. bool FOfferedEditorAutoConfig;
  391. bool FUseMasterPassword;
  392. UnicodeString FPlainMasterPasswordEncrypt;
  393. UnicodeString FPlainMasterPasswordDecrypt;
  394. UnicodeString FMasterPasswordVerifier;
  395. TMasterPasswordPromptEvent FOnMasterPasswordPrompt;
  396. UnicodeString FOpenedStoredSessionFolders;
  397. bool FAutoImportedFromPuttyOrFilezilla;
  398. int FGenerateUrlComponents;
  399. TGenerateUrlCodeTarget FGenerateUrlCodeTarget;
  400. TScriptFormat FGenerateUrlScriptFormat;
  401. TAssemblyLanguage FGenerateUrlAssemblyLanguage;
  402. bool FExternalSessionInExistingInstance;
  403. bool FKeepOpenWhenNoSession;
  404. bool FLocalIconsByExt;
  405. TLocaleFlagOverride FBidiModeOverride;
  406. TLocaleFlagOverride FFlipChildrenOverride;
  407. bool FShowTips;
  408. UnicodeString FTipsSeen;
  409. TDateTime FTipsShown;
  410. int FRunsSinceLastTip;
  411. bool FLockedInterface;
  412. int FDontDecryptPasswords;
  413. int FMasterPasswordSession;
  414. bool FMasterPasswordSessionAsked;
  415. std::unique_ptr<TStringList> FCustomCommandOptions;
  416. bool FCustomCommandOptionsModified;
  417. int FLastMachineInstallations;
  418. __property int LastMachineInstallations = { read = FLastMachineInstallations, write = FLastMachineInstallations };
  419. int FMachineInstallations;
  420. LCID FDefaultLocale;
  421. std::unique_ptr<TStrings> FExtensionTranslations;
  422. void __fastcall SetDoubleClickAction(TDoubleClickAction value);
  423. void __fastcall SetCopyOnDoubleClickConfirmation(bool value);
  424. void __fastcall SetDDAllowMove(bool value);
  425. void __fastcall SetDDAllowMoveInit(bool value);
  426. void __fastcall SetDDTransferConfirmation(TAutoSwitch value);
  427. void __fastcall SetDeleteToRecycleBin(bool value);
  428. void __fastcall SetDimmHiddenFiles(bool value);
  429. void __fastcall SetRenameWholeName(bool value);
  430. void __fastcall SetScpCommander(TScpCommanderConfiguration value);
  431. void __fastcall SetScpExplorer(TScpExplorerConfiguration value);
  432. void __fastcall SetSelectDirectories(bool value);
  433. void __fastcall SetShowHiddenFiles(bool value);
  434. void __fastcall SetFormatSizeBytes(TFormatBytesStyle value);
  435. void __fastcall SetShowInaccesibleDirectories(bool value);
  436. void __fastcall SetConfirmTransferring(bool value);
  437. void __fastcall SetConfirmDeleting(bool value);
  438. void __fastcall SetConfirmRecycling(bool value);
  439. void __fastcall SetUseLocationProfiles(bool value);
  440. void __fastcall SetUseSharedBookmarks(bool value);
  441. void __fastcall SetDDTemporaryDirectory(UnicodeString value);
  442. void __fastcall SetDDWarnLackOfTempSpace(bool value);
  443. void __fastcall SetDDExtEnabled(bool value);
  444. bool __fastcall GetDDExtEnabled();
  445. void __fastcall SetDDExtTimeout(int value);
  446. void __fastcall SetConfirmClosingSession(bool value);
  447. void __fastcall SetDDWarnLackOfTempSpaceRatio(double value);
  448. void __fastcall SetBookmarks(UnicodeString Key, TBookmarkList * value);
  449. TBookmarkList * __fastcall GetBookmarks(UnicodeString Key);
  450. void __fastcall SetSharedBookmarks(TBookmarkList * value);
  451. TBookmarkList * __fastcall GetSharedBookmarks();
  452. void __fastcall SetAutoStartSession(UnicodeString value);
  453. void __fastcall SetExpertMode(bool value);
  454. void __fastcall SetDefaultDirIsHome(bool value);
  455. void __fastcall SetEditor(TEditorConfiguration value);
  456. void __fastcall SetQueueView(TQueueViewConfiguration value);
  457. void __fastcall SetEnableQueueByDefault(bool value);
  458. void __fastcall SetCustomCommandList(TCustomCommandList * value);
  459. void __fastcall SetExtensionList(TCustomCommandList * value);
  460. void __fastcall SetTemporaryDirectoryAppendSession(bool value);
  461. void __fastcall SetTemporaryDirectoryAppendPath(bool value);
  462. void __fastcall SetTemporaryDirectoryDeterministic(bool value);
  463. void __fastcall SetTemporaryDirectoryCleanup(bool value);
  464. void __fastcall SetConfirmTemporaryDirectoryCleanup(bool value);
  465. void __fastcall SetPreservePanelState(bool value);
  466. void __fastcall SetLastStoredSession(UnicodeString value);
  467. void __fastcall SetAutoSaveWorkspace(bool value);
  468. void __fastcall SetAutoSaveWorkspacePasswords(bool value);
  469. void __fastcall SetAutoWorkspace(UnicodeString value);
  470. void __fastcall SetPathInCaption(TPathInCaption value);
  471. void __fastcall SetMinimizeToTray(bool value);
  472. bool __fastcall GetMinimizeToTray();
  473. void __fastcall SetBalloonNotifications(bool value);
  474. void __fastcall SetNotificationsTimeout(unsigned int value);
  475. void __fastcall SetNotificationsStickTime(unsigned int value);
  476. void __fastcall SetCopyParamAutoSelectNotice(bool value);
  477. TUpdatesConfiguration __fastcall GetUpdates();
  478. void __fastcall SetUpdates(TUpdatesConfiguration value);
  479. void __fastcall SetVersionHistory(UnicodeString value);
  480. void __fastcall SetLockToolbars(bool value);
  481. void __fastcall SetSelectiveToolbarText(bool value);
  482. const TEditorList * __fastcall GetEditorList();
  483. void __fastcall SetEditorList(const TEditorList * value);
  484. void __fastcall SetAutoOpenInPutty(bool value);
  485. void __fastcall SetRefreshRemotePanel(bool value);
  486. void __fastcall SetRefreshRemotePanelInterval(TDateTime value);
  487. void __fastcall SetPanelFont(const TFontConfiguration & value);
  488. void __fastcall SetNaturalOrderNumericalSorting(bool value);
  489. void __fastcall SetFullRowSelect(bool value);
  490. void __fastcall SetOfferedEditorAutoConfig(bool value);
  491. void __fastcall SetLastMonitor(int value);
  492. int __fastcall GetLastMonitor();
  493. void __fastcall SetOpenedStoredSessionFolders(UnicodeString value);
  494. void __fastcall SetAutoImportedFromPuttyOrFilezilla(bool value);
  495. void __fastcall SetGenerateUrlComponents(int value);
  496. void __fastcall SetGenerateUrlCodeTarget(TGenerateUrlCodeTarget value);
  497. void __fastcall SetGenerateUrlScriptFormat(TScriptFormat value);
  498. void __fastcall SetGenerateUrlAssemblyLanguage(TAssemblyLanguage value);
  499. void __fastcall SetExternalSessionInExistingInstance(bool value);
  500. void __fastcall SetKeepOpenWhenNoSession(bool value);
  501. void __fastcall SetLocalIconsByExt(bool value);
  502. void __fastcall SetBidiModeOverride(TLocaleFlagOverride value);
  503. void __fastcall SetFlipChildrenOverride(TLocaleFlagOverride value);
  504. void __fastcall SetShowTips(bool value);
  505. void __fastcall SetTipsSeen(UnicodeString value);
  506. void __fastcall SetTipsShown(TDateTime value);
  507. void __fastcall SetRunsSinceLastTip(int value);
  508. bool __fastcall GetHonorDrivePolicy();
  509. void __fastcall SetHonorDrivePolicy(bool value);
  510. bool __fastcall GetIsBeta();
  511. TStrings * __fastcall GetCustomCommandOptions();
  512. void __fastcall SetCustomCommandOptions(TStrings * value);
  513. void __fastcall SetLockedInterface(bool value);
  514. bool __fastcall GetTimeoutShellOperations();
  515. void __fastcall SetTimeoutShellOperations(bool value);
  516. int __fastcall GetLocaleCompletenessTreshold();
  517. bool __fastcall GetDDExtInstalled();
  518. void __fastcall AddVersionToHistory();
  519. bool __fastcall GetAnyBetaInVersionHistory();
  520. void __fastcall PurgePassword(UnicodeString & Password);
  521. void __fastcall UpdateEntryInJumpList(
  522. bool Session, const UnicodeString & Name, bool Add);
  523. TStringList * __fastcall LoadJumpList(THierarchicalStorage * Storage,
  524. UnicodeString Name);
  525. void __fastcall SaveJumpList(THierarchicalStorage * Storage,
  526. UnicodeString Name, TStringList * List);
  527. void __fastcall TrimJumpList(TStringList * List);
  528. void __fastcall UpdateIconFont();
  529. protected:
  530. virtual TStorage __fastcall GetStorage();
  531. virtual void __fastcall SaveData(THierarchicalStorage * Storage, bool All);
  532. virtual void __fastcall LoadData(THierarchicalStorage * Storage);
  533. virtual void __fastcall LoadFrom(THierarchicalStorage * Storage);
  534. virtual void __fastcall LoadAdmin(THierarchicalStorage * Storage);
  535. virtual void __fastcall CopyData(THierarchicalStorage * Source, THierarchicalStorage * Target);
  536. virtual UnicodeString __fastcall GetDefaultKeyFile();
  537. virtual void __fastcall Saved();
  538. void __fastcall RecryptPasswords(TStrings * RecryptPasswordErrors);
  539. virtual bool __fastcall GetUseMasterPassword();
  540. bool __fastcall SameStringLists(TStrings * Strings1, TStrings * Strings2);
  541. virtual HINSTANCE __fastcall LoadNewResourceModule(LCID Locale,
  542. UnicodeString & FileName);
  543. void __fastcall CheckTranslationVersion(const UnicodeString FileName,
  544. bool InternalLocaleOnError);
  545. virtual void __fastcall DefaultLocalized();
  546. bool __fastcall DetectRegistryStorage(HKEY RootKey);
  547. bool __fastcall CanWriteToStorage();
  548. bool __fastcall DoIsBeta(const UnicodeString & ReleaseType);
  549. void __fastcall AskForMasterPassword();
  550. void __fastcall DoLoadExtensionList(const UnicodeString & Path, const UnicodeString & PathId, TStringList * DeletedExtensions);
  551. TStrings * __fastcall GetExtensionsPaths();
  552. virtual int __fastcall GetResourceModuleCompleteness(HINSTANCE Module);
  553. virtual bool __fastcall IsTranslationComplete(HINSTANCE Module);
  554. void __fastcall LoadExtensionList();
  555. void __fastcall ReleaseExtensionTranslations();
  556. void __fastcall LoadExtensionTranslations();
  557. __property bool DDFakeFile = { read=FDDFakeFile, write=FDDFakeFile };
  558. public:
  559. __fastcall TWinConfiguration();
  560. virtual __fastcall ~TWinConfiguration();
  561. virtual void __fastcall Default();
  562. void __fastcall ClearTemporaryLoginData();
  563. virtual THierarchicalStorage * CreateScpStorage(bool & SessionList);
  564. UnicodeString __fastcall TemporaryDir(bool Mask = false);
  565. TStrings * __fastcall FindTemporaryFolders();
  566. void __fastcall CleanupTemporaryFolders(TStrings * Folders = NULL);
  567. UnicodeString __fastcall ExpandedTemporaryDirectory();
  568. void __fastcall CheckDefaultTranslation();
  569. const TEditorPreferences * __fastcall DefaultEditorForFile(
  570. const UnicodeString FileName, bool Local, const TFileMasks::TParams & MaskParams);
  571. virtual UnicodeString __fastcall DecryptPassword(RawByteString Password, UnicodeString Key);
  572. virtual RawByteString __fastcall StronglyRecryptPassword(RawByteString Password, UnicodeString Key);
  573. void __fastcall SetMasterPassword(UnicodeString value);
  574. void __fastcall ChangeMasterPassword(UnicodeString value, TStrings * RecryptPasswordErrors);
  575. bool __fastcall ValidateMasterPassword(UnicodeString value);
  576. void __fastcall ClearMasterPassword(TStrings * RecryptPasswordErrors);
  577. void __fastcall BeginMasterPasswordSession();
  578. void __fastcall EndMasterPasswordSession();
  579. virtual void __fastcall AskForMasterPasswordIfNotSet();
  580. void __fastcall AddSessionToJumpList(UnicodeString SessionName);
  581. void __fastcall DeleteSessionFromJumpList(UnicodeString SessionName);
  582. void __fastcall AddWorkspaceToJumpList(UnicodeString Workspace);
  583. void __fastcall DeleteWorkspaceFromJumpList(UnicodeString Workspace);
  584. void __fastcall UpdateJumpList();
  585. virtual void __fastcall UpdateStaticUsage();
  586. void __fastcall MinimizeToTrayOnce();
  587. void __fastcall CustomCommandShortCuts(TShortCuts & ShortCuts) const;
  588. UnicodeString __fastcall GetUserExtensionsPath();
  589. UnicodeString __fastcall GetExtensionId(const UnicodeString & ExtensionPath);
  590. UnicodeString __fastcall ExtensionStringTranslation(const UnicodeString & ExtensionId, const UnicodeString & S);
  591. UnicodeString __fastcall UniqueExtensionName(const UnicodeString & ExtensionName, int Counter);
  592. UnicodeString __fastcall GetProvisionaryExtensionId(const UnicodeString & FileName);
  593. bool __fastcall IsDDExtRunning();
  594. static void __fastcall RestoreFont(const TFontConfiguration & Configuration, TFont * Font);
  595. static void __fastcall StoreFont(TFont * Font, TFontConfiguration & Configuration);
  596. __property TScpCommanderConfiguration ScpCommander = { read = FScpCommander, write = SetScpCommander };
  597. __property TScpExplorerConfiguration ScpExplorer = { read = FScpExplorer, write = SetScpExplorer };
  598. __property bool SelectDirectories = { read = FSelectDirectories, write = SetSelectDirectories };
  599. __property UnicodeString SelectMask = { read = FSelectMask, write = FSelectMask };
  600. __property bool ShowHiddenFiles = { read = FShowHiddenFiles, write = SetShowHiddenFiles };
  601. __property TFormatBytesStyle FormatSizeBytes = { read = FFormatSizeBytes, write = SetFormatSizeBytes };
  602. __property bool ShowInaccesibleDirectories = { read = FShowInaccesibleDirectories, write = SetShowInaccesibleDirectories };
  603. __property TEditorConfiguration Editor = { read = FEditor, write = SetEditor };
  604. __property TQueueViewConfiguration QueueView = { read = FQueueView, write = SetQueueView };
  605. __property bool EnableQueueByDefault = { read = FEnableQueueByDefault, write = SetEnableQueueByDefault };
  606. __property TUpdatesConfiguration Updates = { read = GetUpdates, write = SetUpdates };
  607. __property UnicodeString VersionHistory = { read = FVersionHistory, write = SetVersionHistory };
  608. __property bool AnyBetaInVersionHistory = { read = GetAnyBetaInVersionHistory };
  609. __property bool IsBeta = { read = GetIsBeta };
  610. __property UnicodeString AutoStartSession = { read = FAutoStartSession, write = SetAutoStartSession };
  611. __property TDoubleClickAction DoubleClickAction = { read = FDoubleClickAction, write = SetDoubleClickAction };
  612. __property bool CopyOnDoubleClickConfirmation = { read = FCopyOnDoubleClickConfirmation, write = SetCopyOnDoubleClickConfirmation };
  613. __property bool DDAllowMove = { read = FDDAllowMove, write = SetDDAllowMove };
  614. __property bool DDAllowMoveInit = { read = FDDAllowMoveInit, write = SetDDAllowMoveInit };
  615. __property TAutoSwitch DDTransferConfirmation = { read = FDDTransferConfirmation, write = SetDDTransferConfirmation };
  616. __property bool DeleteToRecycleBin = { read = FDeleteToRecycleBin, write = SetDeleteToRecycleBin };
  617. __property bool DimmHiddenFiles = { read = FDimmHiddenFiles, write = SetDimmHiddenFiles };
  618. __property bool RenameWholeName = { read = FRenameWholeName, write = SetRenameWholeName };
  619. __property bool ConfirmTransferring = { read = FConfirmTransferring, write = SetConfirmTransferring};
  620. __property bool ConfirmDeleting = { read = FConfirmDeleting, write = SetConfirmDeleting};
  621. __property bool ConfirmRecycling = { read = FConfirmRecycling, write = SetConfirmRecycling};
  622. __property bool UseLocationProfiles = { read = FUseLocationProfiles, write = SetUseLocationProfiles};
  623. __property bool UseSharedBookmarks = { read = FUseSharedBookmarks, write = SetUseSharedBookmarks};
  624. __property UnicodeString DDTemporaryDirectory = { read=FDDTemporaryDirectory, write=SetDDTemporaryDirectory };
  625. __property bool DDWarnLackOfTempSpace = { read=FDDWarnLackOfTempSpace, write=SetDDWarnLackOfTempSpace };
  626. __property bool DDExtEnabled = { read=GetDDExtEnabled, write=SetDDExtEnabled };
  627. __property bool DDExtInstalled = { read=GetDDExtInstalled };
  628. __property int DDExtTimeout = { read=FDDExtTimeout, write=SetDDExtTimeout };
  629. __property bool ConfirmClosingSession = { read=FConfirmClosingSession, write=SetConfirmClosingSession };
  630. __property double DDWarnLackOfTempSpaceRatio = { read=FDDWarnLackOfTempSpaceRatio, write=SetDDWarnLackOfTempSpaceRatio };
  631. __property TBookmarkList * Bookmarks[UnicodeString Key] = { read = GetBookmarks, write = SetBookmarks };
  632. __property TBookmarkList * SharedBookmarks = { read = GetSharedBookmarks, write = SetSharedBookmarks };
  633. __property bool EmbeddedSessions = { read = FEmbeddedSessions };
  634. __property bool ExpertMode = { read = FExpertMode, write = SetExpertMode };
  635. __property bool DefaultDirIsHome = { read = FDefaultDirIsHome, write = SetDefaultDirIsHome };
  636. __property bool DisableOpenEdit = { read = FDisableOpenEdit };
  637. __property TCustomCommandList * CustomCommandList = { read = FCustomCommandList, write = SetCustomCommandList };
  638. __property TCustomCommandList * ExtensionList = { read = FExtensionList, write = SetExtensionList };
  639. __property int DDDeleteDelay = { read = FDDDeleteDelay };
  640. __property bool TemporaryDirectoryAppendSession = { read = FTemporaryDirectoryAppendSession, write = SetTemporaryDirectoryAppendSession };
  641. __property bool TemporaryDirectoryAppendPath = { read = FTemporaryDirectoryAppendPath, write = SetTemporaryDirectoryAppendPath };
  642. __property bool TemporaryDirectoryDeterministic = { read = FTemporaryDirectoryDeterministic, write = SetTemporaryDirectoryDeterministic };
  643. __property bool TemporaryDirectoryCleanup = { read = FTemporaryDirectoryCleanup, write = SetTemporaryDirectoryCleanup };
  644. __property bool ConfirmTemporaryDirectoryCleanup = { read = FConfirmTemporaryDirectoryCleanup, write = SetConfirmTemporaryDirectoryCleanup };
  645. __property bool PreservePanelState = { read = FPreservePanelState, write = SetPreservePanelState };
  646. __property UnicodeString LastStoredSession = { read = FLastStoredSession, write = SetLastStoredSession };
  647. __property UnicodeString LastWorkspace = { read = FLastWorkspace, write = FLastWorkspace };
  648. __property bool AutoSaveWorkspace = { read = FAutoSaveWorkspace, write = SetAutoSaveWorkspace };
  649. __property bool AutoSaveWorkspacePasswords = { read = FAutoSaveWorkspacePasswords, write = SetAutoSaveWorkspacePasswords };
  650. __property UnicodeString AutoWorkspace = { read = FAutoWorkspace, write = SetAutoWorkspace };
  651. __property TPathInCaption PathInCaption = { read = FPathInCaption, write = SetPathInCaption };
  652. __property bool MinimizeToTray = { read = GetMinimizeToTray, write = SetMinimizeToTray };
  653. __property bool BalloonNotifications = { read = FBalloonNotifications, write = SetBalloonNotifications };
  654. __property unsigned int NotificationsTimeout = { read = FNotificationsTimeout, write = SetNotificationsTimeout };
  655. __property unsigned int NotificationsStickTime = { read = FNotificationsStickTime, write = SetNotificationsStickTime };
  656. __property UnicodeString DefaultTranslationFile = { read = FDefaultTranslationFile };
  657. __property bool CopyParamAutoSelectNotice = { read = FCopyParamAutoSelectNotice, write = SetCopyParamAutoSelectNotice };
  658. __property bool LockToolbars = { read = FLockToolbars, write = SetLockToolbars };
  659. __property bool SelectiveToolbarText = { read = FSelectiveToolbarText, write = SetSelectiveToolbarText };
  660. __property bool AutoOpenInPutty = { read = FAutoOpenInPutty, write = SetAutoOpenInPutty };
  661. __property bool RefreshRemotePanel = { read = FRefreshRemotePanel, write = SetRefreshRemotePanel };
  662. __property TDateTime RefreshRemotePanelInterval = { read = FRefreshRemotePanelInterval, write = SetRefreshRemotePanelInterval };
  663. __property TFontConfiguration PanelFont = { read = FPanelFont, write = SetPanelFont };
  664. __property bool NaturalOrderNumericalSorting = { read = FNaturalOrderNumericalSorting, write = SetNaturalOrderNumericalSorting };
  665. __property bool FullRowSelect = { read = FFullRowSelect, write = SetFullRowSelect };
  666. __property bool OfferedEditorAutoConfig = { read = FOfferedEditorAutoConfig, write = SetOfferedEditorAutoConfig };
  667. __property int LastMonitor = { read = GetLastMonitor, write = SetLastMonitor };
  668. __property const TEditorList * EditorList = { read = GetEditorList, write = SetEditorList };
  669. __property UnicodeString DefaultKeyFile = { read = GetDefaultKeyFile, write = FDefaultKeyFile };
  670. __property UnicodeString OpenedStoredSessionFolders = { read = FOpenedStoredSessionFolders, write = SetOpenedStoredSessionFolders };
  671. __property bool AutoImportedFromPuttyOrFilezilla = { read = FAutoImportedFromPuttyOrFilezilla, write = SetAutoImportedFromPuttyOrFilezilla };
  672. __property int GenerateUrlComponents = { read = FGenerateUrlComponents, write = SetGenerateUrlComponents };
  673. __property TGenerateUrlCodeTarget GenerateUrlCodeTarget = { read = FGenerateUrlCodeTarget, write = SetGenerateUrlCodeTarget };
  674. __property TScriptFormat GenerateUrlScriptFormat = { read = FGenerateUrlScriptFormat, write = SetGenerateUrlScriptFormat };
  675. __property TAssemblyLanguage GenerateUrlAssemblyLanguage = { read = FGenerateUrlAssemblyLanguage, write = SetGenerateUrlAssemblyLanguage };
  676. __property bool ExternalSessionInExistingInstance = { read = FExternalSessionInExistingInstance, write = SetExternalSessionInExistingInstance };
  677. __property bool KeepOpenWhenNoSession = { read = FKeepOpenWhenNoSession, write = SetKeepOpenWhenNoSession };
  678. __property bool LocalIconsByExt = { read = FLocalIconsByExt, write = SetLocalIconsByExt };
  679. __property TLocaleFlagOverride BidiModeOverride = { read = FBidiModeOverride, write = SetBidiModeOverride };
  680. __property TLocaleFlagOverride FlipChildrenOverride = { read = FFlipChildrenOverride, write = SetFlipChildrenOverride };
  681. __property bool ShowTips = { read = FShowTips, write = SetShowTips };
  682. __property UnicodeString TipsSeen = { read = FTipsSeen, write = SetTipsSeen };
  683. __property TDateTime TipsShown = { read = FTipsShown, write = SetTipsShown };
  684. __property int RunsSinceLastTip = { read = FRunsSinceLastTip, write = SetRunsSinceLastTip };
  685. __property bool HonorDrivePolicy = { read = GetHonorDrivePolicy, write = SetHonorDrivePolicy };
  686. __property TMasterPasswordPromptEvent OnMasterPasswordPrompt = { read = FOnMasterPasswordPrompt, write = FOnMasterPasswordPrompt };
  687. __property TStrings * CustomCommandOptions = { read = GetCustomCommandOptions, write = SetCustomCommandOptions };
  688. __property bool LockedInterface = { read = FLockedInterface, write = SetLockedInterface };
  689. __property bool TimeoutShellOperations = { read = GetTimeoutShellOperations, write = SetTimeoutShellOperations };
  690. __property LCID DefaultLocale = { read = FDefaultLocale };
  691. __property int LocaleCompletenessTreshold = { read = GetLocaleCompletenessTreshold };
  692. };
  693. //---------------------------------------------------------------------------
  694. class TCustomCommandType
  695. {
  696. public:
  697. __fastcall TCustomCommandType();
  698. __fastcall TCustomCommandType(const TCustomCommandType & Other);
  699. enum TOptionKind { okUnknown, okLabel, okLink, okSeparator, okGroup, okTextBox, okFile, okDropDownList, okComboBox, okCheckBox };
  700. enum TOptionFlag { ofRun = 0x01, ofConfig = 0x02, ofSite = 0x04 };
  701. class TOption
  702. {
  703. public:
  704. __fastcall TOption() {}
  705. UnicodeString Id;
  706. unsigned int Flags;
  707. TOptionKind Kind;
  708. UnicodeString Caption;
  709. UnicodeString Default;
  710. typedef std::vector<UnicodeString> TParams;
  711. TParams Params;
  712. UnicodeString FileCaption;
  713. UnicodeString FileFilter;
  714. UnicodeString FileInitial;
  715. UnicodeString FileExt;
  716. bool operator==(const TOption & Other) const;
  717. __property bool IsControl = { read = GetIsControl };
  718. bool HasPatterns(TCustomCommand * CustomCommandForOptions) const;
  719. private:
  720. bool __fastcall GetIsControl() const;
  721. };
  722. TCustomCommandType & operator=(const TCustomCommandType & Other);
  723. bool __fastcall Equals(const TCustomCommandType * Other) const;
  724. void __fastcall LoadExtension(const UnicodeString & Path);
  725. void __fastcall LoadExtension(TStrings * Lines, const UnicodeString & PathForBaseName);
  726. static UnicodeString __fastcall GetExtensionId(const UnicodeString & Name);
  727. __property UnicodeString Name = { read = FName, write = FName };
  728. __property UnicodeString Command = { read = FCommand, write = FCommand };
  729. __property int Params = { read = FParams, write = FParams };
  730. __property TShortCut ShortCut = { read = FShortCut, write = FShortCut };
  731. __property UnicodeString Id = { read = FId, write = FId };
  732. __property UnicodeString FileName = { read = FFileName, write = FFileName };
  733. __property UnicodeString Description = { read = FDescription, write = FDescription };
  734. __property UnicodeString HomePage = { read = FHomePage, write = FHomePage };
  735. __property UnicodeString OptionsPage = { read = FOptionsPage, write = FOptionsPage };
  736. __property int OptionsCount = { read = GetOptionsCount };
  737. const TOption & __fastcall GetOption(int Index) const;
  738. bool __fastcall AnyOptionWithFlag(unsigned int Flag) const;
  739. UnicodeString __fastcall GetOptionKey(const TOption & Option, const UnicodeString & Site) const;
  740. UnicodeString __fastcall GetCommandWithExpandedOptions(
  741. TStrings * CustomCommandOptions, const UnicodeString & Site) const;
  742. protected:
  743. bool __fastcall ParseOption(const UnicodeString & Value, TOption & Option, const UnicodeString & ExtensionBaseName);
  744. int __fastcall GetOptionsCount() const;
  745. UnicodeString __fastcall GetOptionCommand(const TOption & Option, const UnicodeString & Value) const;
  746. private:
  747. UnicodeString FName;
  748. UnicodeString FCommand;
  749. int FParams;
  750. TShortCut FShortCut;
  751. UnicodeString FId;
  752. UnicodeString FFileName;
  753. UnicodeString FDescription;
  754. UnicodeString FHomePage;
  755. UnicodeString FOptionsPage;
  756. std::vector<TOption> FOptions;
  757. };
  758. //---------------------------------------------------------------------------
  759. class TCustomCommandList
  760. {
  761. public:
  762. __fastcall TCustomCommandList();
  763. __fastcall ~TCustomCommandList();
  764. void __fastcall Load(THierarchicalStorage * Storage);
  765. void __fastcall Save(THierarchicalStorage * Storage);
  766. void __fastcall Reset();
  767. void __fastcall Modify();
  768. void __fastcall Clear();
  769. void __fastcall Add(const UnicodeString Name, const UnicodeString Command, int Params);
  770. void __fastcall Add(TCustomCommandType * Command);
  771. void __fastcall Insert(int Index, TCustomCommandType * Command);
  772. void __fastcall Change(int Index, TCustomCommandType * Command);
  773. void __fastcall Move(int CurIndex, int NewIndex);
  774. void __fastcall Delete(int Index);
  775. void __fastcall SortBy(TStrings * Ids);
  776. const TCustomCommandType * Find(const UnicodeString Name) const;
  777. const TCustomCommandType * Find(TShortCut ShortCut) const;
  778. int FindIndexByFileName(const UnicodeString & FileName) const;
  779. bool __fastcall Equals(const TCustomCommandList * Other) const;
  780. void __fastcall Assign(const TCustomCommandList * Other);
  781. void __fastcall ShortCuts(TShortCuts & ShortCuts) const;
  782. __property bool Modified = { read = FModified };
  783. __property int Count = { read = GetCount };
  784. __property const TCustomCommandType * Commands[int Index] = { read = GetConstCommand };
  785. private:
  786. bool FModified;
  787. TList * FCommands;
  788. int __fastcall GetCount() const;
  789. const TCustomCommandType * __fastcall GetConstCommand(int Index) const;
  790. TCustomCommandType * __fastcall GetCommand(int Index);
  791. };
  792. //---------------------------------------------------------------------------
  793. extern TWinConfiguration * WinConfiguration;
  794. extern const UnicodeString WinSCPExtensionExt;
  795. //---------------------------------------------------------------------------
  796. #endif