diff options
author | deva <deva> | 2011-08-02 08:00:20 +0000 |
---|---|---|
committer | deva <deva> | 2011-08-02 08:00:20 +0000 |
commit | ed9e290b441a6486c576c2e2e4baa69fa0f3ed37 (patch) | |
tree | 759ace8ca615e3a4167a5e783297cc761b89b992 /client/macrowindow.cc | |
parent | 23f39df8b8edeacfa5821050abbdc855acb2edd6 (diff) |
New 'open course' feature.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r-- | client/macrowindow.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc index bbfab8e..44f2797 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -46,7 +46,7 @@ extern MainWindow *gmainwindow; extern QString cpr; extern QString user; -MacroWindow::MacroWindow(NetCom &n, QString templ, +MacroWindow::MacroWindow(NetCom &n, QString course, QString templ, bool is_static, bool compact, QScrollArea *scrollarea, MacroDrawer *d) @@ -62,8 +62,9 @@ MacroWindow::MacroWindow(NetCom &n, QString templ, waschanged = false; + this->course = course; this->templ = templ; - + resumewidget = new ResumeWidget(compact); active = true; @@ -172,7 +173,7 @@ bool MacroWindow::doCommit() QVector< Widget* > wlist; if(mainwidget) wlist = mainwidget->widgetList(); - netcom.send(wlist, templ, macro, version); + netcom.send(wlist, course, templ, macro, version); return true; } else { @@ -198,7 +199,7 @@ void MacroWindow::cancel() void MacroWindow::expandWrapper() { if(currentWidget() != resumewidget) return; - netcom.send(templ, macro); + netcom.send(course, templ, macro); } void MacroWindow::collapseWrapper() @@ -206,7 +207,7 @@ void MacroWindow::collapseWrapper() if(currentWidget() == resumewidget) return; if(waschanged == false) { - netcom.send(templ); + netcom.send(course, templ); return; } @@ -224,7 +225,7 @@ void MacroWindow::collapseWrapper() doCommit(); break; case MessageBox::Close: - netcom.send(templ); + netcom.send(course, templ); break; case MessageBox::Cancel: default: |