OpenMW
|
#include <table.hpp>
Public Slots | |
void | tableSizeUpdate () |
void | selectionSizeUpdate () |
void | requestFocus (const std::string &id) |
void | recordFilterChanged (boost::shared_ptr< CSMFilter::Node > filter) |
Signals | |
void | editRequest (int row) |
void | selectionSizeChanged (int size) |
void | tableSizeChanged (int size, int deleted, int modified) |
void | createRequest () |
Public Member Functions | |
Table (const CSMWorld::UniversalId &id, CSMWorld::Data &data, QUndoStack &undoStack, bool createAndDelete, bool sorting) | |
void | setEditLock (bool locked) |
CSMWorld::UniversalId | getUniversalId (int row) const |
void | updateEditorSetting (const QString &settingName, const QString &settingValue) |
Private Slots | |
void | revertRecord () |
void | deleteRecord () |
void | editRecord () |
void | moveUpRecord () |
void | moveDownRecord () |
Private Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) |
std::vector< std::string > | listRevertableSelectedIds () const |
std::vector< std::string > | listDeletableSelectedIds () const |
Private Attributes | |
std::vector< CommandDelegate * > | mDelegates |
QUndoStack & | mUndoStack |
QAction * | mEditAction |
QAction * | mCreateAction |
QAction * | mRevertAction |
QAction * | mDeleteAction |
QAction * | mMoveUpAction |
QAction * | mMoveDownAction |
CSMWorld::IdTableProxyModel * | mProxyModel |
CSMWorld::IdTable * | mModel |
bool | mEditLock |
int | mRecordStatusDisplay |
Table widget.
CSVWorld::Table::Table | ( | const CSMWorld::UniversalId & | id, |
CSMWorld::Data & | data, | ||
QUndoStack & | undoStack, | ||
bool | createAndDelete, | ||
bool | sorting | ||
) |
createAndDelete | Allow creation and deletion of records. |
sorting | Allow changing order of rows in the view via column headers. |
void CSVWorld::Table::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [private] |
void CSVWorld::Table::createRequest | ( | ) | [signal] |
void CSVWorld::Table::deleteRecord | ( | ) | [private, slot] |
void CSVWorld::Table::editRecord | ( | ) | [private, slot] |
void CSVWorld::Table::editRequest | ( | int | row | ) | [signal] |
CSMWorld::UniversalId CSVWorld::Table::getUniversalId | ( | int | row | ) | const |
std::vector< std::string > CSVWorld::Table::listDeletableSelectedIds | ( | ) | const [private] |
std::vector< std::string > CSVWorld::Table::listRevertableSelectedIds | ( | ) | const [private] |
void CSVWorld::Table::moveDownRecord | ( | ) | [private, slot] |
void CSVWorld::Table::moveUpRecord | ( | ) | [private, slot] |
void CSVWorld::Table::recordFilterChanged | ( | boost::shared_ptr< CSMFilter::Node > | filter | ) | [slot] |
void CSVWorld::Table::requestFocus | ( | const std::string & | id | ) | [slot] |
void CSVWorld::Table::revertRecord | ( | ) | [private, slot] |
void CSVWorld::Table::selectionSizeChanged | ( | int | size | ) | [signal] |
void CSVWorld::Table::selectionSizeUpdate | ( | ) | [slot] |
void CSVWorld::Table::setEditLock | ( | bool | locked | ) |
void CSVWorld::Table::tableSizeChanged | ( | int | size, |
int | deleted, | ||
int | modified | ||
) | [signal] |
size | Number of not deleted records |
deleted | Number of deleted records |
modified | Number of added and modified records |
void CSVWorld::Table::tableSizeUpdate | ( | ) | [slot] |
void CSVWorld::Table::updateEditorSetting | ( | const QString & | settingName, |
const QString & | settingValue | ||
) |
QAction* CSVWorld::Table::mCreateAction [private] |
std::vector<CommandDelegate *> CSVWorld::Table::mDelegates [private] |
QAction* CSVWorld::Table::mDeleteAction [private] |
QAction* CSVWorld::Table::mEditAction [private] |
bool CSVWorld::Table::mEditLock [private] |
CSMWorld::IdTable* CSVWorld::Table::mModel [private] |
QAction* CSVWorld::Table::mMoveDownAction [private] |
QAction* CSVWorld::Table::mMoveUpAction [private] |
int CSVWorld::Table::mRecordStatusDisplay [private] |
QAction* CSVWorld::Table::mRevertAction [private] |
QUndoStack& CSVWorld::Table::mUndoStack [private] |