Preferences.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. //----------------------------------------------------------------------------
  2. #ifndef PreferencesH
  3. #define PreferencesH
  4. //----------------------------------------------------------------------------
  5. #include "ComboEdit.hpp"
  6. #include "UpDownEdit.hpp"
  7. #include <System.Classes.hpp>
  8. #include <Vcl.ComCtrls.hpp>
  9. #include <Vcl.Controls.hpp>
  10. #include <Vcl.ExtCtrls.hpp>
  11. #include <Vcl.Forms.hpp>
  12. #include <Vcl.Mask.hpp>
  13. #include <Vcl.StdCtrls.hpp>
  14. //----------------------------------------------------------------------------
  15. #include "UpDownEdit.hpp"
  16. #include <Dialogs.hpp>
  17. #include <PasTools.hpp>
  18. #include "HistoryComboBox.hpp"
  19. #include <WinInterface.h>
  20. #include <Vcl.Imaging.pngimage.hpp>
  21. #include <Vcl.Menus.hpp>
  22. #include <WinConfiguration.h>
  23. #include "PathLabel.hpp"
  24. //----------------------------------------------------------------------------
  25. class TCustomCommandList;
  26. class TEditorList;
  27. class THttp;
  28. //----------------------------------------------------------------------------
  29. class TPreferencesDialog : public TForm
  30. {
  31. __published:
  32. TButton *OKButton;
  33. TButton *CloseButton;
  34. TPanel *MainPanel;
  35. TPageControl *PageControl;
  36. TTabSheet *PreferencesSheet;
  37. TGroupBox *CommonPreferencesGroup;
  38. TCheckBox *ConfirmOverwritingCheck;
  39. TCheckBox *ConfirmDeletingCheck;
  40. TCheckBox *ConfirmClosingSessionCheck2;
  41. TCheckBox *DDTransferConfirmationCheck;
  42. TCheckBox *ContinueOnErrorCheck;
  43. TTabSheet *LogSheet;
  44. TTabSheet *GeneralSheet;
  45. TLabel *InterfaceChangeLabel;
  46. TTabSheet *PanelsSheet;
  47. TGroupBox *PanelsRemoteDirectoryGroup;
  48. TCheckBox *ShowInaccesibleDirectoriesCheck;
  49. TGroupBox *PanelsCommonGroup;
  50. TCheckBox *ShowHiddenFilesCheck;
  51. TCheckBox *DefaultDirIsHomeCheck;
  52. TTabSheet *CommanderSheet;
  53. TLabel *Label3;
  54. TGroupBox *PanelsGroup;
  55. TCheckBox *PreserveLocalDirectoryCheck;
  56. TGroupBox *CommanderMiscGroup;
  57. TCheckBox *UseLocationProfilesCheck;
  58. TGroupBox *CompareCriterionsGroup;
  59. TCheckBox *CompareByTimeCheck;
  60. TCheckBox *CompareBySizeCheck;
  61. TTabSheet *ExplorerSheet;
  62. TLabel *Label4;
  63. TGroupBox *GroupBox2;
  64. TCheckBox *ShowFullAddressCheck;
  65. TTabSheet *EditorSheet;
  66. TGroupBox *EditorPreferenceGroup;
  67. TTabSheet *IntegrationSheet;
  68. TGroupBox *ShellIconsGroup;
  69. TButton *DesktopIconButton;
  70. TButton *QuickLaunchIconButton;
  71. TButton *SendToHookButton;
  72. TTabSheet *CustomCommandsSheet;
  73. TGroupBox *CustomCommandsGroup;
  74. TListView *CustomCommandsView;
  75. TButton *AddCommandButton;
  76. TButton *RemoveCommandButton;
  77. TButton *UpCommandButton;
  78. TButton *DownCommandButton;
  79. TButton *EditCommandButton;
  80. TPanel *LeftPanel;
  81. TTreeView *NavigationTree;
  82. TCheckBox *DeleteToRecycleBinCheck;
  83. TButton *RegisterAsUrlHandlersButton;
  84. TTabSheet *DragDropSheet;
  85. TGroupBox *DragDropDownloadsGroup;
  86. TLabel *DDExtEnabledLabel;
  87. TLabel *DDExtDisabledLabel;
  88. TRadioButton *DDExtEnabledButton;
  89. TRadioButton *DDExtDisabledButton;
  90. TPanel *DDExtDisabledPanel;
  91. TCheckBox *DDWarnLackOfTempSpaceCheck;
  92. TCheckBox *DDWarnOnMoveCheck;
  93. TCheckBox *ConfirmExitOnCompletionCheck;
  94. TTabSheet *QueueSheet;
  95. TGroupBox *QueueGroup;
  96. TUpDownEdit *QueueTransferLimitEdit;
  97. TLabel *Label5;
  98. TGroupBox *QueueViewGroup;
  99. TRadioButton *QueueViewShowButton;
  100. TRadioButton *QueueViewHideWhenEmptyButton;
  101. TRadioButton *QueueViewHideButton;
  102. TCheckBox *QueueAutoPopupCheck;
  103. TCheckBox *QueueCheck;
  104. TCheckBox *DDAllowMoveInitCheck;
  105. TCheckBox *ConfirmResumeCheck;
  106. TTabSheet *StorageSheet;
  107. TGroupBox *StorageGroup;
  108. TRadioButton *RegistryStorageButton;
  109. TRadioButton *AutomaticIniFileStorageButton;
  110. TGroupBox *NotificationsGroup;
  111. TCheckBox *BeepOnFinishCheck;
  112. TUpDownEdit *BeepOnFinishAfterEdit;
  113. TLabel *BeepOnFinishAfterText;
  114. TTabSheet *TransferEnduranceSheet;
  115. TGroupBox *ResumeBox;
  116. TLabel *ResumeThresholdUnitLabel2;
  117. TRadioButton *ResumeOnButton;
  118. TRadioButton *ResumeSmartButton;
  119. TRadioButton *ResumeOffButton;
  120. TUpDownEdit *ResumeThresholdEdit;
  121. TCheckBox *ConfirmCommandSessionCheck;
  122. TGroupBox *TemporaryDirectoryGrouo;
  123. TRadioButton *DDSystemTemporaryDirectoryButton;
  124. TRadioButton *DDCustomTemporaryDirectoryButton;
  125. TDirectoryEdit *DDTemporaryDirectoryEdit;
  126. TLabel *Label6;
  127. TCheckBox *TemporaryDirectoryCleanupCheck;
  128. TCheckBox *ConfirmTemporaryDirectoryCleanupCheck;
  129. TGroupBox *OtherStorageGroup;
  130. TLabel *RandomSeedFileLabel;
  131. TFilenameEdit *RandomSeedFileEdit;
  132. TCheckBox *SwappedPanelsCheck;
  133. TCheckBox *PreservePanelStateCheck;
  134. TButton *AddSearchPathButton;
  135. TCheckBox *QueueNoConfirmationCheck;
  136. TGroupBox *PathInCaptionGroup;
  137. TRadioButton *PathInCaptionFullButton;
  138. TRadioButton *PathInCaptionShortButton;
  139. TRadioButton *PathInCaptionNoneButton;
  140. TTabSheet *UpdatesSheet;
  141. TGroupBox *UpdatesGroup2;
  142. TGroupBox *UpdatesProxyGroup;
  143. TLabel *UpdatesProxyHostLabel;
  144. TLabel *UpdatesProxyPortLabel;
  145. TUpDownEdit *UpdatesProxyPortEdit;
  146. TEdit *UpdatesProxyHostEdit;
  147. TRadioButton *UpdatesProxyCheck;
  148. TTabSheet *CopyParamListSheet;
  149. TGroupBox *CopyParamListGroup;
  150. TListView *CopyParamListView;
  151. TButton *AddCopyParamButton;
  152. TButton *RemoveCopyParamButton;
  153. TButton *UpCopyParamButton;
  154. TButton *DownCopyParamButton;
  155. TButton *EditCopyParamButton;
  156. TButton *DuplicateCopyParamButton;
  157. TCheckBox *CopyParamAutoSelectNoticeCheck;
  158. TButton *HelpButton;
  159. TListView *EditorListView3;
  160. TButton *AddEditorButton;
  161. TButton *EditEditorButton;
  162. TButton *UpEditorButton;
  163. TButton *DownEditorButton;
  164. TButton *RemoveEditorButton;
  165. TGroupBox *DoubleClickGroup;
  166. TCheckBox *CopyOnDoubleClickConfirmationCheck;
  167. TLabel *DoubleClickActionLabel;
  168. TComboBox *DoubleClickActionCombo;
  169. TLabel *Label8;
  170. TComboBox *NortonLikeModeCombo;
  171. TStaticText *ShellIconsText2;
  172. TCheckBox *FullRowSelectCheck;
  173. TGroupBox *SessionReopenGroup;
  174. TLabel *SessionReopenAutoLabel;
  175. TCheckBox *SessionReopenAutoCheck;
  176. TLabel *SessionReopenAutoSecLabel;
  177. TUpDownEdit *SessionReopenAutoEdit;
  178. TTabSheet *WindowSheet;
  179. TCheckBox *AutoReadDirectoryAfterOpCheck;
  180. TCheckBox *ConfirmRecyclingCheck;
  181. TGroupBox *WindowMiscellaneousGroup;
  182. TCheckBox *MinimizeToTrayCheck;
  183. TCheckBox *BalloonNotificationsCheck;
  184. TTabSheet *IntegrationAppSheet;
  185. TGroupBox *ExternalAppsGroup;
  186. TLabel *PuttyPathLabel;
  187. THistoryComboBox *PuttyPathEdit;
  188. TCheckBox *PuttyPasswordCheck2;
  189. TCheckBox *AutoOpenInPuttyCheck;
  190. TButton *PuttyPathBrowseButton;
  191. TCheckBox *TelnetForFtpInPuttyCheck;
  192. TRadioButton *UpdatesDirectCheck;
  193. TRadioButton *UpdatesAutoCheck;
  194. TCheckBox *ConfirmTransferringCheck;
  195. TGroupBox *UpdatesOptionsGroup;
  196. TCheckBox *QueueParallelCheck;
  197. TCheckBox *SessionReopenAutoIdleCheck;
  198. TCheckBox *RenameWholeNameCheck;
  199. TCheckBox *TreeOnLeftCheck;
  200. TCheckBox *TemporaryDirectoryAppendSessionCheck;
  201. TCheckBox *TemporaryDirectoryAppendPathCheck;
  202. TLabel *SessionReopenTimeoutLabel;
  203. TUpDownEdit *SessionReopenTimeoutEdit;
  204. TLabel *SessionReopenTimeoutSecLabel;
  205. TTabSheet *SecuritySheet;
  206. TGroupBox *MasterPasswordGroup;
  207. TButton *SetMasterPasswordButton;
  208. TCheckBox *UseMasterPasswordCheck;
  209. TTabSheet *NetworkSheet;
  210. TGroupBox *ExternalIpAddressGroupBox;
  211. TRadioButton *RetrieveExternalIpAddressButton;
  212. TRadioButton *CustomExternalIpAddressButton;
  213. TEdit *CustomExternalIpAddressEdit;
  214. TCheckBox *SessionReopenAutoStallCheck;
  215. TLabel *SessionReopenAutoStallLabel;
  216. TUpDownEdit *SessionReopenAutoStallEdit;
  217. TLabel *SessionReopenAutoStallSecLabel;
  218. TCheckBox *EnableQueueByDefaultCheck;
  219. TCheckBox *RefreshRemotePanelCheck;
  220. TUpDownEdit *RefreshRemotePanelIntervalEdit;
  221. TLabel *RefreshRemoteDirectoryUnitLabel;
  222. TLabel *Label12;
  223. TComboBox *UpdatesPeriodCombo;
  224. TLabel *UpdatesBetaVersionsLabel;
  225. TComboBox *UpdatesBetaVersionsCombo;
  226. TCheckBox *CollectUsageCheck;
  227. TButton *UsageViewButton;
  228. TTabSheet *PanelRemoteSheet;
  229. TGroupBox *WorkspacesGroup;
  230. TCheckBox *AutoSaveWorkspaceCheck;
  231. TComboBox *AutoWorkspaceCombo;
  232. TCheckBox *AutoSaveWorkspacePasswordsCheck;
  233. TLabel *CopyParamLabel;
  234. TGroupBox *ConnectionsGroup;
  235. TCheckBox *TryFtpWhenSshFailsCheck;
  236. TLabel *QueueKeepDoneItemsCheck;
  237. TComboBox *QueueKeepDoneItemsForCombo;
  238. TLabel *Label10;
  239. TComboBox *ExplorerKeyboardShortcutsCombo;
  240. TLabel *SessionReopenAutoIdleLabel;
  241. TUpDownEdit *SessionReopenAutoIdleEdit;
  242. TLabel *SessionReopenAutoIdleSecLabel;
  243. TTabSheet *PanelLocalSheet;
  244. TGroupBox *LocalPanelGroup;
  245. TCheckBox *SystemContextMenuCheck;
  246. TGroupBox *PasswordGroupBox;
  247. TCheckBox *SessionRememberPasswordCheck;
  248. TStaticText *PuttyPathHintText;
  249. TLabel *PuttyRegistryStorageKeyLabel;
  250. THistoryComboBox *PuttyRegistryStorageKeyEdit;
  251. TTabSheet *LanguagesSheet;
  252. TGroupBox *LanguagesGroup;
  253. TListView *LanguagesView;
  254. TLabel *LanguageChangeLabel;
  255. TButton *LanguagesGetMoreButton;
  256. TGroupBox *LoggingGroup;
  257. TLabel *LogFileNameLabel;
  258. TFilenameEdit *LogFileNameEdit3;
  259. TPanel *LogFilePanel;
  260. TRadioButton *LogFileAppendButton;
  261. TRadioButton *LogFileOverwriteButton;
  262. TComboBox *LogProtocolCombo;
  263. TStaticText *LogFileNameHintText;
  264. TCheckBox *EnableLoggingCheck;
  265. TGroupBox *ActionsLoggingGroup;
  266. TFilenameEdit *ActionsLogFileNameEdit;
  267. TStaticText *ActionsLogFileNameHintText;
  268. TCheckBox *EnableActionsLoggingCheck;
  269. TGroupBox *InterfaceGroup;
  270. TLabel *CommanderDescriptionLabel2;
  271. TLabel *ExplorerDescriptionLabel;
  272. TImage *CommanderInterfacePicture;
  273. TImage *ExplorerInterfacePicture;
  274. TRadioButton *CommanderInterfaceButton2;
  275. TRadioButton *ExplorerInterfaceButton2;
  276. TLabel *AutoWorkspaceLabel;
  277. TPopupMenu *RegisterAsUrlHandlerMenu;
  278. TMenuItem *RegisterAsUrlHandlerItem;
  279. TMenuItem *UnregisterForDefaultProtocolsItem;
  280. TMenuItem *MakeDefaultHandlerItem;
  281. TLabel *Label1;
  282. TComboBox *FormatSizeBytesCombo;
  283. TCheckBox *UpdatesShowOnStartup;
  284. TCheckBox *ExternalSessionInExistingInstanceCheck;
  285. TCheckBox *TemporaryDirectoryDeterministicCheck;
  286. TGroupBox *PanelFontGroup;
  287. TLabel *PanelFontLabel;
  288. TButton *PanelFontButton;
  289. TCheckBox *PanelFontCheck;
  290. TCheckBox *LogSensitiveCheck;
  291. TTabSheet *EditorInternalSheet;
  292. TGroupBox *InternalEditorGroup;
  293. TLabel *Label9;
  294. TLabel *Label11;
  295. TCheckBox *EditorWordWrapCheck;
  296. TUpDownEdit *EditorTabSizeEdit;
  297. TComboBox *EditorEncodingCombo;
  298. TGroupBox *FontGroup;
  299. TLabel *EditorFontLabel;
  300. TButton *EditorFontButton;
  301. TButton *EditorFontColorButton;
  302. TButton *EditorBackgroundColorButton;
  303. TCheckBox *KeepOpenWhenNoSessionCheck;
  304. TLabel *UpdatesAuthenticationEmailLabel;
  305. TEdit *UpdatesAuthenticationEmailEdit;
  306. TStaticText *UpdatesLink;
  307. TCheckBox *ShowTipsCheck;
  308. TPanel *ComponentsPanel;
  309. TPopupMenu *AddCommandMenu;
  310. TMenuItem *AddCustomCommandMenuItem;
  311. TMenuItem *AddExtensionMenuItem;
  312. TStaticText *BackgroundConfirmationsLink;
  313. TButton *ConfigureCommandButton;
  314. TCheckBox *LogMaxSizeCheck;
  315. TComboBox *LogMaxSizeCombo;
  316. TCheckBox *LogMaxSizeCountCheck;
  317. TUpDownEdit *LogMaxSizeCountEdit;
  318. TLabel *LogMaxSizeCountFilesLabel;
  319. TRadioButton *CustomIniFileStorageButton;
  320. TFilenameEdit *CustomIniFileStorageEdit;
  321. TPathLabel *AutomaticIniFileStorageLabel;
  322. TCheckBox *NaturalOrderNumericalSortingCheck;
  323. void __fastcall FormShow(TObject *Sender);
  324. void __fastcall ControlChange(TObject *Sender);
  325. void __fastcall EditorFontButtonClick(TObject *Sender);
  326. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  327. void __fastcall IconButtonClick(TObject *Sender);
  328. void __fastcall CustomCommandsViewData(TObject *Sender, TListItem *Item);
  329. void __fastcall ListViewSelectItem(TObject *Sender,
  330. TListItem *Item, bool Selected);
  331. void __fastcall CustomCommandsViewKeyDown(TObject *Sender, WORD &Key,
  332. TShiftState Shift);
  333. void __fastcall RemoveCommandButtonClick(TObject *Sender);
  334. void __fastcall UpDownCommandButtonClick(TObject *Sender);
  335. void __fastcall ListViewStartDrag(TObject *Sender,
  336. TDragObject *&DragObject);
  337. void __fastcall CustomCommandsViewDragDrop(TObject *Sender,
  338. TObject *Source, int X, int Y);
  339. void __fastcall ListViewDragOver(TObject *Sender,
  340. TObject *Source, int X, int Y, TDragState State, bool &Accept);
  341. void __fastcall NavigationTreeChange(TObject *Sender, TTreeNode *Node);
  342. void __fastcall PageControlChange(TObject *Sender);
  343. void __fastcall RegisterAsUrlHandlersButtonClick(TObject *Sender);
  344. void __fastcall DDExtLabelClick(TObject *Sender);
  345. void __fastcall CustomCommandsViewDblClick(TObject *Sender);
  346. void __fastcall AddSearchPathButtonClick(TObject *Sender);
  347. void __fastcall EditorFontLabelDblClick(TObject *Sender);
  348. void __fastcall CopyParamListViewData(TObject *Sender, TListItem *Item);
  349. void __fastcall CopyParamListViewDragDrop(TObject *Sender,
  350. TObject *Source, int X, int Y);
  351. void __fastcall UpDownCopyParamButtonClick(TObject *Sender);
  352. void __fastcall RemoveCopyParamButtonClick(TObject *Sender);
  353. void __fastcall CopyParamListViewKeyDown(TObject *Sender, WORD &Key,
  354. TShiftState Shift);
  355. void __fastcall AddCopyParamButtonClick(TObject *Sender);
  356. void __fastcall CopyParamListViewDblClick(TObject *Sender);
  357. void __fastcall HelpButtonClick(TObject *Sender);
  358. void __fastcall EditorListView3DragDrop(TObject *Sender, TObject *Source,
  359. int X, int Y);
  360. void __fastcall UpDownEditorButtonClick(TObject *Sender);
  361. void __fastcall RemoveEditorButtonClick(TObject *Sender);
  362. void __fastcall AddEditEditorButtonClick(TObject *Sender);
  363. void __fastcall EditorListView3DblClick(TObject *Sender);
  364. void __fastcall EditorListView3KeyDown(TObject *Sender, WORD &Key,
  365. TShiftState Shift);
  366. void __fastcall EditorListView3Data(TObject *Sender, TListItem *Item);
  367. void __fastcall PuttyPathBrowseButtonClick(TObject *Sender);
  368. void __fastcall PathEditBeforeDialog(TObject *Sender,
  369. UnicodeString &Name, bool &Action);
  370. void __fastcall PathEditAfterDialog(TObject *Sender,
  371. UnicodeString &Name, bool &Action);
  372. void __fastcall NavigationTreeCollapsing(TObject *Sender,
  373. TTreeNode *Node, bool &AllowCollapse);
  374. void __fastcall ListViewEndDrag(TObject *Sender,
  375. TObject *Target, int X, int Y);
  376. void __fastcall SessionReopenTimeoutEditSetValue(TObject *Sender,
  377. Extended Value, UnicodeString &Text, bool &Handed);
  378. void __fastcall SessionReopenTimeoutEditGetValue(TObject *Sender,
  379. UnicodeString Text, Extended &Value, bool &Handed);
  380. void __fastcall UseMasterPasswordCheckClick(TObject *Sender);
  381. void __fastcall SetMasterPasswordButtonClick(TObject *Sender);
  382. void __fastcall UsageViewButtonClick(TObject *Sender);
  383. void __fastcall DuplicateCopyParamButtonClick(TObject *Sender);
  384. void __fastcall EditCopyParamButtonClick(TObject *Sender);
  385. void __fastcall CopyParamLabelClick(TObject *Sender);
  386. void __fastcall CopyParamListViewCustomDrawItem(TCustomListView *Sender, TListItem *Item,
  387. TCustomDrawState State, bool &DefaultDraw);
  388. void __fastcall PuttyPathEditChange(TObject *Sender);
  389. void __fastcall NavigationTreeChanging(TObject *Sender, TTreeNode *Node, bool &AllowChange);
  390. void __fastcall LanguagesGetMoreButtonClick(TObject *Sender);
  391. void __fastcall CommanderClick(TObject *Sender);
  392. void __fastcall ExplorerClick(TObject *Sender);
  393. void __fastcall RegisterAsUrlHandlerItemClick(TObject *Sender);
  394. void __fastcall UnregisterForDefaultProtocolsItemClick(TObject *Sender);
  395. void __fastcall MakeDefaultHandlerItemClick(TObject *Sender);
  396. void __fastcall PanelFontLabelDblClick(TObject *Sender);
  397. void __fastcall PanelFontButtonClick(TObject *Sender);
  398. void __fastcall EditorFontColorButtonClick(TObject *Sender);
  399. void __fastcall EditorBackgroundColorButtonClick(TObject *Sender);
  400. void __fastcall UpdatesAuthenticationEmailEditExit(TObject *Sender);
  401. void __fastcall UpdatesLinkClick(TObject *Sender);
  402. void __fastcall CustomCommandsViewDragOver(TObject *Sender, TObject *Source, int X, int Y, TDragState State, bool &Accept);
  403. void __fastcall AddCommandButtonClick(TObject *Sender);
  404. void __fastcall AddCustomCommandMenuItemClick(TObject *Sender);
  405. void __fastcall AddExtensionMenuItemClick(TObject *Sender);
  406. void __fastcall EditCommandButtonClick(TObject *Sender);
  407. void __fastcall AddCommandButtonDropDownClick(TObject *Sender);
  408. void __fastcall CustomCommandsViewMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  409. void __fastcall BackgroundConfirmationsLinkClick(TObject *Sender);
  410. void __fastcall ConfigureCommandButtonClick(TObject *Sender);
  411. void __fastcall LanguagesViewCustomDrawItem(TCustomListView * Sender, TListItem * Item, TCustomDrawState State, bool & DefaultDraw);
  412. void __fastcall LogMaxSizeComboExit(TObject *Sender);
  413. void __fastcall PuttyPathEditExit(TObject *Sender);
  414. void __fastcall AutomaticIniFileStorageLabelGetStatus(TCustomPathLabel *Sender, bool &Active);
  415. void __fastcall CustomIniFileStorageEditExit(TObject *Sender);
  416. void __fastcall CustomIniFileStorageEditAfterDialog(TObject *Sender, UnicodeString &Name, bool &Action);
  417. void __fastcall CustomIniFileStorageButtonClick(TObject *Sender);
  418. private:
  419. TPreferencesMode FPreferencesMode;
  420. std::unique_ptr<TFont> FEditorFont;
  421. TColor FEditorBackgroundColor;
  422. std::unique_ptr<TFont> FPanelFont;
  423. TCustomCommandList * FCustomCommandList;
  424. TCustomCommandList * FExtensionList;
  425. TCopyParamList * FCopyParamList;
  426. TEditorList * FEditorList;
  427. bool FCustomCommandChanging;
  428. bool FAfterFilenameEditDialog;
  429. int FListViewDragSource;
  430. int FListViewDragDest;
  431. TPreferencesDialogData * FDialogData;
  432. UnicodeString FBeforeDialogPath;
  433. TCopyParamType FCopyParams;
  434. TListViewScrollOnDragOver * FCustomCommandsScrollOnDragOver;
  435. TListViewScrollOnDragOver * FCopyParamScrollOnDragOver;
  436. TListViewScrollOnDragOver * FEditorScrollOnDragOver;
  437. int FNoUpdate;
  438. bool FLanguagesLoaded;
  439. std::unique_ptr<TPopupMenu> FColorPopupMenu;
  440. UnicodeString FVerifiedUpdatesAuthenticationEmail;
  441. bool FAutomaticUpdatesPossible;
  442. TWndMethod FOrigCustomCommandsViewWindowProc;
  443. int FCustomCommandsHintItem;
  444. std::unique_ptr<TStrings> FAddedExtensions;
  445. std::unique_ptr<TStringList> FCustomCommandOptions;
  446. UnicodeString FCustomIniFileStorageName;
  447. void __fastcall CMDialogKey(TWMKeyDown & Message);
  448. void __fastcall WMHelp(TWMHelp & Message);
  449. void __fastcall CMDpiChanged(TMessage & Message);
  450. UnicodeString __fastcall TabSample(UnicodeString Values);
  451. void __fastcall AddEditCopyParam(TCopyParamPresetMode Mode);
  452. const TCopyParamType * GetCopyParam(int Index);
  453. void __fastcall SelectPuttyRegistryStorageKey(const UnicodeString & Key);
  454. TInterface __fastcall GetInterface();
  455. TUpdatesConfiguration __fastcall SaveUpdates();
  456. void __fastcall CustomCommandsViewWindowProc(TMessage & Message);
  457. TCustomCommandList * __fastcall GetCommandList(int Index);
  458. int __fastcall GetCommandIndex(int Index);
  459. int __fastcall GetCommandListIndex(TCustomCommandList * List, int Index);
  460. int __fastcall GetListCommandIndex(TCustomCommandList * List);
  461. UnicodeString __fastcall GetSessionKey();
  462. void __fastcall ExtensionHttpError(THttp * Sender, int Status, const UnicodeString & Message);
  463. public:
  464. virtual __fastcall ~TPreferencesDialog();
  465. bool __fastcall Execute(TPreferencesDialogData * DialogData);
  466. virtual __fastcall TPreferencesDialog(TComponent* AOwner, TPreferencesMode PreferencesMode);
  467. protected:
  468. void __fastcall LoadConfiguration();
  469. void __fastcall SaveConfiguration();
  470. void __fastcall UpdateControls();
  471. void __fastcall UpdateCustomCommandsView();
  472. void __fastcall UpdateCopyParamListView();
  473. void __fastcall UpdateEditorListView();
  474. void __fastcall CustomCommandMove(int Source, int Dest);
  475. void __fastcall CopyParamMove(int Source, int Dest);
  476. void __fastcall EditorMove(int Source, int Dest);
  477. bool __fastcall AllowListViewDrag(TObject * Sender, int X, int Y);
  478. void __fastcall PrepareNavigationTree(TTreeView * Tree);
  479. virtual void __fastcall Dispatch(void * Message);
  480. TListViewScrollOnDragOver * __fastcall ScrollOnDragOver(TObject * ListView);
  481. void __fastcall LoadLanguages();
  482. TTabSheet * __fastcall FindPageForTreeNode(TTreeNode * Node);
  483. bool __fastcall CanSetMasterPassword();
  484. void __fastcall ChangeMasterPassword(UnicodeString Message);
  485. void __fastcall MasterPasswordChanged(
  486. UnicodeString Message, TStrings * RecryptPasswordErrors);
  487. void __fastcall EditorFontColorChange(TColor Color);
  488. void __fastcall EditorBackgroundColorChange(TColor Color);
  489. void __fastcall AddEditCommand(bool Edit);
  490. void __fastcall AddExtension();
  491. void __fastcall ConfigureCommand();
  492. void __fastcall CustomIniFileStorageChanged();
  493. UnicodeString __fastcall GetCustomIniFileStorageName();
  494. };
  495. //----------------------------------------------------------------------------
  496. #endif