|
From: Emilien K. <cur...@us...> - 2005-08-11 09:58:31
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18216/include/wxDevCenter Modified Files: language.h Application.h Config.h Log Message: Add command line parser to allow to add paths to include data/features/plugins/config. Index: Config.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Config.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Config.h 8 Aug 2005 19:14:00 -0000 1.9 --- Config.h 11 Aug 2005 09:58:17 -0000 1.10 *************** *** 144,176 **** * @return Chemin physique de l'instalation. */ ! virtual wxString GetInstallPath()=0; /** Retourne le chemin racine des données (images, icones, etc). * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine de stockage des données. */ ! virtual wxString GetDataPath(long lStackIndex=0)=0; /** Retourne le chemin racine des fonctionnalités. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine des fonctionnalités. */ ! virtual wxString GetFeaturesPath(long lStackIndex=0)=0; /** Retourne le chemin racine des pluggins. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine des plugins. */ ! virtual wxString GetPluginsPath(long lStackIndex=0)=0; /** Retourne le chemin racine de la configuration globale. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine de configuration globale. */ ! virtual wxString GetGlobalConfPath(long lStackIndex=0)=0; /** Retourne le chemin racine de la configuration utilisateur. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine de configuration utilisateur. */ ! virtual wxString GetUserConfPath(long lStackIndex=0)=0; /** Crée un profile utilisateur si aucun n'existe. */ virtual void CreateUserProfile()=0; /** @} */ --- 144,201 ---- * @return Chemin physique de l'instalation. */ ! virtual wxString GetInstallPath(); /** Retourne le chemin racine des données (images, icones, etc). * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine de stockage des données. */ ! virtual wxString GetDataPath(long lStackIndex=0); /** Retourne le chemin racine des fonctionnalités. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine des fonctionnalités. */ ! virtual wxString GetFeaturesPath(long lStackIndex=0); /** Retourne le chemin racine des pluggins. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine des plugins. */ ! virtual wxString GetPluginsPath(long lStackIndex=0); /** Retourne le chemin racine de la configuration globale. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine de configuration globale. */ ! virtual wxString GetGlobalConfPath(long lStackIndex=0); /** Retourne le chemin racine de la configuration utilisateur. * @param lStackIndex Indice dans la liste des chemins. * @return Chemin racine de configuration utilisateur. */ ! virtual wxString GetUserConfPath(long lStackIndex=0); ! ! /** Ajoute un chemin sur la pile des chemins de stockage de données. ! * @param strPath Nouveau chemin. ! */ ! virtual void AddDataPath(wxString strPath); ! /** Ajoute un chemin sur la pile des chemins des features. ! * @param strPath Nouveau chemin. ! */ ! virtual void AddFeaturesPath(wxString strPath); ! /** Ajoute un chemin sur la pile des chemins des plugins. ! * @param strPath Nouveau chemin. ! */ ! virtual void AddPluginsPath(wxString strPath); ! /** Ajoute un chemin sur la pile des chemins de configuration globale. ! * @param strPath Nouveau chemin. ! */ ! virtual void AddGlobalConfPath(wxString strPath); ! /** Ajoute un chemin sur la pile des chemins de configuration utilisateur. ! * @param strPath Nouveau chemin. ! */ ! virtual void AddUserConfPath(wxString strPath); ! /** Crée un profile utilisateur si aucun n'existe. */ virtual void CreateUserProfile()=0; + + /** Log la configuration courante vers le flux d'informations.*/ + virtual void LogConfig(); /** @} */ *************** *** 202,206 **** /** @} */ ! }; --- 227,243 ---- /** @} */ ! protected: ! /** Chemin d'installation.*/ ! wxString m_strInstallPath; ! /** Chemin d'installation des données.*/ ! wxArrayString m_strDataPath; ! /** Chemin d'installation des fonctionnalités.*/ ! wxArrayString m_strFeaturesPath; ! /** Chemin d'installation des plugins.*/ ! wxArrayString m_strPluginsPath; ! /** Chemin d'installation des fichiers de configurations.*/ ! wxArrayString m_strConfPath; ! /** Chemin d'installation des fichiers de configurations utilisateur.*/ ! wxArrayString m_strUserConfPath; }; Index: Application.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Application.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Application.h 14 May 2005 12:15:54 -0000 1.12 --- Application.h 11 Aug 2005 09:58:17 -0000 1.13 *************** *** 33,36 **** --- 33,39 ---- #include <wxDevCenter/Config.h> + + class wxCmdLineParser; + namespace wxDevCenter { *************** *** 259,262 **** --- 262,276 ---- WorkBarManager& GetWorkBarManager(){return m_WorkBarManager;} /** @} */ + + protected: + /** Initialise la ligne de commande. + * @param parser Parseur de ligne de commande. + */ + void OnInitCmdLine(wxCmdLineParser& parser); + + /** Parse la ligne de commande pour récupérer toutes les options voulues. + * @param parser Parseur de ligne de commande. + */ + bool OnCmdLineParsed(wxCmdLineParser& parser); }; Index: language.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/language.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** language.h 30 Mar 2005 18:47:18 -0000 1.8 --- language.h 11 Aug 2005 09:58:17 -0000 1.9 *************** *** 184,186 **** --- 184,194 ---- if not, write to the\nFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" + ////////////////////////////////////////////////////////////////////// + // Textes de la ligne de commandes. + #define WXDC_CMDLINE_ADDPATH_PLUGINS wxT("Add a path to search plugins") + #define WXDC_CMDLINE_ADDPATH_FEATURES wxT("Add a path to search features") + #define WXDC_CMDLINE_ADDPATH_DATA wxT("Add a path to search data") + #define WXDC_CMDLINE_ADDPATH_CONF wxT("Add a path to search config") + #define WXDC_CMDLINE_ADDPATH_USERCONF wxT("Add a path to search user config") + #endif |