|
virtual void | appendColumnsTo (Gtk::TreeView &v) const override |
| Takes a Gtk::TreeView and adds this object's columns to it. More...
|
|
const state::BookState & | member (const Path &path) const |
| Gets the M Member from a Path. More...
|
|
const state::BookState & | member (const iterator &iter) const |
| Gets the M Member from an iterator. More...
|
|
Path | find (eris::eris_id_t id, size_t hint=0) const |
| Returns the Path to the member with the given id. More...
|
|
Path | find (eris::eris_id_t id, const iterator &iter) const |
| Returns the Path to the member with the given id. More...
|
|
Path | find (eris::eris_id_t id, const Path &hint) const |
| Returns the Path to the member with the given id. More...
|
|
|
| LibraryStore (std::shared_ptr< const state::State > &&state, eris::eris_id_t reader) |
| Protected constructor; this object should be constructed using create().
|
|
virtual void | get_value_vfunc (const iterator &iter, int column, Glib::ValueBase &value) const override |
| Accesses a column value. More...
|
|
virtual void | set_sort_column_id_vfunc (int sort_column_id, Gtk::SortType order) override |
| Sets the model sort column and sort order. More...
|
|
| BookStore (std::shared_ptr< const state::State > &&state, eris::eris_id_t author) |
| Protected constructor; this object should be constructed using create().
|
|
| BookStore (std::shared_ptr< const state::State > &&state, eris::eris_id_t author, std::unique_ptr< ColRec > &&cols) |
| Protected constructor that overrides the default set of columns (for use by subclasses).
|
|
| BookStore (std::shared_ptr< const state::State > &&state, std::unique_ptr< ColRec > &&cols) |
| Protected constructor that overrides the default set of columns but has no author parameter at all: members_ will not be populated (but should be populated by the subclass).
|
|
void | initializeBooks () |
| Called during construction to populated members_ with either all books (if the author constructor parameter is 0) or an author's written books (if the author constructor parameter is non-zero). More...
|
|
virtual int | get_n_columns_vfunc () const override |
| Returns obj.columns->size() , the number of book model columns. More...
|
|
virtual GType | get_column_type_vfunc (int index) const override |
| Returns the column type of the given position. More...
|
|
| MemberStore (std::shared_ptr< const state::State > &&state) |
| Protected constructor; this object should be constructed from a subclass, typically via the subclass's static create() method. More...
|
|
virtual Gtk::TreeModelFlags | get_flags_vfunc () const override |
| Returns Gtk::TreeModel flags (specifically, the LIST_ONLY flag). More...
|
|
virtual bool | get_iter_vfunc (const Path &path, iterator &iter) const override |
| Converts a path to an iterator. More...
|
|
virtual bool | iter_next_vfunc (const iterator &iter, iterator &iter_next) const override |
| Takes an iterator, returns an iterator to the next item. More...
|
|
virtual bool | iter_children_vfunc (const iterator &, iterator &) const override |
| Returns false always: MemberStore elements cannot have children.
|
|
virtual bool | iter_parent_vfunc (const iterator &, iterator &) const override |
| Returns false always: MemberStore elemenets cannot have children/parents.
|
|
virtual bool | iter_nth_child_vfunc (const iterator &, int, iterator &) const override |
| Returns false always: MemberStore elements cannot have children.
|
|
virtual bool | iter_has_child_vfunc (const iterator &) const override |
| Returns false always: MemberStore elements cannot have children.
|
|
virtual int | iter_n_children_vfunc (const iterator &) const override |
| Returns 0 always: MemberStore elements have no children.
|
|
virtual bool | iter_nth_root_child_vfunc (int n, iterator &iter) const override |
| Obtains an iterator to the n th reader. More...
|
|
virtual int | iter_n_root_children_vfunc () const override |
| Returns the number of readers stored in this model.
|
|
virtual Path | get_path_vfunc (const iterator &iter) const override |
| Converts iterator iter into a Path.
|
|
virtual bool | get_sort_column_id_vfunc (int *sort_column_id, Gtk::SortType *order) const override |
| Accesses the current sort column and order. More...
|
|
virtual void | sort_members (std::function< bool(const state::BookState &a, const state::BookState &b)> &compare, int sort_column_id, Gtk::SortType order) |
| Called by subclasses, typically in set_sort_column_id_vfunc, to resort the current list of members using the given function. More...
|
|
void | appendCol (Gtk::TreeView &v, const std::string &label, T &col, int width, bool sortable=true) const |
| Appends a single column to the given view using the given label, width, and sortability. More...
|
|
Class extending BookStore that lists a reader's library books (excluding self-written works); it includes all the base book columns plus:
- perceived quality (double)
- pirated (boolean)
- bought (boolean)
- acquired (simulation period)