OSDN Git Service

Ver0.09pre
[gefu/Gefu.git] / historydialog.h
1 #ifndef HISTORYDIALOG_H
2 #define HISTORYDIALOG_H
3
4 #include "history.h"
5
6 #include <QDialog>
7
8 namespace Ui {
9 class HistoryDialog;
10 }
11
12 class HistoryDialog : public QDialog
13 {
14     Q_OBJECT
15
16 public:
17     explicit HistoryDialog(QWidget *parent = 0);
18     ~HistoryDialog();
19
20     void setHistory(History *left, History *right);
21     void setDefaultLeft(bool bLeft);
22
23     int selectedIndex() const;
24     const QString selectedSide() const;
25
26 private:
27     Ui::HistoryDialog *ui;
28     History *m_leftHistory;
29     History *m_rightHistory;
30     History *m_displaying;
31
32 private slots:
33     void showLeftHistory();
34     void showRightHistory();
35     void showHistory();
36
37     // QWidget interface
38 protected:
39     void showEvent(QShowEvent *event);
40 };
41
42 #endif // HISTORYDIALOG_H