hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>QTextEdit Demonstration</title><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'songti'; font-size:12pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:26pt;">你好<sub>下</sub> <sup>上</sup>,我</span><span style=" font-family:'Sans Serif'; font-size:26pt; color:#55ff7f;">时易r</span><span style=" font-family:'Sans Serif'; font-size:26pt;">于</span></p></body></html>
|
||||
@@ -0,0 +1,84 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'dialogAuthorizationPrint.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 4.8.5
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_DIALOGAUTHORIZATIONPRINT_H
|
||||
#define UI_DIALOGAUTHORIZATIONPRINT_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QDialogButtonBox>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_DialogAuthorizationPrint
|
||||
{
|
||||
public:
|
||||
QDialogButtonBox *buttonBox;
|
||||
QWidget *horizontalLayoutWidget;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QLabel *label;
|
||||
QLineEdit *lineEditAuth;
|
||||
|
||||
void setupUi(QDialog *DialogAuthorizationPrint)
|
||||
{
|
||||
if (DialogAuthorizationPrint->objectName().isEmpty())
|
||||
DialogAuthorizationPrint->setObjectName(QString::fromUtf8("DialogAuthorizationPrint"));
|
||||
DialogAuthorizationPrint->resize(445, 123);
|
||||
DialogAuthorizationPrint->setFocusPolicy(Qt::StrongFocus);
|
||||
buttonBox = new QDialogButtonBox(DialogAuthorizationPrint);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
buttonBox->setGeometry(QRect(210, 80, 221, 41));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
horizontalLayoutWidget = new QWidget(DialogAuthorizationPrint);
|
||||
horizontalLayoutWidget->setObjectName(QString::fromUtf8("horizontalLayoutWidget"));
|
||||
horizontalLayoutWidget->setGeometry(QRect(10, 20, 421, 51));
|
||||
horizontalLayout = new QHBoxLayout(horizontalLayoutWidget);
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalLayout->setContentsMargins(0, 0, 0, 0);
|
||||
label = new QLabel(horizontalLayoutWidget);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
|
||||
horizontalLayout->addWidget(label);
|
||||
|
||||
lineEditAuth = new QLineEdit(horizontalLayoutWidget);
|
||||
lineEditAuth->setObjectName(QString::fromUtf8("lineEditAuth"));
|
||||
|
||||
horizontalLayout->addWidget(lineEditAuth);
|
||||
|
||||
|
||||
retranslateUi(DialogAuthorizationPrint);
|
||||
QObject::connect(buttonBox, SIGNAL(accepted()), DialogAuthorizationPrint, SLOT(accept()));
|
||||
QObject::connect(buttonBox, SIGNAL(rejected()), DialogAuthorizationPrint, SLOT(reject()));
|
||||
|
||||
QMetaObject::connectSlotsByName(DialogAuthorizationPrint);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *DialogAuthorizationPrint)
|
||||
{
|
||||
DialogAuthorizationPrint->setWindowTitle(QApplication::translate("DialogAuthorizationPrint", "Dialog", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QApplication::translate("DialogAuthorizationPrint", "\346\211\223\345\215\260\345\257\206\347\240\201:", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class DialogAuthorizationPrint: public Ui_DialogAuthorizationPrint {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_DIALOGAUTHORIZATIONPRINT_H
|
||||
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* wpa_gui - WpaGui 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.
|
||||
*/
|
||||
|
||||
#ifndef WPAGUI_H
|
||||
#define WPAGUI_H
|
||||
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QObject>
|
||||
#include "ui_wpagui.h"
|
||||
#include "addinterface.h"
|
||||
|
||||
class UserDataRequest;
|
||||
|
||||
|
||||
class WpaGui : public QMainWindow, public Ui::WpaGui
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
WpaGui(QApplication *app, QWidget *parent = 0, const char *name = 0,
|
||||
Qt::WFlags fl = 0);
|
||||
~WpaGui();
|
||||
|
||||
virtual int ctrlRequest(const char *cmd, char *buf, size_t *buflen);
|
||||
virtual void triggerUpdate();
|
||||
virtual void editNetwork(const QString &sel);
|
||||
virtual void removeNetwork(const QString &sel);
|
||||
virtual void enableNetwork(const QString &sel);
|
||||
virtual void disableNetwork(const QString &sel);
|
||||
virtual int getNetworkDisabled(const QString &sel);
|
||||
void setBssFromScan(const QString &bssid);
|
||||
#ifndef QT_NO_SESSIONMANAGER
|
||||
void saveState();
|
||||
#endif
|
||||
|
||||
public slots:
|
||||
virtual void parse_argv();
|
||||
virtual void updateStatus();
|
||||
virtual void updateNetworks();
|
||||
virtual void helpIndex();
|
||||
virtual void helpContents();
|
||||
virtual void helpAbout();
|
||||
virtual void disconnect();
|
||||
virtual void scan();
|
||||
virtual void eventHistory();
|
||||
virtual void ping();
|
||||
virtual void processMsg(char *msg);
|
||||
virtual void processCtrlReq(const char *req);
|
||||
virtual void receiveMsgs();
|
||||
virtual void connectB();
|
||||
virtual void selectNetwork(const QString &sel);
|
||||
virtual void editSelectedNetwork();
|
||||
virtual void editListedNetwork();
|
||||
virtual void removeSelectedNetwork();
|
||||
virtual void removeListedNetwork();
|
||||
virtual void addNetwork();
|
||||
virtual void enableAllNetworks();
|
||||
virtual void disableAllNetworks();
|
||||
virtual void removeAllNetworks();
|
||||
virtual void saveConfig();
|
||||
virtual void selectAdapter(const QString &sel);
|
||||
virtual void updateNetworkDisabledStatus();
|
||||
virtual void enableListedNetwork(bool);
|
||||
virtual void disableListedNetwork(bool);
|
||||
virtual void showTrayMessage(QSystemTrayIcon::MessageIcon type,
|
||||
int sec, const QString &msg);
|
||||
virtual void showTrayStatus();
|
||||
virtual void wpsDialog();
|
||||
virtual void peersDialog();
|
||||
virtual void tabChanged(int index);
|
||||
virtual void wpsPbc();
|
||||
virtual void wpsGeneratePin();
|
||||
virtual void wpsApPinChanged(const QString &text);
|
||||
virtual void wpsApPin();
|
||||
#ifdef CONFIG_NATIVE_WINDOWS
|
||||
virtual void startService();
|
||||
virtual void stopService();
|
||||
#endif /* CONFIG_NATIVE_WINDOWS */
|
||||
virtual void addInterface();
|
||||
|
||||
protected slots:
|
||||
virtual void languageChange();
|
||||
virtual void trayActivated(QSystemTrayIcon::ActivationReason how);
|
||||
virtual void closeEvent(QCloseEvent *event);
|
||||
|
||||
private:
|
||||
ScanResults *scanres;
|
||||
Peers *peers;
|
||||
bool networkMayHaveChanged;
|
||||
char *ctrl_iface;
|
||||
EventHistory *eh;
|
||||
struct wpa_ctrl *ctrl_conn;
|
||||
QSocketNotifier *msgNotifier;
|
||||
QTimer *timer;
|
||||
int pingsToStatusUpdate;
|
||||
WpaMsgList msgs;
|
||||
char *ctrl_iface_dir;
|
||||
struct wpa_ctrl *monitor_conn;
|
||||
UserDataRequest *udr;
|
||||
QAction *disconnectAction;
|
||||
QAction *reconnectAction;
|
||||
QAction *eventAction;
|
||||
QAction *scanAction;
|
||||
QAction *statAction;
|
||||
QAction *showAction;
|
||||
QAction *hideAction;
|
||||
QAction *quitAction;
|
||||
QMenu *tray_menu;
|
||||
QSystemTrayIcon *tray_icon;
|
||||
QString wpaStateTranslate(char *state);
|
||||
void createTrayIcon(bool);
|
||||
bool ackTrayIcon;
|
||||
bool startInTray;
|
||||
|
||||
int openCtrlConnection(const char *ifname);
|
||||
|
||||
bool wpsRunning;
|
||||
|
||||
QString bssFromScan;
|
||||
|
||||
void stopWpsRun(bool success);
|
||||
|
||||
#ifdef CONFIG_NATIVE_WINDOWS
|
||||
QAction *fileStartServiceAction;
|
||||
QAction *fileStopServiceAction;
|
||||
|
||||
bool serviceRunning();
|
||||
#endif /* CONFIG_NATIVE_WINDOWS */
|
||||
|
||||
QAction *addInterfaceAction;
|
||||
AddInterface *add_iface;
|
||||
|
||||
bool connectedToService;
|
||||
|
||||
QApplication *app;
|
||||
bool inTray;
|
||||
};
|
||||
|
||||
#endif /* WPAGUI_H */
|
||||
@@ -0,0 +1,155 @@
|
||||
#ifndef TEXTEDITOPTION_H
|
||||
#define TEXTEDITOPTION_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QTextEdit>
|
||||
#include <QMessageBox>
|
||||
#include <QFileDialog>
|
||||
#include <QTextCharFormat>
|
||||
#include "ParaSettingUI.h"
|
||||
#include "MyFileDialog.h"
|
||||
#include <QComboBox>
|
||||
#include <QPushButton>
|
||||
#include <QCheckBox>
|
||||
#include "DialogFileOperation.h"
|
||||
#include "DialogInsertVari.h"
|
||||
#include "DialogFontSize.h"
|
||||
#include "DialogLineSpace.h"
|
||||
#include "PicWidget.h"
|
||||
#include <QtGui/QStackedWidget>
|
||||
#include "dlgQrCode.h"
|
||||
#include "QBarCode.h"
|
||||
#include "DialogSaveFile.h"
|
||||
namespace Ui {
|
||||
class TextEditOption;
|
||||
}
|
||||
|
||||
class TextEditOption : public QWidget,public ParaSettingUI
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
explicit TextEditOption(QWidget *parent = 0);
|
||||
~TextEditOption();
|
||||
void updateSysParaToUI();
|
||||
void bindText(QTextEdit *textEdit);
|
||||
|
||||
QLabel *getLabelFontSize();
|
||||
QPushButton *getPushButtonPreview();
|
||||
QCheckBox *getCheckBoxBold();
|
||||
void setFontFormat();
|
||||
void onbuttonOpenclicked();
|
||||
void bindPicWidget(PicWidget *picwidget);
|
||||
void editItemModeDone();
|
||||
|
||||
void bindStackWidget(QStackedWidget *stackedWidgetOption,QStackedWidget *stackedWidgetText);
|
||||
int editMode;
|
||||
bool sceneEditItem;
|
||||
QString fileName;
|
||||
void InsertBarCodeToEdit(QString barCodeName,int width,int height);
|
||||
void InsertBarCodeToEdit(QString barCodeName,int width,int height,int EnSave);
|
||||
void InsertQRCodeToEdit(QString barCodeName,int width,int height );
|
||||
void InsertQRCodeToEdit(QString barCodeName,int width,int height ,int EnSave);
|
||||
void modbus_insert_pic(QString filename);
|
||||
dlgQrCode *dlgQrcode;
|
||||
QBarCode *barcode;
|
||||
QLabel * getLabelFontFamily();
|
||||
int barVarHeight,barVarWidth;
|
||||
QFont barVarFont;
|
||||
QTextCharFormat fmt;
|
||||
QTextEdit *textEdit;
|
||||
|
||||
void bindSysPara(SysPara *sysPara);
|
||||
DialogFontSize *dialogFontSize;
|
||||
void updateVariableFormat(QString&,const QString&);
|
||||
void updateFileVariWidth(QString &str);
|
||||
int getSingleDigitWidth(int);
|
||||
int getVariableHight(int);
|
||||
void updateNormalVarWidth(QString&,const QString&);
|
||||
void updateProduceDateVarWidth(QString &,const QString,int);
|
||||
int getDateVarWidth(int height,int);
|
||||
public slots:
|
||||
void on_bottonSave_clicked();
|
||||
void currentCharFormatChanged(const QTextCharFormat &format);
|
||||
void onMbSetLineAndChar(int line_space, int char_space);
|
||||
void onOpenNewFile();
|
||||
void updateSysParaToZero();
|
||||
void SetHiddenValue(bool);
|
||||
void onFileOpen(QString filePath,bool insertFlag);
|
||||
private slots:
|
||||
void onQRCodeClose();
|
||||
void onBarCodeClose(); // barDlgClose
|
||||
void showDlg();
|
||||
|
||||
void enableButtonSave();
|
||||
/*--------------因为按钮被取消,功能消失-------------------------*/
|
||||
void onbottonInsertImgclicked();
|
||||
void onInsertImgFIle_select(); //选则文件后
|
||||
void onbottonInsertTextclicked();
|
||||
void onInsertTextFIle_select(); //选则文件后
|
||||
|
||||
void onOpenFIle_select(); //选则文件后
|
||||
/*-----------------------------------------------------------*/
|
||||
void on_buttonSaveAS_clicked();
|
||||
void onSaveAS_FIle_select(); //选则文件后
|
||||
|
||||
void onSave_File_reject();
|
||||
void on_bottonNew_pressed();
|
||||
|
||||
void on_buttonInsertVari_pressed();
|
||||
|
||||
void on_pushButtonFile_pressed();
|
||||
|
||||
void on_buttonSelectFont_pressed();
|
||||
|
||||
void on_checkBoxBold_released();
|
||||
void on_buttonLineSpace_clicked();
|
||||
#ifdef EnableArabic
|
||||
void changeArabicPage(int);
|
||||
void swithchEnglisOrArabic(bool);
|
||||
#endif
|
||||
Q_SIGNALS:
|
||||
void fileNameChanged(QString);
|
||||
void PicfileNameOpen(QString,bool);
|
||||
void scenefileOpen(QString,bool);
|
||||
void editItemDone();
|
||||
void fontSizeChange(int);
|
||||
void switchBengalLanguage(bool);
|
||||
|
||||
signals:
|
||||
#ifdef EnableArabic
|
||||
void fontSizeArabicSelect(bool);
|
||||
void EnableSwitchArabicFlag(bool);
|
||||
#endif
|
||||
protected slots:
|
||||
void onSaveASFile(QString filename, bool Flag);
|
||||
void onEditItemMode();
|
||||
private:
|
||||
Ui::TextEditOption *ui;
|
||||
QStackedWidget *stackedWidgetOption;
|
||||
QStackedWidget *stackedWidgetText;
|
||||
|
||||
// QTextEdit *textEdit;
|
||||
PicWidget *picwidget;
|
||||
|
||||
void saveFile();
|
||||
MyFileDialog *fileDialog;
|
||||
bool maybeSave();
|
||||
void openFIle(QString fileName);
|
||||
void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
|
||||
|
||||
|
||||
bool newFileAppending;
|
||||
void checkNewFileAppending();
|
||||
void onDialogLineSpaceAccepted();
|
||||
|
||||
DialogFileOperation *dialogFileOperation;
|
||||
DialogInsertVari *dialogInsertVari;
|
||||
DialogLineSpace *dialogLineSpace;
|
||||
#ifdef MYSAVEFILEDLG
|
||||
DialogSaveFile *dialogSaveFile;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // TEXTEDITOPTION_H
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 289 KiB |
@@ -0,0 +1,103 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'DigitalInput.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 "../DigitalInput.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'DigitalInput.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_DigitalInput[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
5, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
14, 13, 13, 13, 0x08,
|
||||
30, 13, 13, 13, 0x08,
|
||||
54, 13, 13, 13, 0x08,
|
||||
78, 13, 13, 13, 0x08,
|
||||
95, 13, 13, 13, 0x08,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_DigitalInput[] = {
|
||||
"DigitalInput\0\0onCharPressed()\0"
|
||||
"onKeyBackspacePressed()\0onKeySelectAllPressed()\0"
|
||||
"onKeyUpPressed()\0onKeyDownPressed()\0"
|
||||
};
|
||||
|
||||
void DigitalInput::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
Q_ASSERT(staticMetaObject.cast(_o));
|
||||
DigitalInput *_t = static_cast<DigitalInput *>(_o);
|
||||
switch (_id) {
|
||||
case 0: _t->onCharPressed(); break;
|
||||
case 1: _t->onKeyBackspacePressed(); break;
|
||||
case 2: _t->onKeySelectAllPressed(); break;
|
||||
case 3: _t->onKeyUpPressed(); break;
|
||||
case 4: _t->onKeyDownPressed(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData DigitalInput::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject DigitalInput::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_DigitalInput,
|
||||
qt_meta_data_DigitalInput, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &DigitalInput::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *DigitalInput::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *DigitalInput::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_DigitalInput))
|
||||
return static_cast<void*>(const_cast< DigitalInput*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int DigitalInput::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 < 5)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 5;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
Reference in New Issue
Block a user