Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

OptTreeCtrl.h

Go to the documentation of this file.
00001 
00002 // MathGUI = a WYSIWYG equation editor + a powerful math engine      //
00003 // Copyright (C) 2003 by Francesco Montorsi                          //
00004 //                                                                   //
00005 // This library is free software; you can redistribute it and/or     //
00006 // modify it under the terms of the GNU Lesser General Public        //
00007 // License as published by the Free Software Foundation; either      //
00008 // version 2.1 of the License, or (at your option) any later         //
00009 // version.                                                          //
00010 //                                                                   //
00011 // This library is distributed in the hope that it will be useful,   //
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of    //
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the      //
00014 // GNU Lesser General Public License for more details.               //
00015 //                                                                   //
00016 // You should have received a copy of the GNU Lesser General Public  //
00017 // License along with this program; if not, write to the Free        //
00018 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,   //
00019 // MA 02111-1307, USA.                                               //
00020 //                                                                   //
00021 // For any comment, suggestion or feature request, please contact    //
00022 // the administrator of the project at frm@users.sourceforge.net     //
00023 //                                                                   //
00031 
00032 
00033 
00034 #ifndef DIALOGS_OPTTREECTRL_H
00035 #define DIALOGS_OPTTREECTRL_H
00036 
00037 #if defined(__GNUG__) && !defined(__APPLE__)
00038   #pragma interface "OptTreeCtrl.h"
00039 #endif
00040 
00041 // For compilers that support precompilation, includes "wx/wx.h".
00042 /*#include "wx/wxprec.h"
00043 
00044 #ifdef __BORLANDC__
00045   #pragma hdrstop
00046 #endif
00047 
00048 // for all others, include the necessary headers 
00049 #ifndef WX_PRECOMP
00050   #include "wx/wx.h"
00051 #endif
00052 
00053 */
00054 // mgOptionsTreeCtrl class is a special type of wxTreeCtrl
00055 #include "wx/treectrl.h"
00056 
00057 
00059 enum IdOptionsPanel  {
00060     Id_mgOptBasePanel = 1,
00061       Id_mgOptGeneralPanel,
00062       Id_mgOptKeyBindingsPanel,
00063       Id_mgOptFontSettingsPanel
00064 };
00065 
00066 
00067 // this will defined later...
00068 class mgOptBasePanel;
00069 
00070 
00071 
00084 class mgOptTreeCtrlItemData : public wxTreeItemData
00085 {
00086 public:
00087    
00089 
00097    mgOptTreeCtrlItemData( IdOptionsPanel id, const wxString *className = 0 );
00098    
00100    virtual ~mgOptTreeCtrlItemData();
00101    
00102 
00103 public:           // member variables
00104 
00106 
00113    mgOptBasePanel*    m_panel;
00114    
00116 
00123    wxString      m_className;
00124    
00126 
00129    IdOptionsPanel m_classID;
00130 };
00131 
00132 
00133 
00150 class mgOptionsTreeCtrl : public wxTreeCtrl
00151 {
00152 public:
00153    
00155 
00161    mgOptionsTreeCtrl( wxWindow* parent );
00162    
00163 
00165    virtual ~mgOptionsTreeCtrl();
00166    
00167    
00168 private:
00169    DECLARE_CLASS( mgOptionsTreeCtrl )
00170    DECLARE_EVENT_TABLE()
00171 };
00172 
00173 
00174 #endif          // not defined DIALOGS_OPTTREECTRL_H
00175 


Documentation generated with Doxygen on Sun Feb 6 17:19:26 2005
Visit MathStudio home page for more info

[ Top ]