hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,427 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'mainwindow.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../mainwindow.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'mainwindow.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 63
|
||||
#error "This file was generated using the moc from 4.8.5. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
static const uint qt_meta_data_MainWindow[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
79, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
18, // signalCount
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
12, 11, 11, 11, 0x05,
|
||||
29, 11, 11, 11, 0x05,
|
||||
51, 11, 11, 11, 0x05,
|
||||
64, 11, 11, 11, 0x05,
|
||||
83, 11, 11, 11, 0x05,
|
||||
101, 99, 11, 11, 0x05,
|
||||
135, 11, 11, 11, 0x05,
|
||||
150, 11, 11, 11, 0x05,
|
||||
160, 11, 11, 11, 0x05,
|
||||
189, 11, 11, 11, 0x05,
|
||||
207, 11, 11, 11, 0x05,
|
||||
227, 11, 11, 11, 0x05,
|
||||
247, 11, 11, 11, 0x05,
|
||||
267, 11, 11, 11, 0x05,
|
||||
281, 99, 11, 11, 0x05,
|
||||
309, 11, 11, 11, 0x05,
|
||||
325, 11, 11, 11, 0x05,
|
||||
346, 11, 11, 11, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
390, 384, 11, 11, 0x0a,
|
||||
406, 11, 11, 11, 0x0a,
|
||||
422, 11, 11, 11, 0x0a,
|
||||
437, 11, 11, 11, 0x0a,
|
||||
453, 11, 11, 11, 0x0a,
|
||||
470, 11, 11, 11, 0x0a,
|
||||
501, 11, 11, 11, 0x0a,
|
||||
543, 534, 11, 11, 0x0a,
|
||||
565, 563, 11, 11, 0x0a,
|
||||
589, 585, 11, 11, 0x0a,
|
||||
632, 612, 11, 11, 0x0a,
|
||||
668, 662, 11, 11, 0x0a,
|
||||
702, 11, 11, 11, 0x0a,
|
||||
721, 11, 11, 11, 0x0a,
|
||||
750, 585, 11, 11, 0x0a,
|
||||
779, 772, 11, 11, 0x0a,
|
||||
808, 801, 11, 11, 0x0a,
|
||||
845, 11, 11, 11, 0x0a,
|
||||
885, 11, 11, 11, 0x0a,
|
||||
919, 915, 11, 11, 0x0a,
|
||||
955, 943, 11, 11, 0x0a,
|
||||
990, 11, 11, 11, 0x0a,
|
||||
1023, 11, 11, 11, 0x0a,
|
||||
1057, 11, 11, 11, 0x0a,
|
||||
1078, 11, 11, 11, 0x0a,
|
||||
1098, 1093, 11, 11, 0x0a,
|
||||
1122, 11, 11, 11, 0x0a,
|
||||
1148, 1143, 11, 11, 0x0a,
|
||||
1185, 1165, 11, 11, 0x0a,
|
||||
1220, 11, 11, 11, 0x0a,
|
||||
1247, 11, 11, 11, 0x0a,
|
||||
1265, 11, 11, 11, 0x0a,
|
||||
1284, 11, 11, 11, 0x0a,
|
||||
1308, 11, 11, 11, 0x0a,
|
||||
1330, 11, 11, 11, 0x0a,
|
||||
1354, 11, 11, 11, 0x0a,
|
||||
1378, 11, 11, 11, 0x0a,
|
||||
1400, 11, 11, 11, 0x0a,
|
||||
1417, 11, 11, 11, 0x0a,
|
||||
1433, 11, 11, 11, 0x0a,
|
||||
1451, 11, 11, 11, 0x0a,
|
||||
1493, 1485, 11, 11, 0x0a,
|
||||
1519, 11, 11, 11, 0x0a,
|
||||
1544, 1539, 11, 11, 0x0a,
|
||||
1572, 11, 11, 11, 0x0a,
|
||||
1604, 1600, 11, 11, 0x0a,
|
||||
1638, 1539, 11, 11, 0x0a,
|
||||
1670, 11, 11, 11, 0x0a,
|
||||
1705, 11, 11, 11, 0x08,
|
||||
1736, 11, 11, 11, 0x08,
|
||||
1765, 11, 11, 11, 0x08,
|
||||
1803, 11, 11, 11, 0x08,
|
||||
1835, 11, 11, 11, 0x08,
|
||||
1859, 11, 11, 11, 0x08,
|
||||
1893, 11, 11, 11, 0x08,
|
||||
1920, 11, 11, 11, 0x08,
|
||||
1952, 11, 11, 11, 0x08,
|
||||
1966, 11, 11, 11, 0x08,
|
||||
1986, 11, 11, 11, 0x08,
|
||||
2014, 11, 11, 11, 0x08,
|
||||
2055, 11, 11, 11, 0x08,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_MainWindow[] = {
|
||||
"MainWindow\0\0openFileChange()\0"
|
||||
"openCurrFile(QString)\0saveJmFile()\0"
|
||||
"setMainTabNow(int)\0InkjetCleanUP()\0,\0"
|
||||
"ShowWarnningText(QString,QString)\0"
|
||||
"editItemMode()\0CloseJd()\0"
|
||||
"pushButtonStartPressed(bool)\0"
|
||||
"repeatInitedPid()\0setCNT1Select(bool)\0"
|
||||
"setCNT2Select(bool)\0setCNT3Select(bool)\0"
|
||||
"getJSONData()\0scenefileOpen(QString,bool)\0"
|
||||
"setDisableAll()\0clearPressureFault()\0"
|
||||
"autoUpdateFontWidthByMainWindow(uint)\0"
|
||||
"event\0OnFinished(int)\0onQRCodeClose()\0"
|
||||
"onEditQRCode()\0onEditBarCode()\0"
|
||||
"onBarCodeClose()\0on_pushButtonCleanUP_pressed()\0"
|
||||
"onPushButtonCNTResetNowPressed()\0"
|
||||
"editMode\0changeEditMode(int)\0n\0"
|
||||
"SetMainTabEdit(int)\0str\0changeTxtMode(QString)\0"
|
||||
"filePath,insertFlag\0openPicFIleOpen(QString,bool)\0"
|
||||
"value\0onReclainTankPositionChanged(int)\0"
|
||||
"checkForPowerOff()\0on_pushButtonStart_pressed()\0"
|
||||
"setRunStatus(QString)\0pixMap\0"
|
||||
"setRunStatus(QPixmap)\0notice\0"
|
||||
"_on_pushButtonPowerOff_pressed(bool)\0"
|
||||
"on_pushButtonReclaimTankClose_pressed()\0"
|
||||
"alterDataPrint(unsigned char)\0Dat\0"
|
||||
"showDat(unsigned char*)\0alterEnable\0"
|
||||
"SendPrintDataToFpga(unsigned char)\0"
|
||||
"on_pushButtonStopPrint_pressed()\0"
|
||||
"on_pushButtonPausePrint_pressed()\0"
|
||||
"RefreshStatusLight()\0onInitQRCode()\0"
|
||||
"type\0onUpdateDispQRCode(int)\0"
|
||||
"modbusUpdateQRCode()\0Flag\0CheckStatus(int)\0"
|
||||
"strTitle,strWarring\0"
|
||||
"ShowWarnningText1(QString,QString)\0"
|
||||
"onStatusHighVoltageFault()\0onStatusInkLeak()\0"
|
||||
"onStatusInkSwint()\0onStatusInkWaterLevel()\0"
|
||||
"onStatusRecycleWarn()\0onStatusSolvLevelWarn()\0"
|
||||
"onStatusViscosityWarn()\0onStatusChargefault()\0"
|
||||
"onPreviewScene()\0update_scroll()\0"
|
||||
"JSON_UpdateDATA()\0on_pushButtonStartPrint_pressed()\0"
|
||||
"strData\0onGenerateQRCode(QString)\0"
|
||||
"onShowAndHideItem()\0flag\0"
|
||||
"onSwitchTimerShowItem(bool)\0"
|
||||
"onLabelFaultRusumePressed()\0num\0"
|
||||
"onModbusPrintReceivedContent(int)\0"
|
||||
"onEnableReclaimCtrlButton(bool)\0"
|
||||
"onInkJetPrinterCurrentChanged(int)\0"
|
||||
"on_pushButtonGetData_pressed()\0"
|
||||
"onPushButtonPreviewPressed()\0"
|
||||
"on_pushButtonReclaimTanOpen_pressed()\0"
|
||||
"on_pushButtonPowerOff_pressed()\0"
|
||||
"ontextEdittextChanged()\0"
|
||||
"onTextEditCursorPositionChanged()\0"
|
||||
"onLabelProductCntPressed()\0"
|
||||
"onLabelTotalProductCntPressed()\0"
|
||||
"displayTime()\0airPushingProcess()\0"
|
||||
"on_bottonEditText_pressed()\0"
|
||||
"on_pushButtonReduceTextDisplay_pressed()\0"
|
||||
"on_pushButtonEnlargeTextDisplay_pressed()\0"
|
||||
};
|
||||
|
||||
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
Q_ASSERT(staticMetaObject.cast(_o));
|
||||
MainWindow *_t = static_cast<MainWindow *>(_o);
|
||||
switch (_id) {
|
||||
case 0: _t->openFileChange(); break;
|
||||
case 1: _t->openCurrFile((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 2: _t->saveJmFile(); break;
|
||||
case 3: _t->setMainTabNow((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: _t->InkjetCleanUP(); break;
|
||||
case 5: _t->ShowWarnningText((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
case 6: _t->editItemMode(); break;
|
||||
case 7: _t->CloseJd(); break;
|
||||
case 8: _t->pushButtonStartPressed((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 9: _t->repeatInitedPid(); break;
|
||||
case 10: _t->setCNT1Select((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 11: _t->setCNT2Select((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 12: _t->setCNT3Select((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 13: _t->getJSONData(); break;
|
||||
case 14: _t->scenefileOpen((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
case 15: _t->setDisableAll(); break;
|
||||
case 16: _t->clearPressureFault(); break;
|
||||
case 17: _t->autoUpdateFontWidthByMainWindow((*reinterpret_cast< const uint(*)>(_a[1]))); break;
|
||||
case 18: _t->OnFinished((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 19: _t->onQRCodeClose(); break;
|
||||
case 20: _t->onEditQRCode(); break;
|
||||
case 21: _t->onEditBarCode(); break;
|
||||
case 22: _t->onBarCodeClose(); break;
|
||||
case 23: _t->on_pushButtonCleanUP_pressed(); break;
|
||||
case 24: _t->onPushButtonCNTResetNowPressed(); break;
|
||||
case 25: _t->changeEditMode((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 26: _t->SetMainTabEdit((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 27: _t->changeTxtMode((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 28: _t->openPicFIleOpen((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
case 29: _t->onReclainTankPositionChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 30: _t->checkForPowerOff(); break;
|
||||
case 31: _t->on_pushButtonStart_pressed(); break;
|
||||
case 32: _t->setRunStatus((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 33: _t->setRunStatus((*reinterpret_cast< QPixmap(*)>(_a[1]))); break;
|
||||
case 34: _t->_on_pushButtonPowerOff_pressed((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 35: _t->on_pushButtonReclaimTankClose_pressed(); break;
|
||||
case 36: _t->alterDataPrint((*reinterpret_cast< unsigned char(*)>(_a[1]))); break;
|
||||
case 37: _t->showDat((*reinterpret_cast< unsigned char*(*)>(_a[1]))); break;
|
||||
case 38: _t->SendPrintDataToFpga((*reinterpret_cast< unsigned char(*)>(_a[1]))); break;
|
||||
case 39: _t->on_pushButtonStopPrint_pressed(); break;
|
||||
case 40: _t->on_pushButtonPausePrint_pressed(); break;
|
||||
case 41: _t->RefreshStatusLight(); break;
|
||||
case 42: _t->onInitQRCode(); break;
|
||||
case 43: _t->onUpdateDispQRCode((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 44: _t->modbusUpdateQRCode(); break;
|
||||
case 45: _t->CheckStatus((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 46: _t->ShowWarnningText1((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
case 47: _t->onStatusHighVoltageFault(); break;
|
||||
case 48: _t->onStatusInkLeak(); break;
|
||||
case 49: _t->onStatusInkSwint(); break;
|
||||
case 50: _t->onStatusInkWaterLevel(); break;
|
||||
case 51: _t->onStatusRecycleWarn(); break;
|
||||
case 52: _t->onStatusSolvLevelWarn(); break;
|
||||
case 53: _t->onStatusViscosityWarn(); break;
|
||||
case 54: _t->onStatusChargefault(); break;
|
||||
case 55: _t->onPreviewScene(); break;
|
||||
case 56: _t->update_scroll(); break;
|
||||
case 57: _t->JSON_UpdateDATA(); break;
|
||||
case 58: _t->on_pushButtonStartPrint_pressed(); break;
|
||||
case 59: _t->onGenerateQRCode((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 60: _t->onShowAndHideItem(); break;
|
||||
case 61: _t->onSwitchTimerShowItem((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 62: _t->onLabelFaultRusumePressed(); break;
|
||||
case 63: _t->onModbusPrintReceivedContent((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 64: _t->onEnableReclaimCtrlButton((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 65: _t->onInkJetPrinterCurrentChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 66: _t->on_pushButtonGetData_pressed(); break;
|
||||
case 67: _t->onPushButtonPreviewPressed(); break;
|
||||
case 68: _t->on_pushButtonReclaimTanOpen_pressed(); break;
|
||||
case 69: _t->on_pushButtonPowerOff_pressed(); break;
|
||||
case 70: _t->ontextEdittextChanged(); break;
|
||||
case 71: _t->onTextEditCursorPositionChanged(); break;
|
||||
case 72: _t->onLabelProductCntPressed(); break;
|
||||
case 73: _t->onLabelTotalProductCntPressed(); break;
|
||||
case 74: _t->displayTime(); break;
|
||||
case 75: _t->airPushingProcess(); break;
|
||||
case 76: _t->on_bottonEditText_pressed(); break;
|
||||
case 77: _t->on_pushButtonReduceTextDisplay_pressed(); break;
|
||||
case 78: _t->on_pushButtonEnlargeTextDisplay_pressed(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData MainWindow::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject MainWindow::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_MainWindow,
|
||||
qt_meta_data_MainWindow, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &MainWindow::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *MainWindow::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *MainWindow::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_MainWindow))
|
||||
return static_cast<void*>(const_cast< MainWindow*>(this));
|
||||
if (!strcmp(_clname, "ParaSettingUI"))
|
||||
return static_cast< ParaSettingUI*>(const_cast< MainWindow*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 79)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 79;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void MainWindow::openFileChange()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void MainWindow::openCurrFile(QString _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void MainWindow::saveJmFile()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void MainWindow::setMainTabNow(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void MainWindow::InkjetCleanUP()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void MainWindow::ShowWarnningText(QString _t1, QString _t2)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void MainWindow::editItemMode()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 7
|
||||
void MainWindow::CloseJd()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 7, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 8
|
||||
void MainWindow::pushButtonStartPressed(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 8, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 9
|
||||
void MainWindow::repeatInitedPid()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 9, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 10
|
||||
void MainWindow::setCNT1Select(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 10, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 11
|
||||
void MainWindow::setCNT2Select(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 11, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 12
|
||||
void MainWindow::setCNT3Select(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 12, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 13
|
||||
void MainWindow::getJSONData()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 13, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 14
|
||||
void MainWindow::scenefileOpen(QString _t1, bool _t2)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 14, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 15
|
||||
void MainWindow::setDisableAll()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 15, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 16
|
||||
void MainWindow::clearPressureFault()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 16, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 17
|
||||
void MainWindow::autoUpdateFontWidthByMainWindow(const unsigned int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 17, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* wpa_gui - UserDataRequest class
|
||||
* Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* Alternatively, this software may be distributed under the terms of BSD
|
||||
* license.
|
||||
*
|
||||
* See README and COPYING for more details.
|
||||
*/
|
||||
|
||||
#include "userdatarequest.h"
|
||||
#include "wpagui.h"
|
||||
#include "common/wpa_ctrl.h"
|
||||
|
||||
|
||||
UserDataRequest::UserDataRequest(QWidget *parent, const char *, bool,
|
||||
Qt::WFlags)
|
||||
: QDialog(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
connect(buttonOk, SIGNAL(clicked()), this, SLOT(sendReply()));
|
||||
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
|
||||
connect(queryEdit, SIGNAL(returnPressed()), this, SLOT(sendReply()));
|
||||
}
|
||||
|
||||
|
||||
UserDataRequest::~UserDataRequest()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void UserDataRequest::languageChange()
|
||||
{
|
||||
retranslateUi(this);
|
||||
}
|
||||
|
||||
|
||||
int UserDataRequest::setParams(WpaGui *_wpagui, const char *reqMsg)
|
||||
{
|
||||
char *tmp, *pos, *pos2;
|
||||
wpagui = _wpagui;
|
||||
tmp = strdup(reqMsg);
|
||||
if (tmp == NULL)
|
||||
return -1;
|
||||
pos = strchr(tmp, '-');
|
||||
if (pos == NULL) {
|
||||
free(tmp);
|
||||
return -1;
|
||||
}
|
||||
*pos++ = '\0';
|
||||
field = tmp;
|
||||
pos2 = strchr(pos, ':');
|
||||
if (pos2 == NULL) {
|
||||
free(tmp);
|
||||
return -1;
|
||||
}
|
||||
*pos2++ = '\0';
|
||||
|
||||
networkid = atoi(pos);
|
||||
queryInfo->setText(pos2);
|
||||
if (strcmp(tmp, "PASSWORD") == 0) {
|
||||
queryField->setText(tr("Password: "));
|
||||
queryEdit->setEchoMode(QLineEdit::Password);
|
||||
} else if (strcmp(tmp, "NEW_PASSWORD") == 0) {
|
||||
queryField->setText(tr("New password: "));
|
||||
queryEdit->setEchoMode(QLineEdit::Password);
|
||||
} else if (strcmp(tmp, "IDENTITY") == 0)
|
||||
queryField->setText(tr("Identity: "));
|
||||
else if (strcmp(tmp, "PASSPHRASE") == 0) {
|
||||
queryField->setText(tr("Private key passphrase: "));
|
||||
queryEdit->setEchoMode(QLineEdit::Password);
|
||||
} else
|
||||
queryField->setText(field + ":");
|
||||
free(tmp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void UserDataRequest::sendReply()
|
||||
{
|
||||
char reply[10];
|
||||
size_t reply_len = sizeof(reply);
|
||||
|
||||
if (wpagui == NULL) {
|
||||
reject();
|
||||
return;
|
||||
}
|
||||
|
||||
QString cmd = QString(WPA_CTRL_RSP) + field + '-' +
|
||||
QString::number(networkid) + ':' +
|
||||
queryEdit->text();
|
||||
wpagui->ctrlRequest(cmd.toAscii().constData(), reply, &reply_len);
|
||||
accept();
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* PrintTextDisplay.h
|
||||
*
|
||||
* Created on: Jul 9, 2013
|
||||
* Author: yiyu
|
||||
* QQ:1036184468
|
||||
* Descriptoin:
|
||||
|
||||
*/
|
||||
|
||||
#ifndef PRINTTEXTDISPLAY_H_
|
||||
#define PRINTTEXTDISPLAY_H_
|
||||
|
||||
#include <QWidget>
|
||||
#include "ParaSettingUI.h"
|
||||
class PrintTextDisplay:public QWidget,public ParaSettingUI{
|
||||
|
||||
public:
|
||||
explicit PrintTextDisplay(QWidget *parent = 0);
|
||||
~PrintTextDisplay();
|
||||
|
||||
void updateSysParaToUI(); //重载
|
||||
|
||||
void updateSysStatusToUI(); //重载
|
||||
|
||||
void paintEvent(QPaintEvent *);
|
||||
|
||||
void resizeWidget(int w,int h);
|
||||
|
||||
|
||||
|
||||
void enlargeDisplay();
|
||||
void reduceDisplay();
|
||||
|
||||
void setDisplaySize(int w,int h);
|
||||
|
||||
void setScaleRatio(int ratio);
|
||||
void scroll_update();
|
||||
private:
|
||||
int scaleRatio;
|
||||
int origHeight;
|
||||
int origWidth;
|
||||
bool updateDigitalOnly;
|
||||
};
|
||||
|
||||
|
||||
#endif /* PRINTTEXTDISPLAY_H_ */
|
||||
Reference in New Issue
Block a user