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

Table widget. More...

#include <table.hpp>

Inheritance diagram for CSVWorld::Table:
Collaboration diagram for CSVWorld::Table:

Public Slots

void settingChanged (const CSMPrefs::Setting *setting)
 
void tableSizeUpdate ()
 
void selectionSizeUpdate ()
 
void requestFocus (const std::string &id)
 
void recordFilterChanged (boost::shared_ptr< CSMFilter::Node > filter)
 
void rowAdded (const std::string &id)
 

Signals

void editRequest (const CSMWorld::UniversalId &id, const std::string &hint)
 
void selectionSizeChanged (int size)
 
void tableSizeChanged (int size, int deleted, int modified)
 
void createRequest ()
 
void cloneRequest (const CSMWorld::UniversalId &)
 
void closeRequest ()
 
void extendedDeleteConfigRequest (const std::vector< std::string > &selectedIds)
 
void extendedRevertConfigRequest (const std::vector< std::string > &selectedIds)
 

Public Member Functions

 Table (const CSMWorld::UniversalId &id, bool createAndDelete, bool sorting, CSMDoc::Document &document)
 
virtual void setEditLock (bool locked)
 
CSMWorld::UniversalId getUniversalId (int row) const
 
std::vector< std::string > getColumnsWithDisplay (CSMWorld::ColumnBase::Display display) const
 
std::vector< std::string > getSelectedIds () const
 
virtual std::vector
< CSMWorld::UniversalId
getDraggedRecords () const
 
- Public Member Functions inherited from CSVWorld::DragRecordTable
 DragRecordTable (CSMDoc::Document &document, QWidget *parent=NULL)
 
void setEditLock (bool locked)
 

Protected Member Functions

virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
- Protected Member Functions inherited from CSVWorld::DragRecordTable
void startDragFromTable (const DragRecordTable &table)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dragMoveEvent (QDragMoveEvent *event)
 
void dropEvent (QDropEvent *event)
 

Private Types

enum  DoubleClickAction {
  Action_None, Action_InPlaceEdit, Action_EditRecord, Action_View,
  Action_Revert, Action_Delete, Action_EditRecordAndClose, Action_ViewAndClose
}
 

Private Slots

void editCell ()
 
void editRecord ()
 
void cloneRecord ()
 
void moveUpRecord ()
 
void moveDownRecord ()
 
void viewRecord ()
 
void previewRecord ()
 
void executeExtendedDelete ()
 
void executeExtendedRevert ()
 

Private Member Functions

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

Private Attributes

std::vector< CommandDelegate * > mDelegates
 
QActionmEditAction
 
QActionmCreateAction
 
QActionmCloneAction
 
QActionmRevertAction
 
QActionmDeleteAction
 
QActionmMoveUpAction
 
QActionmMoveDownAction
 
QActionmViewAction
 
QActionmPreviewAction
 
QActionmExtendedDeleteAction
 
QActionmExtendedRevertAction
 
TableEditIdActionmEditIdAction
 
CSMWorld::IdTableProxyModelmProxyModel
 
CSMWorld::IdTableBasemModel
 
int mRecordStatusDisplay
 
CSMWorld::CommandDispatchermDispatcher
 
std::map
< Qt::KeyboardModifiers,
DoubleClickAction
mDoubleClickActions
 
bool mJumpToAddedRecord
 
bool mUnselectAfterJump
 

Additional Inherited Members

- Protected Attributes inherited from CSVWorld::DragRecordTable
CSMDoc::DocumentmDocument
 
bool mEditLock
 

Detailed Description

Table widget.

Member Enumeration Documentation

Enumerator
Action_None 
Action_InPlaceEdit 
Action_EditRecord 
Action_View 
Action_Revert 
Action_Delete 
Action_EditRecordAndClose 
Action_ViewAndClose 

Constructor & Destructor Documentation

CSVWorld::Table::Table ( const CSMWorld::UniversalId id,
bool  createAndDelete,
bool  sorting,
CSMDoc::Document document 
)
Parameters
createAndDeleteAllow creation and deletion of records.
sortingAllow changing order of rows in the view via column headers.
Note
This signal could instead be connected to a slot that filters out changes not affecting the records status column (for permanence reasons)

