From 96c3b5c064a26b8598943a122d9b6ecbdf1062e9 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 17 Mar 2008 11:29:52 +0000 Subject: recent changes, dunno what exactly, but perhaps something with moving on to next dialog by clicking next --- client/builder.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'client/builder.cc') diff --git a/client/builder.cc b/client/builder.cc index 29c42c6..af44fd8 100644 --- a/client/builder.cc +++ b/client/builder.cc @@ -69,9 +69,11 @@ void Builder::recurser(QDomNode xml_node, QWidget *parent) } else if(xml_elem.tagName() == "button") { PushButton *pushbutton = new PushButton(xml_elem); + //connect(pushbutton, SIGNAL(act_continue()), main, SLOT(get_macro())); connect(pushbutton, SIGNAL(act_commit()), this, SLOT(commit())); connect(pushbutton, SIGNAL(act_reset()), this, SLOT(reset())); connect(pushbutton, SIGNAL(act_cancel()), this, SLOT(cancel())); + connect(pushbutton, SIGNAL(act_continue()), this, SLOT(cont("fisk"))); widget = pushbutton; } else if(xml_elem.tagName() == "textedit") { @@ -190,3 +192,19 @@ void Builder::cancel() { printf("Builder -> cancelling...\n"); } + +void Builder::cont(QString name) +{ + /* + QVector< Widget* >::iterator i=widgets.begin(); + while (i != widgets.end()) { + Widget* w = *i; + + if(w->getName() + xml_string.append(" getName() + + "\" value=\"" + w->getValue() + "\"/>\n"); + i++; + } + */ + printf("%s : Builder -> continuing...\n", name.toStdString().c_str()); +} -- cgit v1.2.3