提交原始齿轮泵代码

This commit is contained in:
kite_lucs
2026-08-26 16:13:59 +08:00
commit afc8fcf2a4
1688 changed files with 316635 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
/*
* 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 QString ArmDate2String(const char * date, const char * time);
static QString ReadKeyBoardUse();
static int getType(int vartype); // 将变量类型进行转换,以处理横向字体
};
#endif /* PUBLIC_H_ */