2015-03-17 11:30:47 +00:00
|
|
|
#ifndef CSV_TOOLS_SEARCHSUBVIEW_H
|
|
|
|
#define CSV_TOOLS_SEARCHSUBVIEW_H
|
|
|
|
|
|
|
|
#include "../doc/subview.hpp"
|
|
|
|
|
2015-03-25 10:56:14 +00:00
|
|
|
#include "searchbox.hpp"
|
|
|
|
|
2015-03-17 11:30:47 +00:00
|
|
|
class QTableView;
|
|
|
|
class QModelIndex;
|
|
|
|
|
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVTools
|
|
|
|
{
|
|
|
|
class ReportTable;
|
|
|
|
|
|
|
|
class SearchSubView : public CSVDoc::SubView
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
ReportTable *mTable;
|
2015-03-25 10:56:14 +00:00
|
|
|
SearchBox mSearchBox;
|
2015-03-27 15:33:54 +00:00
|
|
|
CSMDoc::Document& mDocument;
|
2015-03-30 20:30:33 +00:00
|
|
|
int mPaddingBefore;
|
|
|
|
int mPaddingAfter;
|
2015-03-17 11:30:47 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SearchSubView (const CSMWorld::UniversalId& id, CSMDoc::Document& document);
|
|
|
|
|
|
|
|
virtual void setEditLock (bool locked);
|
|
|
|
|
|
|
|
virtual void updateUserSetting (const QString &, const QStringList &);
|
2015-03-25 10:56:14 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void stateChanged (int state, CSMDoc::Document *document);
|
2015-03-27 15:33:54 +00:00
|
|
|
|
|
|
|
void startSearch (const CSMTools::Search& search);
|
2015-03-17 11:30:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|