Preferences.h 22 KB

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