Use Home Club setting in new score dialog
[scorecard] / src / main-window.h
index d587a77..bd39659 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "data.h"
 #include "score-common.h"
+#include "score-dialog.h"
+#include "course-dialog.h"
 #include "table-model.h"
 #include "list-model.h"
 
@@ -62,9 +64,11 @@ private:
   void saveSettings(void);
   Club * findClub(QString &name);
   Course * findCourse(const QString &clubName, const QString &courseName);
-  Course * findCourse();
+  Course * currentCourse();
+  Score * currentScore();
   Score * findScore(QString & clubName, QString & courseName);
   void flushReadOnlyItems();
+  void markHomeClub();
                                
   void showNote(QString msg);
   void getStat(QTextEdit *);
@@ -107,6 +111,6 @@ private:
   void createActions();
 
   // Windows
-  QMainWindow *scoreWin;
-  QMainWindow *courseWin;
+  ScoreWindow *scoreWindow;
+  CourseWindow *courseWindow;
 };