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

#include <regionmap.hpp>

Inheritance diagram for CSVWorld::RegionMap:
Collaboration diagram for CSVWorld::RegionMap:

Signals

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

Public Member Functions

 RegionMap (const CSMWorld::UniversalId &universalId, CSMDoc::Document &document, QWidget *parent=0)
 
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)
 

Private Slots

void selectAll ()
 
void clearSelection ()
 
void selectRegions ()
 
void createCells ()
 
void setRegion ()
 
void unsetRegion ()
 
void view ()
 
void viewInTable ()
 

Private Member Functions

void contextMenuEvent (QContextMenuEvent *event)
 
QModelIndexList getUnselectedCells () const
 
QModelIndexList getSelectedCells (bool existent=true, bool nonExistent=false) const
 
QModelIndexList getMissingRegionCells () const
 Unselected cells within all regions that have at least one selected cell. More...
 
void setRegion (const std::string &regionId)
 Set region Id of selected cells. More...
 
void mouseMoveEvent (QMouseEvent *event)
 
void dropEvent (QDropEvent *event)
 

Private Attributes

QActionmSelectAllAction
 
QActionmClearSelectionAction
 
QActionmSelectRegionsAction
 
QActionmCreateCellsAction
 
QActionmSetRegionAction
 
QActionmUnsetRegionAction
 
QActionmViewAction
 
QActionmViewInTableAction
 
std::string mRegionId
 

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::DocumentmDocument
 
bool mEditLock
 

Constructor & Destructor Documentation

CSVWorld::RegionMap::RegionMap ( const CSMWorld::UniversalId universalId,
CSMDoc::Document document,
QWidget parent = 0 
)

Here is the call graph for this function:

Member Function Documentation

void CSVWorld::RegionMap::clearSelection ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::RegionMap::contextMenuEvent ( QContextMenuEvent *  event)
private

Here is the call graph for this function:

void CSVWorld::RegionMap::createCells ( )
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::RegionMap::dropEvent ( QDropEvent *  event)
private

Here is the call graph for this function:

void CSVWorld::RegionMap::editRequest ( const CSMWorld::UniversalId id,
const std::string &  hint 
)
signal
std::vector< CSMWorld::UniversalId > CSVWorld::RegionMap::getDraggedRecords ( ) const
virtual

Implements CSVWorld::DragRecordTable.

Here is the call graph for this function:

QModelIndexList CSVWorld::RegionMap::getMissingRegionCells ( ) const
private

Unselected cells within all regions that have at least one selected cell.

Here is the call graph for this function:

Here is the caller graph for this function:

QModelIndexList CSVWorld::RegionMap::getSelectedCells ( bool  existent = true,
bool  nonExistent = false 
) const
private
Parameters
existentInclude existent cells.
nonExistentInclude non-existent cells.

Here is the call graph for this function:

Here is the caller graph for this function:

QModelIndexList CSVWorld::RegionMap::getUnselectedCells ( ) const
private
Note
Non-existent cells are not listed.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::RegionMap::mouseMoveEvent ( QMouseEvent *  event)
private
void CSVWorld::RegionMap::selectAll ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::RegionMap::selectRegions ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::RegionMap::setRegion ( const std::string &  regionId)
private

Set region Id of selected cells.

Here is the call graph for this function:

void CSVWorld::RegionMap::setRegion ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::RegionMap::unsetRegion ( )
privateslot

Here is the caller graph for this function:

void CSVWorld::RegionMap::view ( )
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::RegionMap::viewInTable ( )
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QAction* CSVWorld::RegionMap::mClearSelectionAction
private
QAction* CSVWorld::RegionMap::mCreateCellsAction
private
std::string CSVWorld::RegionMap::mRegionId
private
QAction* CSVWorld::RegionMap::mSelectAllAction
private
QAction* CSVWorld::RegionMap::mSelectRegionsAction
private
QAction* CSVWorld::RegionMap::mSetRegionAction
private
QAction* CSVWorld::RegionMap::mUnsetRegionAction
private
QAction* CSVWorld::RegionMap::mViewAction
private
QAction* CSVWorld::RegionMap::mViewInTableAction
private

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