|
From: Emilien K. <cur...@us...> - 2005-09-22 17:06:56
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26281/src Modified Files: Tag: modularisation Config.cpp Log Message: Append module directory to config. Index: Config.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Config.cpp,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -C2 -d -r1.11 -r1.11.2.1 *** Config.cpp 15 Sep 2005 16:11:47 -0000 1.11 --- Config.cpp 22 Sep 2005 17:06:44 -0000 1.11.2.1 *************** *** 120,123 **** --- 120,132 ---- } + // Retourne le chemin racine des modules. + wxString Config::GetModulePath(long lStackIndex) + { + if(lStackIndex>=0l && lStackIndex<(long)m_strModulePath.GetCount()) + return m_strModulePath[lStackIndex]; + else + return wxT(""); + } + // Retourne le chemin racine des données (images, icones, etc). wxString Config::GetDataPath(long lStackIndex) *************** *** 165,168 **** --- 174,183 ---- } + // Ajoute un chemin sur la pile des chemins des modules. + void Config::AddModulePath(wxString strPath) + { + m_strModulePath.Insert(strPath, 0); + } + // Ajoute un chemin sur la pile des chemins de stockage de données. void Config::AddDataPath(wxString strPath) |