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_S_COLUMN,
\r
49 CONF_LISTVIEW_S_ASCEND,
\r
62 class myConfig : public wxFileConfig
\r
69 wxString ReadID(myConfigID confId, const wxString & defaultVal);
\r
70 long ReadID(myConfigID confId, long defaultVal);
\r
71 bool ReadID(myConfigID confId, bool defaultVal);
\r
73 bool WriteID(myConfigID confId, const wxString & value);
\r
74 bool WriteID(myConfigID confId, long value);
\r
75 bool WriteID(myConfigID confId, bool value);
\r
78 size_t GetHistoryCount(myConfigID confId);
\r
79 wxString ReadHistory(myConfigID confId, size_t i);
\r
80 void WriteHistory(myConfigID confId, wxString sz);
\r
83 wxString label[CONF_LAST];
\r
84 wxArrayString asHistory[CONF_HISTORY_COUNT - CONF_HISTORY_PATH];
\r
87 void myReadHistory(myConfigID confId, size_t i);
\r
88 void myWriteHistory(myConfigID confId, size_t i);
\r