- Refactor: score and course UI widget management into common files
[scorecard] / src / course-dialog.h
index 3a13112..35e7c8d 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2009 Sakari Poussa
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 2.
+ */
+
 #ifndef COURSE_DIALOG_H
 #define COURSE_DIALOG_H
 
 #include <QDebug>
 
 #include "data.h"
+#include "table-model.h"
 
 QT_BEGIN_NAMESPACE
 class QTableWidget;
 class QTableWidgetItem;
 QT_END_NAMESPACE
 
+class CourseWindow: public QMainWindow
+{
+    Q_OBJECT;
+
+public:
+    CourseWindow(QWidget *parent = 0);
+
+    void setup(Course *course);
+
+private:
+    CourseTableModel *model;
+};
+
 class CourseSelectDialog: public QDialog
 {
   Q_OBJECT