2018-10-07 03:41:18 +00:00
|
|
|
#pragma once
|
2017-12-25 21:53:37 +00:00
|
|
|
|
|
|
|
#include <QTableView>
|
2017-12-26 04:27:18 +00:00
|
|
|
#include "Common.hpp"
|
2017-12-25 21:53:37 +00:00
|
|
|
|
|
|
|
#if ZEUS_ARCH_X86_64 || ZEUS_ARCH_X86
|
|
|
|
#include "VectorISATableModelIntel.hpp"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class QSequentialAnimationGroup;
|
|
|
|
|
2018-12-08 05:19:40 +00:00
|
|
|
class VectorISATableView : public QTableView {
|
|
|
|
Q_OBJECT
|
2017-12-25 21:53:37 +00:00
|
|
|
#if ZEUS_ARCH_X86_64 || ZEUS_ARCH_X86
|
2018-12-08 05:19:40 +00:00
|
|
|
VectorISATableModelIntel m_model;
|
2017-12-25 21:53:37 +00:00
|
|
|
#endif
|
2018-12-08 05:19:40 +00:00
|
|
|
std::tuple<QWidget*, QSequentialAnimationGroup*, bool> m_backgroundWidgets[2] = {};
|
|
|
|
int m_maxISA = 0;
|
|
|
|
|
2017-12-25 21:53:37 +00:00
|
|
|
public:
|
2018-12-08 05:19:40 +00:00
|
|
|
VectorISATableView(QWidget* parent = Q_NULLPTR);
|
2019-08-30 07:40:25 +00:00
|
|
|
void paintEvent(QPaintEvent* e) override;
|
2018-12-08 05:19:40 +00:00
|
|
|
VectorISA getISA() const { return m_model.getISA(m_maxISA); }
|
|
|
|
bool willRun(VectorISA visa) const { return m_model.willRun(visa); }
|
2017-12-25 21:53:37 +00:00
|
|
|
};
|