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

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

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