You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.8 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2010 Rafael Sokolowski <Rafael.Sokolowski@web.de>
  5. * Copyright (C) 2010-2015 KiCad Developers, see CHANGELOG.TXT for contributors.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 2
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, you may find one here:
  19. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  20. * or you may search the http://www.gnu.org website for the version 2 license,
  21. * or you may write to the Free Software Foundation, Inc.,
  22. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  23. */
  24. #ifndef DIALOG_ABOUT_H
  25. #define DIALOG_ABOUT_H
  26. #include <wx/html/htmlwin.h>
  27. #include <wx/statbmp.h>
  28. #include <wx/stattext.h>
  29. #include <wx/hyperlink.h>
  30. #include <aboutinfo.h>
  31. #include <dialog_about_base.h>
  32. /* Pixel information of icons in XPM format.
  33. * All KiCad icons are linked into shared library 'libbitmaps.a'.
  34. * Icons:
  35. * preference_xpm[]; // Icon for 'Developers' tab
  36. * editor_xpm[]; // Icon for 'Doc Writers' tab
  37. * palette_xpm[]; // Icon for 'Artists' tab
  38. * language_xpm[]; // Icon for 'Translators' tab
  39. * right_xpm[]; // Right arrow icon for list items
  40. * info_xpm[]; // Bulb for description tab
  41. * tools_xpm[]; // Sheet of paper icon for license info tab
  42. */
  43. #include <bitmaps.h>
  44. /**
  45. * About dialog to show application specific information.
  46. * Needs an <code>AboutAppInfo</code> object that contains the data to be displayed.
  47. */
  48. class dialog_about : public dialog_about_base
  49. {
  50. private:
  51. // Icons for the various tabs of wxAuiNotebook
  52. wxBitmap picInformation;
  53. wxBitmap picDevelopers;
  54. wxBitmap picDocWriters;
  55. wxBitmap picArtists;
  56. wxBitmap picTranslators;
  57. wxBitmap picPackagers;
  58. wxBitmap picLicense;
  59. AboutAppInfo info;
  60. public:
  61. dialog_about( wxWindow* dlg, AboutAppInfo& appInfo );
  62. ~dialog_about();
  63. private:
  64. void initDialog();
  65. virtual void OnClose( wxCloseEvent& event );
  66. virtual void OnOkClick( wxCommandEvent& event );
  67. virtual void OnHtmlLinkClicked( wxHtmlLinkEvent& event );
  68. // Notebook pages
  69. wxFlexGridSizer* CreateFlexGridSizer();
  70. void DeleteNotebooks();
  71. void CreateNotebooks();
  72. void CreateNotebookPage( wxAuiNotebook* parent,
  73. const wxString& caption,
  74. const wxBitmap& icon,
  75. const Contributors& contributors );
  76. void CreateNotebookPageByCategory( wxAuiNotebook* parent,
  77. const wxString& caption,
  78. const wxBitmap& icon,
  79. const Contributors& contributors );
  80. void CreateNotebookHtmlPage( wxAuiNotebook* parent,
  81. const wxString& caption,
  82. const wxBitmap& icon,
  83. const wxString& html );
  84. wxHyperlinkCtrl* CreateHyperlink( wxScrolledWindow* parent, const wxString& email );
  85. wxStaticBitmap* CreateStaticBitmap( wxScrolledWindow* parent, wxBitmap* icon );
  86. };
  87. #endif // DIALOG_ABOUT_H