-
Notifications
You must be signed in to change notification settings - Fork 1
/
tabwidget.h
41 lines (33 loc) · 869 Bytes
/
tabwidget.h
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
#ifndef TABWIDGET_H
#define TABWIDGET_H
#include <QtGui/QWidget>
#include <QtGui/QGridLayout>
#include "sgfgame.h"
#include "board.h"
#include "gametree.h"
#include "commentview.h"
#include "moveattributewidget.h"
class TabWidget : public QWidget
{
Q_OBJECT
SgfGame* m_game;
Board *m_board;
GameTree *m_tree;
CommentView *m_commentView;
MoveAttributeWidget *m_moveAttr;
QString m_filename;
bool m_changed;
public:
QString fileName()const;
QString filePath()const;
inline SgfGame* game() { return m_game; }
inline Board* board() { return m_board; }
bool openFile(const QString& s);
bool saveFile(const QString& s = QString());
inline bool changed()const { return m_changed; }
TabWidget(QWidget *parent = 0, QSize size = QSize(19, 19), SgfGame::Rules rules = SgfGame::JapaneseRules);
~TabWidget();
signals:
public slots:
};
#endif // TABWIDGET_H