1
0

About.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //----------------------------------------------------------------------------
  2. #ifndef AboutH
  3. #define AboutH
  4. //----------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.ExtCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include <Vcl.Graphics.hpp>
  10. #include <Vcl.StdCtrls.hpp>
  11. //----------------------------------------------------------------------------
  12. #include <Configuration.h>
  13. #include <GUITools.h>
  14. //----------------------------------------------------------------------------
  15. class TAboutDialog : public TForm
  16. {
  17. __published:
  18. TLabel *ApplicationLabel;
  19. TLabel *VersionLabel;
  20. TLabel *WinSCPCopyrightLabel;
  21. TStaticText *HomepageLabel;
  22. TLabel *ProductSpecificMessageLabel;
  23. TStaticText *ForumUrlLabel;
  24. TButton *OKButton;
  25. TButton *LicenseButton;
  26. TButton *HelpButton;
  27. TLabel *Label3;
  28. TLabel *RegistrationLabel;
  29. TPanel *RegistrationBox;
  30. TLabel *RegistrationLicensesLabel;
  31. TStaticText *RegistrationProductIdLabel;
  32. TLabel *RegistrationSubjectLabel;
  33. TPanel *ThirdPartyPanel;
  34. TPaintBox *IconPaintBox;
  35. TPanel *Panel;
  36. void __fastcall LicenseButtonClick(TObject *Sender);
  37. void __fastcall HelpButtonClick(TObject *Sender);
  38. void __fastcall RegistrationProductIdLabelClick(TObject *Sender);
  39. void __fastcall OKButtonMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
  40. int X, int Y);
  41. void __fastcall IconPaintBoxPaint(TObject *Sender);
  42. void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  43. private:
  44. TConfiguration * FConfiguration;
  45. TNotifyEvent FOnRegistrationLink;
  46. HICON FIconHandle;
  47. TWebBrowserEx * FThirdPartyWebBrowser;
  48. void __fastcall LoadData();
  49. void __fastcall LoadThirdParty();
  50. void __fastcall AddPara(UnicodeString & Text, const UnicodeString & S);
  51. UnicodeString __fastcall CreateLink(const UnicodeString & URL, const UnicodeString & Title = L"");
  52. void __fastcall ExpatLicenceHandler(TObject * Sender);
  53. void __fastcall AccessViolationTest();
  54. void __fastcall LookupAddress();
  55. void __fastcall DoLoadThirdParty();
  56. void __fastcall ShiftControls(int From, int Diff);
  57. protected:
  58. virtual void __fastcall Dispatch(void * Message);
  59. public:
  60. virtual __fastcall TAboutDialog(TComponent * AOwner,
  61. TConfiguration * Configuration, bool AllowLicense, TRegistration * Registration,
  62. bool ALoadThirdParty);
  63. __fastcall ~TAboutDialog();
  64. };
  65. //----------------------------------------------------------------------------
  66. #endif