00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "Interface/ColoursDialog.hpp"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'ColoursDialog.hpp' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 61
00014 #error "This file was generated using the moc from 4.5.2. It"
00015 #error "cannot be used with the include files from this version of Qt."
00016 #error "(The moc has changed too much.)"
00017 #endif
00018
00019 QT_BEGIN_MOC_NAMESPACE
00020 static const uint qt_meta_data_ColoursDialog[] = {
00021
00022
00023 2,
00024 0,
00025 0, 0,
00026 13, 12,
00027 0, 0,
00028 0, 0,
00029 0, 0,
00030
00031
00032 15, 14, 14, 14, 0x05,
00033
00034
00035 50, 14, 14, 14, 0x0a,
00036 66, 14, 14, 14, 0x0a,
00037 84, 14, 14, 14, 0x0a,
00038 98, 14, 14, 14, 0x0a,
00039 112, 14, 14, 14, 0x0a,
00040 126, 14, 14, 14, 0x0a,
00041 143, 14, 14, 14, 0x0a,
00042 160, 151, 14, 14, 0x0a,
00043 189, 14, 14, 14, 0x0a,
00044 200, 14, 14, 14, 0x0a,
00045 209, 14, 14, 14, 0x0a,
00046 223, 14, 14, 14, 0x0a,
00047
00048 0
00049 };
00050
00051 static const char qt_meta_stringdata_ColoursDialog[] = {
00052 "ColoursDialog\0\0coloursTableChanged(QVector<QRgb>)\0"
00053 "randomColours()\0gradientColours()\0"
00054 "coloration1()\0coloration2()\0coloration3()\0"
00055 "customiseTable()\0apply()\0newTable\0"
00056 "applyNewTable(QVector<QRgb>)\0validate()\0"
00057 "cancel()\0loadPalette()\0savePalette()\0"
00058 };
00059
00060 const QMetaObject ColoursDialog::staticMetaObject = {
00061 { &QDialog::staticMetaObject, qt_meta_stringdata_ColoursDialog,
00062 qt_meta_data_ColoursDialog, 0 }
00063 };
00064
00065 const QMetaObject *ColoursDialog::metaObject() const
00066 {
00067 return &staticMetaObject;
00068 }
00069
00070 void *ColoursDialog::qt_metacast(const char *_clname)
00071 {
00072 if (!_clname) return 0;
00073 if (!strcmp(_clname, qt_meta_stringdata_ColoursDialog))
00074 return static_cast<void*>(const_cast< ColoursDialog*>(this));
00075 return QDialog::qt_metacast(_clname);
00076 }
00077
00078 int ColoursDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00079 {
00080 _id = QDialog::qt_metacall(_c, _id, _a);
00081 if (_id < 0)
00082 return _id;
00083 if (_c == QMetaObject::InvokeMetaMethod) {
00084 switch (_id) {
00085 case 0: coloursTableChanged((*reinterpret_cast< QVector<QRgb>(*)>(_a[1]))); break;
00086 case 1: randomColours(); break;
00087 case 2: gradientColours(); break;
00088 case 3: coloration1(); break;
00089 case 4: coloration2(); break;
00090 case 5: coloration3(); break;
00091 case 6: customiseTable(); break;
00092 case 7: apply(); break;
00093 case 8: applyNewTable((*reinterpret_cast< QVector<QRgb>(*)>(_a[1]))); break;
00094 case 9: validate(); break;
00095 case 10: cancel(); break;
00096 case 11: loadPalette(); break;
00097 case 12: savePalette(); break;
00098 default: ;
00099 }
00100 _id -= 13;
00101 }
00102 return _id;
00103 }
00104
00105
00106 void ColoursDialog::coloursTableChanged(QVector<QRgb> _t1)
00107 {
00108 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00109 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00110 }
00111 QT_END_MOC_NAMESPACE