About.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //----------------------------------------------------------------------------
  2. #ifndef AboutH
  3. #define AboutH
  4. //----------------------------------------------------------------------------
  5. #include <vcl\System.hpp>
  6. #include <vcl\Windows.hpp>
  7. #include <vcl\SysUtils.hpp>
  8. #include <vcl\Classes.hpp>
  9. #include <vcl\Graphics.hpp>
  10. #include <vcl\Forms.hpp>
  11. #include <vcl\Controls.hpp>
  12. #include <vcl\StdCtrls.hpp>
  13. #include <vcl\Buttons.hpp>
  14. #include <vcl\ExtCtrls.hpp>
  15. //----------------------------------------------------------------------------
  16. #include <Configuration.h>
  17. //----------------------------------------------------------------------------
  18. class TAboutDialog : public TForm
  19. {
  20. __published:
  21. TPanel *ImagePanel;
  22. TShape *ImageShape;
  23. TImage *Image;
  24. TLabel *ApplicationLabel;
  25. TLabel *VersionLabel;
  26. TLabel *WinSCPCopyrightLabel;
  27. TLabel *HomepageLabel;
  28. TLabel *ProductSpecificMessageLabel;
  29. TLabel *ForumUrlLabel;
  30. TScrollBox *ThirdPartyBox;
  31. TLabel *Label3;
  32. TLabel *PuttyVersionLabel;
  33. TLabel *PuttyCopyrightLabel;
  34. TLabel *PuttyHomepageLabel;
  35. TLabel *Label7;
  36. TLabel *Label8;
  37. TLabel *FilemanagerHomepageLabel;
  38. TLabel *Label10;
  39. TLabel *ProlongBoxLabel;
  40. TButton *OKButton;
  41. TButton *LicenceButton;
  42. TLabel *PuttyLicenceLabel;
  43. TLabel *TranslatorLabel;
  44. void __fastcall HomepageLabelClick(TObject *Sender);
  45. void __fastcall EmailLabelClick(TObject *Sender);
  46. void __fastcall DisplayLicence(TObject *Sender);
  47. void __fastcall LicenceButtonClick(TObject *Sender);
  48. bool __fastcall GetAllowLicence();
  49. private:
  50. TConfiguration * FConfiguration;
  51. void __fastcall SetConfiguration(TConfiguration * value);
  52. void __fastcall SetAllowLicence(bool value);
  53. public:
  54. virtual __fastcall TAboutDialog(TComponent* AOwner);
  55. void __fastcall LoadData();
  56. __property TConfiguration * Configuration = { read=FConfiguration, write=SetConfiguration };
  57. __property bool AllowLicence = { read=GetAllowLicence, write=SetAllowLicence };
  58. protected:
  59. void __fastcall OpenAddress(const AnsiString Address);
  60. };
  61. //----------------------------------------------------------------------------
  62. #endif