Here is the call graph for this function:

Member Function Documentation

void CSVWorld::Table::cloneRecord ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::Table::cloneRequest ( const CSMWorld::UniversalId )
signal
void CSVWorld::Table::closeRequest ( )
signal
void CSVWorld::Table::contextMenuEvent ( QContextMenuEvent *  event)
private
Todo:
add menu items for select all and clear selection
Todo:
allow reordering of multiple rows

Here is the call graph for this function:

void CSVWorld::Table::createRequest ( )
signal

Here is the caller graph for this function:

void CSVWorld::Table::editCell ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::Table::editRecord ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::Table::editRequest ( const CSMWorld::UniversalId id,
const std::string &  hint 
)
signal
void CSVWorld::Table::executeExtendedDelete ( )
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::Table::executeExtendedRevert ( )
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::Table::extendedDeleteConfigRequest ( const std::vector< std::string > &  selectedIds)
signal
void CSVWorld::Table::extendedRevertConfigRequest ( const std::vector< std::string > &  selectedIds)
signal
std::vector< std::string > CSVWorld::Table::getColumnsWithDisplay ( CSMWorld::ColumnBase::Display  display) const
std::vector< CSMWorld::UniversalId > CSVWorld::Table::getDraggedRecords ( ) const
virtual
std::vector< std::string > CSVWorld::Table::getSelectedIds ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

CSMWorld::UniversalId CSVWorld::Table::getUniversalId ( int  row) const

Here is the call graph for this function:

void CSVWorld::Table::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual
void CSVWorld::Table::mouseMoveEvent ( QMouseEvent *  event)
private
void CSVWorld::Table::moveDownRecord ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::Table::moveUpRecord ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::Table::previewRecord ( )
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::Table::recordFilterChanged ( boost::shared_ptr< CSMFilter::Node filter)
slot
void CSVWorld::Table::requestFocus ( const std::string &  id)
slot
void CSVWorld::Table::rowAdded ( const std::string &  id)
slot

Here is the caller graph for this function:

void CSVWorld::Table::selectionSizeChanged ( int  size)
signal
void CSVWorld::Table::selectionSizeUpdate ( )
slot

Here is the caller graph for this function:

void CSVWorld::Table::setEditLock ( bool  locked)
virtual

Here is the call graph for this function:

void CSVWorld::Table::settingChanged ( const CSMPrefs::Setting setting)
slot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::Table::tableSizeChanged ( int  size,
int  deleted,
int  modified 
)
signal
Parameters
sizeNumber of not deleted records
deletedNumber of deleted records
modifiedNumber of added and modified records
void CSVWorld::Table::tableSizeUpdate ( )
slot

Here is the caller graph for this function:

void CSVWorld::Table::viewRecord ( )
privateslot

Here is the caller graph for this function:

Member Data Documentation

QAction* CSVWorld::Table::mCloneAction
private
QAction* CSVWorld::Table::mCreateAction
private
std::vector<CommandDelegate *> CSVWorld::Table::mDelegates
private
QAction* CSVWorld::Table::mDeleteAction
private
CSMWorld::CommandDispatcher* CSVWorld::Table::mDispatcher
private
std::map<Qt::KeyboardModifiers, DoubleClickAction> CSVWorld::Table::mDoubleClickActions
private
QAction* CSVWorld::Table::mEditAction
private
TableEditIdAction* CSVWorld::Table::mEditIdAction
private
QAction* CSVWorld::Table::mExtendedDeleteAction
private
QAction* CSVWorld::Table::mExtendedRevertAction
private
bool CSVWorld::Table::mJumpToAddedRecord
private
CSMWorld::IdTableBase* CSVWorld::Table::mModel
private
QAction* CSVWorld::Table::mMoveDownAction
private
QAction* CSVWorld::Table::mMoveUpAction
private
QAction* CSVWorld::Table::mPreviewAction
private
CSMWorld::IdTableProxyModel* CSVWorld::Table::mProxyModel
private
int CSVWorld::Table::mRecordStatusDisplay
private
QAction* CSVWorld::Table::mRevertAction
private
bool CSVWorld::Table::mUnselectAfterJump
private
QAction* CSVWorld::Table::mViewAction
private

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