Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/circuits/QBitbox.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Wed Aug 3 10:14:23 2011 UTC (12 years, 9 months ago) by kaityo
File MIME type: text/x-chdr
File size: 1037 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 // Bit Information
3 //---------------------------------------------------------------------------
4 #ifndef QBitboxH
5 #define QBitboxH
6 #include "QCircuit.h"
7
8 const int BIT_DOWN = 0;
9 const int BIT_UP = 1;
10 //---------------------------------------------------------------------------
11 class QBitbox : public QCircuit {
12 private:
13 int Index;
14 int state;
15 string Text;
16
17 public:
18 QBitbox(int index);
19 QBitbox(int x, int y, string Param);
20
21
22 bool Enabled;
23
24 virtual int GetType(void) { return QC_BITBOX; }
25 virtual string GetTypeStr(void) { return "QBitBox"; }
26
27 void Draw(QDraw *Draw);
28 string GetCalcText(void);
29 virtual void Calc(QBits *qBits) {}
30 void DrawPS(QPSDraw *psDraw);
31 string GetParam(void);
32 void Reverse(int y);
33 TRect GetOccupiedRect();
34 void SetState(int st);
35 int GetState();
36 QCircuit *Clone();
37 };
38 //---------------------------------------------------------------------------
39 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26