summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-21 07:45:08 +0000
committerdeva <deva>2008-08-21 07:45:08 +0000
commit475882356de5ac95c50cf7e7144117793eec6b2e (patch)
tree0d9deaa1b80835fef14365af80060b831b6750cf /client/macrowindow.cc
parent346bb313cd27383b3c7e54da7750ee4f17758d12 (diff)
Added aux widget list to macrowindow
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index ddaf905..b0eab65 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -205,14 +205,26 @@ bool MacroWindow::isClosed()
Widget *MacroWindow::getWidget(QString name)
{
- QVector< Widget* >::iterator i=widgets.begin();
+ QVector< Widget* >::iterator i = widgets.begin();
while (i != widgets.end()) {
Widget* w = *i;
if(name == w->getName()) return w;
i++;
}
+
+ QVector< Widget* >::iterator j = auxwidgets.begin();
+ while (j != auxwidgets.end()) {
+ Widget* w = *j;
+ if(name == w->getName()) return w;
+ j++;
+ }
printf("WARNING: Widget %s not found\n", name.toStdString().c_str());
return NULL;
}
+
+void MacroWindow::addAuxWidgets(QVector< Widget* > ws)
+{
+ auxwidgets += ws;
+}