big-change:添加两种类型结构读写支持
This commit is contained in:
19
public_def.h
19
public_def.h
@@ -1,18 +1,9 @@
|
||||
#ifndef PUBLIC_DEF_HEADER
|
||||
#define PUBLIC_DEF_HEADER
|
||||
|
||||
#include <QWidget>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <QWidget>
|
||||
|
||||
struct OprBase {
|
||||
std::string node_path{};
|
||||
std::string the_node{};
|
||||
std::string purpose{};
|
||||
std::string xml_path{};
|
||||
long allow_max_width{500};
|
||||
long blank_width{50};
|
||||
};
|
||||
|
||||
class CUtil
|
||||
{
|
||||
@@ -21,13 +12,13 @@ public:
|
||||
~CUtil() = default;
|
||||
|
||||
public:
|
||||
static void msg(QWidget* parent, const QString& content);
|
||||
static bool affirm(QWidget* parent, const QString& titile, const QString& content);
|
||||
static void msg(QWidget* parent, const QString& content);
|
||||
static bool affirm(QWidget* parent, const QString& titile, const QString& content);
|
||||
static QString select_file(QWidget* parent, const QString& info, const QString& filter);
|
||||
static void sort_by_repeat(std::vector<std::string>& vec);
|
||||
static void sort_by_repeat(std::vector<std::string>& vec);
|
||||
|
||||
public:
|
||||
static std::string utf8_to_gbk(const std::string& utf8_str);
|
||||
static std::string utf8_to_gbk(const std::string& utf8_str);
|
||||
static std::vector<std::string> splitString(const std::string& input, const std::string& delimiter);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user