Login.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. //----------------------------------------------------------------------------
  2. #ifndef LoginH
  3. #define LoginH
  4. //----------------------------------------------------------------------------
  5. #include "ComboEdit.hpp"
  6. #include "PasswordEdit.hpp"
  7. #include "UpDownEdit.hpp"
  8. #include "PngImageList.hpp"
  9. #include <System.Classes.hpp>
  10. #include <Vcl.ActnList.hpp>
  11. #include <Vcl.ComCtrls.hpp>
  12. #include <Vcl.Controls.hpp>
  13. #include <Vcl.ExtCtrls.hpp>
  14. #include <Vcl.Forms.hpp>
  15. #include <Vcl.ImgList.hpp>
  16. #include <Vcl.Mask.hpp>
  17. #include <Vcl.Menus.hpp>
  18. #include <Vcl.StdCtrls.hpp>
  19. //----------------------------------------------------------------------------
  20. #include <Configuration.h>
  21. #include <CustomWinConfiguration.h>
  22. #include <SessionData.h>
  23. #include <PasTools.hpp>
  24. #include <System.Actions.hpp>
  25. #include <GUITools.h>
  26. #include <System.ImageList.hpp>
  27. //----------------------------------------------------------------------------
  28. class TLoginDialog : public TForm
  29. {
  30. __published:
  31. TButton *LoginButton;
  32. TButton *CloseButton;
  33. TActionList *ActionList;
  34. TAction *EditSessionAction;
  35. TAction *SaveSessionAction;
  36. TAction *DeleteSessionAction;
  37. TAction *ImportSessionsAction;
  38. TAction *LoginAction;
  39. TAction *AboutAction;
  40. TAction *CleanUpAction;
  41. TAction *ResetNewSessionAction;
  42. TPanel *MainPanel;
  43. TTreeView *SessionTree;
  44. TAction *SetDefaultSessionAction;
  45. TButton *ToolsMenuButton;
  46. TPopupMenu *ToolsPopupMenu;
  47. TMenuItem *Import1;
  48. TMenuItem *Cleanup1;
  49. TAction *DesktopIconAction;
  50. TAction *SendToHookAction;
  51. TAction *CheckForUpdatesAction;
  52. TMenuItem *CheckForUpdates1;
  53. TButton *SaveButton;
  54. TButton *HelpButton;
  55. TAction *RenameSessionAction;
  56. TPngImageList *SessionImageList;
  57. TAction *NewSessionFolderAction;
  58. TPopupMenu *SaveDropDownMenu;
  59. TMenuItem *SaveSessionMenuItem;
  60. TMenuItem *Setdefaults1;
  61. TMenuItem *N1;
  62. TMenuItem *N2;
  63. TMenuItem *Pageant1;
  64. TMenuItem *Puttygen1;
  65. TAction *RunPageantAction;
  66. TAction *RunPuttygenAction;
  67. TAction *ImportAction;
  68. TAction *ExportAction;
  69. TMenuItem *N3;
  70. TMenuItem *ImportConfiguration1;
  71. TMenuItem *ExportConfiguration1;
  72. TAction *PreferencesAction;
  73. TMenuItem *N4;
  74. TMenuItem *Preferences1;
  75. TMenuItem *About1;
  76. TPanel *SitesPanel;
  77. TPanel *ContentsPanel;
  78. TGroupBox *ContentsGroupBox;
  79. TLabel *ContentsLabel;
  80. TEdit *ContentsNameEdit;
  81. TMemo *ContentsMemo;
  82. TPanel *SitePanel;
  83. TGroupBox *BasicGroup;
  84. TLabel *Label1;
  85. TLabel *Label2;
  86. TLabel *UserNameLabel;
  87. TLabel *PasswordLabel;
  88. TLabel *Label22;
  89. TLabel *FtpsLabel;
  90. TLabel *WebDavsLabel;
  91. TEdit *HostNameEdit;
  92. TEdit *UserNameEdit;
  93. TPasswordEdit *PasswordEdit;
  94. TUpDownEdit *PortNumberEdit;
  95. TComboBox *TransferProtocolCombo;
  96. TComboBox *FtpsCombo;
  97. TComboBox *WebDavsCombo;
  98. TPanel *BasicFtpPanel;
  99. TCheckBox *AnonymousLoginCheck;
  100. TPanel *BasicSshPanel;
  101. TButton *AdvancedButton;
  102. TButton *ManageButton;
  103. TPopupMenu *ManageSitePopupMenu;
  104. TMenuItem *Edit1;
  105. TMenuItem *Delete1;
  106. TMenuItem *Rename1;
  107. TMenuItem *Newfolder1;
  108. TMenuItem *DesktopIcon2;
  109. TMenuItem *ExplorersSendToShortcut2;
  110. TMenuItem *Shellicon2;
  111. TMenuItem *N5;
  112. TMenuItem *Shellicon1;
  113. TMenuItem *N6;
  114. TPopupMenu *ManageFolderPopupMenu;
  115. TMenuItem *MenuItem1;
  116. TMenuItem *MenuItem3;
  117. TMenuItem *MenuItem4;
  118. TMenuItem *MenuItem5;
  119. TMenuItem *MenuItem6;
  120. TMenuItem *MenuItem7;
  121. TMenuItem *MenuItem8;
  122. TPopupMenu *ManageNewSitePopupMenu;
  123. TMenuItem *MenuItem12;
  124. TMenuItem *MenuItem13;
  125. TMenuItem *MenuItem16;
  126. TMenuItem *MenuItem17;
  127. TMenuItem *MenuItem21;
  128. TMenuItem *MenuItem22;
  129. TMenuItem *Setdefaults2;
  130. TMenuItem *Reset1;
  131. TPopupMenu *ManageWorkspacePopupMenu;
  132. TMenuItem *MenuItem2;
  133. TMenuItem *MenuItem10;
  134. TMenuItem *MenuItem11;
  135. TMenuItem *MenuItem18;
  136. TMenuItem *MenuItem19;
  137. TButton *EditCancelButton;
  138. TAction *EditCancelAction;
  139. TButton *EditButton;
  140. TAction *SaveAsSessionAction;
  141. TMenuItem *SaveAsSessionMenuItem;
  142. TMenuItem *N7;
  143. TEdit *TransferProtocolView;
  144. TEdit *EncryptionView;
  145. TPanel *ButtonPanel;
  146. TPopupMenu *SessionAdvancedPopupMenu;
  147. TMenuItem *MenuItem9;
  148. TMenuItem *MenuItem14;
  149. TAction *SessionAdvancedAction;
  150. TAction *PreferencesLoggingAction;
  151. TMenuItem *PreferencesLoggingAction1;
  152. TMenuItem *Session1;
  153. TPngImageList *ActionImageList;
  154. TAction *CloneToNewSiteAction;
  155. TMenuItem *SiteClonetoNewSiteMenuItem;
  156. TAction *PuttyAction;
  157. TPopupMenu *LoginDropDownMenu;
  158. TMenuItem *Login1;
  159. TMenuItem *OpeninPuTTY1;
  160. TMenuItem *Login2;
  161. TMenuItem *N8;
  162. TMenuItem *Login3;
  163. TMenuItem *N9;
  164. TMenuItem *SiteLoginMenuItem;
  165. TMenuItem *N10;
  166. TMenuItem *Login5;
  167. TMenuItem *N11;
  168. TMenuItem *OpeninPuTTY2;
  169. TMenuItem *OpeninPuTTY3;
  170. TAction *PasteUrlAction;
  171. TMenuItem *Paste1;
  172. TAction *GenerateUrlAction2;
  173. TMenuItem *GenerateSessionURL1;
  174. TMenuItem *GenerateSessionURL2;
  175. TAction *CopyParamRuleAction;
  176. TMenuItem *TransferSettingsRule1;
  177. TGroupBox *NoteGroup;
  178. TMemo *NoteMemo;
  179. TPngImageList *SessionImageList120;
  180. TPngImageList *ActionImageList120;
  181. TAction *SearchSiteNameStartOnlyAction;
  182. TAction *SearchSiteNameAction;
  183. TAction *SearchSiteAction;
  184. TMenuItem *Search1;
  185. TMenuItem *SearchOptions1;
  186. TMenuItem *SearchSiteNameStartOnly1;
  187. TMenuItem *SearchSiteName1;
  188. TMenuItem *SearchSite1;
  189. TAction *SearchSiteStartAction;
  190. TMenuItem *FindSite1;
  191. TMenuItem *Search3;
  192. TMenuItem *FindSite3;
  193. TMenuItem *SearchOptions3;
  194. TMenuItem *AllMajorSiteFields2;
  195. TMenuItem *AnyPartofSiteName2;
  196. TMenuItem *BeginningofSiteNameOnly2;
  197. TMenuItem *Search4;
  198. TMenuItem *FindSite4;
  199. TMenuItem *SearchOptions4;
  200. TMenuItem *AllMajorSiteFields3;
  201. TMenuItem *AnyPartofSiteName3;
  202. TMenuItem *BeginningofSiteNameOnly3;
  203. TMenuItem *Search2;
  204. TMenuItem *FindSite2;
  205. TMenuItem *SearchOptions2;
  206. TMenuItem *AllMajorSiteFields1;
  207. TMenuItem *AnyPartofSiteName1;
  208. TMenuItem *BeginningofSiteNameOnly1;
  209. TPngImageList *SessionImageList144;
  210. TPngImageList *SessionImageList192;
  211. TPngImageList *ActionImageList144;
  212. TPngImageList *ActionImageList192;
  213. TAction *SessionRawAction;
  214. TMenuItem *EditRawSettings1;
  215. TPanel *ShowAgainPanel;
  216. TCheckBox *ShowAgainCheck;
  217. TPanel *BasicS3Panel;
  218. TCheckBox *S3CredentialsEnvCheck3;
  219. TMenuItem *OpeninPuTTY4;
  220. TComboBox *S3ProfileCombo;
  221. TPanel *SitesIncrementalSearchPanel;
  222. TStaticText *SitesIncrementalSearchBorderLabel;
  223. TStaticText *SitesIncrementalSearchLabel;
  224. TPopupMenu *SitesIncrementalSearchPopupMenu;
  225. TMenuItem *MenuItem36;
  226. TMenuItem *MenuItem37;
  227. TMenuItem *MenuItem38;
  228. void __fastcall DataChange(TObject *Sender);
  229. void __fastcall FormShow(TObject *Sender);
  230. void __fastcall SessionTreeDblClick(TObject *Sender);
  231. void __fastcall SessionTreeKeyDown(TObject *Sender, WORD &Key,
  232. TShiftState Shift);
  233. void __fastcall EditSessionActionExecute(TObject *Sender);
  234. void __fastcall SaveSessionActionExecute(TObject *Sender);
  235. void __fastcall DeleteSessionActionExecute(TObject *Sender);
  236. void __fastcall ImportSessionsActionExecute(TObject *Sender);
  237. void __fastcall CleanUpActionExecute(TObject *Sender);
  238. void __fastcall AboutActionExecute(TObject *Sender);
  239. void __fastcall ActionListUpdate(TBasicAction *Action,
  240. bool &Handled);
  241. void __fastcall PreferencesActionExecute(TObject *Sender);
  242. void __fastcall ResetNewSessionActionExecute(TObject *Sender);
  243. void __fastcall SetDefaultSessionActionExecute(TObject *Sender);
  244. void __fastcall ToolsMenuButtonClick(TObject *Sender);
  245. void __fastcall DesktopIconActionExecute(TObject *Sender);
  246. void __fastcall SendToHookActionExecute(TObject *Sender);
  247. void __fastcall CheckForUpdatesActionExecute(TObject *Sender);
  248. void __fastcall HelpButtonClick(TObject *Sender);
  249. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  250. void __fastcall RenameSessionActionExecute(TObject * Sender);
  251. void __fastcall TransferProtocolComboChange(TObject *Sender);
  252. void __fastcall NavigationTreeCollapsing(TObject *Sender,
  253. TTreeNode *Node, bool &AllowCollapse);
  254. void __fastcall SessionTreeChange(TObject *Sender, TTreeNode *Node);
  255. void __fastcall SessionTreeEdited(TObject *Sender, TTreeNode *Node,
  256. UnicodeString &S);
  257. void __fastcall SessionTreeEditing(TObject *Sender, TTreeNode *Node,
  258. bool &AllowEdit);
  259. void __fastcall SessionTreeCustomDrawItem(TCustomTreeView *Sender,
  260. TTreeNode *Node, TCustomDrawState State, bool &DefaultDraw);
  261. void __fastcall SessionTreeExpandedCollapsed(TObject *Sender, TTreeNode *Node);
  262. void __fastcall SessionTreeCompare(TObject *Sender, TTreeNode *Node1,
  263. TTreeNode *Node2, int Data, int &Compare);
  264. void __fastcall NewSessionFolderActionExecute(TObject *Sender);
  265. void __fastcall SessionTreeStartDrag(TObject *Sender,
  266. TDragObject *&DragObject);
  267. void __fastcall SessionTreeDragDrop(TObject *Sender, TObject *Source,
  268. int X, int Y);
  269. void __fastcall SessionTreeMouseMove(TObject *Sender, TShiftState Shift,
  270. int X, int Y);
  271. void __fastcall SessionTreeEndDrag(TObject *Sender, TObject *Target,
  272. int X, int Y);
  273. void __fastcall AnonymousLoginCheckClick(TObject *Sender);
  274. void __fastcall SaveButtonDropDownClick(TObject *Sender);
  275. void __fastcall SessionTreeExpanding(TObject *Sender, TTreeNode *Node, bool &AllowExpansion);
  276. void __fastcall RunPageantActionExecute(TObject *Sender);
  277. void __fastcall RunPuttygenActionExecute(TObject *Sender);
  278. void __fastcall PortNumberEditChange(TObject *Sender);
  279. void __fastcall ExportActionExecute(TObject *Sender);
  280. void __fastcall ImportActionExecute(TObject *Sender);
  281. void __fastcall SessionTreeKeyPress(TObject *Sender, System::WideChar &Key);
  282. void __fastcall SessionTreeExit(TObject *Sender);
  283. void __fastcall SessionTreeChanging(TObject *Sender, TTreeNode *Node, bool &AllowChange);
  284. void __fastcall SessionAdvancedActionExecute(TObject *Sender);
  285. void __fastcall ManageButtonClick(TObject *Sender);
  286. void __fastcall SessionTreeMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  287. int X, int Y);
  288. void __fastcall SessionTreeContextPopup(TObject *Sender, TPoint &MousePos, bool &Handled);
  289. void __fastcall EditCancelActionExecute(TObject *Sender);
  290. void __fastcall SaveAsSessionActionExecute(TObject *Sender);
  291. void __fastcall AdvancedButtonDropDownClick(TObject *Sender);
  292. void __fastcall PreferencesLoggingActionExecute(TObject *Sender);
  293. void __fastcall CloneToNewSiteActionExecute(TObject *Sender);
  294. void __fastcall LoginActionExecute(TObject *Sender);
  295. void __fastcall PuttyActionExecute(TObject *Sender);
  296. void __fastcall LoginButtonDropDownClick(TObject *Sender);
  297. void __fastcall PasteUrlActionExecute(TObject *Sender);
  298. void __fastcall HostNameEditExit(TObject *Sender);
  299. void __fastcall GenerateUrlAction2Execute(TObject *Sender);
  300. void __fastcall CopyParamRuleActionExecute(TObject *Sender);
  301. void __fastcall SearchSiteNameStartOnlyActionExecute(TObject *Sender);
  302. void __fastcall SearchSiteNameActionExecute(TObject *Sender);
  303. void __fastcall SearchSiteActionExecute(TObject *Sender);
  304. void __fastcall PanelMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  305. void __fastcall S3CredentialsEnvCheck3Click(TObject *Sender);
  306. void __fastcall EncryptionComboChange(TObject *Sender);
  307. void __fastcall S3ProfileComboChange(TObject *Sender);
  308. void __fastcall ShowAgainCheckClick(TObject *Sender);
  309. void __fastcall SearchSiteStartActionExecute(TObject *Sender);
  310. void __fastcall SitesIncrementalSearchPanelContextPopup(TObject *Sender, TPoint &MousePos, bool &Handled);
  311. private:
  312. int NoUpdate;
  313. TSessionData * FNewSiteData;
  314. bool FNewSiteKeepName;
  315. TSessionData * FSessionData;
  316. bool FInitialized;
  317. TWndMethod FOldSessionTreeProc;
  318. TTreeNode * FHintNode;
  319. TTreeViewScrollOnDragOver * FScrollOnDragOver;
  320. int FDefaultPort;
  321. TList * FDataList;
  322. bool FUpdatePortWithProtocol;
  323. TIncrementalSearchState FIncrementalSearchState;
  324. int FIncrementalSearching;
  325. int FBasicGroupBaseHeight;
  326. int FNoteGroupOffset;
  327. bool FEditing;
  328. bool FRenaming;
  329. bool FForceNewSite;
  330. bool FLoading;
  331. bool FSortEnablePending;
  332. std::unique_ptr<TImageList> FButtonImageList;
  333. std::map<int, int> FButtonImagesMap;
  334. TIncrementalSearch FSiteSearch;
  335. TForm * FLinkedForm;
  336. TPoint FPrevPos;
  337. int FSiteButtonsPadding;
  338. UnicodeString FUserNameLabel;
  339. UnicodeString FPasswordLabel;
  340. int FFixedSessionImages;
  341. bool FRestoring;
  342. void __fastcall LoadSession(TSessionData * SessionData);
  343. void __fastcall LoadContents();
  344. void __fastcall UpdateControls();
  345. void __fastcall SetSessionData(TSessionData * value);
  346. TSessionData * __fastcall GetSessionData();
  347. void __fastcall SaveSession(TSessionData * aStoredSession);
  348. void __fastcall LoadSessions();
  349. TSessionData * __fastcall GetSelectedSession();
  350. void __fastcall CMDialogKey(TWMKeyDown & Message);
  351. int __fastcall FSProtocolToIndex(TFSProtocol FSProtocol, bool & AllowScpFallback);
  352. TFSProtocol __fastcall IndexToFSProtocol(int Index, bool AllowScpFallback);
  353. int __fastcall FtpsToIndex(TFtps Ftps);
  354. TFtps __fastcall GetFtps();
  355. TFSProtocol __fastcall GetFSProtocol(bool RequireScpFallbackDistinction);
  356. void __fastcall UpdateFolderNode(TTreeNode * Node);
  357. TTreeNode * __fastcall AddSession(TSessionData * Data);
  358. TTreeNode * __fastcall AddSessionPath(UnicodeString Path,
  359. bool CanCreate, bool IsWorkspace);
  360. void __fastcall DestroySession(TSessionData * Data);
  361. void __fastcall CheckDuplicateFolder(TTreeNode * Parent, UnicodeString Text,
  362. TTreeNode * Node);
  363. void __fastcall CheckIsSessionFolder(TTreeNode * Node);
  364. void __fastcall NewSessionFolderInputDialogInitialize(
  365. TObject * Sender, TInputDialogData * Data);
  366. UnicodeString __fastcall SessionNodePath(TTreeNode * Node);
  367. TTreeNode * __fastcall SessionFolderNode(TTreeNode * Node);
  368. TTreeNode * __fastcall CurrentSessionFolderNode();
  369. void __fastcall SessionTreeProc(TMessage & Message);
  370. TTreeNode * __fastcall NormalizeDropTarget(TTreeNode * DropTarget);
  371. bool __fastcall SessionAllowDrop(TTreeNode * DropTarget);
  372. int __fastcall DefaultPort();
  373. void __fastcall MasterPasswordRecrypt(TObject * Sender);
  374. void __fastcall LoadOpenedStoredSessionFolders(
  375. TTreeNode * Node, TStrings * OpenedStoredSessionFolders);
  376. bool __fastcall HasNodeAnySession(TTreeNode * Node, bool NeedCanOpen = false);
  377. void __fastcall SaveDataList(TList * DataList);
  378. inline bool __fastcall IsFolderNode(TTreeNode * Node);
  379. inline bool __fastcall IsWorkspaceNode(TTreeNode * Node);
  380. inline bool __fastcall IsFolderOrWorkspaceNode(TTreeNode * Node);
  381. inline bool __fastcall IsSessionNode(TTreeNode * Node);
  382. inline bool __fastcall IsSiteNode(TTreeNode * Node);
  383. inline bool __fastcall IsNewSiteNode(TTreeNode * Node);
  384. TTreeNode * __fastcall GetNewSiteNode();
  385. void __fastcall SetNewSiteNodeLabel();
  386. inline TSessionData * __fastcall GetNodeSession(TTreeNode * Node);
  387. void __fastcall ReloadSessions(const UnicodeString & SelectSite);
  388. void __fastcall ResetSitesIncrementalSearch();
  389. bool __fastcall SitesIncrementalSearch(const UnicodeString & Text, bool SkipCurrent, bool Reverse, bool Expanding);
  390. TTreeNode * __fastcall SearchSite(const UnicodeString & Text,
  391. bool AllowExpanding, bool SkipCurrent, bool Reverse);
  392. TTreeNode * __fastcall GetNextNode(TTreeNode * Node, bool Reverse);
  393. UnicodeString __fastcall GetFolderOrWorkspaceContents(
  394. TTreeNode * Node, const UnicodeString & Indent, const UnicodeString & CommonRoot);
  395. TPopupMenu * __fastcall GetSelectedNodePopupMenu();
  396. void __fastcall PersistNewSiteIfNeeded();
  397. TTreeNode * __fastcall FindSessionNode(TSessionData * SessionData, bool ByName);
  398. void __fastcall UpdateButtonVisibility(TButton * Button);
  399. void __fastcall Idle();
  400. TSessionData * __fastcall GetEditingSessionData();
  401. void __fastcall SaveAsSession(bool ForceDialog);
  402. void __fastcall InvalidateSessionData();
  403. bool __fastcall CanOpen();
  404. bool IsSiteAndCanOpen();
  405. bool IsFolderOrWorkspaceAndCanOpen();
  406. bool __fastcall IsCloneToNewSiteDefault();
  407. bool __fastcall IsDefaultResult(TModalResult Result);
  408. void __fastcall UpdateNodeImage(TTreeNode * Node);
  409. int __fastcall GetSessionImageIndex(TSessionData * Data);
  410. void __fastcall SetNodeImage(TTreeNode * Node, int ImageIndex);
  411. void __fastcall CancelEditing();
  412. bool __fastcall EnsureNotEditing();
  413. bool __fastcall IsEditable();
  414. TSessionData * __fastcall CloneSelectedSession();
  415. void __fastcall CloneToNewSite();
  416. void DoParseUrl(TSessionData * SessionData, const UnicodeString & Url);
  417. void __fastcall ParseUrl(const UnicodeString & Url);
  418. void __fastcall ParseHostName();
  419. void __fastcall ResetNewSiteData();
  420. TModalResult __fastcall DefaultResult();
  421. int AddLoginButtonImage(int Index, bool Enabled);
  422. void __fastcall WMWindowPosChanged(TWMWindowPosChanged & Message);
  423. void __fastcall CMDpiChanged(TMessage & Message);
  424. void __fastcall GenerateImages();
  425. void __fastcall CMVisibleChanged(TMessage & Message);
  426. void UpdateS3Credentials();
  427. void UpdateLoginButton();
  428. void FloodFill(TBitmap * Bitmap, int X, int Y);
  429. void UpdatePortWithProtocol();
  430. void LoadS3Profiles();
  431. UnicodeString GetS3GeneralName();
  432. UnicodeString GetS3Profile();
  433. protected:
  434. void __fastcall Default();
  435. void __fastcall NewSite();
  436. void __fastcall SaveConfiguration();
  437. void __fastcall LoadState();
  438. void __fastcall SaveState();
  439. void __fastcall ShowPreferencesDialog(TPreferencesMode PreferencesMode);
  440. virtual void __fastcall Dispatch(void * Message);
  441. void __fastcall Init();
  442. void __fastcall InitControls();
  443. void __fastcall EditSession();
  444. void __fastcall Login();
  445. HIDESBASE DYNAMIC void __fastcall ChangeScale(int M, int D, bool isDpiChange);
  446. void SetSiteSearch(TIncrementalSearch SiteSearch);
  447. __property TSessionData * SelectedSession = { read=GetSelectedSession };
  448. INTERFACE_HOOK;
  449. public:
  450. virtual __fastcall TLoginDialog(TComponent* AOwner);
  451. __fastcall ~TLoginDialog();
  452. void __fastcall Init(TForm * LinkedForm);
  453. bool __fastcall Execute(TList * DataList);
  454. };
  455. //----------------------------------------------------------------------------
  456. #endif