30 lines
731 B
C++
30 lines
731 B
C++
#ifndef PUBLIC_DEF_HEADER
|
|
#define PUBLIC_DEF_HEADER
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <QWidget>
|
|
|
|
struct OprBase {
|
|
std::string node_path{};
|
|
std::string the_node{};
|
|
std::string purpose{};
|
|
std::string xml_path{};
|
|
};
|
|
|
|
std::vector<std::string> splitString(const std::string& input, const std::string& delimiter);
|
|
|
|
class CUtil
|
|
{
|
|
public:
|
|
CUtil() = default;
|
|
~CUtil() = default;
|
|
public:
|
|
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);
|
|
};
|
|
|
|
#endif
|