1 /*=========================================================================
3 Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
4 Module: $RCSfile: aboutdlg.h,v $
6 Date: $Date: 2005-06-30 19:54:14 $
7 Version: $Revision: 1.1 $
11 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
12 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
14 This software is distributed WITHOUT ANY WARRANTY; without even
15 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 PURPOSE. See the above copyright notices for more information.
18 =========================================================================*/
23 #if defined(__GNUG__) && !defined(__APPLE__)
24 #pragma interface "aboutdlg.cpp"
32 #include "wx/html/htmlwin.h"
36 * Forward declarations
39 ////@begin forward declarations
41 ////@end forward declarations
47 ////@begin control identifiers
48 #define ID_SOME_ABOUTDLG 10003
49 #define SYMBOL_CMABOUTDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
50 #define SYMBOL_CMABOUTDLG_TITLE _("About ...")
51 #define SYMBOL_CMABOUTDLG_IDNAME ID_SOME_ABOUTDLG
52 #define SYMBOL_CMABOUTDLG_SIZE wxSize(400, 300)
53 #define SYMBOL_CMABOUTDLG_POSITION wxDefaultPosition
54 #define ID_HTMLWINDOW 10000
55 #define ID_ABOUT_DLG_OK 10005
56 ////@end control identifiers
63 #define wxCLOSE_BOX 0x1000
65 #ifndef wxFIXED_MINSIZE
66 #define wxFIXED_MINSIZE 0
70 * CMAboutDlg class declaration
73 class CMAboutDlg
: public wxDialog
75 DECLARE_DYNAMIC_CLASS( CMAboutDlg
)
81 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
);
84 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
);
86 /// Creates the controls and sizers
87 void CreateControls();
89 void SetAboutText(const wxString
&cmversion
, const wxString
&cmsversion
, const wxArrayString
&generators
);
91 ////@begin CMAboutDlg event handler declarations
93 /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ABOUT_DLG_OK
94 void OnAboutDlgClick( wxCommandEvent
& event
);
96 ////@end CMAboutDlg event handler declarations
98 ////@begin CMAboutDlg member function declarations
100 /// Retrieves bitmap resources
101 wxBitmap
GetBitmapResource( const wxString
& name
);
103 /// Retrieves icon resources
104 wxIcon
GetIconResource( const wxString
& name
);
105 ////@end CMAboutDlg member function declarations
107 /// Should we show tooltips?
108 static bool ShowToolTips();
110 ////@begin CMAboutDlg member variables
111 wxStaticBitmap
* m_cmIcon
;
112 wxHtmlWindow
* m_html
;
113 ////@end CMAboutDlg member variables