Changeset 330 in Sophya for trunk/SophyaPI/PIext/piacmd.h
- Timestamp:
- Jun 24, 1999, 4:26:47 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.h
r293 r330 53 53 // --------------------------------------------------------------------- 54 54 55 class PIAHelpWind; // Fenetre d'aide en ligne 56 55 57 class PIACmd : public CmdInterpreter { 56 58 public: … … 61 63 virtual string Name(); 62 64 63 virtual void RegisterCommand(string& keyw, string& usage, CmdExecutor * ce); 65 virtual void RegisterCommand(string& keyw, string& usage, CmdExecutor * ce, 66 string grp="Command"); 67 virtual void RegisterHelp(string& keyw, string& usage, string& grp); 64 68 virtual void LoadModule(string& fnameso, string& name); 65 69 … … 77 81 inline PIStdImgApp* GetImgApp() { return(mImgApp); } 78 82 83 // Pour utilisation par PIAHelpWind uniquement 84 virtual void UpdateHelpList(PIAHelpWind* hw, int gid); 85 79 86 protected: 87 virtual int CheckHelpGrp(string& grp); 88 80 89 NamedObjMgr* mObjMgr; 81 90 PIStdImgApp* mImgApp; … … 84 93 CmdExecutor* basexec; 85 94 86 // Pour enregistrer la liste de commandes et leurs executeurs 87 struct cmdex {string us; CmdExecutor * cex; } ; 95 // Pour enregistrer la liste de commandes et leurs executeurs et le help 96 struct cmdex {int group; string us; CmdExecutor * cex; } ; 97 typedef map<string, int, less<string> > CmdHGroup; // Liste des groupes de commandes 98 CmdHGroup cmdhgrp; 99 int cmdgrpid; // Numero de groupe courant 88 100 typedef map<string, cmdex, less<string> > CmdExmap; 89 101 CmdExmap cmdexmap; 102 CmdExmap helpexmap; // Pour les helps sans commande 90 103 91 104 // Pour garder la liste des modules
Note:
See TracChangeset
for help on using the changeset viewer.