mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 15:50:37 +02:00
60 lines
1.4 KiB
C++
60 lines
1.4 KiB
C++
//
|
|
// 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 "BaseLogDialog.h"
|
|
|
|
class QCheckBox;
|
|
class QPushButton;
|
|
class QComboBox;
|
|
class QResizeEvent;
|
|
class AbstractLoggerInterface;
|
|
|
|
class LogDialog : public BaseLogDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
LogDialog(QWidget* parent, AbstractLoggerInterface* logger);
|
|
|
|
public slots:
|
|
void appendLogLine(QString logLine) override;
|
|
|
|
private slots:
|
|
void handleRevealButton();
|
|
void handleExtraDebuggingCheckbox(int);
|
|
void handleDebugPrintBox(int);
|
|
void handleInfoPrintBox(int);
|
|
void handleCriticalPrintBox(int);
|
|
void handleFilterDropdownChanged(int);
|
|
void handleShowAllButton();
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent* event) override;
|
|
QString getCurrentLog() override;
|
|
void printLogFile();
|
|
|
|
private:
|
|
QCheckBox* _extraDebuggingBox;
|
|
QPushButton* _revealLogButton;
|
|
QPushButton* _showAllButton;
|
|
QCheckBox* _debugPrintBox;
|
|
QCheckBox* _infoPrintBox;
|
|
QCheckBox* _criticalPrintBox;
|
|
QComboBox* _filterDropdown;
|
|
QString _filterSelection;
|
|
QString log;
|
|
|
|
AbstractLoggerInterface* _logger;
|
|
};
|
|
|
|
#endif // hifi_LogDialog_h
|