+/*
+ * 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
private:
void createLayout(QWidget *parent);
+ void showNote(QString msg);
bool validate(void);
QLineEdit *lineEditClub;
CourseDialog(QWidget *w);
void results(QVector<QString> &, QVector<QString> &, QVector<QString> &);
bool validate();
+ void init(Course *course = 0);
private slots:
void up(void);