📄 item.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 + -