changed: ConfParser -- now we can have a tree (spaces can have more than one level)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@768 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-09-26 05:40:26 +00:00
parent 60f0e62c23
commit 89efaa790f
10 changed files with 644 additions and 599 deletions

View File

@@ -46,11 +46,14 @@ bool GroupInfo::ParseGroups(const std::wstring & str, Groups & groups)
{
groups.Clear();
conf_parser.SetSpace(space);
conf_parser.UTF8(true);
if( conf_parser.ParseString(str) == ConfParser::ok )
{
ConfParser::Table::iterator i;
Space::Table::iterator i;
for(i=conf_parser.space.table.begin() ; i!=conf_parser.space.table.end() ; ++i)
for(i=space.table.begin() ; i!=space.table.end() ; ++i)
{
groups.AddGroup();
log << log1 << "stworzylem nowa grupe" << logend;

View File

@@ -65,6 +65,7 @@ private:
typedef std::map<long, GroupsWrapItem> GroupsWrap;
GroupsWrap groups_wrap;
Space space;
ConfParser conf_parser;
std::vector<Item*> config_dir_tab;
Item config_file;

View File

@@ -61,6 +61,7 @@ void menu_dir_load_menu(long parent_id)
menu_dir_iq.sel_subject = true;
menu_dir_iq.sel_url = true;
menu_dir_iq.sel_sort_index = true;
menu_dir_iq.WhereFileType(WINIX_ITEM_FILETYPE_NONE);
menu_dir_iq.WhereParentId(parent_id);
// !! directories will not be read with WINIX_ITEM_FILETYPE_NONE