mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
new protocol testing code
This commit is contained in:
parent
a8c45fda1a
commit
dbd3af8265
8 changed files with 364 additions and 0 deletions
33
common/widget.h
Normal file
33
common/widget.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef WIDGET_H
|
||||
#define WIDGET_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QXmlStreamReader>
|
||||
#include <QXmlStreamWriter>
|
||||
|
||||
class QTextEdit;
|
||||
class QPushButton;
|
||||
class QBuffer;
|
||||
class Command;
|
||||
|
||||
class Widget : public QMainWindow {
|
||||
Q_OBJECT
|
||||
private:
|
||||
QTextEdit *edit1;
|
||||
QPushButton *start;
|
||||
QBuffer *buffer;
|
||||
QXmlStreamReader xmlReader;
|
||||
QXmlStreamWriter xmlWriter;
|
||||
|
||||
Command *currentCommand;
|
||||
bool readCurrentCommand();
|
||||
void parseBuffer();
|
||||
void parseXml();
|
||||
private slots:
|
||||
void startClicked();
|
||||
void updateEdit();
|
||||
public:
|
||||
Widget();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue