You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "iWxConfigBase.h"
|
|
|
|
|
#include "iGuiConfig_global.h"
|
|
|
|
|
|
|
|
|
|
class X_GUI_CONFIG_EXPORT iWxConfigIcons : public iWxConfigBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit iWxConfigIcons(QWidget *parent = 0);
|
|
|
|
|
~iWxConfigIcons();
|
|
|
|
|
|
|
|
|
|
// 初始化
|
|
|
|
|
virtual void initUI();
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
// 执行
|
|
|
|
|
virtual bool runActionBy(QString sName);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
// Radio Changed
|
|
|
|
|
void slotSeriesChanged();
|
|
|
|
|
|
|
|
|
|
// 右键菜单
|
|
|
|
|
void slotShowContextMenu(const QPoint &pos);
|
|
|
|
|
|
|
|
|
|
// 菜单响应
|
|
|
|
|
void slotIconDel();
|
|
|
|
|
void slotIconAdd();
|
|
|
|
|
void slotBrowseFolder();
|
|
|
|
|
void slotBrowseFolderEx();
|
|
|
|
|
void slotRefresh();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// 内部实现函数
|
|
|
|
|
void listFiles();
|
|
|
|
|
void appendFile(QString sSeries, QString s);
|
|
|
|
|
void fillFileGrids(QString sSeries);
|
|
|
|
|
QWidget* getCellWx(QString s);
|
|
|
|
|
QString getTooltip(int r, int c);
|
|
|
|
|
QString getCurSeries();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
// 内部变量,Table
|
|
|
|
|
QTableWidget* m_pTableWx;
|
|
|
|
|
QMenu* m_pMenu;
|
|
|
|
|
QVector<QRadioButton*> m_vecRadios;
|
|
|
|
|
|
|
|
|
|
QString m_sDir;
|
|
|
|
|
QMap<QString, QStringList> m_mapFiles;
|
|
|
|
|
};
|