Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
335 Kevin 1
#ifndef Gate_INPUT_H
2
#define Gate_INPUT_H
3
 
4
#include "GlobalDefines.h"
5
#include "Gate_BASE.h"
6
 
7
class Gate_INPUT : public Gate_BASE
8
{
9
    Q_OBJECT
10
    public:
11
        Gate_INPUT(int gateID, gType type,
12
                 int numInputs, int gateLevel);
13
 
14
        void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
15
        void simulateToOutput();
16
 
17
    signals:
18
 
19
    public slots:
20
        void promptValue();
21
        void promptFaultyValue();
22
 
23
    protected:
24
        void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
25
 
26
    private:
27
        void createActions();
28
        QAction *setInputValueAction;
29
        QAction *setFaultValueAction;
30
 
31
};
32
 
33
#endif // Gate_INPUT_H