Merge branch 'fixing/resultDialog'
[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     void setLabelInfoToUser(QString infoText);
21
22 protected:
23     void changeEvent(QEvent *e);
24
25 signals:
26     void refreshCategoryList();
27     void refreshTopList(int index);
28
29 private:
30     Ui::TopResultDialog *ui;
31     int recentCategoryIndex;
32     int limitNr;
33
34 private slots:
35     void on_comboBoxTopCategory_currentIndexChanged(int index);
36     void on_buttonTopRefresh_clicked();
37
38 };
39
40 #endif // TOPRESULTDIALOG_H