1 /*******************************************************************************
\r
2 TPI - flexible but useless plug-in framework.
\r
3 Copyright (C) 2002-2009 Silky
\r
5 This library is free software; you can redistribute it and/or modify it under
\r
6 the terms of the GNU Lesser General Public License as published by the Free
\r
7 Software Foundation; either version 2.1 of the License, or (at your option)
\r
10 This library is distributed in the hope that it will be useful, but WITHOUT
\r
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
\r
15 You should have received a copy of the GNU Lesser General Public License along
\r
16 with this library; if not, write to the Free Software Foundation, Inc.,
\r
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
\r
20 *******************************************************************************/
\r
22 #include <wx/fileconf.h>
\r
24 #ifndef H_LOADED_CLS_CONF
\r
25 #define H_LOADED_CLS_CONF
\r
34 CONF_WINDOW_SPLITTER_POS,
\r
35 CONF_WINDOW_STATUSBAR,
\r
36 CONF_WINDOW_TOOLBAR,
\r
37 CONF_LISTVIEW_SHOWMODE,
\r
38 CONF_LISTVIEW_C_FILENAME,
\r
39 CONF_LISTVIEW_C_UNPACKED,
\r
40 CONF_LISTVIEW_C_PACKED,
\r
41 CONF_LISTVIEW_C_RATIO,
\r
42 CONF_LISTVIEW_C_METHOD,
\r
43 CONF_LISTVIEW_C_ATTR,
\r
44 CONF_LISTVIEW_C_LASTMOD,
\r
45 CONF_LISTVIEW_C_PATH,
\r
46 CONF_LISTVIEW_C_TYPE,
\r
48 CONF_LISTVIEW_C_COMMENT,
\r
49 CONF_LISTVIEW_S_COLUMN,
\r
50 CONF_LISTVIEW_S_ASCEND,
\r
63 class myConfig : public wxFileConfig
\r
70 wxString ReadId(myConfigId confId, const wxString & defaultVal);
\r
71 long ReadId(myConfigId confId, long defaultVal);
\r
72 bool ReadId(myConfigId confId, bool defaultVal);
\r
74 bool WriteId(myConfigId confId, const wxString & value);
\r
75 bool WriteId(myConfigId confId, int value);
\r
76 bool WriteId(myConfigId confId, bool value);
\r
79 size_t GetHistoryCount(myConfigId confId);
\r
80 wxString ReadHistory(myConfigId confId, size_t i);
\r
81 void WriteHistory(myConfigId confId, const wxString & sz);
\r
84 wxString label[CONF_LAST];
\r
85 wxArrayString asHistory[CONF_HISTORY_COUNT - CONF_HISTORY_PATH];
\r
88 void myReadHistory(myConfigId confId, size_t i);
\r
89 void myWriteHistory(myConfigId confId, size_t i);
\r