Login.h 18 KB

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