summaryrefslogtreecommitdiff
path: root/client/builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/builder.cc')
-rw-r--r--client/builder.cc18
1 files changed, 18 insertions, 0 deletions
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(" <field name=\"" + w->getName()
+ + "\" value=\"" + w->getValue() + "\"/>\n");
+ i++;
+ }
+ */
+ printf("%s : Builder -> continuing...\n", name.toStdString().c_str());
+}