Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

/cygdrive/d/Eigene Dateien/!DProcs/code_gen/QEvent.cpp

Go to the documentation of this file.
00001 // Class QEvent 
00002 // Event class, which holds the events
00003 // Filename QEvent.cpp
00004 // FaPra 2003-2004, A5,  Alexander Kramer
00005 
00006 
00007 #include "QEvent.h"
00008 #include <iostream>
00009 using namespace std;
00010 
00011 // ----------------------------------------------------------
00012 
00013 //! getter method for Type
00014 QEventType QEvent::getType()
00015 {
00016   return Type;
00017 } // end of getType()
00018 
00019 //! setter method for Type
00020 void QEvent::setType( QEventType  newValue )
00021 {
00022   Type = newValue;
00023 } // end of setType()
00024 
00025 //! getter method for Button
00026 QMouseButton QEvent::getButton()
00027 {
00028   return Button;
00029 } // end of getButton()
00030 
00031 //! setter method for Button
00032 void QEvent::setButton( QMouseButton  newValue )
00033 {
00034   Button = newValue;
00035 } // end of setButton()
00036 
00037 //! getter method for X
00038 int QEvent::getX()
00039 {
00040 return X;
00041 } // end of getX()
00042 
00043 //! setter method for X
00044 void QEvent::setX( int  newValue )
00045 {
00046 X = newValue;
00047 } // end of setX()
00048 
00049 //! getter method for Y
00050 int QEvent::getY()
00051 {
00052 return Y;
00053 } // end of getY()
00054 
00055 //! setter method for Y
00056 void QEvent::setY( int  newValue )
00057 {
00058 Y = newValue;
00059 } // end of setY()
00060 
00061 //! getter method for Key
00062 int QEvent::getKey()
00063 {
00064 return Key;
00065 } // end of getKey()
00066 
00067 //! setter method for Key
00068 void QEvent::setKey( int  newValue )
00069 {
00070 Key = newValue;
00071 } // end of setKey()
00072 
00073 // WARNING : The implementation of this method will be automatically generated with code generator.
00074 // To prevent this add '//KEEP' at the first line of the implementation.(first line after '{')
00075 //! copy itself from another instance
00076 void QEvent::copyFrom( QEvent*  from )
00077 {
00078 setType(from->getType());
00079 setButton(from->getButton());
00080 setX(from->getX());
00081 setY(from->getY());
00082 setKey(from->getKey());
00083 } // end of copyFrom()
00084 
00085 // WARNING : The implementation of this method will be automatically generated with code generator.
00086 // To prevent this add '//KEEP' at the first line of the implementation.(first line after '{')
00087 //! prints itself to the cout
00088 void QEvent::print()
00089 {
00090 cout << "Class : QEvent" << endl;
00091 cout << "Type = " << Type << endl;
00092 cout << "Button = " << Button << endl;
00093 cout << "X = " << X << endl;
00094 cout << "Y = " << Y << endl;
00095 cout << "Key = " << Key << endl;
00096 } // end of print()
00097 
00098 // WARNING : The implementation of this method will be automatically generated with code generator.
00099 // To prevent this add '//KEEP' at the first line of the implementation.(first line after '{')
00100 //! Constructor
00101  QEvent::QEvent(  )
00102 {
00103 Type = etDraw;
00104 Button = mbLeft;
00105 X = 0;
00106 Y = 0;
00107 Key = 0;
00108 } // end of QEvent()
00109 
00110 // WARNING : The implementation of this method will be automatically generated with code generator.
00111 // To prevent this add '//KEEP' at the first line of the implementation.(first line after '{')
00112 //! Destructor
00113  QEvent::~QEvent()
00114 {
00115 } // end of ~QEvent()
00116 
00117 // end of implementation of QEvent
00118 
00119 

Generated on Thu Mar 18 18:33:48 2004 for miniQT by doxygen1.2.18