33 lines
729 B
C++
33 lines
729 B
C++
#pragma once
|
|
#include <QObject>
|
|
#include <QGraphicsScene>
|
|
#include <QGraphicsView>
|
|
#include <QGraphicsRectItem>
|
|
|
|
#define BG_WIDTH 3508
|
|
#define BG_HEIGHT 2481
|
|
|
|
struct NameInfo_t {
|
|
QString name1;
|
|
QString name2;
|
|
QString bg_path;
|
|
bool is_number_bg;
|
|
int bg_type;
|
|
};
|
|
|
|
|
|
|
|
class INameCreater : public QObject {
|
|
public:
|
|
INameCreater();
|
|
~INameCreater();
|
|
|
|
protected:
|
|
void saveToImage(const QString& filename, QGraphicsScene* scene);
|
|
QList<NameInfo_t> getNameByFile(const QString& filename);
|
|
QList<NameInfo_t> getNameByFileContent(const QByteArray& conetent);
|
|
|
|
virtual void generaImageFromCSV(const QString& filename, const QByteArray& filecontent, const QFont& font, const QColor& font_color);
|
|
|
|
|
|
}; |