Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/circuits/QSwap.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: 964 byte(s)
First commit
1 //---------------------------------------------------------------------------
2 #ifndef QSwapH
3 #define QSwapH
4 //---------------------------------------------------------------------------
5 #include "QCircuit.h"
6 //---------------------------------------------------------------------------
7 class QSwap : public QCircuit {
8 private:
9
10 int Target1;
11 int Target2;
12
13 public:
14 QSwap(int x,int y);
15 QSwap(int x,int y, string Param);
16
17 virtual int GetType(void) { return QC_SWAP; }
18 virtual string GetTypeStr(void) { return "QSwap"; }
19
20 string GetCalcText(void);
21
22 void SetTarget(int t1, int t2);
23 int GetTarget1(void) {return Target1;};
24 int GetTarget2(void) {return Target2;};
25
26
27 void Draw(QDraw *Draw);
28 void DrawPS(QPSDraw *psDraw);
29 string GetParam(void);
30 void Reverse(int y);
31 TRect GetOccupiedRect();
32 QCircuit *Clone();
33 };
34 //--------------------------------------------------------------------------
35 #endif

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