00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #undef QT_NO_COMPAT
00011 #include "mainframe.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.2. 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 *MainFrame::className() const
00023 {
00024 return "MainFrame";
00025 }
00026
00027 QMetaObject *MainFrame::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_MainFrame( "MainFrame", &MainFrame::staticMetaObject );
00029
00030 #ifndef QT_NO_TRANSLATION
00031 QString MainFrame::tr( const char *s, const char *c )
00032 {
00033 if ( qApp )
00034 return qApp->translate( "MainFrame", s, c, QApplication::DefaultCodec );
00035 else
00036 return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString MainFrame::trUtf8( const char *s, const char *c )
00040 {
00041 if ( qApp )
00042 return qApp->translate( "MainFrame", 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* MainFrame::staticMetaObject()
00051 {
00052 if ( metaObj )
00053 return metaObj;
00054 QMetaObject* parentObject = QMainWindow::staticMetaObject();
00055 static const QUMethod slot_0 = {"fileNew", 0, 0 };
00056 static const QUMethod slot_1 = {"fileOpen", 0, 0 };
00057 static const QUMethod slot_2 = {"fileSave", 0, 0 };
00058 static const QUMethod slot_3 = {"fileSaveAs", 0, 0 };
00059 static const QUMethod slot_4 = {"fileExit", 0, 0 };
00060 static const QUMethod slot_5 = {"helpIndex", 0, 0 };
00061 static const QUMethod slot_6 = {"helpContents", 0, 0 };
00062 static const QUMethod slot_7 = {"helpAbout", 0, 0 };
00063 static const QUMethod slot_8 = {"setWire", 0, 0 };
00064 static const QUMethod slot_9 = {"languageChange", 0, 0 };
00065 static const QMetaData slot_tbl[] = {
00066 { "fileNew()", &slot_0, QMetaData::Public },
00067 { "fileOpen()", &slot_1, QMetaData::Public },
00068 { "fileSave()", &slot_2, QMetaData::Public },
00069 { "fileSaveAs()", &slot_3, QMetaData::Public },
00070 { "fileExit()", &slot_4, QMetaData::Public },
00071 { "helpIndex()", &slot_5, QMetaData::Public },
00072 { "helpContents()", &slot_6, QMetaData::Public },
00073 { "helpAbout()", &slot_7, QMetaData::Public },
00074 { "setWire()", &slot_8, QMetaData::Public },
00075 { "languageChange()", &slot_9, QMetaData::Protected }
00076 };
00077 metaObj = QMetaObject::new_metaobject(
00078 "MainFrame", parentObject,
00079 slot_tbl, 10,
00080 0, 0,
00081 #ifndef QT_NO_PROPERTIES
00082 0, 0,
00083 0, 0,
00084 #endif
00085 0, 0 );
00086 cleanUp_MainFrame.setMetaObject( metaObj );
00087 return metaObj;
00088 }
00089
00090 void* MainFrame::qt_cast( const char* clname )
00091 {
00092 if ( !qstrcmp( clname, "MainFrame" ) )
00093 return this;
00094 return QMainWindow::qt_cast( clname );
00095 }
00096
00097 bool MainFrame::qt_invoke( int _id, QUObject* _o )
00098 {
00099 switch ( _id - staticMetaObject()->slotOffset() ) {
00100 case 0: fileNew(); break;
00101 case 1: fileOpen(); break;
00102 case 2: fileSave(); break;
00103 case 3: fileSaveAs(); break;
00104 case 4: fileExit(); break;
00105 case 5: helpIndex(); break;
00106 case 6: helpContents(); break;
00107 case 7: helpAbout(); break;
00108 case 8: setWire(); break;
00109 case 9: languageChange(); break;
00110 default:
00111 return QMainWindow::qt_invoke( _id, _o );
00112 }
00113 return TRUE;
00114 }
00115
00116 bool MainFrame::qt_emit( int _id, QUObject* _o )
00117 {
00118 return QMainWindow::qt_emit(_id,_o);
00119 }
00120 #ifndef QT_NO_PROPERTIES
00121
00122 bool MainFrame::qt_property( int id, int f, QVariant* v)
00123 {
00124 return QMainWindow::qt_property( id, f, v);
00125 }
00126
00127 bool MainFrame::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00128 #endif // QT_NO_PROPERTIES