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

📄 config.h

📁 About: Paco (pacKAGE oRGANIZER) is a simple, yet powerful tool to aid package management when insta
💻 H
字号:
//=======================================================================// Config.h//-----------------------------------------------------------------------// This file is part of the package paco// Copyright (C) 2004-2007 David Rosal <david.3r@gmail.com>// For more information visit http://paco.sourceforge.net//=======================================================================#ifndef GPACO_CONFIG_H#define GPACO_CONFIG_H#include "paco/BaseConfig.h"#include <glibmm/ustring.h>#include <glib/gkeyfile.h>#include <vector>namespace Gpaco {class MainWindow;class Config : public Paco::BaseConfig{	public:	static void init(std::string const&);	static void saveSettings(MainWindow&);	static bool rules()				{ return sRules; }	static bool tips()				{ return sTips; }	static bool hour()				{ return sHour; }	static int sizeUnit()			{ return sSizeUnit; }	static int width()				{ return sWidth; }	static int height()				{ return sHeight; }	static int xPos()				{ return sXPos; }	static int yPos()				{ return sYPos; }	static std::vector<int>& cols()	{ return sCols; }	static void rules(bool set)		{ sRules = set; }	static void hour(bool set)		{ sHour = set; }	static void sizeUnit(int unit)	{ sSizeUnit = unit; }	static void tips(bool set);	private:	Config(std::string const&);	Config(Config&);	Config& operator=(Config&);	~Config();	static bool sRules;	static bool sTips;	static bool sHour;	static int sSizeUnit;	static int sWidth;	static int sHeight;	static int sXPos;	static int sYPos;	static std::vector<int> sCols;	Glib::ustring mGpacoRC;	GKeyFile* mKeyFile;	static int const DEFAULT_WIDTH	= 500;	static int const DEFAULT_HEIGHT	= 500;	static int const DEFAULT_XPOS	= 0;	static int const DEFAULT_YPOS	= 0;	void getValue(char const* tag, bool* var);	void getValue(char const* tag, int* var);	void setDefaultCols();};}	// namespace Gpaco#endif  // GPACO_CONFIG_H

⌨️ 快捷键说明

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