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

📄 bcunitgroup.h

📁 Bookcase 是一个用于KDE的个人的书籍管理。它使用XML文件存储格式
💻 H
字号:
/***************************************************************************                                bcunitgroup.h                             -------------------    begin                : Sun Nov 3 2002    copyright            : (C) 2002 by Robby Stephenson    email                : robby@periapsis.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of version 2 of the GNU General Public License as  * *   published by the Free Software Foundation;                            * *                                                                         * ***************************************************************************/#ifndef BCUNITGROUP_H#define BCUNITGROUP_H#include "bcunit.h"#include <qptrlist.h>#include <qstring.h>/** * The BCUnitGroup is simply a QPtrList of BCUnits which knows the name of its group, * and the name of the attribute to which that group belongs. * * An example for a book collection would be a group of books, all written by * David Weber. The @ref groupName() would be "Weber, David" and the * @ref attributeName() would be "author". * * @author Robby Stephenson * @version $Id: bcunitgroup.h,v 1.6 2003/03/08 18:24:47 robby Exp $ */class BCUnitGroup:public QPtrList<BCUnit> {public:  BCUnitGroup(const QString& group, const QString& att) : m_group(group),    m_attribute(att) {}  BCUnitGroup(const BCUnitGroup& group) : QPtrList<BCUnit>(group),    m_group(group.groupName()), m_attribute(group.attributeName()) {}  const QString& groupName() const { return m_group; }  const QString& attributeName() const { return m_attribute; }private:  QString m_group;  QString m_attribute;};#endif

⌨️ 快捷键说明

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