2012-12-03 21:03:02 +00:00
|
|
|
#ifndef CSV_WORLD_TABLESUBVIEW_H
|
|
|
|
#define CSV_WORLD_TABLESUBVIEW_H
|
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
#include "../doc/subview.hpp"
|
2012-12-03 21:03:02 +00:00
|
|
|
|
2012-12-13 12:35:08 +00:00
|
|
|
class QModelIndex;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class Table;
|
2013-07-25 12:29:56 +00:00
|
|
|
class TableBottomBox;
|
2013-07-26 10:34:30 +00:00
|
|
|
class Creator;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
2012-12-11 12:22:43 +00:00
|
|
|
class TableSubView : public CSVDoc::SubView
|
2012-12-03 21:03:02 +00:00
|
|
|
{
|
2012-12-13 12:35:08 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
Table *mTable;
|
2013-07-25 12:29:56 +00:00
|
|
|
TableBottomBox *mBottom;
|
2012-12-03 21:03:02 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2013-07-26 10:34:30 +00:00
|
|
|
TableSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document,
|
|
|
|
Creator *creator = 0);
|
|
|
|
///< The ownership of \a creator is transferred to this.
|
2013-07-25 12:29:56 +00:00
|
|
|
|
2012-12-03 21:03:02 +00:00
|
|
|
virtual void setEditLock (bool locked);
|
2013-07-25 12:29:56 +00:00
|
|
|
|
|
|
|
virtual void updateEditorSetting (const QString& key, const QString& value);
|
|
|
|
|
|
|
|
virtual void setStatusBar (bool show);
|
2012-12-13 12:35:08 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
2013-07-21 15:53:39 +00:00
|
|
|
void editRequest (int row);
|
2012-12-03 21:03:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-06-15 11:40:18 +00:00
|
|
|
#endif
|