1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 15:49:55 +00:00
openmw-tes3mp/apps/opencs/view/doc/subview.cpp

37 lines
920 B
C++
Raw Normal View History

#include "subview.hpp"
#include "view.hpp"
2012-12-11 12:22:43 +00:00
CSVDoc::SubView::SubView (const CSMWorld::UniversalId& id) : mUniversalId (id)
{
/// \todo add a button to the title bar that clones this sub view
2014-03-21 10:56:48 +00:00
setWindowTitle (QString::fromUtf8 (mUniversalId.toString().c_str()));
2014-09-12 14:45:21 +00:00
setAttribute(Qt::WA_DeleteOnClose);
}
2012-12-11 12:22:43 +00:00
CSMWorld::UniversalId CSVDoc::SubView::getUniversalId() const
{
return mUniversalId;
}
void CSVDoc::SubView::setStatusBar (bool show) {}
void CSVDoc::SubView::useHint (const std::string& hint) {}
void CSVDoc::SubView::updateUserSetting (const QString &, const QStringList &)
{}
void CSVDoc::SubView::setUniversalId (const CSMWorld::UniversalId& id)
{
mUniversalId = id;
setWindowTitle (mUniversalId.toString().c_str());
}
void CSVDoc::SubView::closeEvent (QCloseEvent *event)
{
// update title bars of view and subviews
if(mParent)
mParent->updateSubViewIndicies(this);
}