consolewindow.h 1.2 KB

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