+TOP
+- If no data files, the hole numbers are missing from main-window
+- Disable selection from the main-window
+
TODO General:
- Statistics view (BIG)
- Delete score
- Seems to be bug in the Qt/Maemo
- Date picker button (widget is missing)
- Use syslog
-- If no data files, the hole numbers are missing from main-window
TODO Hildon 2.2
- Replace LineEdit w/ HildonEntry
// Sort the scores based on dates
qSort(scoreList.begin(), scoreList.end(), dateLessThan);
+ createActions();
+ createMenus();
+
createTableView(scoreList, clubList);
//createTreeView(scoreList, parent);
createStatusBar();
createLayout(centralWidget);
- createActions();
- createMenus();
}
void MainWindow::loadSettings(void)
void MainWindow::createLayout(QWidget *parent)
{
+
buttonLayout = new QVBoxLayout;
//labelLayout->addStretch();
buttonLayout->addWidget(nextButton);
void MainWindow::createStatusBar()
{
+#if 0
+ // TODO: use toolbar or buttons. Toolbar seems not to be ready and
+ // requires more work.
+ toolbar = addToolBar(tr("foo"));
+ toolbar->addAction(firstAct);
+ toolbar->addAction(lastAct);
+ toolbar->addAction(prevAct);
+ toolbar->addAction(nextAct);
+#endif
updateStatusBar();
}
viewStatisticAct = new QAction(tr("&View Statistics"), this);
connect(viewStatisticAct, SIGNAL(triggered()), this, SLOT(viewStatistic()));
#endif
+
+ nextAct = new QAction(tr( " Next "), this);
+ connect(nextAct, SIGNAL(triggered()), this, SLOT(nextButtonClicked()));
+
+ prevAct = new QAction(" Prev ", this);
+ connect(prevAct, SIGNAL(triggered()), this, SLOT(prevButtonClicked()));
+
+ firstAct = new QAction(tr(" First "), this);
+ connect(firstAct, SIGNAL(triggered()), this, SLOT(firstButtonClicked()));
+
+ lastAct = new QAction(tr( " Last "), this);
+ connect(lastAct, SIGNAL(triggered()), this, SLOT(lastButtonClicked()));
}
void MainWindow::createMenus()