RedPanda-CPP/RedPandaIDE/widgets/consolewidget.h

20 lines
355 B
C
Raw Normal View History

2021-07-01 19:44:38 +08:00
#ifndef CONSOLEWIDGET_H
#define CONSOLEWIDGET_H
#include <QTextEdit>
class ConsoleWidget : public QTextEdit
{
Q_OBJECT
public:
explicit ConsoleWidget(QWidget* parent = nullptr);
private:
QString mCurrentCommand;
QStringList mCommandHistory;
int mHistoryIndex;
int mHistorySize;
QString mPrompt;
};
#endif // CONSOLEWIDGET_H