Preferences.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  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 "PathLabel.hpp"
  20. #include <Vcl.Menus.hpp>
  21. #include <WinInterface.h>
  22. #include <WinConfiguration.h>
  23. #include <GUITools.h>
  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 *DDTransferConfirmationCheck2;
  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 *SendToHookButton;
  71. TTabSheet *CustomCommandsSheet;
  72. TGroupBox *CustomCommandsGroup;
  73. TListView *CustomCommandsView;
  74. TButton *AddCommandButton;
  75. TButton *RemoveCommandButton;
  76. TButton *UpCommandButton;
  77. TButton *DownCommandButton;
  78. TButton *EditCommandButton;
  79. TPanel *LeftPanel;
  80. TTreeView *NavigationTree;
  81. TCheckBox *DeleteToRecycleBinCheck;
  82. TButton *RegisterAsUrlHandlersButton;
  83. TTabSheet *DragDropSheet;
  84. TGroupBox *DragDropDownloadsGroup;
  85. TLabel *DDFakeFileEnabledLabel;
  86. TLabel *DDFakeFileDisabledLabel;
  87. TRadioButton *DDFakeFileEnabledButton;
  88. TRadioButton *DDFakeFileDisabledButton;
  89. TCheckBox *DDWarnLackOfTempSpaceCheck;
  90. TCheckBox *ConfirmExitOnCompletionCheck;
  91. TTabSheet *QueueSheet;
  92. TGroupBox *QueueGroup;
  93. TUpDownEdit *QueueTransferLimitEdit;
  94. TLabel *Label5;
  95. TGroupBox *QueueViewGroup;
  96. TRadioButton *QueueViewShowButton;
  97. TRadioButton *QueueViewHideWhenEmptyButton;
  98. TRadioButton *QueueViewHideButton;
  99. TCheckBox *QueueAutoPopupCheck;
  100. TCheckBox *QueueCheck;
  101. TCheckBox *ConfirmResumeCheck;
  102. TTabSheet *StorageSheet;
  103. TGroupBox *StorageGroup;
  104. TRadioButton *RegistryStorageButton;
  105. TRadioButton *AutomaticIniFileStorageButton;
  106. TGroupBox *NotificationsGroup;
  107. TCheckBox *BeepOnFinishCheck;
  108. TUpDownEdit *BeepOnFinishAfterEdit;
  109. TLabel *BeepOnFinishAfterText;
  110. TTabSheet *TransferEnduranceSheet;
  111. TGroupBox *ResumeBox;
  112. TLabel *ResumeThresholdUnitLabel2;
  113. TRadioButton *ResumeOnButton;
  114. TRadioButton *ResumeSmartButton;
  115. TRadioButton *ResumeOffButton;
  116. TUpDownEdit *ResumeThresholdEdit;
  117. TCheckBox *ConfirmCommandSessionCheck;
  118. TGroupBox *TemporaryDirectoryGrouo;
  119. TRadioButton *DDSystemTemporaryDirectoryButton;
  120. TRadioButton *DDCustomTemporaryDirectoryButton;
  121. TDirectoryEdit *DDTemporaryDirectoryEdit;
  122. TLabel *Label6;
  123. TCheckBox *TemporaryDirectoryCleanupCheck;
  124. TCheckBox *ConfirmTemporaryDirectoryCleanupCheck;
  125. TGroupBox *OtherStorageGroup;
  126. TLabel *RandomSeedFileLabel;
  127. TFilenameEdit *RandomSeedFileEdit;
  128. TCheckBox *SwappedPanelsCheck;
  129. TCheckBox *PreservePanelStateCheck;
  130. TButton *AddSearchPathButton;
  131. TCheckBox *QueueNoConfirmationCheck;
  132. TGroupBox *PathInCaptionGroup;
  133. TRadioButton *PathInCaptionFullButton;
  134. TRadioButton *PathInCaptionShortButton;
  135. TRadioButton *PathInCaptionNoneButton;
  136. TTabSheet *UpdatesSheet;
  137. TGroupBox *UpdatesGroup2;
  138. TGroupBox *UpdatesProxyGroup;
  139. TLabel *UpdatesProxyHostLabel;
  140. TLabel *UpdatesProxyPortLabel;
  141. TUpDownEdit *UpdatesProxyPortEdit;
  142. TEdit *UpdatesProxyHostEdit;
  143. TRadioButton *UpdatesProxyCheck;
  144. TTabSheet *CopyParamListSheet;
  145. TGroupBox *CopyParamListGroup;
  146. TListView *CopyParamListView;
  147. TButton *AddCopyParamButton;
  148. TButton *RemoveCopyParamButton;
  149. TButton *UpCopyParamButton;
  150. TButton *DownCopyParamButton;
  151. TButton *EditCopyParamButton;
  152. TButton *DuplicateCopyParamButton;
  153. TCheckBox *CopyParamAutoSelectNoticeCheck;
  154. TButton *HelpButton;
  155. TListView *EditorListView3;
  156. TButton *AddEditorButton;
  157. TButton *EditEditorButton;
  158. TButton *UpEditorButton;
  159. TButton *DownEditorButton;
  160. TButton *RemoveEditorButton;
  161. TGroupBox *DoubleClickGroup;
  162. TCheckBox *CopyOnDoubleClickConfirmationCheck;
  163. TLabel *DoubleClickActionLabel;
  164. TComboBox *DoubleClickActionCombo;
  165. TLabel *Label8;
  166. TComboBox *NortonLikeModeCombo;
  167. TStaticText *ShellIconsText2;
  168. TCheckBox *FullRowSelectCheck;
  169. TGroupBox *SessionReopenGroup;
  170. TLabel *SessionReopenAutoLabel;
  171. TCheckBox *SessionReopenAutoCheck;
  172. TLabel *SessionReopenAutoSecLabel;
  173. TUpDownEdit *SessionReopenAutoEdit;
  174. TTabSheet *WindowSheet;
  175. TCheckBox *AutoReadDirectoryAfterOpCheck;
  176. TCheckBox *ConfirmRecyclingCheck;
  177. TGroupBox *WindowMiscellaneousGroup;
  178. TCheckBox *MinimizeToTrayCheck;
  179. TCheckBox *BalloonNotificationsCheck;
  180. TTabSheet *IntegrationAppSheet;
  181. TGroupBox *ExternalAppsGroup;
  182. TLabel *PuttyPathLabel;
  183. THistoryComboBox *PuttyPathEdit;
  184. TCheckBox *PuttyPasswordCheck2;
  185. TCheckBox *AutoOpenInPuttyCheck;
  186. TButton *PuttyPathBrowseButton;
  187. TCheckBox *TelnetForFtpInPuttyCheck;
  188. TRadioButton *UpdatesDirectCheck;
  189. TRadioButton *UpdatesAutoCheck;
  190. TCheckBox *ConfirmTransferringCheck;
  191. TGroupBox *UpdatesOptionsGroup;
  192. TCheckBox *QueueParallelCheck;
  193. TCheckBox *SessionReopenAutoIdleCheck;
  194. TCheckBox *RenameWholeNameCheck;
  195. TCheckBox *TreeOnLeftCheck;
  196. TCheckBox *TemporaryDirectoryAppendSessionCheck;
  197. TCheckBox *TemporaryDirectoryAppendPathCheck;
  198. TLabel *SessionReopenTimeoutLabel;
  199. TUpDownEdit *SessionReopenTimeoutEdit;
  200. TLabel *SessionReopenTimeoutSecLabel;
  201. TTabSheet *SecuritySheet;
  202. TGroupBox *MasterPasswordGroup;
  203. TButton *SetMasterPasswordButton;
  204. TCheckBox *UseMasterPasswordCheck;
  205. TTabSheet *NetworkSheet;
  206. TGroupBox *ExternalIpAddressGroupBox2;
  207. TRadioButton *RetrieveExternalIpAddressButton;
  208. TRadioButton *CustomExternalIpAddressButton;
  209. TEdit *CustomExternalIpAddressEdit;
  210. TCheckBox *SessionReopenAutoStallCheck;
  211. TLabel *SessionReopenAutoStallLabel;
  212. TUpDownEdit *SessionReopenAutoStallEdit;
  213. TLabel *SessionReopenAutoStallSecLabel;
  214. TCheckBox *EnableQueueByDefaultCheck;
  215. TCheckBox *RefreshRemotePanelCheck;
  216. TUpDownEdit *RefreshRemotePanelIntervalEdit;
  217. TLabel *RefreshRemoteDirectoryUnitLabel;
  218. TLabel *Label12;
  219. TComboBox *UpdatesPeriodCombo;
  220. TLabel *UpdatesBetaVersionsLabel;
  221. TComboBox *UpdatesBetaVersionsCombo;
  222. TCheckBox *CollectUsageCheck;
  223. TButton *UsageViewButton;
  224. TTabSheet *PanelRemoteSheet;
  225. TGroupBox *WorkspacesGroup;
  226. TCheckBox *AutoSaveWorkspaceCheck;
  227. TComboBox *AutoWorkspaceCombo;
  228. TCheckBox *AutoSaveWorkspacePasswordsCheck;
  229. TLabel *CopyParamLabel;
  230. TGroupBox *ConnectionsGroup;
  231. TCheckBox *TryFtpWhenSshFailsCheck;
  232. TLabel *QueueKeepDoneItemsCheck;
  233. TComboBox *QueueKeepDoneItemsForCombo;
  234. TLabel *Label10;
  235. TComboBox *ExplorerKeyboardShortcutsCombo;
  236. TLabel *SessionReopenAutoIdleLabel;
  237. TUpDownEdit *SessionReopenAutoIdleEdit;
  238. TLabel *SessionReopenAutoIdleSecLabel;
  239. TTabSheet *PanelLocalSheet;
  240. TGroupBox *LocalPanelGroup;
  241. TCheckBox *SystemContextMenuCheck;
  242. TGroupBox *PasswordGroupBox;
  243. TCheckBox *SessionRememberPasswordCheck;
  244. TStaticText *PuttyPathHintText;
  245. TLabel *PuttyRegistryStorageKeyLabel;
  246. THistoryComboBox *PuttyRegistryStorageKeyEdit;
  247. TTabSheet *LanguagesSheet;
  248. TGroupBox *LanguagesGroup;
  249. TListView *LanguagesView;
  250. TLabel *LanguageChangeLabel;
  251. TButton *LanguagesGetMoreButton;
  252. TGroupBox *LoggingGroup;
  253. TLabel *LogFileNameLabel;
  254. TFilenameEdit *LogFileNameEdit3;
  255. TPanel *LogFilePanel;
  256. TRadioButton *LogFileAppendButton;
  257. TRadioButton *LogFileOverwriteButton;
  258. TComboBox *LogProtocolCombo2;
  259. TStaticText *LogFileNameHintText;
  260. TCheckBox *EnableLoggingCheck;
  261. TGroupBox *ActionsLoggingGroup;
  262. TFilenameEdit *ActionsLogFileNameEdit;
  263. TStaticText *ActionsLogFileNameHintText;
  264. TCheckBox *EnableActionsLoggingCheck;
  265. TGroupBox *InterfaceGroup;
  266. TLabel *CommanderDescriptionLabel2;
  267. TLabel *ExplorerDescriptionLabel;
  268. TImage *CommanderInterfacePicture;
  269. TImage *ExplorerInterfacePicture;
  270. TRadioButton *CommanderInterfaceButton2;
  271. TRadioButton *ExplorerInterfaceButton2;
  272. TLabel *AutoWorkspaceLabel;
  273. TPopupMenu *RegisterAsUrlHandlerMenu;
  274. TMenuItem *RegisterAsUrlHandlerItem;
  275. TMenuItem *UnregisterForDefaultProtocolsItem;
  276. TMenuItem *MakeDefaultHandlerItem;
  277. TLabel *Label1;
  278. TComboBox *FormatSizeBytesCombo;
  279. TCheckBox *UpdatesShowOnStartup;
  280. TCheckBox *ExternalSessionInExistingInstanceCheck;
  281. TCheckBox *TemporaryDirectoryDeterministicCheck;
  282. TGroupBox *PanelFontGroup;
  283. TLabel *PanelFontLabel;
  284. TButton *PanelFontButton;
  285. TCheckBox *PanelFontCheck;
  286. TCheckBox *LogSensitiveCheck;
  287. TTabSheet *EditorInternalSheet;
  288. TGroupBox *InternalEditorGroup;
  289. TLabel *Label9;
  290. TLabel *Label11;
  291. TCheckBox *EditorWordWrapCheck;
  292. TUpDownEdit *EditorTabSizeEdit;
  293. TComboBox *EditorEncodingCombo;
  294. TGroupBox *FontGroup;
  295. TLabel *EditorFontLabel;
  296. TButton *EditorFontButton;
  297. TButton *EditorFontColorButton;
  298. TButton *EditorBackgroundColorButton;
  299. TCheckBox *KeepOpenWhenNoSessionCheck;
  300. TLabel *UpdatesAuthenticationEmailLabel;
  301. TEdit *UpdatesAuthenticationEmailEdit;
  302. TStaticText *UpdatesLink;
  303. TCheckBox *ShowTipsCheck;
  304. TPanel *ComponentsPanel;
  305. TPopupMenu *AddCommandMenu;
  306. TMenuItem *AddCustomCommandMenuItem;
  307. TMenuItem *AddExtensionMenuItem;
  308. TStaticText *BackgroundConfirmationsLink;
  309. TButton *ConfigureCommandButton;
  310. TCheckBox *LogMaxSizeCheck;
  311. TComboBox *LogMaxSizeCombo;
  312. TCheckBox *LogMaxSizeCountCheck;
  313. TUpDownEdit *LogMaxSizeCountEdit;
  314. TLabel *LogMaxSizeCountFilesLabel;
  315. TRadioButton *CustomIniFileStorageButton;
  316. TFilenameEdit *CustomIniFileStorageEdit;
  317. TPathLabel *AutomaticIniFileStorageLabel;
  318. TCheckBox *NaturalOrderNumericalSortingCheck;
  319. TLabel *DragExtStatusLabel;
  320. TCheckBox *SynchronizeSummaryCheck;
  321. TMemo *DDDrivesMemo;
  322. TLabel *DDDrivesLabel;
  323. TTabSheet *FileColorsSheet;
  324. TGroupBox *FileColorsGroup;
  325. TListView *FileColorsView;
  326. TButton *AddFileColorButton;
  327. TButton *RemoveFileColorButton;
  328. TButton *UpFileColorButton;
  329. TButton *DownFileColorButton;
  330. TButton *EditFileColorButton;
  331. TGroupBox *ThemeGroup;
  332. TLabel *Label7;
  333. TComboBox *ThemeCombo;
  334. TComboBox *PanelSearchCombo;
  335. TLabel *Label2;
  336. TCheckBox *ShowLoginWhenNoSessionCheck;
  337. TCheckBox *LocalPortNumberCheck;
  338. TLabel *LocalPortNumberRangeLabel;
  339. TUpDownEdit *LocalPortNumberMinEdit;
  340. TUpDownEdit *LocalPortNumberMaxEdit;
  341. TCheckBox *AlwaysSortDirectoriesByNameCheck;
  342. TLabel *LogProtocolHintLabel;
  343. TGroupBox *EditingOptionsGroup;
  344. TCheckBox *EditorCheckNotModifiedCheck;
  345. TCheckBox *ParallelTransferCheck;
  346. TComboBox *ParallelTransferThresholdCombo;
  347. TLabel *ParallelTransferThresholdUnitLabel;
  348. TGroupBox *SshHostCAsGroup;
  349. TListView *SshHostCAsView;
  350. TButton *AddSshHostCAButton;
  351. TButton *RemoveSshHostCAButton;
  352. TButton *EditSshHostCAButton;
  353. TCheckBox *SshHostCAsFromPuTTYCheck;
  354. TButton *ConfigureSshHostCAsButton;
  355. TCheckBox *SessionTabCaptionTruncationCheck;
  356. TGroupBox *InternalEditorBehaviourGroup;
  357. TCheckBox *EditorDisableSmoothScrollCheck;
  358. TComboEdit *SearchEdit;
  359. TTabSheet *SearchSheet;
  360. TGroupBox *SearchGroup;
  361. TCheckBox *SessionReopenAutoInactiveCheck;
  362. TPanel *NavigationPanel;
  363. void __fastcall FormShow(TObject *Sender);
  364. void __fastcall ControlChange(TObject *Sender);
  365. void __fastcall EditorFontButtonClick(TObject *Sender);
  366. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  367. void __fastcall IconButtonClick(TObject *Sender);
  368. void __fastcall CustomCommandsViewData(TObject *Sender, TListItem *Item);
  369. void __fastcall ListViewSelectItem(TObject *Sender,
  370. TListItem *Item, bool Selected);
  371. void __fastcall CustomCommandsViewKeyDown(TObject *Sender, WORD &Key,
  372. TShiftState Shift);
  373. void __fastcall RemoveCommandButtonClick(TObject *Sender);
  374. void __fastcall UpDownCommandButtonClick(TObject *Sender);
  375. void __fastcall ListViewStartDrag(TObject *Sender,
  376. TDragObject *&DragObject);
  377. void __fastcall CustomCommandsViewDragDrop(TObject *Sender,
  378. TObject *Source, int X, int Y);
  379. void __fastcall ListViewDragOver(TObject *Sender,
  380. TObject *Source, int X, int Y, TDragState State, bool &Accept);
  381. void __fastcall NavigationTreeChange(TObject *Sender, TTreeNode *Node);
  382. void __fastcall PageControlChange(TObject *Sender);
  383. void __fastcall RegisterAsUrlHandlersButtonClick(TObject *Sender);
  384. void __fastcall DDLabelClick(TObject *Sender);
  385. void __fastcall CustomCommandsViewDblClick(TObject *Sender);
  386. void __fastcall AddSearchPathButtonClick(TObject *Sender);
  387. void __fastcall EditorFontLabelDblClick(TObject *Sender);
  388. void __fastcall CopyParamListViewData(TObject *Sender, TListItem *Item);
  389. void __fastcall CopyParamListViewDragDrop(TObject *Sender,
  390. TObject *Source, int X, int Y);
  391. void __fastcall UpDownCopyParamButtonClick(TObject *Sender);
  392. void __fastcall RemoveCopyParamButtonClick(TObject *Sender);
  393. void __fastcall CopyParamListViewKeyDown(TObject *Sender, WORD &Key,
  394. TShiftState Shift);
  395. void __fastcall AddCopyParamButtonClick(TObject *Sender);
  396. void __fastcall CopyParamListViewDblClick(TObject *Sender);
  397. void __fastcall HelpButtonClick(TObject *Sender);
  398. void __fastcall EditorListView3DragDrop(TObject *Sender, TObject *Source,
  399. int X, int Y);
  400. void __fastcall UpDownEditorButtonClick(TObject *Sender);
  401. void __fastcall RemoveEditorButtonClick(TObject *Sender);
  402. void __fastcall AddEditEditorButtonClick(TObject *Sender);
  403. void __fastcall EditorListView3DblClick(TObject *Sender);
  404. void __fastcall EditorListView3KeyDown(TObject *Sender, WORD &Key,
  405. TShiftState Shift);
  406. void __fastcall EditorListView3Data(TObject *Sender, TListItem *Item);
  407. void __fastcall PuttyPathBrowseButtonClick(TObject *Sender);
  408. void __fastcall PathEditBeforeDialog(TObject *Sender,
  409. UnicodeString &Name, bool &Action);
  410. void __fastcall PathEditAfterDialog(TObject *Sender,
  411. UnicodeString &Name, bool &Action);
  412. void __fastcall NavigationTreeCollapsing(TObject *Sender,
  413. TTreeNode *Node, bool &AllowCollapse);
  414. void __fastcall ListViewEndDrag(TObject *Sender,
  415. TObject *Target, int X, int Y);
  416. void __fastcall SessionReopenTimeoutEditSetValue(TObject *Sender,
  417. Extended Value, UnicodeString &Text, bool &Handed);
  418. void __fastcall SessionReopenTimeoutEditGetValue(TObject *Sender,
  419. UnicodeString Text, Extended &Value, bool &Handed);
  420. void __fastcall UseMasterPasswordCheckClick(TObject *Sender);
  421. void __fastcall SetMasterPasswordButtonClick(TObject *Sender);
  422. void __fastcall UsageViewButtonClick(TObject *Sender);
  423. void __fastcall DuplicateCopyParamButtonClick(TObject *Sender);
  424. void __fastcall EditCopyParamButtonClick(TObject *Sender);
  425. void __fastcall CopyParamLabelClick(TObject *Sender);
  426. void __fastcall CopyParamListViewCustomDrawItem(TCustomListView *Sender, TListItem *Item,
  427. TCustomDrawState State, bool &DefaultDraw);
  428. void __fastcall PuttyPathEditChange(TObject *Sender);
  429. void __fastcall NavigationTreeChanging(TObject *Sender, TTreeNode *Node, bool &AllowChange);
  430. void __fastcall LanguagesGetMoreButtonClick(TObject *Sender);
  431. void __fastcall CommanderClick(TObject *Sender);
  432. void __fastcall ExplorerClick(TObject *Sender);
  433. void __fastcall RegisterAsUrlHandlerItemClick(TObject *Sender);
  434. void __fastcall UnregisterForDefaultProtocolsItemClick(TObject *Sender);
  435. void __fastcall MakeDefaultHandlerItemClick(TObject *Sender);
  436. void __fastcall PanelFontLabelDblClick(TObject *Sender);
  437. void __fastcall PanelFontButtonClick(TObject *Sender);
  438. void __fastcall EditorFontColorButtonClick(TObject *Sender);
  439. void __fastcall EditorBackgroundColorButtonClick(TObject *Sender);
  440. void __fastcall UpdatesAuthenticationEmailEditExit(TObject *Sender);
  441. void __fastcall UpdatesLinkClick(TObject *Sender);
  442. void __fastcall CustomCommandsViewDragOver(TObject *Sender, TObject *Source, int X, int Y, TDragState State, bool &Accept);
  443. void __fastcall AddCommandButtonClick(TObject *Sender);
  444. void __fastcall AddCustomCommandMenuItemClick(TObject *Sender);
  445. void __fastcall AddExtensionMenuItemClick(TObject *Sender);
  446. void __fastcall EditCommandButtonClick(TObject *Sender);
  447. void __fastcall AddCommandButtonDropDownClick(TObject *Sender);
  448. void __fastcall CustomCommandsViewMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  449. void __fastcall BackgroundConfirmationsLinkClick(TObject *Sender);
  450. void __fastcall ConfigureCommandButtonClick(TObject *Sender);
  451. void __fastcall LanguagesViewCustomDrawItem(TCustomListView * Sender, TListItem * Item, TCustomDrawState State, bool & DefaultDraw);
  452. void __fastcall SizeComboExit(TObject *Sender);
  453. void __fastcall PuttyPathEditExit(TObject *Sender);
  454. void __fastcall AutomaticIniFileStorageLabelGetStatus(TCustomPathLabel *Sender, bool &Active);
  455. void __fastcall CustomIniFileStorageEditExit(TObject *Sender);
  456. void __fastcall CustomIniFileStorageEditAfterDialog(TObject *Sender, UnicodeString &Name, bool &Action);
  457. void __fastcall CustomIniFileStorageButtonClick(TObject *Sender);
  458. void __fastcall FileColorsViewData(TObject *Sender, TListItem *Item);
  459. void __fastcall AddEditFileColorButtonClick(TObject *Sender);
  460. void __fastcall FileColorsViewCustomDrawItem(TCustomListView *Sender, TListItem *Item, TCustomDrawState State, bool &DefaultDraw);
  461. void __fastcall FileColorsViewDragDrop(TObject *Sender, TObject *Source, int X, int Y);
  462. void __fastcall FileColorsViewKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  463. void __fastcall RemoveFileColorButtonClick(TObject *Sender);
  464. void __fastcall FileColorsViewDblClick(TObject *Sender);
  465. void __fastcall UpDownFileColorButtonClick(TObject *Sender);
  466. void __fastcall CopyParamListViewDragOver(TObject *Sender, TObject *Source, int X, int Y, TDragState State, bool &Accept);
  467. void __fastcall LocalPortNumberMinEditExit(TObject *Sender);
  468. void __fastcall LocalPortNumberMaxEditExit(TObject *Sender);
  469. void __fastcall SshHostCAsViewDblClick(TObject *Sender);
  470. void __fastcall SshHostCAsViewKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  471. void __fastcall AddSshHostCAButtonClick(TObject *Sender);
  472. void __fastcall SshHostCAsViewData(TObject *Sender, TListItem *Item);
  473. void __fastcall EditSshHostCAButtonClick(TObject *Sender);
  474. void __fastcall RemoveSshHostCAButtonClick(TObject *Sender);
  475. void __fastcall SshHostCAsFromPuTTYCheckClick(TObject *Sender);
  476. void __fastcall ConfigureSshHostCAsButtonClick(TObject *Sender);
  477. void __fastcall SearchEditButtonClick(TObject *Sender);
  478. void __fastcall SearchEditChangeEnter(TObject *Sender);
  479. void __fastcall NavigationTreeEnter(TObject *Sender);
  480. void __fastcall FormShortCut(TWMKey &Msg, bool &Handled);
  481. void __fastcall FormAfterMonitorDpiChanged(TObject *Sender, int OldDPI, int NewDPI);
  482. private:
  483. TPreferencesMode FPreferencesMode;
  484. std::unique_ptr<TFont> FEditorFont;
  485. TColor FEditorBackgroundColor;
  486. std::unique_ptr<TFont> FPanelFont;
  487. TCustomCommandList * FCustomCommandList;
  488. TCustomCommandList * FExtensionList;
  489. TCopyParamList * FCopyParamList;
  490. TEditorList * FEditorList;
  491. bool FCustomCommandChanging;
  492. bool FAfterFilenameEditDialog;
  493. int FListViewDragSource;
  494. int FListViewDragDest;
  495. TPreferencesDialogData * FDialogData;
  496. UnicodeString FBeforeDialogPath;
  497. TCopyParamType FCopyParams;
  498. TListViewScrollOnDragOver * FCustomCommandsScrollOnDragOver;
  499. TListViewScrollOnDragOver * FCopyParamScrollOnDragOver;
  500. TListViewScrollOnDragOver * FEditorScrollOnDragOver;
  501. TListViewScrollOnDragOver * FFileColorScrollOnDragOver;
  502. int FNoUpdate;
  503. bool FLanguagesLoaded;
  504. std::unique_ptr<TPopupMenu> FColorPopupMenu;
  505. UnicodeString FVerifiedUpdatesAuthenticationEmail;
  506. bool FAutomaticUpdatesPossible;
  507. TWndMethod FOrigCustomCommandsViewWindowProc;
  508. int FCustomCommandsHintItem;
  509. std::unique_ptr<TStrings> FAddedExtensions;
  510. std::unique_ptr<TStringList> FCustomCommandOptions;
  511. UnicodeString FCustomIniFileStorageName;
  512. TFileColorData::TList FFileColors;
  513. TSshHostCA::TList FSshHostCAPlainList;
  514. std::unique_ptr<TStrings> FSearchResults;
  515. bool FHideFocus;
  516. bool FInitialized;
  517. void __fastcall CMDialogKey(TWMKeyDown & Message);
  518. void __fastcall WMHelp(TWMHelp & Message);
  519. void WMActivate(TWMActivate & Message);
  520. UnicodeString __fastcall TabSample(UnicodeString Values);
  521. void __fastcall AddEditCopyParam(TCopyParamPresetMode Mode);
  522. const TCopyParamType * GetCopyParam(int Index);
  523. void __fastcall SelectPuttyRegistryStorageKey(const UnicodeString & Key);
  524. TInterface __fastcall GetInterface();
  525. TUpdatesConfiguration __fastcall SaveUpdates();
  526. void __fastcall CustomCommandsViewWindowProc(TMessage & Message);
  527. TCustomCommandList * __fastcall GetCommandList(int Index);
  528. int __fastcall GetCommandIndex(int Index);
  529. int __fastcall GetCommandListIndex(TCustomCommandList * List, int Index);
  530. int __fastcall GetListCommandIndex(TCustomCommandList * List);
  531. UnicodeString __fastcall GetSessionKey();
  532. void __fastcall ExtensionHttpError(THttp * Sender, int Status, const UnicodeString & Message);
  533. const TSshHostCA::TList & GetSshHostCAPlainList();
  534. void UpdateSearching(bool ASearching);
  535. void Search(TControl * Control, TStrings * Results, bool & NewResults);
  536. void __fastcall SearchResultClick(TObject * Sender);
  537. void SetActivePage(TTabSheet * Page);
  538. void FocusAndHighlightControl(TControl * Control, const UnicodeString & Text);
  539. void CMFocusChanged(TMessage & Message);
  540. void HideFocus(int State);
  541. static int __fastcall CompareControlByLocation(void * Item1, void * Item2);
  542. void AddSearchResult(TStrings * Results, UnicodeString & Caption, TControl * Control, bool & NewResults);
  543. void SetFocusIfEnabled(TControl * Control);
  544. UnicodeString GetControlText(TControl * Control);
  545. TWinControl * GetSearchParent(TControl * Control);
  546. public:
  547. virtual __fastcall ~TPreferencesDialog();
  548. bool __fastcall Execute(TPreferencesDialogData * DialogData);
  549. virtual __fastcall TPreferencesDialog(TComponent* AOwner, TPreferencesMode PreferencesMode);
  550. protected:
  551. void __fastcall LoadConfiguration();
  552. void __fastcall SaveConfiguration();
  553. void __fastcall UpdateControls();
  554. void __fastcall UpdateCustomCommandsView();
  555. void __fastcall UpdateCopyParamListView();
  556. void __fastcall UpdateEditorListView();
  557. void __fastcall CustomCommandMove(int Source, int Dest);
  558. void __fastcall CopyParamMove(int Source, int Dest);
  559. void __fastcall EditorMove(int Source, int Dest);
  560. bool __fastcall AllowListViewDrag(TObject * Sender, int X, int Y);
  561. void __fastcall PrepareNavigationTree(TTreeView * Tree);
  562. virtual void __fastcall Dispatch(void * Message);
  563. TListViewScrollOnDragOver * __fastcall ScrollOnDragOver(TObject * ListView);
  564. void __fastcall LoadLanguages();
  565. TTabSheet * __fastcall FindPageForTreeNode(TTreeNode * Node);
  566. TTreeNode * FindTreeNodeForPage(TTabSheet * Sheet);
  567. bool __fastcall CanSetMasterPassword();
  568. void __fastcall ChangeMasterPassword(UnicodeString Message);
  569. void __fastcall MasterPasswordChanged(
  570. UnicodeString Message, TStrings * RecryptPasswordErrors);
  571. void __fastcall EditorFontColorChange(TColor Color);
  572. void __fastcall EditorBackgroundColorChange(TColor Color);
  573. void __fastcall AddEditCommand(bool Edit);
  574. void __fastcall AddExtension();
  575. void __fastcall ConfigureCommand();
  576. void __fastcall CustomIniFileStorageChanged();
  577. UnicodeString __fastcall GetCustomIniFileStorageName();
  578. TShortCuts __fastcall GetShortCuts();
  579. void __fastcall FileColorMove(int Source, int Dest);
  580. void __fastcall UpdateFileColorsView();
  581. void __fastcall AddEditFileColor(bool Edit);
  582. UnicodeString Bullet(const UnicodeString & S);
  583. void UpdateSshHostCAsViewView();
  584. void SshHostCAsRefresh();
  585. INTERFACE_HOOK
  586. };
  587. //----------------------------------------------------------------------------
  588. #endif