Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 334 → Rev 335

/Classwork/ECE5505 - Test and Verification/Final Project/Gate_INPUT.h
0,0 → 1,33
#ifndef Gate_INPUT_H
#define Gate_INPUT_H
 
#include "GlobalDefines.h"
#include "Gate_BASE.h"
 
class Gate_INPUT : public Gate_BASE
{
Q_OBJECT
public:
Gate_INPUT(int gateID, gType type,
int numInputs, int gateLevel);
 
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void simulateToOutput();
 
signals:
 
public slots:
void promptValue();
void promptFaultyValue();
 
protected:
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
 
private:
void createActions();
QAction *setInputValueAction;
QAction *setFaultValueAction;
 
};
 
#endif // Gate_INPUT_H