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

#include <reporttable.hpp>

Inheritance diagram for CSVTools::ReportTable:
Collaboration diagram for CSVTools::ReportTable:

Public Slots

void stateChanged (int state, CSMDoc::Document *document)
 

Signals

void editRequest (const CSMWorld::UniversalId &id, const std::string &hint)
 
void replaceRequest ()
 
void refreshRequest ()
 

Public Member Functions

 ReportTable (CSMDoc::Document &document, const CSMWorld::UniversalId &id, bool richTextDescription, int refreshState=0, QWidget *parent=0)
 
virtual std::vector
< CSMWorld::UniversalId > 
getDraggedRecords () const
 
void clear ()
 
std::vector< int > getReplaceIndices (bool selection) const
 
void flagAsReplaced (int index)
 
- Public Member Functions inherited from CSVWorld::DragRecordTable
 DragRecordTable (CSMDoc::Document &document, QWidget *parent=NULL)
 
void setEditLock (bool locked)
 

Private Types

enum  DoubleClickAction { Action_None, Action_Edit, Action_Remove, Action_EditAndRemove }
 

Private Slots

void settingChanged (const CSMPrefs::Setting *setting)
 
void showSelection ()
 
void removeSelection ()
 

Private Member Functions

void contextMenuEvent (QContextMenuEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 

Private Attributes

QSortFilterProxyModel * mProxyModel
 
CSMTools::ReportModel * mModel
 
CSVWorld::CommandDelegate * mIdTypeDelegate
 
QAction * mShowAction
 
QAction * mRemoveAction
 
QAction * mReplaceAction
 
QAction * mRefreshAction
 
std::map
< Qt::KeyboardModifiers,
DoubleClickAction > 
mDoubleClickActions
 
int mRefreshState
 

Additional Inherited Members

- Protected Member Functions inherited from CSVWorld::DragRecordTable
void startDragFromTable (const DragRecordTable &table)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dragMoveEvent (QDragMoveEvent *event)
 
void dropEvent (QDropEvent *event)
 
- Protected Attributes inherited from CSVWorld::DragRecordTable
CSMDoc::Document & mDocument
 
bool mEditLock
 

Member Enumeration Documentation

Enumerator
Action_None 
Action_Edit 
Action_Remove 
Action_EditAndRemove 

Constructor & Destructor Documentation

CSVTools::ReportTable::ReportTable ( CSMDoc::Document &  document,
const CSMWorld::UniversalId &  id,
bool  richTextDescription,
int  refreshState = 0,
QWidget *  parent = 0 
)
Parameters
richTextDescriptionUse rich text in the description column.
refreshStateDocument state to check for refresh function. If value is 0 no refresh function exists. If the document current has the specified state the refresh function is disabled.

Here is the call graph for this function:

Member Function Documentation

void CSVTools::ReportTable::clear ( )
void CSVTools::ReportTable::contextMenuEvent ( QContextMenuEvent *  event)
private
void CSVTools::ReportTable::editRequest ( const CSMWorld::UniversalId &  id,
const std::string &  hint 
)
signal
void CSVTools::ReportTable::flagAsReplaced ( int  index)
Parameters
indexrow in the original model

Here is the caller graph for this function:

std::vector< CSMWorld::UniversalId > CSVTools::ReportTable::getDraggedRecords ( ) const
virtual
std::vector< int > CSVTools::ReportTable::getReplaceIndices ( bool  selection) const

Return indices of rows that are suitable for replacement.

Parameters
selectionOnly list selected rows.
Returns
rows in the original model

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVTools::ReportTable::mouseDoubleClickEvent ( QMouseEvent *  event)
privatevirtual
void CSVTools::ReportTable::mouseMoveEvent ( QMouseEvent *  event)
private
void CSVTools::ReportTable::refreshRequest ( )
signal

Here is the caller graph for this function:

void CSVTools::ReportTable::removeSelection ( )
privateslot

Here is the caller graph for this function:

void CSVTools::ReportTable::replaceRequest ( )
signal

Here is the caller graph for this function:

void CSVTools::ReportTable::settingChanged ( const CSMPrefs::Setting *  setting)
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVTools::ReportTable::showSelection ( )
privateslot

Here is the caller graph for this function:

void CSVTools::ReportTable::stateChanged ( int  state,
CSMDoc::Document *  document 
)
slot

Member Data Documentation

std::map<Qt::KeyboardModifiers, DoubleClickAction> CSVTools::ReportTable::mDoubleClickActions
private
CSVWorld::CommandDelegate* CSVTools::ReportTable::mIdTypeDelegate
private
CSMTools::ReportModel* CSVTools::ReportTable::mModel
private
QSortFilterProxyModel* CSVTools::ReportTable::mProxyModel
private
QAction* CSVTools::ReportTable::mRefreshAction
private
int CSVTools::ReportTable::mRefreshState
private
QAction* CSVTools::ReportTable::mRemoveAction
private
QAction* CSVTools::ReportTable::mReplaceAction
private
QAction* CSVTools::ReportTable::mShowAction
private

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