Preferences.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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. //----------------------------------------------------------------------------
  24. class TCustomCommandList;
  25. class TEditorList;
  26. //----------------------------------------------------------------------------
  27. class TPreferencesDialog : public TForm
  28. {
  29. __published:
  30. TButton *OKButton;
  31. TButton *CloseButton;
  32. TPanel *MainPanel;
  33. TPageControl *PageControl;
  34. TTabSheet *PreferencesSheet;
  35. TGroupBox *CommonPreferencesGroup;
  36. TCheckBox *ConfirmOverwritingCheck;
  37. TCheckBox *ConfirmDeletingCheck;
  38. TCheckBox *ConfirmClosingSessionCheck2;
  39. TCheckBox *DDTransferConfirmationCheck;
  40. TCheckBox *ContinueOnErrorCheck;
  41. TTabSheet *LogSheet;
  42. TTabSheet *GeneralSheet;
  43. TLabel *InterfaceChangeLabel;
  44. TTabSheet *PanelsSheet;
  45. TGroupBox *PanelsRemoteDirectoryGroup;
  46. TCheckBox *ShowInaccesibleDirectoriesCheck;
  47. TGroupBox *PanelsCommonGroup;
  48. TCheckBox *ShowHiddenFilesCheck;
  49. TCheckBox *DefaultDirIsHomeCheck;
  50. TTabSheet *CommanderSheet;
  51. TLabel *Label3;
  52. TGroupBox *PanelsGroup;
  53. TCheckBox *PreserveLocalDirectoryCheck;
  54. TGroupBox *CommanderMiscGroup;
  55. TCheckBox *UseLocationProfilesCheck;
  56. TGroupBox *CompareCriterionsGroup;
  57. TCheckBox *CompareByTimeCheck;
  58. TCheckBox *CompareBySizeCheck;
  59. TTabSheet *ExplorerSheet;
  60. TLabel *Label4;
  61. TGroupBox *GroupBox2;
  62. TCheckBox *ShowFullAddressCheck;
  63. TTabSheet *EditorSheet;
  64. TGroupBox *EditorPreferenceGroup;
  65. TTabSheet *IntegrationSheet;
  66. TGroupBox *ShellIconsGroup;
  67. TButton *DesktopIconButton;
  68. TButton *QuickLaunchIconButton;
  69. TButton *SendToHookButton;
  70. TTabSheet *CustomCommandsSheet;
  71. TGroupBox *CustomCommandsGroup;
  72. TListView *CustomCommandsView;
  73. TButton *AddCommandButton;
  74. TButton *RemoveCommandButton;
  75. TButton *UpCommandButton;
  76. TButton *DownCommandButton;
  77. TButton *EditCommandButton;
  78. TPanel *LeftPanel;
  79. TTreeView *NavigationTree;
  80. TCheckBox *DeleteToRecycleBinCheck;
  81. TButton *RegisterAsUrlHandlersButton;
  82. TTabSheet *DragDropSheet;
  83. TGroupBox *DragDropDownloadsGroup;
  84. TLabel *DDExtEnabledLabel;
  85. TLabel *DDExtDisabledLabel;
  86. TRadioButton *DDExtEnabledButton;
  87. TRadioButton *DDExtDisabledButton;
  88. TPanel *DDExtDisabledPanel;
  89. TCheckBox *DDWarnLackOfTempSpaceCheck;
  90. TCheckBox *DDWarnOnMoveCheck;
  91. TCheckBox *ConfirmExitOnCompletionCheck;
  92. TTabSheet *QueueSheet;
  93. TGroupBox *QueueGroup;
  94. TUpDownEdit *QueueTransferLimitEdit;
  95. TLabel *Label5;
  96. TGroupBox *QueueViewGroup;
  97. TRadioButton *QueueViewShowButton;
  98. TRadioButton *QueueViewHideWhenEmptyButton;
  99. TRadioButton *QueueViewHideButton;
  100. TCheckBox *QueueAutoPopupCheck;
  101. TCheckBox *QueueCheck;
  102. TCheckBox *DDAllowMoveInitCheck;
  103. TCheckBox *ConfirmResumeCheck;
  104. TTabSheet *StorageSheet;
  105. TGroupBox *StorageGroup;
  106. TRadioButton *RegistryStorageButton;
  107. TRadioButton *IniFileStorageButton2;
  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 *QueueIndividuallyCheck;
  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 *ExternalIpAddressGroupBox;
  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 *LogWindowLinesText;
  256. TCheckBox *LogToFileCheck;
  257. TFilenameEdit *LogFileNameEdit3;
  258. TCheckBox *LogShowWindowCheck;
  259. TRadioButton *LogWindowCompleteButton;
  260. TRadioButton *LogWindowLinesButton;
  261. TUpDownEdit *LogWindowLinesEdit;
  262. TPanel *LogFilePanel;
  263. TRadioButton *LogFileAppendButton;
  264. TRadioButton *LogFileOverwriteButton;
  265. TComboBox *LogProtocolCombo;
  266. TStaticText *LogFileNameHintText;
  267. TCheckBox *EnableLoggingCheck;
  268. TGroupBox *ActionsLoggingGroup;
  269. TFilenameEdit *ActionsLogFileNameEdit;
  270. TStaticText *ActionsLogFileNameHintText;
  271. TCheckBox *EnableActionsLoggingCheck;
  272. TGroupBox *InterfaceGroup;
  273. TLabel *CommanderDescriptionLabel2;
  274. TLabel *ExplorerDescriptionLabel;
  275. TImage *CommanderInterfacePicture;
  276. TImage *ExplorerInterfacePicture;
  277. TRadioButton *CommanderInterfaceButton2;
  278. TRadioButton *ExplorerInterfaceButton2;
  279. TLabel *AutoWorkspaceLabel;
  280. TPopupMenu *RegisterAsUrlHandlerMenu;
  281. TMenuItem *RegisterAsUrlHandlerItem;
  282. TMenuItem *UnregisterForDefaultProtocolsItem;
  283. TMenuItem *MakeDefaultHandlerItem;
  284. TLabel *Label1;
  285. TComboBox *FormatSizeBytesCombo;
  286. TCheckBox *UpdatesShowOnStartup;
  287. TCheckBox *ExternalSessionInExistingInstanceCheck;
  288. TCheckBox *TemporaryDirectoryDeterministicCheck;
  289. TGroupBox *PanelFontGroup;
  290. TLabel *PanelFontLabel;
  291. TButton *PanelFontButton;
  292. TCheckBox *PanelFontCheck;
  293. TCheckBox *LogSensitiveCheck;
  294. TTabSheet *EditorInternalSheet;
  295. TGroupBox *InternalEditorGroup;
  296. TLabel *Label9;
  297. TLabel *Label11;
  298. TCheckBox *EditorWordWrapCheck;
  299. TUpDownEdit *EditorTabSizeEdit;
  300. TComboBox *EditorEncodingCombo;
  301. TGroupBox *FontGroup;
  302. TLabel *EditorFontLabel;
  303. TButton *EditorFontButton;
  304. TButton *EditorFontColorButton;
  305. TButton *EditorBackgroundColorButton;
  306. TCheckBox *KeepOpenWhenNoSessionCheck;
  307. TLabel *UpdatesAuthenticationEmailLabel;
  308. TEdit *UpdatesAuthenticationEmailEdit;
  309. TStaticText *UpdatesLink;
  310. TCheckBox *ShowTipsCheck;
  311. TPanel *ComponentsPanel;
  312. TPopupMenu *AddCommandMenu;
  313. TMenuItem *AddCustomCommandMenuItem;
  314. TMenuItem *AddExtensionMenuItem;
  315. void __fastcall FormShow(TObject *Sender);
  316. void __fastcall ControlChange(TObject *Sender);
  317. void __fastcall EditorFontButtonClick(TObject *Sender);
  318. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  319. void __fastcall IconButtonClick(TObject *Sender);
  320. void __fastcall CustomCommandsViewData(TObject *Sender, TListItem *Item);
  321. void __fastcall ListViewSelectItem(TObject *Sender,
  322. TListItem *Item, bool Selected);
  323. void __fastcall CustomCommandsViewKeyDown(TObject *Sender, WORD &Key,
  324. TShiftState Shift);
  325. void __fastcall RemoveCommandButtonClick(TObject *Sender);
  326. void __fastcall UpDownCommandButtonClick(TObject *Sender);
  327. void __fastcall ListViewStartDrag(TObject *Sender,
  328. TDragObject *&DragObject);
  329. void __fastcall CustomCommandsViewDragDrop(TObject *Sender,
  330. TObject *Source, int X, int Y);
  331. void __fastcall ListViewDragOver(TObject *Sender,
  332. TObject *Source, int X, int Y, TDragState State, bool &Accept);
  333. void __fastcall NavigationTreeChange(TObject *Sender, TTreeNode *Node);
  334. void __fastcall PageControlChange(TObject *Sender);
  335. void __fastcall RegisterAsUrlHandlersButtonClick(TObject *Sender);
  336. void __fastcall DDExtLabelClick(TObject *Sender);
  337. void __fastcall CustomCommandsViewDblClick(TObject *Sender);
  338. void __fastcall AddSearchPathButtonClick(TObject *Sender);
  339. void __fastcall EditorFontLabelDblClick(TObject *Sender);
  340. void __fastcall CopyParamListViewData(TObject *Sender, TListItem *Item);
  341. void __fastcall CopyParamListViewDragDrop(TObject *Sender,
  342. TObject *Source, int X, int Y);
  343. void __fastcall UpDownCopyParamButtonClick(TObject *Sender);
  344. void __fastcall RemoveCopyParamButtonClick(TObject *Sender);
  345. void __fastcall CopyParamListViewKeyDown(TObject *Sender, WORD &Key,
  346. TShiftState Shift);
  347. void __fastcall AddCopyParamButtonClick(TObject *Sender);
  348. void __fastcall CopyParamListViewDblClick(TObject *Sender);
  349. void __fastcall HelpButtonClick(TObject *Sender);
  350. void __fastcall EditorListView3DragDrop(TObject *Sender, TObject *Source,
  351. int X, int Y);
  352. void __fastcall UpDownEditorButtonClick(TObject *Sender);
  353. void __fastcall RemoveEditorButtonClick(TObject *Sender);
  354. void __fastcall AddEditEditorButtonClick(TObject *Sender);
  355. void __fastcall EditorListView3DblClick(TObject *Sender);
  356. void __fastcall EditorListView3KeyDown(TObject *Sender, WORD &Key,
  357. TShiftState Shift);
  358. void __fastcall EditorListView3Data(TObject *Sender, TListItem *Item);
  359. void __fastcall PuttyPathBrowseButtonClick(TObject *Sender);
  360. void __fastcall PathEditBeforeDialog(TObject *Sender,
  361. UnicodeString &Name, bool &Action);
  362. void __fastcall PathEditAfterDialog(TObject *Sender,
  363. UnicodeString &Name, bool &Action);
  364. void __fastcall NavigationTreeCollapsing(TObject *Sender,
  365. TTreeNode *Node, bool &AllowCollapse);
  366. void __fastcall ListViewEndDrag(TObject *Sender,
  367. TObject *Target, int X, int Y);
  368. void __fastcall SessionReopenTimeoutEditSetValue(TObject *Sender,
  369. Extended Value, UnicodeString &Text, bool &Handed);
  370. void __fastcall SessionReopenTimeoutEditGetValue(TObject *Sender,
  371. UnicodeString Text, Extended &Value, bool &Handed);
  372. void __fastcall UseMasterPasswordCheckClick(TObject *Sender);
  373. void __fastcall SetMasterPasswordButtonClick(TObject *Sender);
  374. void __fastcall UsageViewButtonClick(TObject *Sender);
  375. void __fastcall DuplicateCopyParamButtonClick(TObject *Sender);
  376. void __fastcall EditCopyParamButtonClick(TObject *Sender);
  377. void __fastcall CopyParamLabelClick(TObject *Sender);
  378. void __fastcall CopyParamListViewCustomDrawItem(TCustomListView *Sender, TListItem *Item,
  379. TCustomDrawState State, bool &DefaultDraw);
  380. void __fastcall PuttyPathEditChange(TObject *Sender);
  381. void __fastcall NavigationTreeChanging(TObject *Sender, TTreeNode *Node, bool &AllowChange);
  382. void __fastcall LanguagesGetMoreButtonClick(TObject *Sender);
  383. void __fastcall CommanderClick(TObject *Sender);
  384. void __fastcall ExplorerClick(TObject *Sender);
  385. void __fastcall RegisterAsUrlHandlerItemClick(TObject *Sender);
  386. void __fastcall UnregisterForDefaultProtocolsItemClick(TObject *Sender);
  387. void __fastcall MakeDefaultHandlerItemClick(TObject *Sender);
  388. void __fastcall PanelFontLabelDblClick(TObject *Sender);
  389. void __fastcall PanelFontButtonClick(TObject *Sender);
  390. void __fastcall EditorFontColorButtonClick(TObject *Sender);
  391. void __fastcall EditorBackgroundColorButtonClick(TObject *Sender);
  392. void __fastcall UpdatesAuthenticationEmailEditExit(TObject *Sender);
  393. void __fastcall UpdatesLinkClick(TObject *Sender);
  394. void __fastcall CustomCommandsViewDragOver(TObject *Sender, TObject *Source, int X, int Y, TDragState State, bool &Accept);
  395. void __fastcall AddCommandButtonClick(TObject *Sender);
  396. void __fastcall AddCustomCommandMenuItemClick(TObject *Sender);
  397. void __fastcall AddExtensionMenuItemClick(TObject *Sender);
  398. void __fastcall EditCommandButtonClick(TObject *Sender);
  399. void __fastcall AddCommandButtonDropDownClick(TObject *Sender);
  400. private:
  401. TPreferencesMode FPreferencesMode;
  402. std::unique_ptr<TFont> FEditorFont;
  403. TColor FEditorBackgroundColor;
  404. std::unique_ptr<TFont> FPanelFont;
  405. TCustomCommandList * FCustomCommandList;
  406. TCustomCommandList * FExtensionList;
  407. TCopyParamList * FCopyParamList;
  408. TEditorList * FEditorList;
  409. bool FCustomCommandChanging;
  410. bool FAfterFilenameEditDialog;
  411. int FListViewDragSource;
  412. int FListViewDragDest;
  413. TPreferencesDialogData * FDialogData;
  414. UnicodeString FBeforeDialogPath;
  415. TCopyParamType FCopyParams;
  416. TListViewScrollOnDragOver * FCustomCommandsScrollOnDragOver;
  417. TListViewScrollOnDragOver * FCopyParamScrollOnDragOver;
  418. TListViewScrollOnDragOver * FEditorScrollOnDragOver;
  419. bool FNoUpdate;
  420. bool FLanguagesLoaded;
  421. std::unique_ptr<TPopupMenu> FColorPopupMenu;
  422. UnicodeString FVerifiedUpdatesAuthenticationEmail;
  423. bool FAutomaticUpdatesPossible;
  424. TWndMethod FOrigCustomCommandsViewWindowProc;
  425. void __fastcall CMDialogKey(TWMKeyDown & Message);
  426. void __fastcall WMHelp(TWMHelp & Message);
  427. UnicodeString __fastcall TabSample(UnicodeString Values);
  428. void __fastcall AddEditCopyParam(TCopyParamPresetMode Mode);
  429. const TCopyParamType * GetCopyParam(int Index);
  430. void __fastcall SelectPuttyRegistryStorageKey(const UnicodeString & Key);
  431. TInterface __fastcall GetInterface();
  432. TUpdatesConfiguration __fastcall SaveUpdates();
  433. void __fastcall CustomCommandsViewWindowProc(TMessage & Message);
  434. TCustomCommandList * __fastcall GetCommandList(int Index);
  435. int __fastcall GetCommandIndex(int Index);
  436. int __fastcall GetCommandListIndex(TCustomCommandList * List, int Index);
  437. int __fastcall GetListCommandIndex(TCustomCommandList * List);
  438. public:
  439. virtual __fastcall ~TPreferencesDialog();
  440. bool __fastcall Execute(TPreferencesDialogData * DialogData);
  441. virtual __fastcall TPreferencesDialog(TComponent* AOwner, TPreferencesMode PreferencesMode);
  442. protected:
  443. void __fastcall LoadConfiguration();
  444. void __fastcall SaveConfiguration();
  445. void __fastcall UpdateControls();
  446. void __fastcall UpdateCustomCommandsView();
  447. void __fastcall UpdateCopyParamListView();
  448. void __fastcall UpdateEditorListView();
  449. void __fastcall CustomCommandMove(int Source, int Dest);
  450. void __fastcall CopyParamMove(int Source, int Dest);
  451. void __fastcall EditorMove(int Source, int Dest);
  452. bool __fastcall AllowListViewDrag(TObject * Sender, int X, int Y);
  453. void __fastcall PrepareNavigationTree(TTreeView * Tree);
  454. virtual void __fastcall Dispatch(void * Message);
  455. TListViewScrollOnDragOver * __fastcall ScrollOnDragOver(TObject * ListView);
  456. void __fastcall LoadLanguages();
  457. TTabSheet * __fastcall FindPageForTreeNode(TTreeNode * Node);
  458. bool __fastcall CanSetMasterPassword();
  459. void __fastcall ChangeMasterPassword(UnicodeString Message);
  460. void __fastcall MasterPasswordChanged(
  461. UnicodeString Message, TStrings * RecryptPasswordErrors);
  462. void __fastcall EditorFontColorChange(TColor Color);
  463. void __fastcall EditorBackgroundColorChange(TColor Color);
  464. void __fastcall AddEditCommand(bool Edit);
  465. void __fastcall AddExtension();
  466. };
  467. //----------------------------------------------------------------------------
  468. #endif