item.h
来自「Recite(一个辅助英语学习软件源码) 该程序的UI部分使用了WTL7.5。」· C头文件 代码 · 共 52 行
H
52 行
//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 + =
减小字号Ctrl + -
显示快捷键?