Connecting client-server communication to new GUI.
[speedfreak] / Client / topresultdialog.h
1 #ifndef TOPRESULTDIALOG_H
2 #define TOPRESULTDIALOG_H
3
4 #include <QDialog>
5
6 namespace Ui {
7     class TopResultDialog;
8 }
9
10 class TopResultDialog : public QDialog {
11     Q_OBJECT
12 public:
13     TopResultDialog(QWidget *parent = 0);
14     ~TopResultDialog();
15     void setCompoBoxCategories(QStringList list);
16     void showTopList(QString str);
17     int getRecentCategoryIndex();
18     int getLimitNr();
19     void setLimitNr(int number);
20
21 protected:
22     void changeEvent(QEvent *e);
23
24 signals:
25     void refreshCategoryList();
26     void refreshTopList(int index);
27
28 private:
29     Ui::TopResultDialog *ui;
30     int recentCategoryIndex;
31     int limitNr;
32
33 private slots:
34     void on_comboBoxTopCategory_currentIndexChanged(int index);
35     void on_pushButton_debclose_clicked();
36     void on_buttonTopRefresh_clicked();
37
38 };
39
40 #endif // TOPRESULTDIALOG_H