Changeset 330 in Sophya for trunk/SophyaPI/PIext/piacmd.h


Ignore:
Timestamp:
Jun 24, 1999, 4:26:47 PM (26 years ago)
Author:
ercodmgr
Message:

Amelioration du Help pour piapp (Groupe de Help) Reza 24/6/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.h

    r293 r330  
    5353// ---------------------------------------------------------------------
    5454
     55class PIAHelpWind;   // Fenetre d'aide en ligne
     56
    5557class PIACmd : public CmdInterpreter  {
    5658public:
     
    6163  virtual string        Name();
    6264
    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);
    6468  virtual void          LoadModule(string& fnameso, string& name);
    6569
     
    7781  inline  PIStdImgApp*    GetImgApp() { return(mImgApp); }
    7882
     83//   Pour utilisation par PIAHelpWind uniquement
     84  virtual void          UpdateHelpList(PIAHelpWind* hw, int gid);
     85
    7986protected:
     87  virtual int           CheckHelpGrp(string& grp);
     88
    8089  NamedObjMgr* mObjMgr;
    8190  PIStdImgApp* mImgApp;
     
    8493  CmdExecutor* basexec;
    8594
    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
    88100  typedef map<string, cmdex, less<string> > CmdExmap;
    89101  CmdExmap cmdexmap;
     102  CmdExmap helpexmap;                               // Pour les helps sans commande
    90103
    91104// Pour garder la liste des modules
Note: See TracChangeset for help on using the changeset viewer.