00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #undef QT_NO_COMPAT
00011 #include "../include/FileWindow.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.8b. 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 *FileWindow::className() const
00023 {
00024 return "FileWindow";
00025 }
00026
00027 QMetaObject *FileWindow::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_FileWindow( "FileWindow", &FileWindow::staticMetaObject );
00029
00030 #ifndef QT_NO_TRANSLATION
00031 QString FileWindow::tr( const char *s, const char *c )
00032 {
00033 if ( qApp )
00034 return qApp->translate( "FileWindow", s, c, QApplication::DefaultCodec );
00035 else
00036 return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString FileWindow::trUtf8( const char *s, const char *c )
00040 {
00041 if ( qApp )
00042 return qApp->translate( "FileWindow", 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* FileWindow::staticMetaObject()
00051 {
00052 if ( metaObj )
00053 return metaObj;
00054 QMetaObject* parentObject = QMainWindow::staticMetaObject();
00055 static const QUParameter param_slot_0[] = {
00056 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
00057 };
00058 static const QUMethod slot_0 = {"showDirContents", 1, param_slot_0 };
00059 static const QUParameter param_slot_1[] = {
00060 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
00061 };
00062 static const QUMethod slot_1 = {"openFile", 1, param_slot_1 };
00063 static const QUParameter param_slot_2[] = {
00064 { 0, &static_QUType_ptr, "FileItem", QUParameter::In }
00065 };
00066 static const QUMethod slot_2 = {"openFileItem", 1, param_slot_2 };
00067 static const QUParameter param_slot_3[] = {
00068 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
00069 };
00070 static const QUMethod slot_3 = {"openDirectory", 1, param_slot_3 };
00071 static const QUParameter param_slot_4[] = {
00072 { 0, &static_QUType_ptr, "FileItem", QUParameter::In }
00073 };
00074 static const QUMethod slot_4 = {"exploreDirectory", 1, param_slot_4 };
00075 static const QUParameter param_slot_5[] = {
00076 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
00077 { 0, &static_QUType_varptr, "\x0e", QUParameter::In },
00078 { 0, &static_QUType_int, 0, QUParameter::In }
00079 };
00080 static const QUMethod slot_5 = {"runPopupDirTree", 3, param_slot_5 };
00081 static const QUParameter param_slot_6[] = {
00082 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
00083 { 0, &static_QUType_varptr, "\x0e", QUParameter::In },
00084 { 0, &static_QUType_int, 0, QUParameter::In }
00085 };
00086 static const QUMethod slot_6 = {"runPopupFileList", 3, param_slot_6 };
00087 static const QUMethod slot_7 = {"upDir", 0, 0 };
00088 static const QUMethod slot_8 = {"goHomeDir", 0, 0 };
00089 static const QUMethod slot_9 = {"toolbarRefresh", 0, 0 };
00090 static const QUMethod slot_10 = {"toolbarEraseFile", 0, 0 };
00091 static const QUMethod slot_11 = {"toolbarCreateDir", 0, 0 };
00092 static const QUMethod slot_12 = {"clearLocation", 0, 0 };
00093 static const QUMethod slot_13 = {"goLocation", 0, 0 };
00094 static const QUParameter param_slot_14[] = {
00095 { 0, &static_QUType_int, 0, QUParameter::In }
00096 };
00097 static const QUMethod slot_14 = {"goLocation", 1, param_slot_14 };
00098 static const QMetaData slot_tbl[] = {
00099 { "showDirContents(QListViewItem*)", &slot_0, QMetaData::Public },
00100 { "openFile(QListViewItem*)", &slot_1, QMetaData::Public },
00101 { "openFileItem(FileItem*)", &slot_2, QMetaData::Public },
00102 { "openDirectory(QListViewItem*)", &slot_3, QMetaData::Public },
00103 { "exploreDirectory(FileItem*)", &slot_4, QMetaData::Public },
00104 { "runPopupDirTree(QListViewItem*,const QPoint&,int)", &slot_5, QMetaData::Public },
00105 { "runPopupFileList(QListViewItem*,const QPoint&,int)", &slot_6, QMetaData::Public },
00106 { "upDir()", &slot_7, QMetaData::Public },
00107 { "goHomeDir()", &slot_8, QMetaData::Public },
00108 { "toolbarRefresh()", &slot_9, QMetaData::Public },
00109 { "toolbarEraseFile()", &slot_10, QMetaData::Public },
00110 { "toolbarCreateDir()", &slot_11, QMetaData::Public },
00111 { "clearLocation()", &slot_12, QMetaData::Public },
00112 { "goLocation()", &slot_13, QMetaData::Public },
00113 { "goLocation(int)", &slot_14, QMetaData::Public }
00114 };
00115 metaObj = QMetaObject::new_metaobject(
00116 "FileWindow", parentObject,
00117 slot_tbl, 15,
00118 0, 0,
00119 #ifndef QT_NO_PROPERTIES
00120 0, 0,
00121 0, 0,
00122 #endif
00123 0, 0 );
00124 cleanUp_FileWindow.setMetaObject( metaObj );
00125 return metaObj;
00126 }
00127
00128 void* FileWindow::qt_cast( const char* clname )
00129 {
00130 if ( !qstrcmp( clname, "FileWindow" ) )
00131 return this;
00132 if ( !qstrcmp( clname, "RioExplorer" ) )
00133 return (RioExplorer*)this;
00134 return QMainWindow::qt_cast( clname );
00135 }
00136
00137 bool FileWindow::qt_invoke( int _id, QUObject* _o )
00138 {
00139 switch ( _id - staticMetaObject()->slotOffset() ) {
00140 case 0: showDirContents((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
00141 case 1: openFile((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
00142 case 2: openFileItem((FileItem*)static_QUType_ptr.get(_o+1)); break;
00143 case 3: openDirectory((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
00144 case 4: exploreDirectory((FileItem*)static_QUType_ptr.get(_o+1)); break;
00145 case 5: runPopupDirTree((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;
00146 case 6: runPopupFileList((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;
00147 case 7: upDir(); break;
00148 case 8: goHomeDir(); break;
00149 case 9: toolbarRefresh(); break;
00150 case 10: toolbarEraseFile(); break;
00151 case 11: toolbarCreateDir(); break;
00152 case 12: clearLocation(); break;
00153 case 13: goLocation(); break;
00154 case 14: goLocation((int)static_QUType_int.get(_o+1)); break;
00155 default:
00156 return QMainWindow::qt_invoke( _id, _o );
00157 }
00158 return TRUE;
00159 }
00160
00161 bool FileWindow::qt_emit( int _id, QUObject* _o )
00162 {
00163 return QMainWindow::qt_emit(_id,_o);
00164 }
00165 #ifndef QT_NO_PROPERTIES
00166
00167 bool FileWindow::qt_property( int id, int f, QVariant* v)
00168 {
00169 return QMainWindow::qt_property( id, f, v);
00170 }
00171
00172 bool FileWindow::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00173 #endif // QT_NO_PROPERTIES