/home/frank/projects/kitlist/src/kitmodel.hpp File Reference

#include "item.hpp"
#include "category.hpp"
#include <map>
#include <sigc++/signal.h>

Go to the source code of this file.

Classes

class  GuiState
 Class encapsulating state of an object in the data model. More...
class  ModelItem
 Represents an Item combined with GuiState attributes. More...
class  ModelItemCompareId
 Comparator for comparing items by their unique ID. More...
class  ModelCategory
 Represents a Category combined with GuiState attributes. More...
class  KitModel
 Holds a rich graph of objects representing the application's data model. More...

Defines

#define KIT_MODEL_H   1

Typedefs

typedef std::vector< ModelItem * > ModelItemContainer
typedef
ModelItemContainer::iterator 
ModelItemIter
typedef std::map< long,
ModelItem * > 
ItemMap
typedef ItemMap::iterator ItemMapIter
typedef sigc::slot< bool,
const ItemMap::iterator & > 
SlotForeachModelItemIter
typedef sigc::slot< bool,
ModelItem & > 
SlotForeachModelItem
typedef std::vector
< ModelCategory * > 
ModelCategoryContainer
typedef
ModelCategoryContainer::iterator 
ModelCategoryIter
typedef std::map< long,
ModelCategory * > 
CategoryMap
typedef CategoryMap::iterator CategoryMapIter
typedef sigc::slot< bool,
const CategoryMap::iterator & > 
SlotForeachCategoryIter
typedef sigc::slot< bool,
ModelCategory & > 
SlotForeachCategory

Enumerations

enum  item_filter_types { ALL, CHECKED, UNCHECKED }


Define Documentation

#define KIT_MODEL_H   1

Definition at line 24 of file kitmodel.hpp.


Typedef Documentation

typedef std::map<long, ModelCategory*> CategoryMap

Definition at line 122 of file kitmodel.hpp.

typedef CategoryMap::iterator CategoryMapIter

Definition at line 123 of file kitmodel.hpp.

typedef std::map<long, ModelItem*> ItemMap

Definition at line 84 of file kitmodel.hpp.

typedef ItemMap::iterator ItemMapIter

Definition at line 85 of file kitmodel.hpp.

typedef std::vector<ModelCategory*> ModelCategoryContainer

Definition at line 119 of file kitmodel.hpp.

typedef ModelCategoryContainer::iterator ModelCategoryIter

Definition at line 120 of file kitmodel.hpp.

typedef std::vector<ModelItem*> ModelItemContainer

Definition at line 81 of file kitmodel.hpp.

typedef ModelItemContainer::iterator ModelItemIter

Definition at line 82 of file kitmodel.hpp.

typedef sigc::slot<bool, ModelCategory&> SlotForeachCategory

Definition at line 126 of file kitmodel.hpp.

typedef sigc::slot<bool, const CategoryMap::iterator&> SlotForeachCategoryIter

Definition at line 125 of file kitmodel.hpp.

typedef sigc::slot<bool, ModelItem&> SlotForeachModelItem

Definition at line 88 of file kitmodel.hpp.

typedef sigc::slot<bool, const ItemMap::iterator&> SlotForeachModelItemIter

Definition at line 87 of file kitmodel.hpp.


Enumeration Type Documentation

Enumerator:
ALL 
CHECKED 
UNCHECKED 

Definition at line 128 of file kitmodel.hpp.


Copyright 2008-2010 Frank Dean