hlp:桂林国际齿轮泵代码
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
@@ -0,0 +1,68 @@
|
||||
#ifndef DIALOGFILEOPERATION_H
|
||||
#define DIALOGFILEOPERATION_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "DialogFileOperation.h"
|
||||
#include <QModelIndex>
|
||||
namespace Ui {
|
||||
class DialogFileOperation;
|
||||
}
|
||||
|
||||
class DialogFileOperation : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DialogFileOperation(QWidget *parent = 0);
|
||||
~DialogFileOperation();
|
||||
void refreshListView(int mode);
|
||||
void modbus_openfile(QString filename);
|
||||
int EditMode;
|
||||
private slots:
|
||||
|
||||
|
||||
void on_pushButtonNext_pressed();
|
||||
|
||||
void on_pushButtonLast_pressed();
|
||||
|
||||
void on_pushButtonExit_pressed();
|
||||
|
||||
void on_pushButtonDelFile_pressed();
|
||||
|
||||
void on_pushButtonDelAll_pressed();
|
||||
|
||||
void on_pushButtonImport_pressed();
|
||||
|
||||
void on_pushButtonExport_pressed();
|
||||
|
||||
void on_pushButtonInsert_clicked();
|
||||
|
||||
void on_pushButtonOpen_clicked();
|
||||
|
||||
void on_radioButtonLocal_released();
|
||||
|
||||
void on_radioButtonUdisk_released();
|
||||
|
||||
|
||||
|
||||
void on_listViewFile_entered(const QModelIndex &index);
|
||||
|
||||
void on_listViewFile_clicked(const QModelIndex &index);
|
||||
|
||||
Q_SIGNALS:
|
||||
void openFile(QString filePath,bool insertFlag);
|
||||
void createSceneImage(QString filePath);
|
||||
|
||||
private:
|
||||
Ui::DialogFileOperation *ui;
|
||||
};
|
||||
|
||||
#endif // DIALOGFILEOPERATION_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'MyFileDialog.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 "../MyFileDialog.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'MyFileDialog.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_MyFileDialog[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_MyFileDialog[] = {
|
||||
"MyFileDialog\0"
|
||||
};
|
||||
|
||||
void MyFileDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData MyFileDialog::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject MyFileDialog::staticMetaObject = {
|
||||
{ &QFileDialog::staticMetaObject, qt_meta_stringdata_MyFileDialog,
|
||||
qt_meta_data_MyFileDialog, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &MyFileDialog::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *MyFileDialog::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *MyFileDialog::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_MyFileDialog))
|
||||
return static_cast<void*>(const_cast< MyFileDialog*>(this));
|
||||
return QFileDialog::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int MyFileDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QFileDialog::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Public.h
|
||||
*
|
||||
* Created on: Jul 16, 2013
|
||||
* Author: yiyu
|
||||
* QQ:1036184468
|
||||
* Descriptoin:
|
||||
|
||||
*/
|
||||
|
||||
#ifndef PUBLIC_H_
|
||||
#define PUBLIC_H_
|
||||
|
||||
#include <Qt>
|
||||
#include <QString>
|
||||
#include <stdlib.h>
|
||||
#include <QFont>
|
||||
|
||||
extern void MySleep(unsigned int msec);
|
||||
|
||||
class Public{
|
||||
public:
|
||||
Public();
|
||||
~Public();
|
||||
static int getMinFontPixelSize();
|
||||
static QString getFontFamily(int pixelSize);
|
||||
static QString getFontFamily(int pixelSize, int vartype);// 20160812
|
||||
static int derivePixelSizeFromHeight(int value);
|
||||
static int derivePixelSizeFromHeightNx(int value);
|
||||
static int getAdjustedPixelSize(int value);
|
||||
static void resetPara();
|
||||
static void backupPara();
|
||||
static QString readLanguageType();
|
||||
static QString ReadLanguageName();
|
||||
static int getNumberHeight(QFont font);
|
||||
static time_t getDateFromMacro(const char *time);
|
||||
static QString DateToString(const char *time);
|
||||
|
||||
static int getType(int vartype); // 将变量类型进行转换,以处理横向字体
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /* PUBLIC_H_ */
|
||||
Reference in New Issue
Block a user