void results(QVector<QString> &scores);
bool validate(void);
- private slots:
+private slots:
void up(void);
void down(void);
void next(void);
};
// Class for editing single hole in one dialog
-class ScoreDialogSingle: public QDialog
+class ScoreDialogSingle: public ScoreDialog
{
Q_OBJECT;
void init(Course *course, Score *score = 0);
void results(QVector<QString> &scores);
+private slots:
+ void up(void);
+ void down(void);
+ void next(void);
+ //void finish(void);
+
private:
+ enum { ROWS = 7, COLS = 3 };
+ enum { ROW_HOLE = 0, ROW_PAR = 1, ROW_HCP = 2, ROW_SCORE = 3, ROW_PUTTS = 4, ROW_FAIRWAY = 5, ROW_GREEN = 6 };
+
void createTable(QWidget *parent = 0);
void createButton(QWidget *parent = 0);
void createLayout(QWidget *parent = 0);
+ void setDefaultScore(QTableWidget *table);
+ void moveToNextCell(QTableWidgetItem *item);
// Widgets
QTableWidget *table;