mirror of https://github.com/OpenMW/openmw.git
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.
67 lines
1.2 KiB
C++
67 lines
1.2 KiB
C++
#ifndef CSV_TOOLS_SEARCHSUBVIEW_H
|
|
#define CSV_TOOLS_SEARCHSUBVIEW_H
|
|
|
|
#include "../../model/tools/search.hpp"
|
|
|
|
#include "../doc/subview.hpp"
|
|
|
|
#include <apps/opencs/model/world/universalid.hpp>
|
|
|
|
#include "searchbox.hpp"
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Document;
|
|
}
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class TableBottomBox;
|
|
}
|
|
|
|
namespace CSVTools
|
|
{
|
|
class ReportTable;
|
|
|
|
class SearchSubView : public CSVDoc::SubView
|
|
{
|
|
Q_OBJECT
|
|
|
|
ReportTable* mTable;
|
|
SearchBox mSearchBox;
|
|
CSMDoc::Document& mDocument;
|
|
CSMTools::Search mSearch;
|
|
bool mLocked;
|
|
CSVWorld::TableBottomBox* mBottom;
|
|
|
|
private:
|
|
void replace(bool selection);
|
|
|
|
protected:
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
public:
|
|
SearchSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document);
|
|
|
|
void setEditLock(bool locked) override;
|
|
|
|
void setStatusBar(bool show) override;
|
|
|
|
private slots:
|
|
|
|
void stateChanged(int state, CSMDoc::Document* document);
|
|
|
|
void startSearch(const CSMTools::Search& search);
|
|
|
|
void replaceRequest();
|
|
|
|
void replaceAllRequest();
|
|
|
|
void tableSizeUpdate();
|
|
|
|
void operationDone(int type, bool failed);
|
|
};
|
|
}
|
|
|
|
#endif
|