1 #ifndef CONSOLEWINDOW_H
2 #define CONSOLEWINDOW_H
3 
4 #include <QtGui>
5 #include "fshost.h"
6 #include "sortfilterproxymodel.h"
7 
8 namespace Ui {
9     class ConsoleWindow;
10 }
11 
12 class ConsoleWindow : public QMainWindow {
13     Q_OBJECT
14 public:
15     ConsoleWindow(QWidget *parent = 0);
16     ~ConsoleWindow();
17 
18 protected:
19     void changeEvent(QEvent *e);
20 
21 /*public slots:
22     void clearConsoleContents();
23     void saveLogToFile();
24     void pastebinLog();
25     void filterLogUUID(QString);
26     void findText();*/
27 
28 private slots:
29     void setConditionalScroll();
30     void conditionalScroll();
31     /*void filterClear();
32     void filterStringChanged();*/
33     void loggerHandler(QSharedPointer<switch_log_node_t> node, switch_log_level_t level);
34     void addNewConsoleItem(QStandardItem *item);
35     void cmdSendClicked();
36     void lineCmdChanged(QString);
37     /*void reverseFilterChecked();*/
38     void filterModelLogLevel(int);
39 
40 
41 private:
42     Ui::ConsoleWindow *ui;
43     ConsoleModel *sourceModel;
44     QModelIndexList foundItems;
45     SortFilterProxyModel *model;
46     /*pastebinDialog *_pastebinDlg;
47     FindDialog *_findDialog;*/
48     bool findNext;
49     bool autoScroll;
50     QSignalMapper *_levelFilter;
51 
52     /*void readSettings();
53     void writeSettings();*/
54 };
55 
56 #endif // CONSOLEWINDOW_H
57