|
a/cfgui/confgui.cpp |
|
b/cfgui/confgui.cpp |
1 |
/* Copyright (C) 2005-2016 J.F.Dockes
|
1 |
/* Copyright (C) 2005-2016 J.F.Dockes
|
2 |
* This program is free software; you can redistribute it and/or modify
|
2 |
* This program is free software; you can redistribute it and/or modify
|
3 |
* it under the terms of the GNU General Public License as published by
|
3 |
* it under the terms of the GNU Lesser General Public License as published by
|
4 |
* the Free Software Foundation; either version 2 of the License, or
|
4 |
* the Free Software Foundation; either version 2.1 of the License, or
|
5 |
* (at your option) any later version.
|
5 |
* (at your option) any later version.
|
6 |
*
|
6 |
*
|
7 |
* This program is distributed in the hope that it will be useful,
|
7 |
* This program is distributed in the hope that it will be useful,
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10 |
* GNU General Public License for more details.
|
10 |
* GNU Lesser General Public License for more details.
|
11 |
*
|
11 |
*
|
12 |
* You should have received a copy of the GNU General Public License
|
12 |
* You should have received a copy of the GNU Lesser General Public License
|
13 |
* along with this program; if not, write to the
|
13 |
* along with this program; if not, write to the
|
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
|
17 |
|
|
... |
|
... |
180 |
case CFPT_FN:
|
180 |
case CFPT_FN:
|
181 |
cp = new ConfParamFNW(varname, this, lnk, label, tooltip, ival);
|
181 |
cp = new ConfParamFNW(varname, this, lnk, label, tooltip, ival);
|
182 |
break;
|
182 |
break;
|
183 |
case CFPT_STRL:
|
183 |
case CFPT_STRL:
|
184 |
cp = new ConfParamSLW(varname, this, lnk, label, tooltip);
|
184 |
cp = new ConfParamSLW(varname, this, lnk, label, tooltip);
|
|
|
185 |
break;
|
185 |
case CFPT_DNL:
|
186 |
case CFPT_DNL:
|
186 |
cp = new ConfParamDNLW(varname, this, lnk, label, tooltip);
|
187 |
cp = new ConfParamDNLW(varname, this, lnk, label, tooltip);
|
187 |
break;
|
188 |
break;
|
188 |
case CFPT_CSTRL:
|
189 |
case CFPT_CSTRL:
|
189 |
cp = new ConfParamCSLW(varname, this, lnk, label, tooltip, *sl);
|
190 |
cp = new ConfParamCSLW(varname, this, lnk, label, tooltip, *sl);
|
190 |
break;
|
191 |
break;
|
191 |
|
|
|
192 |
}
|
192 |
}
|
193 |
panel->addWidget(cp);
|
193 |
panel->addWidget(cp);
|
194 |
m_params.push_back(cp);
|
194 |
m_params.push_back(cp);
|
195 |
return cp;
|
195 |
return cp;
|
196 |
}
|
196 |
}
|