Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

linklistbox.moc.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** LinkListBox meta object code from reading C++ file 'linklistbox.h'
00003 **
00004 ** Created: Sat Mar 27 00:58:39 2004
00005 **      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.2.3   edited Nov 10 11:18 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 *****************************************************************************/
00009 
00010 #undef QT_NO_COMPAT
00011 #include "linklistbox.h"
00012 #include <qmetaobject.h>
00013 #include <qapplication.h>
00014 
00015 #include <private/qucomextra_p.h>
00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
00017 #error "This file was generated using the moc from 3.2.3. It"
00018 #error "cannot be used with the include files from this version of Qt."
00019 #error "(The moc has changed too much.)"
00020 #endif
00021 
00022 const char *LinkListBox::className() const
00023 {
00024     return "LinkListBox";
00025 }
00026 
00027 QMetaObject *LinkListBox::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_LinkListBox( "LinkListBox", &LinkListBox::staticMetaObject );
00029 
00030 #ifndef QT_NO_TRANSLATION
00031 QString LinkListBox::tr( const char *s, const char *c )
00032 {
00033     if ( qApp )
00034         return qApp->translate( "LinkListBox", s, c, QApplication::DefaultCodec );
00035     else
00036         return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString LinkListBox::trUtf8( const char *s, const char *c )
00040 {
00041     if ( qApp )
00042         return qApp->translate( "LinkListBox", s, c, QApplication::UnicodeUTF8 );
00043     else
00044         return QString::fromUtf8( s );
00045 }
00046 #endif // QT_NO_TRANSLATION_UTF8
00047 
00048 #endif // QT_NO_TRANSLATION
00049 
00050 QMetaObject* LinkListBox::staticMetaObject()
00051 {
00052     if ( metaObj )
00053         return metaObj;
00054     QMetaObject* parentObject = QListView::staticMetaObject();
00055     static const QUParameter param_slot_0[] = {
00056         { "item", &static_QUType_ptr, "QListViewItem", QUParameter::In }
00057     };
00058     static const QUMethod slot_0 = {"slotSelected", 1, param_slot_0 };
00059     static const QUMethod slot_1 = {"slotOpen", 0, 0 };
00060     static const QUMethod slot_2 = {"slotNewWindow", 0, 0 };
00061     static const QUParameter param_slot_3[] = {
00062         { "item", &static_QUType_ptr, "QListViewItem", QUParameter::In },
00063         { "p", &static_QUType_varptr, "\x0e", QUParameter::In },
00064         { "c", &static_QUType_int, 0, QUParameter::In }
00065     };
00066     static const QUMethod slot_3 = {"slotPopupMenu", 3, param_slot_3 };
00067     static const QUParameter param_slot_4[] = {
00068         { "newwin", &static_QUType_bool, 0, QUParameter::In }
00069     };
00070     static const QUMethod slot_4 = {"open", 1, param_slot_4 };
00071     static const QMetaData slot_tbl[] = {
00072         { "slotSelected(QListViewItem*)", &slot_0, QMetaData::Protected },
00073         { "slotOpen()", &slot_1, QMetaData::Protected },
00074         { "slotNewWindow()", &slot_2, QMetaData::Protected },
00075         { "slotPopupMenu(QListViewItem*,const QPoint&,int)", &slot_3, QMetaData::Protected },
00076         { "open(bool)", &slot_4, QMetaData::Protected }
00077     };
00078     static const QUParameter param_signal_0[] = {
00079         { "where", &static_QUType_QString, 0, QUParameter::In },
00080         { "data", &static_QUType_charstar, 0, QUParameter::In },
00081         { 0, &static_QUType_bool, 0, QUParameter::In }
00082     };
00083     static const QUMethod signal_0 = {"open", 3, param_signal_0 };
00084     static const QUParameter param_signal_1[] = {
00085         { "where", &static_QUType_QString, 0, QUParameter::In },
00086         { 0, &static_QUType_bool, 0, QUParameter::In }
00087     };
00088     static const QUMethod signal_1 = {"open", 2, param_signal_1 };
00089     static const QMetaData signal_tbl[] = {
00090         { "open(QString,const char*,bool)", &signal_0, QMetaData::Public },
00091         { "open(QString,bool)", &signal_1, QMetaData::Public }
00092     };
00093     metaObj = QMetaObject::new_metaobject(
00094         "LinkListBox", parentObject,
00095         slot_tbl, 5,
00096         signal_tbl, 2,
00097 #ifndef QT_NO_PROPERTIES
00098         0, 0,
00099         0, 0,
00100 #endif // QT_NO_PROPERTIES
00101         0, 0 );
00102     cleanUp_LinkListBox.setMetaObject( metaObj );
00103     return metaObj;
00104 }
00105 
00106 void* LinkListBox::qt_cast( const char* clname )
00107 {
00108     if ( !qstrcmp( clname, "LinkListBox" ) )
00109         return this;
00110     return QListView::qt_cast( clname );
00111 }
00112 
00113 #include <qobjectdefs.h>
00114 #include <qsignalslotimp.h>
00115 
00116 // SIGNAL open
00117 void LinkListBox::open( QString t0, const char* t1, bool t2 )
00118 {
00119     if ( signalsBlocked() )
00120         return;
00121     QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
00122     if ( !clist )
00123         return;
00124     QUObject o[4];
00125     static_QUType_QString.set(o+1,t0);
00126     static_QUType_charstar.set(o+2,t1);
00127     static_QUType_bool.set(o+3,t2);
00128     activate_signal( clist, o );
00129 }
00130 
00131 // SIGNAL open
00132 void LinkListBox::open( QString t0, bool t1 )
00133 {
00134     if ( signalsBlocked() )
00135         return;
00136     QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
00137     if ( !clist )
00138         return;
00139     QUObject o[3];
00140     static_QUType_QString.set(o+1,t0);
00141     static_QUType_bool.set(o+2,t1);
00142     activate_signal( clist, o );
00143 }
00144 
00145 bool LinkListBox::qt_invoke( int _id, QUObject* _o )
00146 {
00147     switch ( _id - staticMetaObject()->slotOffset() ) {
00148     case 0: slotSelected((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
00149     case 1: slotOpen(); break;
00150     case 2: slotNewWindow(); break;
00151     case 3: slotPopupMenu((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
00152     case 4: open((bool)static_QUType_bool.get(_o+1)); break;
00153     default:
00154         return QListView::qt_invoke( _id, _o );
00155     }
00156     return TRUE;
00157 }
00158 
00159 bool LinkListBox::qt_emit( int _id, QUObject* _o )
00160 {
00161     switch ( _id - staticMetaObject()->signalOffset() ) {
00162     case 0: open((QString)static_QUType_QString.get(_o+1),(const char*)static_QUType_charstar.get(_o+2),(bool)static_QUType_bool.get(_o+3)); break;
00163     case 1: open((QString)static_QUType_QString.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
00164     default:
00165         return QListView::qt_emit(_id,_o);
00166     }
00167     return TRUE;
00168 }
00169 #ifndef QT_NO_PROPERTIES
00170 
00171 bool LinkListBox::qt_property( int id, int f, QVariant* v)
00172 {
00173     return QListView::qt_property( id, f, v);
00174 }
00175 
00176 bool LinkListBox::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00177 #endif // QT_NO_PROPERTIES

Generated on Sat Mar 27 19:20:39 2004 for Literature by doxygen 1.3.6-20040222