You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
#ifndef CSV_WORLD_SCRIPTSUBVIEW_H
|
|
#define CSV_WORLD_SCRIPTSUBVIEW_H
|
|
|
|
#include "../doc/subview.hpp"
|
|
|
|
class QModelIndex;
|
|
class QLabel;
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Document;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class IdTable;
|
|
}
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class ScriptEdit;
|
|
|
|
class ScriptSubView : public CSVDoc::SubView
|
|
{
|
|
Q_OBJECT
|
|
|
|
ScriptEdit *mEditor;
|
|
CSMDoc::Document& mDocument;
|
|
CSMWorld::IdTable *mModel;
|
|
int mColumn;
|
|
QWidget *mBottom;
|
|
QLabel *mStatus;
|
|
|
|
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);
|
|
|
|
public slots:
|
|
|
|
void textChanged();
|
|
|
|
void dataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
|
|
|
|
void rowsAboutToBeRemoved (const QModelIndex& parent, int start, int end);
|
|
|
|
private slots:
|
|
|
|
void updateStatusBar();
|
|
};
|
|
}
|
|
|
|
#endif
|