Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / WXDialog / optionsdlg.h
blob78586cadeacf13e650b4c07d386b3d893221ecfe
1 /*=========================================================================
3 Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
4 Module: $RCSfile: optionsdlg.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 _OPTIONSDLG_H_
21 #define _OPTIONSDLG_H_
23 #if defined(__GNUG__) && !defined(__APPLE__)
24 #pragma interface "optionsdlg.cpp"
25 #endif
27 /*!
28 * Includes
31 ////@begin includes
32 #include "wx/notebook.h"
33 ////@end includes
35 #include <wx/config.h>
36 #include "config.h"
38 /*!
39 * Forward declarations
42 ////@begin forward declarations
43 ////@end forward declarations
45 /*!
46 * Control identifiers
49 ////@begin control identifiers
50 #define ID_DIALOG 10004
51 #define SYMBOL_CMOPTIONSDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
52 #define SYMBOL_CMOPTIONSDLG_TITLE _("CMakeSetup Options ...")
53 #define SYMBOL_CMOPTIONSDLG_IDNAME ID_DIALOG
54 #define SYMBOL_CMOPTIONSDLG_SIZE wxSize(400, 300)
55 #define SYMBOL_CMOPTIONSDLG_POSITION wxDefaultPosition
56 #define ID_NOTEBOOK 10006
57 #define ID_PANEL 10007
58 #define ID_CHECKBOX_CLOSECMAKE 10008
59 ////@end control identifiers
61 /*!
62 * Compatibility
65 #ifndef wxCLOSE_BOX
66 #define wxCLOSE_BOX 0x1000
67 #endif
68 #ifndef wxFIXED_MINSIZE
69 #define wxFIXED_MINSIZE 0
70 #endif
72 /*!
73 * CMOptionsDlg class declaration
76 class CMOptionsDlg: public wxDialog
78 DECLARE_DYNAMIC_CLASS( CMOptionsDlg )
79 DECLARE_EVENT_TABLE()
81 public:
82 /// Constructors
83 CMOptionsDlg( );
84 CMOptionsDlg( wxWindow* parent, wxWindowID id = SYMBOL_CMOPTIONSDLG_IDNAME, const wxString& caption = SYMBOL_CMOPTIONSDLG_TITLE, const wxPoint& pos = SYMBOL_CMOPTIONSDLG_POSITION, const wxSize& size = SYMBOL_CMOPTIONSDLG_SIZE, long style = SYMBOL_CMOPTIONSDLG_STYLE );
86 /// Creation
87 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CMOPTIONSDLG_IDNAME, const wxString& caption = SYMBOL_CMOPTIONSDLG_TITLE, const wxPoint& pos = SYMBOL_CMOPTIONSDLG_POSITION, const wxSize& size = SYMBOL_CMOPTIONSDLG_SIZE, long style = SYMBOL_CMOPTIONSDLG_STYLE );
89 /// Creates the controls and sizers
90 void CreateControls();
92 ////@begin CMOptionsDlg event handler declarations
94 /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_CLOSECMAKE
95 void OnButtonOK( wxCommandEvent& event );
97 ////@end CMOptionsDlg event handler declarations
99 ////@begin CMOptionsDlg member function declarations
101 /// Retrieves bitmap resources
102 wxBitmap GetBitmapResource( const wxString& name );
104 /// Retrieves icon resources
105 wxIcon GetIconResource( const wxString& name );
106 ////@end CMOptionsDlg member function declarations
108 /// Should we show tooltips?
109 static bool ShowToolTips();
111 // write values from config to GUI controls
112 void SetConfig(wxConfig *cfg);
114 // write GUI controls back to config
115 void GetConfig(wxConfig *cfg);
117 private:
119 ////@begin CMOptionsDlg member variables
120 wxCheckBox* m_closeAfterGenerate;
121 ////@end CMOptionsDlg member variables
124 #endif
125 // _OPTIONSDLG_H_