BUG: fix some bad changes in progress calc
[cmake.git] / Source / WXDialog / aboutdlg.h
blobda2d0665ba92309535c8eabc5067e1aaa6df0338
1 /*=========================================================================
3 Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
4 Module: $RCSfile: aboutdlg.h,v $
5 Language: C++
6 Date: $Date: 2005-06-30 19:54:14 $
7 Version: $Revision: 1.1 $
9 Author: Jorgen Bodde
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 =========================================================================*/
20 #ifndef _ABOUTDLG_H_
21 #define _ABOUTDLG_H_
23 #if defined(__GNUG__) && !defined(__APPLE__)
24 #pragma interface "aboutdlg.cpp"
25 #endif
27 /*!
28 * Includes
31 ////@begin includes
32 #include "wx/html/htmlwin.h"
33 ////@end includes
35 /*!
36 * Forward declarations
39 ////@begin forward declarations
40 class wxHtmlWindow;
41 ////@end forward declarations
43 /*!
44 * Control identifiers
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
58 /*!
59 * Compatibility
62 #ifndef wxCLOSE_BOX
63 #define wxCLOSE_BOX 0x1000
64 #endif
65 #ifndef wxFIXED_MINSIZE
66 #define wxFIXED_MINSIZE 0
67 #endif
69 /*!
70 * CMAboutDlg class declaration
73 class CMAboutDlg: public wxDialog
75 DECLARE_DYNAMIC_CLASS( CMAboutDlg )
76 DECLARE_EVENT_TABLE()
78 public:
79 /// Constructors
80 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 );
83 /// Creation
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
116 #endif
117 // _ABOUTDLG_H_