mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +00:00
added accessor function for cell selection in paged worldspace
This commit is contained in:
parent
5b9d6cce98
commit
6eba647a9d
2 changed files with 7 additions and 0 deletions
|
@ -432,6 +432,11 @@ void CSVRender::PagedWorldspaceWidget::setCellSelection (const CSMWorld::CellSel
|
||||||
emit cellSelectionChanged (mSelection);
|
emit cellSelectionChanged (mSelection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const CSMWorld::CellSelection& CSVRender::PagedWorldspaceWidget::getCellSelection() const
|
||||||
|
{
|
||||||
|
return mSelection;
|
||||||
|
}
|
||||||
|
|
||||||
std::pair< int, int > CSVRender::PagedWorldspaceWidget::getCoordinatesFromId (const std::string& record) const
|
std::pair< int, int > CSVRender::PagedWorldspaceWidget::getCoordinatesFromId (const std::string& record) const
|
||||||
{
|
{
|
||||||
std::istringstream stream (record.c_str());
|
std::istringstream stream (record.c_str());
|
||||||
|
|
|
@ -80,6 +80,8 @@ namespace CSVRender
|
||||||
|
|
||||||
void setCellSelection(const CSMWorld::CellSelection& selection);
|
void setCellSelection(const CSMWorld::CellSelection& selection);
|
||||||
|
|
||||||
|
const CSMWorld::CellSelection& getCellSelection() const;
|
||||||
|
|
||||||
/// \return Drop handled?
|
/// \return Drop handled?
|
||||||
virtual bool handleDrop (const std::vector<CSMWorld::UniversalId>& data,
|
virtual bool handleDrop (const std::vector<CSMWorld::UniversalId>& data,
|
||||||
DropType type);
|
DropType type);
|
||||||
|
|
Loading…
Reference in a new issue