aboutdlg.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*=========================================================================
  2. Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Author: Jorgen Bodde
  8. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  9. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  10. This software is distributed WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE. See the above copyright notices for more information.
  13. =========================================================================*/
  14. #ifndef _ABOUTDLG_H_
  15. #define _ABOUTDLG_H_
  16. #if defined(__GNUG__) && !defined(__APPLE__)
  17. #pragma interface "aboutdlg.cpp"
  18. #endif
  19. /*!
  20. * Includes
  21. */
  22. ////@begin includes
  23. #include "wx/html/htmlwin.h"
  24. ////@end includes
  25. /*!
  26. * Forward declarations
  27. */
  28. ////@begin forward declarations
  29. class wxHtmlWindow;
  30. ////@end forward declarations
  31. /*!
  32. * Control identifiers
  33. */
  34. ////@begin control identifiers
  35. #define ID_SOME_ABOUTDLG 10003
  36. #define SYMBOL_CMABOUTDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
  37. #define SYMBOL_CMABOUTDLG_TITLE _("About ...")
  38. #define SYMBOL_CMABOUTDLG_IDNAME ID_SOME_ABOUTDLG
  39. #define SYMBOL_CMABOUTDLG_SIZE wxSize(400, 300)
  40. #define SYMBOL_CMABOUTDLG_POSITION wxDefaultPosition
  41. #define ID_HTMLWINDOW 10000
  42. #define ID_ABOUT_DLG_OK 10005
  43. ////@end control identifiers
  44. /*!
  45. * Compatibility
  46. */
  47. #ifndef wxCLOSE_BOX
  48. #define wxCLOSE_BOX 0x1000
  49. #endif
  50. #ifndef wxFIXED_MINSIZE
  51. #define wxFIXED_MINSIZE 0
  52. #endif
  53. /*!
  54. * CMAboutDlg class declaration
  55. */
  56. class CMAboutDlg: public wxDialog
  57. {
  58. DECLARE_DYNAMIC_CLASS( CMAboutDlg )
  59. DECLARE_EVENT_TABLE()
  60. public:
  61. /// Constructors
  62. CMAboutDlg( );
  63. CMAboutDlg( wxWindow* parent, wxWindowID id = SYMBOL_CMABOUTDLG_IDNAME, const wxString& caption = SYMBOL_CMABOUTDLG_TITLE, const wxPoint& pos = SYMBOL_CMABOUTDLG_POSITION, const wxSize& size = SYMBOL_CMABOUTDLG_SIZE, long style = SYMBOL_CMABOUTDLG_STYLE );
  64. /// Creation
  65. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CMABOUTDLG_IDNAME, const wxString& caption = SYMBOL_CMABOUTDLG_TITLE, const wxPoint& pos = SYMBOL_CMABOUTDLG_POSITION, const wxSize& size = SYMBOL_CMABOUTDLG_SIZE, long style = SYMBOL_CMABOUTDLG_STYLE );
  66. /// Creates the controls and sizers
  67. void CreateControls();
  68. void SetAboutText(const wxString &cmversion, const wxString &cmsversion, const wxArrayString &generators);
  69. ////@begin CMAboutDlg event handler declarations
  70. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ABOUT_DLG_OK
  71. void OnAboutDlgClick( wxCommandEvent& event );
  72. ////@end CMAboutDlg event handler declarations
  73. ////@begin CMAboutDlg member function declarations
  74. /// Retrieves bitmap resources
  75. wxBitmap GetBitmapResource( const wxString& name );
  76. /// Retrieves icon resources
  77. wxIcon GetIconResource( const wxString& name );
  78. ////@end CMAboutDlg member function declarations
  79. /// Should we show tooltips?
  80. static bool ShowToolTips();
  81. ////@begin CMAboutDlg member variables
  82. wxStaticBitmap* m_cmIcon;
  83. wxHtmlWindow* m_html;
  84. ////@end CMAboutDlg member variables
  85. };
  86. #endif
  87. // _ABOUTDLG_H_