URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [gui_plugin/] [PeriphWidgets/] [LedArea.h] - Rev 3
Compare with Previous | Blame | View Log
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief LED's area renderer declaration. */ #pragma once #include "api_core.h" // MUST BE BEFORE QtWidgets.h or any other Qt header. #include "attribute.h" #include "igui.h" #include <QtWidgets/QWidget> #include <QtGui/QPaintEvent> namespace debugger { class LedArea : public QWidget { Q_OBJECT public: LedArea(QWidget *parent = 0); private slots: void slotUpdate(uint32_t val); protected: void paintEvent(QPaintEvent *event_) Q_DECL_OVERRIDE; private: AttributeType ledTotal_; uint32_t leds_; QPixmap pixmapOn_; QPixmap pixmapOff_; }; } // namespace debugger