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

📄 confmgr.h

📁 Linux下的C、C++ IDE
💻 H
字号:
/*   FILE: confmgr.hPROJECT: hide AUTHOR: James MartinCREATED: 9/15/2002*/#ifndef _CONFMGR_H#define _CONFMGR_H#include "portdef.h"#include <qstring.h>#include <cstdlib>class ConfMgr{protected:	virtual bool save()=0;	virtual bool load()=0;	QString m_path;public:	ConfMgr()	{		m_path = (QString) getenv("HOME") + FILE_SEP + 				".hide" + FILE_SEP + "conf" + FILE_SEP;			}	virtual ~ConfMgr() {;} };class EditorConfMgr : public ConfMgr{	QString m_FontSize;public:	EditorConfMgr()	{		m_FontSize = "";		m_path += "editor";	}	virtual ~EditorConfMgr() {;}	virtual bool save();	virtual bool load();	void setFontSize(int fs) { m_FontSize.setNum(fs); }	int getFontSize() { return m_FontSize.toInt(); }};class GlobalConfMgr : public ConfMgr{	QString m_LastProj;	bool m_bOpenLastProj;public:	GlobalConfMgr()	{		m_LastProj 		= "";		m_bOpenLastProj 	= false;		m_path += "global";	}	virtual ~GlobalConfMgr() {;}	virtual bool save();	virtual bool load();	void setLastProj(const char *path) { m_LastProj = path; }	QString getLastProj() { return m_LastProj; }	void setOpenLastProj(bool bOpen) { m_bOpenLastProj = bOpen; }	bool canOpenLastProj() { return m_bOpenLastProj; }};#endif

⌨️ 快捷键说明

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