Reformat cStringChoice constructors
This commit is contained in:
@@ -19,22 +19,17 @@ static DialogDefn& loadDefn() {
|
|||||||
return *ResMgr::dialogs.get("choose-string");
|
return *ResMgr::dialogs.get("choose-string");
|
||||||
}
|
}
|
||||||
|
|
||||||
cStringChoice::cStringChoice(
|
cStringChoice::cStringChoice(std::vector<std::string>& strs, std::string title, cDialog* parent)
|
||||||
std::vector<std::string>& strs,
|
: dlg(loadDefn(),parent)
|
||||||
std::string title,
|
{
|
||||||
cDialog* parent
|
|
||||||
) : dlg(loadDefn(),parent) {
|
|
||||||
if(!title.empty()) dlg["title"].setText(title);
|
if(!title.empty()) dlg["title"].setText(title);
|
||||||
strings = strs;
|
strings = strs;
|
||||||
attachHandlers();
|
attachHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
cStringChoice::cStringChoice(
|
cStringChoice::cStringChoice(std::vector<std::string>::iterator begin, std::vector<std::string>::iterator end, std::string title, cDialog* parent)
|
||||||
std::vector<std::string>::iterator begin,
|
: dlg(loadDefn(),parent)
|
||||||
std::vector<std::string>::iterator end,
|
{
|
||||||
std::string title,
|
|
||||||
cDialog* parent
|
|
||||||
) : dlg(loadDefn(),parent) {
|
|
||||||
if(!title.empty()) dlg["title"].setText(title);
|
if(!title.empty()) dlg["title"].setText(title);
|
||||||
copy(begin,end,std::inserter(strings, strings.begin()));
|
copy(begin,end,std::inserter(strings, strings.begin()));
|
||||||
attachHandlers();
|
attachHandlers();
|
||||||
|
Reference in New Issue
Block a user