Brad DavisMore header cleanup35f730711 years agoHistory
75 lines · 1.5 KB · C
RawDownload
////  LogDialog.h//  interface/src/ui////  Created by Stojce Slavkovski on 12/12/13.//  Copyright 2013 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #ifndef hifi_LogDialog_h#define hifi_LogDialog_h #include <QDialog>#include <QMutex>#include <QPlainTextEdit>#include <QLineEdit>#include <QPushButton>#include <QCheckBox>#include <QSyntaxHighlighter> #include "AbstractLoggerInterface.h" class KeywordHighlighter : public QSyntaxHighlighter {    Q_OBJECT public:    KeywordHighlighter(QTextDocument *parent = 0);    QString keyword; protected:    void highlightBlock(const QString &text); private:    QTextCharFormat keywordFormat; }; class LogDialog : public QDialog {    Q_OBJECT public:    LogDialog(QWidget*, AbstractLoggerInterface*);    ~LogDialog(); public slots:    void appendLogLine(QString logLine); private slots:    void handleSearchButton();    void handleRevealButton();    void handleExtraDebuggingCheckbox(const int);    void handleSearchTextChanged(const QString); protected:    void resizeEvent(QResizeEvent*);    void showEvent(QShowEvent*); private:    QPushButton* _searchButton;    QLineEdit* _searchTextBox;    QCheckBox* _extraDebuggingBox;    QPushButton* _revealLogButton;    QPlainTextEdit* _logTextBox;    QString _searchTerm;    KeywordHighlighter* _highlighter;     AbstractLoggerInterface* _logger;     void initControls();    void showLogData();}; #endif // hifi_LogDialog_h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t