|
- #ifndef COMPARATOR_H
- #define COMPARATOR_H
- #include "item.h"
-
- class Comparator : public Item
- {
- public:
- Comparator(const QString &type);
- QRectF boundingRect() const override;
- void paint(QPainter *painter,
- const QStyleOptionGraphicsItem *option,
- QWidget *) override;
- bool setRegisterId(const QString &id) override;
- void setRegisterValue(const QString ®isterId, quint16 value) override;
- void addMenuActions(QMenu *menu) override;
- void handleMenuAction(QAction *action) override;
- void setCompare(QString) override;
- bool state() const override;
- QStringList resetRegister() override;
-
- private:
- QString registerId2_;
- quint16 registerValue2_ = 0;
- QString compare_ = "CP";
- };
-
- #endif // COMPARATOR_H
|