Index: trunk/SophyaPI/PIext/basexecut.cc
===================================================================
--- trunk/SophyaPI/PIext/basexecut.cc	(revision 326)
+++ trunk/SophyaPI/PIext/basexecut.cc	(revision 330)
@@ -445,25 +445,25 @@
 usage = "To load and initialize modules \n  Usage: loadmodule fnameso modulename";
 usage += "\n  Related commands: link";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "External Modules");
 kw = "link";
 usage = "Dynamic linking of compiled user functions \n  Usage: link fnameso f1 [f2 f3]";
 usage += "\n  fnameso: Shared-object file name, f1,f2,f3 : User function names ";
 usage += "\n  Related commands: call loadmodule";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "External Modules");
 kw = "call";
 usage = "Dynamically linked user function call \n Usage: call userf [arg1 arg2 ...]";
 usage += "\n  User function : f(vector<string>& args)";
 usage += "\n  Related commands: link";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "External Modules");
 
 kw = "zone";
 usage = "To Divide the Graphic window \n  Usage: zone nx ny";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Graphics");
 kw = "newwin";
 usage = "To Create a New Graphic window, with zones \n  Usage: newwin nx ny";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Graphics");
 kw = "stacknext";
 usage = "Displays the next widget on stack window \n  Usage: stacknext";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Graphics");
 
 kw = "gratt";
@@ -489,94 +489,94 @@
 usage += "          fineaxes  grid=fineaxesgrid \n"; 
 usage += ">> DisplayWindow: next same win stack \n";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Graphics");
 
 kw = "openfits";
 usage = "Loads a FITS file into an Image<T> \n Usage: openfits filename";
 usage += "\n  Related commands: savefits openppf";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "FileIO");
 kw = "savefits";
 usage = "Save an object into a FITS file \n Usage: savefits nameobj filename";
 usage += "\n  Related commands: openfits saveall";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "FileIO");
 kw = "openppf";
 usage = "Reads all objects from a PPF file \n Usage: openppf filename";
 usage += "\n  Related commands: saveall openfits";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "FileIO");
 kw = "saveall";
 usage = "Saves all objects into a PPF file \n Usage: saveall filename";
 usage += "\n  Related commands: openppf savefits";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "FileIO");
 
 kw = "print";
 usage = "Prints an object \n Usage: print nameobj";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "FileIO");
 
 kw = "listobjs";
 usage = "Prints the list of objects";
 usage += "\n Usage: listobjs";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Object Managment");
 kw = "rename";
 usage = "Rename an object \n Usage: rename nameobj namenew";
 usage += "\n  Related commands: del delobjs";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Object Managment");
 kw = "del";
 usage = "Deletes an object \n Usage: del nameobj";
 usage += "\n  Related commands: delobjs  rename";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Object Managment");
 kw = "delobjs";
 usage = "Delete a set of objects with names matching a pattern (x?y*)";
 usage += "\n Usage: delobjs nameobjpattern \n";
 usage += "\n  Related commands: del rename";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Object Managment");
 
 kw = "newh1d";
 usage = "Creates a 1D histogramm \n Usage: newh1d name xmin xmax nbin";
 usage += "\n  Related commands: newh2d  newprof  newgfd ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Histrograms");
 kw = "newh2d";
 usage = "Creates a 2D histogramm \n Usage: newh2d name xmin xmax nbinx ymin ymax nbiny";
 usage += "\n  Related commands: newh1d  newprof  newgfd ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Histrograms");
 kw = "newprof";
 usage = "Creates a profile histogramm \n Usage: newprof name xmin xmax nbin [ymin ymax]";
 usage += "\n  Related commands: newh1d  newh2d newgfd ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Histrograms");
 kw = "newgfd";
 usage = "Creates GeneralFit Data object \n Usage: newgfd nvar nalloc [errx(0/1)]";
 usage += "\n  Related commands: newh1d  newh2d  newprof ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Histrograms");
 
 kw = "disp";
 usage = "Displays an object \n Usage: disp nameobj [graphic_attributes]";
 usage += "\n  Related commands: surf nt2d nt3d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 kw = "imag";
 usage = "Displays an object as an image \n Usage: imag nameobj [graphic_attributes]";
 usage += "\n  Related commands: disp surf nt2d nt3d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 kw = "surf";
 usage = "Displays an object as a 3D surface \n Usage: surf nameobj [graphic_attributes]";
 usage += "\n  Related commands: disp nt2d nt3d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 kw = "nt2d";
 usage = "Displays Points (X-Y) [with error-bars] from an NTuple ";
 usage += "\n Usage : nt2d nameobj varx vary [errx erry] [graphic_attributes]";
 usage += "\n  Related commands: disp  surf  nt3d  gfd2d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 kw = "nt3d";
 usage = "Displays 3D-Points (X-Y-Z) [with error-bars] from an NTuple ";
 usage += "\n Usage : nt3d nameobj varx vary varz [errx erry errz] [graphic_attributes]";
 usage += "\n  Related commands: disp  surf  nt2d  gfd3d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 kw = "gfd2d";
 usage = "Displays Points (X-Y) with error-bars from a GeneralFit Data ";
 usage += "\n Usage : gfd2d nameobj numvarx erreur=(x y xy) [graphic_attributes]";
 usage += "\n  Related commands: gfd3d nt2d nt3d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 kw = "gfd3d";
 usage = "Displays 3D-Points (X-Y-Z) with error-bars from a GeneralFit Data ";
 usage += "\n Usage : gfd3d nameobj numvarx numvary erreur=(x y z xy xz yz xyz) [graphic_attributes]";
 usage += "\n  Related commands: gfd2d nt2d nt3d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
 
 kw = "func";
