mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <QtWidgets/QWidget>
|
|
#include <QtCore/QString>
|
|
#include "ui_SeerLogWidget.h"
|
|
|
|
class SeerLogWidget : public QWidget, protected Ui::SeerLogWidgetForm {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SeerLogWidget (QWidget* parent = 0);
|
|
~SeerLogWidget ();
|
|
|
|
virtual void processText (const QString& text);
|
|
|
|
bool isLogEnabled () const;
|
|
void setLogEnabled (bool flag);
|
|
void moveToEnd ();
|
|
|
|
signals:
|
|
void logEnabledChanged (bool flag);
|
|
|
|
public slots:
|
|
void handleText (const QString& text);
|
|
void handleClearButton ();
|
|
void handlePrintButton ();
|
|
void handleSaveButton ();
|
|
void handleWrapTextCheckBox ();
|
|
void handleEnableCheckBox ();
|
|
|
|
protected:
|
|
};
|
|
|