Merge branch 'master' of /opt/src/sb1/qt/scorecard
[scorecard] / src / course-dialog.h
index c983088..41d9535 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 <QLineEdit>
 #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
@@ -29,6 +53,7 @@ private slots:
  private:
 
   void createLayout(QWidget *parent);
+  void showNote(QString msg);
   bool validate(void);
 
   QLineEdit    *lineEditClub;
@@ -50,6 +75,7 @@ class CourseDialog: public QDialog
   CourseDialog(QWidget *w);
   void results(QVector<QString> &, QVector<QString> &, QVector<QString> &);
   bool validate();
+  void init(Course *course = 0);
 
  private slots:
   void up(void);