summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2008-10-08 11:58:34 +0000
committerdeva <deva>2008-10-08 11:58:34 +0000
commit9b697d2d3e34962385cd85a14d4cb14d5b1763ce (patch)
tree0bd158b1e747850e293f0dac714b7afaeaf0b895 /client/macrowindow.cc
parent8bbcc59fd1488833a4d8dd346b6e8fec2a0021a8 (diff)
Removed obsolete macro.{cc,h}. Made the passing of the Netcom class, use a pointer.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index 3a6d3c7..18ed218 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -33,7 +33,6 @@
#include <QDomNode>
#include <QByteArray>
-#include "macro.h"
#include "widgets/widget.h"
#include "widgets/window.h"
#include "widgetbuilder.h"
@@ -44,10 +43,11 @@ extern QString user;
extern QString host;
extern quint16 port;
-MacroWindow::MacroWindow(NetCom &n, QDomNode &xml_doc, QString course, bool collapsed)
- : Collapser(), netcom(n)
+MacroWindow::MacroWindow(NetCom *netcom, QDomNode &xml_doc, QString course, bool collapsed)
+ : Collapser()
{
this->course = course;
+ this->netcom = netcom;
setCollapsedWidget(new ResumeWidget());
@@ -145,7 +145,7 @@ bool MacroWindow::doCommit()
// If all entries passed validation, continue commit
if(faulty == 0) {
- netcom.send(widgets, macro, version);
+ netcom->send(widgets, macro, version);
emit updateOnCommit();
setCollapsed(true);
return true;
@@ -278,7 +278,7 @@ void MacroWindow::toggleMacro()
auxwidgets.clear();
luaprograms.clear();
- QDomDocument xml_doc = netcom.send(course, macro);
+ QDomDocument xml_doc = netcom->send(course, macro);
//
// TODO: This is where the dependency checking should occur.