00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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
00030
00031
00032 class Wx {
00033 public:
00034
00035
00036
00037 static int Startup();
00038
00039 static wxString Conv(const lrt::String&);
00040 static lrt::String Conv(const wxString&);
00041
00042
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
00055 static void ShowInBrowser(const wxString& htmlFile);
00056 };
00057
00058
00059 #endif // file