OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Attributes | List of all members
CSVWorld::DialogueDelegateDispatcher Class Reference

#include <dialoguesubview.hpp>

Inheritance diagram for CSVWorld::DialogueDelegateDispatcher:
Collaboration diagram for CSVWorld::DialogueDelegateDispatcher:

Public Member Functions

 DialogueDelegateDispatcher (QObject *parent, CSMWorld::IdTable *table, CSMWorld::CommandDispatcher &commandDispatcher, CSMDoc::Document &document, QAbstractItemModel *model=0)
 
 ~DialogueDelegateDispatcher ()
 
CSVWorld::CommandDelegatemakeDelegate (CSMWorld::ColumnBase::Display display)
 
QWidgetmakeEditor (CSMWorld::ColumnBase::Display display, const QModelIndex &index)
 will return null if delegate is not present, parent of the widget is More...
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index, CSMWorld::ColumnBase::Display display) const
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 does nothing More...
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 does nothing More...
 

Private Slots

void editorDataCommited (QWidget *editor, const QModelIndex &index, CSMWorld::ColumnBase::Display display)
 

Private Attributes

std::map< int, CommandDelegate * > mDelegates
 
QObjectmParent
 
QAbstractItemModelmTable
 
CSMWorld::CommandDispatchermCommandDispatcher
 
CSMDoc::DocumentmDocument
 
NotEditableSubDelegate mNotEditableDelegate
 
std::vector
< DialogueDelegateDispatcherProxy * > 
mProxys
 

Constructor & Destructor Documentation

CSVWorld::DialogueDelegateDispatcher::DialogueDelegateDispatcher ( QObject parent,
CSMWorld::IdTable table,
CSMWorld::CommandDispatcher commandDispatcher,
CSMDoc::Document document,
QAbstractItemModel model = 0 
)
CSVWorld::DialogueDelegateDispatcher::~DialogueDelegateDispatcher ( )

Member Function Documentation

void CSVWorld::DialogueDelegateDispatcher::editorDataCommited ( QWidget editor,
const QModelIndex &  index,
CSMWorld::ColumnBase::Display  display 
)
privateslot
CSVWorld::CommandDelegate * CSVWorld::DialogueDelegateDispatcher::makeDelegate ( CSMWorld::ColumnBase::Display  display)

Here is the call graph for this function:

QWidget * CSVWorld::DialogueDelegateDispatcher::makeEditor ( CSMWorld::ColumnBase::Display  display,
const QModelIndex &  index 
)

will return null if delegate is not present, parent of the widget is

void CSVWorld::DialogueDelegateDispatcher::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

does nothing

void CSVWorld::DialogueDelegateDispatcher::setEditorData ( QWidget editor,
const QModelIndex &  index 
) const
virtual
void CSVWorld::DialogueDelegateDispatcher::setModelData ( QWidget editor,
QAbstractItemModel model,
const QModelIndex &  index 
) const
virtual
void CSVWorld::DialogueDelegateDispatcher::setModelData ( QWidget editor,
QAbstractItemModel model,
const QModelIndex &  index,
CSMWorld::ColumnBase::Display  display 
) const
virtual
QSize CSVWorld::DialogueDelegateDispatcher::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

does nothing

Member Data Documentation

CSMWorld::CommandDispatcher& CSVWorld::DialogueDelegateDispatcher::mCommandDispatcher
private
std::map<int, CommandDelegate*> CSVWorld::DialogueDelegateDispatcher::mDelegates
private
CSMDoc::Document& CSVWorld::DialogueDelegateDispatcher::mDocument
private
NotEditableSubDelegate CSVWorld::DialogueDelegateDispatcher::mNotEditableDelegate
private
QObject* CSVWorld::DialogueDelegateDispatcher::mParent
private
std::vector<DialogueDelegateDispatcherProxy*> CSVWorld::DialogueDelegateDispatcher::mProxys
private
QAbstractItemModel* CSVWorld::DialogueDelegateDispatcher::mTable
private

The documentation for this class was generated from the following files: