1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00
OpenMW/apps/opencs/view/world/scriptsubview.hpp

59 lines
1.1 KiB
C++
Raw Normal View History

2013-04-10 20:14:10 +02:00
#ifndef CSV_WORLD_SCRIPTSUBVIEW_H
#define CSV_WORLD_SCRIPTSUBVIEW_H
#include "../doc/subview.hpp"
class QModelIndex;
2015-04-29 20:24:17 +10:00
class QLabel;
2013-04-10 20:14:10 +02:00
namespace CSMDoc
{
class Document;
}
namespace CSMWorld
{
class IdTable;
}
namespace CSVWorld
{
class ScriptEdit;
2013-04-10 20:14:10 +02:00
class ScriptSubView : public CSVDoc::SubView
{
Q_OBJECT
ScriptEdit *mEditor;
2013-04-10 20:14:10 +02:00
CSMDoc::Document& mDocument;
CSMWorld::IdTable *mModel;
int mColumn;
2015-04-29 20:24:17 +10:00
QWidget *mBottom;
QLabel *mStatus;
2013-04-10 20:14:10 +02:00
public:
ScriptSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document);
virtual void setEditLock (bool locked);
virtual void useHint (const std::string& hint);
virtual void updateUserSetting (const QString& name, const QStringList& value);
2015-04-29 20:24:17 +10:00
public slots:
2013-04-10 20:14:10 +02:00
void textChanged();
void dataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
void rowsAboutToBeRemoved (const QModelIndex& parent, int start, int end);
2015-04-29 20:24:17 +10:00
private slots:
void updateStatusBar();
2013-04-10 20:14:10 +02:00
};
}
2015-03-11 10:54:45 -04:00
#endif