⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 afiletypes.h

📁 爱可视605看PDF程式源代码, 基于APDF
💻 H
字号:
/* A QDict providing filetype information associated with suffixes. */ #ifndef AFILETYPES_H#define AFILETYPES_H#include <qdict.h>class QPixmap;struct AFileType {	QString	editor;	QString	iconname;};class AFileTypes : protected QDict<AFileType> { public:	inline static AFileTypes* get();                  // returns the singleton	inline static void        release();		QString    findApp(const QString &name);	QPixmap*   findIcon(const QString &name);	QString    createFilterFor(const QString &app);   // produces a list of suffixes supported by app private:	static AFileTypes *instance;	QDict<QPixmap> icons;	AFileTypes();	bool       load(const char *path);	void       loadIcons();	QPixmap*   getIcon(const QString &name);	AFileType* find(const QString &name);};AFileTypes* AFileTypes::get() {	if(instance == NULL)		instance= new AFileTypes;	return instance;}void AFileTypes::release() {	delete instance;	instance= NULL;}#endif // AFILETYPES_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -