nextpnr/gui/infotab.h

29 lines
492 B
C
Raw Normal View History

2018-06-15 00:53:32 +08:00
#ifndef INFOTAB_H
#define INFOTAB_H
#include <QMenu>
2018-06-15 00:53:32 +08:00
#include <QPlainTextEdit>
2018-06-15 00:53:48 +08:00
#include "nextpnr.h"
2018-06-15 00:53:32 +08:00
2018-06-22 19:10:27 +08:00
NEXTPNR_NAMESPACE_BEGIN
2018-06-15 00:53:32 +08:00
class InfoTab : public QWidget
{
Q_OBJECT
public:
explicit InfoTab(QWidget *parent = 0);
void info(std::string str);
private Q_SLOTS:
void showContextMenu(const QPoint &pt);
void clearBuffer();
2018-06-15 00:53:32 +08:00
private:
QPlainTextEdit *plainTextEdit;
QMenu *contextMenu;
2018-06-15 00:53:32 +08:00
};
2018-06-22 19:10:27 +08:00
NEXTPNR_NAMESPACE_END
2018-06-15 00:53:32 +08:00
#endif // INFOTAB_H