Viewer
display a stack of images
|
00001 /**************************************************************************** 00002 ** Viewer meta object code from reading C++ file 'viewer.h' 00003 ** 00004 ** Created: Sat Sep 17 01:32:28 2011 00005 ** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.8 edited Feb 2 14:59 $) 00006 ** 00007 ** WARNING! All changes made in this file will be lost! 00008 *****************************************************************************/ 00009 00010 #undef QT_NO_COMPAT 00011 #include "viewer.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.3.8. 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 *Viewer::className() const 00023 { 00024 return "Viewer"; 00025 } 00026 00027 QMetaObject *Viewer::metaObj = 0; 00028 static QMetaObjectCleanUp cleanUp_Viewer( "Viewer", &Viewer::staticMetaObject ); 00029 00030 #ifndef QT_NO_TRANSLATION 00031 QString Viewer::tr( const char *s, const char *c ) 00032 { 00033 if ( qApp ) 00034 return qApp->translate( "Viewer", s, c, QApplication::DefaultCodec ); 00035 else 00036 return QString::fromLatin1( s ); 00037 } 00038 #ifndef QT_NO_TRANSLATION_UTF8 00039 QString Viewer::trUtf8( const char *s, const char *c ) 00040 { 00041 if ( qApp ) 00042 return qApp->translate( "Viewer", 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* Viewer::staticMetaObject() 00051 { 00052 if ( metaObj ) 00053 return metaObj; 00054 QMetaObject* parentObject = QWidget::staticMetaObject(); 00055 static const QUParameter param_slot_0[] = { 00056 { "on", &static_QUType_bool, 0, QUParameter::In } 00057 }; 00058 static const QUMethod slot_0 = {"set_xz_view", 1, param_slot_0 }; 00059 static const QUParameter param_slot_1[] = { 00060 { "on", &static_QUType_bool, 0, QUParameter::In } 00061 }; 00062 static const QUMethod slot_1 = {"set_yz_view", 1, param_slot_1 }; 00063 static const QUMethod slot_2 = {"file_close", 0, 0 }; 00064 static const QUMethod slot_3 = {"file_open", 0, 0 }; 00065 static const QUMethod slot_4 = {"new_viewer", 0, 0 }; 00066 static const QUParameter param_slot_5[] = { 00067 { "x", &static_QUType_int, 0, QUParameter::In }, 00068 { "y", &static_QUType_int, 0, QUParameter::In } 00069 }; 00070 static const QUMethod slot_5 = {"update_gl_xy_scroll_view", 2, param_slot_5 }; 00071 static const QUParameter param_slot_6[] = { 00072 { "x", &static_QUType_int, 0, QUParameter::In }, 00073 { "y", &static_QUType_int, 0, QUParameter::In } 00074 }; 00075 static const QUMethod slot_6 = {"update_gl_xz_scroll_view", 2, param_slot_6 }; 00076 static const QUParameter param_slot_7[] = { 00077 { "x", &static_QUType_int, 0, QUParameter::In }, 00078 { "y", &static_QUType_int, 0, QUParameter::In } 00079 }; 00080 static const QUMethod slot_7 = {"update_gl_yz_scroll_view", 2, param_slot_7 }; 00081 static const QUParameter param_slot_8[] = { 00082 { "x", &static_QUType_int, 0, QUParameter::In }, 00083 { "y", &static_QUType_int, 0, QUParameter::In }, 00084 { "z", &static_QUType_int, 0, QUParameter::In }, 00085 { "px", &static_QUType_ptr, "jwsc::Pixel_f", QUParameter::In } 00086 }; 00087 static const QUMethod slot_8 = {"update_xy_line_edit", 4, param_slot_8 }; 00088 static const QUParameter param_slot_9[] = { 00089 { "x", &static_QUType_int, 0, QUParameter::In }, 00090 { "y", &static_QUType_int, 0, QUParameter::In }, 00091 { "z", &static_QUType_int, 0, QUParameter::In }, 00092 { "px", &static_QUType_ptr, "jwsc::Pixel_f", QUParameter::In } 00093 }; 00094 static const QUMethod slot_9 = {"update_xz_line_edit", 4, param_slot_9 }; 00095 static const QUParameter param_slot_10[] = { 00096 { "x", &static_QUType_int, 0, QUParameter::In }, 00097 { "y", &static_QUType_int, 0, QUParameter::In }, 00098 { "z", &static_QUType_int, 0, QUParameter::In }, 00099 { "px", &static_QUType_ptr, "jwsc::Pixel_f", QUParameter::In } 00100 }; 00101 static const QUMethod slot_10 = {"update_yz_line_edit", 4, param_slot_10 }; 00102 static const QUParameter param_slot_11[] = { 00103 { "i", &static_QUType_int, 0, QUParameter::In } 00104 }; 00105 static const QUMethod slot_11 = {"update_xy_fname_line_edit", 1, param_slot_11 }; 00106 static const QMetaData slot_tbl[] = { 00107 { "set_xz_view(bool)", &slot_0, QMetaData::Protected }, 00108 { "set_yz_view(bool)", &slot_1, QMetaData::Protected }, 00109 { "file_close()", &slot_2, QMetaData::Protected }, 00110 { "file_open()", &slot_3, QMetaData::Protected }, 00111 { "new_viewer()", &slot_4, QMetaData::Protected }, 00112 { "update_gl_xy_scroll_view(int,int)", &slot_5, QMetaData::Protected }, 00113 { "update_gl_xz_scroll_view(int,int)", &slot_6, QMetaData::Protected }, 00114 { "update_gl_yz_scroll_view(int,int)", &slot_7, QMetaData::Protected }, 00115 { "update_xy_line_edit(int,int,int,const jwsc::Pixel_f*)", &slot_8, QMetaData::Protected }, 00116 { "update_xz_line_edit(int,int,int,const jwsc::Pixel_f*)", &slot_9, QMetaData::Protected }, 00117 { "update_yz_line_edit(int,int,int,const jwsc::Pixel_f*)", &slot_10, QMetaData::Protected }, 00118 { "update_xy_fname_line_edit(int)", &slot_11, QMetaData::Protected } 00119 }; 00120 metaObj = QMetaObject::new_metaobject( 00121 "Viewer", parentObject, 00122 slot_tbl, 12, 00123 0, 0, 00124 #ifndef QT_NO_PROPERTIES 00125 0, 0, 00126 0, 0, 00127 #endif // QT_NO_PROPERTIES 00128 0, 0 ); 00129 cleanUp_Viewer.setMetaObject( metaObj ); 00130 return metaObj; 00131 } 00132 00133 void* Viewer::qt_cast( const char* clname ) 00134 { 00135 if ( !qstrcmp( clname, "Viewer" ) ) 00136 return this; 00137 return QWidget::qt_cast( clname ); 00138 } 00139 00140 bool Viewer::qt_invoke( int _id, QUObject* _o ) 00141 { 00142 switch ( _id - staticMetaObject()->slotOffset() ) { 00143 case 0: set_xz_view((bool)static_QUType_bool.get(_o+1)); break; 00144 case 1: set_yz_view((bool)static_QUType_bool.get(_o+1)); break; 00145 case 2: file_close(); break; 00146 case 3: file_open(); break; 00147 case 4: new_viewer(); break; 00148 case 5: update_gl_xy_scroll_view((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; 00149 case 6: update_gl_xz_scroll_view((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; 00150 case 7: update_gl_yz_scroll_view((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; 00151 case 8: update_xy_line_edit((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3),(const jwsc::Pixel_f*)static_QUType_ptr.get(_o+4)); break; 00152 case 9: update_xz_line_edit((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3),(const jwsc::Pixel_f*)static_QUType_ptr.get(_o+4)); break; 00153 case 10: update_yz_line_edit((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2),(int)static_QUType_int.get(_o+3),(const jwsc::Pixel_f*)static_QUType_ptr.get(_o+4)); break; 00154 case 11: update_xy_fname_line_edit((int)static_QUType_int.get(_o+1)); break; 00155 default: 00156 return QWidget::qt_invoke( _id, _o ); 00157 } 00158 return TRUE; 00159 } 00160 00161 bool Viewer::qt_emit( int _id, QUObject* _o ) 00162 { 00163 return QWidget::qt_emit(_id,_o); 00164 } 00165 #ifndef QT_NO_PROPERTIES 00166 00167 bool Viewer::qt_property( int id, int f, QVariant* v) 00168 { 00169 return QWidget::qt_property( id, f, v); 00170 } 00171 00172 bool Viewer::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } 00173 #endif // QT_NO_PROPERTIES