Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

robwxext.h

00001 /*
00002  * robwxext.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00016 #ifndef __RT_WX_CLASSEX__
00017 #define __RT_WX_CLASSEX__
00018 
00019 // Contains some small extension classes for wxWidgets. 
00020 
00021 #include <wx/listctrl.h>
00022 #include <wx/splitter.h>
00023 
00024 class ImprovedListCtrl : public wxListCtrl {
00025 public:
00026         ImprovedListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, 
00027                 const wxSize& size = wxDefaultSize, long style = wxLC_ICON, 
00028                 const wxValidator& validator = wxDefaultValidator, const wxString& name = "listCtrl");
00029         void SetGrowableCol(int col);
00030 
00031         DECLARE_EVENT_TABLE()
00032 private:
00033         void OnSize(wxSizeEvent&);
00034 
00035         int growableCol;
00036 };
00037 
00038 class ImprovedSplitter : public wxSplitterWindow {
00039 public:
00040         ImprovedSplitter(wxWindow* parent, wxWindowID id, const wxPoint& point = wxDefaultPosition, 
00041                 const wxSize& size = wxDefaultSize, long style=wxSP_3D, const wxString& name = "splitterWindow");
00042 
00043         DECLARE_EVENT_TABLE()
00044 private:
00045         void OnErase(wxEraseEvent&);
00046 };
00047 
00048 template <class W> class NoFlickerWindow : public W {
00049 public:
00050         NoFlickerWindow() 
00051         {
00052                 Connect(-1, wxEVT_ERASE_BACKGROUND, (wxObjectEventFunction) &NoFlickerWindow<W>::OnErase);
00053         }
00054 
00055 private:
00056         void OnErase(wxEraseEvent&) { /* do nothing  */ }
00057 };
00058 
00059 #endif // file

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer