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

📄 item.h

📁 一个帮助你学习英语的软件~~很不错的咯~~ 对功能又做了改进~大家支持下哈~
💻 H
字号:
//PK 20006/08/29 - 2007/03/08
#pragma once

#include "global.h"

class CBook;
class CItemInfo;

class CItem
{
public:
	enum { TITLE_SIZE = 50 };

	CItem() : _book(0), _info(0) {}
	CItem(CBook * book) : _book(book), _info(0) {}
	
	bool operator == (const CItem & rh);

	void file_name(fs::path fn);
	const fs::path & file_name() const { return _file_name; }
//	void title(const string t) { _title = t; }
	const string & title() { if (_title.empty()) load_title(); return _title; }
	bool load_title();
	void title_changed(const string & origin);
	void info(CItemInfo * info) { _info = info; }
	void info();
	CBook * book() { return _book; }
	void book(CBook * book) { _book = book; }

	void access_date(date d);
	date access_date();
	void access_times(int t);
	int access_times();

	const string & get_article();
	bool attach_article(const string & text);
	date next_day();
	int priority();
	void update();
	
	bool remove_article();

	int compare(CItem * item);

private:
	CBook * _book;
	CItemInfo * _info;

	fs::path _file_name;
	string _title;
	string _content;
};

⌨️ 快捷键说明

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