Update of /cvsroot/wxdevcenter/wxDevCenter/src/msw
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15322/src/msw
Modified Files:
Config.cpp
Log Message:
Transition to the new feature/plugin system based on the Element class.
Index: Config.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/msw/Config.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Config.cpp 23 Feb 2005 14:21:21 -0000 1.5
--- Config.cpp 14 May 2005 12:15:56 -0000 1.6
***************
*** 55,63 ****
m_pConfig = new wxConfig(WXDC_SETUP_APPIDENT, WXDC_SETUP_VENDOR);
m_strInstallPath = ReadConfig(WXDC_CONF_KEYNAME_INSTALLDIR , wxT(""));
m_strDataPath = ReadConfig(WXDC_CONF_KEYNAME_DATADIR , wxT(""));
m_strPluginsPath = ReadConfig(WXDC_CONF_KEYNAME_PLUGINSDIR , wxT(""));
m_strConfPath = ReadConfig(WXDC_CONF_KEYNAME_CONFDIR , wxT(""));
! m_strUserConfPath = ReadConfig(WXDC_CONF_KEYNAME_USERCONFDIR , wxGetHomeDir() + wxT("/.") + WXDC_SETUP_APPIDENT + wxT("/conf"));
}
--- 55,67 ----
m_pConfig = new wxConfig(WXDC_SETUP_APPIDENT, WXDC_SETUP_VENDOR);
+ wxString strDefHomeDir = wxGetHomeDir();
+ strDefHomeDir << wxT("/.") << WXDC_SETUP_APPIDENT << wxT("/conf");
+
m_strInstallPath = ReadConfig(WXDC_CONF_KEYNAME_INSTALLDIR , wxT(""));
m_strDataPath = ReadConfig(WXDC_CONF_KEYNAME_DATADIR , wxT(""));
+ m_strFeaturesPath = ReadConfig(WXDC_CONF_KEYNAME_FEATURESDIR , wxT(""));
m_strPluginsPath = ReadConfig(WXDC_CONF_KEYNAME_PLUGINSDIR , wxT(""));
m_strConfPath = ReadConfig(WXDC_CONF_KEYNAME_CONFDIR , wxT(""));
! m_strUserConfPath = ReadConfig(WXDC_CONF_KEYNAME_USERCONFDIR , strDefHomeDir);
}
***************
*** 116,119 ****
--- 120,129 ----
}
+ // Retourne le chemin racine des fonctionnalités.
+ wxString ConfigWindows::GetFeaturesPath()
+ {
+ return m_strFeaturesPath;
+ }
+
// Retourne le chemin racine des pluggins.
wxString ConfigWindows::GetPluginsPath()
|