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

robwxutil.h

00001 /*
00002  * robwxutil.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 // utility functions for wxWidgets 
00017 
00018 #ifndef __FF_CONTROL_WX__
00019 #define __FF_CONTROL_WX__
00020 
00021 namespace lrt { 
00022         class String;
00023         template<class T> class Array;
00024 }
00025 class wxString; 
00026 class wxWindow;
00027 class wxListCtrl;
00028 
00029 // The class is only intended for grouping the functions.
00030 // Note also that its name starts with a capital 'W' to distinguish it from 
00031 // the 'real' wxWindows classes
00032 class Wx {
00033 public:
00034         // Calls the operating-system-specific wxEntry() function
00035         // without passing command line arguments
00036         // @return The program's intended exit code
00037         static int Startup(); 
00038 
00039         static wxString Conv(const lrt::String&);
00040         static lrt::String Conv(const wxString&);
00041 
00042         // wxConfig settings storage stuff
00043         static void StoreString(const wxString& str, const wxString& cfgKey); 
00044         static wxString ReadString(const wxString& def, const wxString& cfgKey); 
00045 
00046         static void StoreArray(const lrt::Array<int>& arr, const wxString& cfgKey);
00047         static lrt::Array<int> ReadArray(int def, const wxString& cfgKey);
00048 
00049         static void StoreRect(wxWindow* win, const wxString& cfgKey);
00050         static void RestoreRect(wxWindow* win, const wxString& cfgKey);
00051         static void StoreColumns(wxListCtrl* ctrl, const wxString& cfgKey);
00052         static void RestoreColumns(wxListCtrl* ctrl, const wxString& cfgKey);
00053 
00054         // html display
00055         static void ShowInBrowser(const wxString& htmlFile); 
00056 };
00057 
00058 
00059 #endif // file

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