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

📄 pkg.h

📁 About: Paco (pacKAGE oRGANIZER) is a simple, yet powerful tool to aid package management when insta
💻 H
字号:
//=======================================================================// Pkg.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_PKG_H#define GPACO_PKG_H#include "paco/BasePkg.h"#include <glibmm/ustring.h>#include <glibmm/refptr.h>namespace Gdk{	class Pixbuf;}namespace Gpaco {typedef Paco::File File;class PkgWindow;enum {	TAB_FILES,	TAB_INFO,	TAB_REMOVE,	TAB_PACKAGE,	N_TABS};class Pkg : public Paco::BasePkg{	public:	Pkg(Glib::ustring const&);	virtual ~Pkg();	float sizePercent() const				{ return mSizePercent; }	float filesPercent() const				{ return mFilesPercent; }	Glib::RefPtr<Gdk::Pixbuf> icon() const	{ return mpIcon; }	Glib::ustring const& summary() const	{ return mSummary; }	PkgWindow const* window() const			{ return mpWindow; }	PkgWindow* window()						{ return mpWindow; }	bool changed() const					{ return mChanged; }	void changed(bool set)					{ mChanged = set; }	bool listFilesInst() const	{ return mFileType & INSTALLED_FILES; }	bool listFilesMiss() const	{ return mFileType & MISSING_FILES; }	void switchListFilesInst()	{ mFileType ^= INSTALLED_FILES; }	void switchListFilesMiss()	{ mFileType ^= MISSING_FILES; }	void readLog();	void presentWindow(int);	void deleteWindow();	void refreshFilesTab();	void switchRules();	bool update(bool = true);	private:	float						mSizePercent;	float						mFilesPercent;	Glib::RefPtr<Gdk::Pixbuf>	mpIcon;	Glib::ustring				mSummary;	PkgWindow*					mpWindow;	int 						mFileType;	bool						mChanged;	void getIcon(Glib::ustring const& path);};}	// namespace Gpaco#endif  // GPACO_PKG_H

⌨️ 快捷键说明

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