1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 22:53:53 +00:00
openmw/apps/opencs/view/doc/subview.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.4 KiB
C++
Raw Normal View History

2012-12-11 12:22:43 +00:00
#ifndef CSV_DOC_SUBVIEW_H
#define CSV_DOC_SUBVIEW_H
#include "../../model/world/universalid.hpp"
#include <QDockWidget>
2022-10-19 17:02:00 +00:00
#include <string>
2012-12-11 12:22:43 +00:00
2022-10-19 17:02:00 +00:00
class QCloseEvent;
class QEvent;
class QObject;
2012-12-11 12:22:43 +00:00
namespace CSVDoc
{
class SubView : public QDockWidget
{
Q_OBJECT
CSMWorld::UniversalId mUniversalId;
// not implemented
SubView(const SubView&);
SubView& operator=(SubView&);
protected:
void setUniversalId(const CSMWorld::UniversalId& id);
bool event(QEvent* event) override;
2012-12-11 12:22:43 +00:00
2022-09-22 18:26:05 +00:00
public:
SubView(const CSMWorld::UniversalId& id);
2012-12-11 12:22:43 +00:00
CSMWorld::UniversalId getUniversalId() const;
virtual void setEditLock(bool locked) = 0;
virtual void setStatusBar(bool show);
///< Default implementation: ignored
virtual void useHint(const std::string& hint);
///< Default implementation: ignored
2013-07-25 12:29:56 +00:00
virtual std::string getTitle() const;
2022-09-22 18:26:05 +00:00
private:
void closeEvent(QCloseEvent* event) override;
signals:
void focusId(const CSMWorld::UniversalId& universalId, const std::string& hint);
void closeRequest(SubView* subView);
void updateTitle();
void updateSubViewIndices(SubView* view = nullptr);
void universalIdChanged(const CSMWorld::UniversalId& universalId);
protected slots:
void closeRequest();
2012-12-11 12:22:43 +00:00
};
}
#endif