Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94113577
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, Dec 4, 00:45
Size
1001 B
Mime Type
text/x-c++
Expires
Fri, Dec 6, 00:45 (2 d)
Engine
blob
Format
Raw Data
Handle
22738160
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