1 #ifndef COURSE_DIALOG_H
2 #define COURSE_DIALOG_H
8 #include <QDialogButtonBox>
14 class QTableWidgetItem;
17 class CourseSelectDialog: public QDialog
22 CourseSelectDialog(QWidget *parent = 0);
24 void results(QString &club, QString &course);
31 void createLayout(QWidget *parent);
34 QLineEdit *lineEditClub;
35 QLineEdit *lineEditCourse;
38 QPushButton *pushButtonNext;
41 QVBoxLayout *leftLayout;
42 QVBoxLayout *rightLayout;
45 class CourseDialog: public QDialog
50 CourseDialog(QWidget *w);
51 void results(QVector<QString> &, QVector<QString> &, QVector<QString> &);
58 enum { ROW_HOLE = 0, ROW_PAR = 1, ROW_HCP = 2, ROW_LEN = 3,
59 ROW_HOLE_2 = 4, ROW_PAR_2 = 5, ROW_HCP_2 = 6, ROW_LEN_2 = 7};
60 enum { rows = 8, cols = 9, separator_row = 3 };
62 void createTable(QWidget *parent = 0);
63 void createLabel(QWidget *parent = 0);
64 void createLayout(QWidget *parent = 0);
71 QLineEdit *courseEdit;
72 QPushButton *pushButtonFinish;
75 QVBoxLayout *rightLayout;
76 QVBoxLayout *leftLayout;