@@ -584,20 +584,20 @@
 usage += "\n Usage: func f(x) xmin xmax npt [graphic_attributes]";
 usage += "\n  Related commands: funcff func2d func2dff ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Func Plot");
 kw = "funcff";
 usage = "Displays a function y=f(x) from a C-file (Fills a vector with function values)";
 usage += "\n Usage: funcff C-FileName FunctionName xmin xmax npt [graphic_attributes]";
 usage += "\n  Related commands: func func2d func2dff ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Func Plot");
 kw = "func2d";
 usage = "Displays a function z=f(x,y) (Fills a matrix with function values)";
 usage += "\n Usage: func2d f(x,y) xmin xmax nptx ymin ymax npty [graphic_attributes]";
 usage += "\n  Related commands: func";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Func Plot");
 kw = "func2dff";
 usage = "Displays a function z=f(x,y) from a C-file (Fills a matrix with function values)";
 usage += "\n Usage: func2dff C-FileName FunctionName xmin xmax nptx ymin ymax npty [graphic_attributes]";
 usage += "\n  Related commands: func funcff func2d ";  
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Func Plot");
 
 kw = "plot2d";
@@ -607,10 +607,10 @@
 usage += "\n Usage: plot2d nameobj f_X() g_Y() [ f_ErrX() f_ErrY() ] f_Cut() [graphic_attributes]";
 usage += "\n  Related commands: plot3d  projh1d  projh2d  projprof  fillnt fillvec fillgd1 ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 kw = "plot3d";
 usage = "Plots (3D) Z=h(Object) vs. Y=g(Object) vs. X=f(Object) vs ";
 usage += "\n Usage: plot2d nameobj f_X() g_Y() h_Z() Cut() [graphic_attributes]";
 usage += "\n  Related commands: plot2d  projh1d  projh2d  projprof  fillnt fillvec ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 
 kw = "projh1d";
@@ -619,5 +619,5 @@
 usage += "\n   Histo1D nameh1d is created if necessary ";
 usage += "\n  Related commands: plot2d  projh2d  projprof fillnt  fillvec ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 kw = "projh2d";
 usage = "Projects (X=f(Object),Y=g(Object)) with weight WT=h(Object) into a 2D histogram ";
@@ -625,5 +625,5 @@
 usage += "\n   Histo2D nameh2d is created if necessary ";
 usage += "\n  Related commands: plot2d  projh1d projprof ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 kw = "projprof";
 usage = "Projects (X=f(Object),Y=g(Object)) with weight WT=h(Object) into a profile histogram ";
@@ -631,5 +631,5 @@
 usage += "\n   HProf nameprof is created if necessary ";
 usage += "\n  Related commands: plot2d  projh2d  ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 
 kw = "fillnt";
@@ -637,20 +637,20 @@
 usage += "\n Usage: fillnt nameobj f_X() g_Y() h_Z() k_T() Cut() nameNt";
 usage += "\n  Related commands: plot2d  projh1d projh2d projprof ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 kw = "fillvec";
 usage = "Creates and Fills a Vector with X=f(Object)";
 usage += "\n Usage: fillvec nameobj f_X() Cut() nameVec [graphic_attributes]";
 usage += "\n  Related commands: plot2d  projh1d  fillnt ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 kw = "fillgd1";
 usage = "Creates and Fills a GeneralFitData with (X=f(Object), Y=g(...), ErrY=h(...))";
 usage += "\n Usage: fillgd1 nameobj f_X() g_Y() h_ErrY() Cut() nameGfd";
 usage += "\n  Related commands: plot2d  fillnt ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 kw = "fillgd2";
 usage = "Creates and Fills a GeneralFitData with (X=f(Object), Y=g(...), Z=h(...)) ErrZ=k(...)";
 usage += "\n Usage: fillgd1 nameobj f_X() g_Y() h_Z() k_ErrZ() Cut() nameGfd";
 usage += "\n  Related commands: plot2d  fillgd2 ";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 
 kw = "fit";
@@ -658,5 +658,5 @@
 usage += "\n Usage: fit nomobj func [Options]";
 usage += "\n [p:p1,...,pn s:s1,...,sn m:m1,...,mn M:M1,...,Mn o:... o:...]";
-mpiac->RegisterCommand(kw, usage, this);
+mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
 
 
