1 #include "GuiListParameter.h" 
    2 #include "GuiComboBoxParameter.h" 
    5 #include "GuiStringParameter.h" 
    6 #include "GuiIntegerParameter.h" 
    7 #include "GuiDoubleParameter.h" 
    8 #include "GuiBooleanParameter.h" 
    9 #include "GuiParameterFactory.h" 
   14   GuiParameter *GuiParameterFactory::Create(QGridLayout *grid,
 
   16       int group, 
int param) {
 
   17     QString paramType = ui.
ParamType(group, param);
 
   19     GuiParameter *p = NULL;
 
   21       if (paramType == 
"combo") {
 
   22         p = 
new GuiComboBoxParameter(grid, ui, group, param);
 
   24         p = 
new GuiListParameter(grid, ui, group, param);
 
   27     else if(paramType == 
"cube") {
 
   28       p = 
new GuiCubeParameter(grid, ui, group, param);
 
   30     else if(paramType == 
"filename") {
 
   31       p = 
new GuiFileNameParameter(grid, ui, group, param);
 
   33     else if(paramType == 
"string") {
 
   34       p = 
new GuiStringParameter(grid, ui, group, param);
 
   36     else if(paramType == 
"integer") {
 
   37       p = 
new GuiIntegerParameter(grid, ui, group, param);
 
   39     else if(paramType == 
"double") {
 
   40       p = 
new GuiDoubleParameter(grid, ui, group, param);
 
   42     else if(paramType == 
"boolean") {
 
   43       p = 
new GuiBooleanParameter(grid, ui, group, param);
 
   46       QString msg = 
"Invalid parameter type in XML [" + paramType + 
"]";
 
This error is for when a programmer made an API call that was illegal. 
 
QString ParamType(const int &group, const int ¶m) const 
Returns the parameter type of a parameter in a specified group. 
 
#define _FILEINFO_
Macro for the filename and line number. 
 
Command Line and Xml loader, validation, and access. 
 
int ParamListSize(const int &group, const int ¶m) const 
Returns the number of options in the specified parameter's list.