-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
58 lines (42 loc) · 1.25 KB
/
mainwindow.h
File metadata and controls
58 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "database.h"
#include "challongeimporter.h"
#include "sessioneditwizard.h"
#include "configparser.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(const QString& cfg_file, QWidget *parent = 0);
~MainWindow();
private slots:
void importFile();
void editSession_p(const QString& session_name);
void onEditSession();
void onAddSession();
void onDeleteSession();
void onExport();
void onFinishedSession();
//void updateStandings(QString session_name);
void updateEloTable();
void updatePVPTable(const std::vector<EloData>& vecEloData);
private:
Ui::MainWindow *ui;
void createActions();
void createMenu();
void selectNewSession(const QStringList& sessions_before,
const QStringList& sessions_after);
void importChallongeFile( const QString& file );
QMenu* fileMenu;
QAction *importAct;
ChallongeImporter* m_challongeImporter;
SessionEditWizard* m_sessionEditWizard;
const QString m_cfg_file;
ConfigParser m_cfgParser;
};
#endif // MAINWINDOW_H