Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120241841
consoleviewer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 2, 21:52
Size
1001 B
Mime Type
text/x-c++
Expires
Fri, Jul 4, 21:52 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27160489
Attached To
rSYMKIT symkit
consoleviewer.h
View Options
#ifndef CONSOLEVIEWER_H
#define CONSOLEVIEWER_H
#include <QPlainTextEdit>
#include <QThread>
#include <fstream>
class ConsoleThread : public QThread
{
std::ifstream stream;
volatile bool running;
volatile bool enabled;
virtual void run() override;
Q_OBJECT
public:
ConsoleThread(std::istream&);
~ConsoleThread();
void setInputEnabled(bool);
bool isInputEnabled() const;
void startInputLoop();
void stopInputLoop();
signals:
void inputLine(const QString&);
};
class ConsoleViewer : public QPlainTextEdit
{
Q_OBJECT
ConsoleThread thread;
private slots:
void inputLineHandler(const QString&);
public:
ConsoleViewer(std::istream&, QWidget *parent = 0);
ConsoleThread * getConsoleThread();
};
/*#include <fstream>
class ConsoleViewer : public QPlainTextEdit
{
std::ifstream stream;
public:
ConsoleViewer(std::istream&, QWidget *parent = 0);
void checkForPushedData();
};*/
#endif // CONSOLEVIEWER_H
Event Timeline
Log In to Comment