35 lines
816 B
C++
35 lines
816 B
C++
#ifndef PROGITEM_H
|
|
#define PROGITEM_H
|
|
|
|
#include "base/loqtreewidget.h"
|
|
#include <QJsonObject>
|
|
#include <QPushButton>
|
|
|
|
class ProgPanel;
|
|
class ProgItem : public TreeWidgetItem {
|
|
public:
|
|
explicit ProgItem(const QString &progsDir, const QString &name, int w, int h, const QString & remarks, QList<int> &splitWidths, int, LoQTreeWidget *parent);
|
|
explicit ProgItem(const QString &progsDir, const QJsonObject &json, LoQTreeWidget *parent);
|
|
|
|
void save();
|
|
void del();
|
|
void onSetProgram();
|
|
|
|
QString mName;
|
|
int mWidth;
|
|
int mHeight;
|
|
QString mRemark;
|
|
QList<int> mSplitWidths;
|
|
int mMaxWidth{0};
|
|
QString mProgsDir;
|
|
QString mProgDir;
|
|
qint64 m_fsize{0};
|
|
QDateTime m_last;
|
|
QPushButton *m_bnName;
|
|
private:
|
|
void init();
|
|
QString m_orgName;
|
|
};
|
|
|
|
#endif // PROGITEM_H
|