1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 00:53:56 +00:00
openmw/apps/opencs/view/tools/searchsubview.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.2 KiB
C++
Raw Normal View History

#ifndef CSV_TOOLS_SEARCHSUBVIEW_H
#define CSV_TOOLS_SEARCHSUBVIEW_H
2015-04-16 16:50:22 +00:00
#include "../../model/tools/search.hpp"
#include "../doc/subview.hpp"
2022-10-19 17:02:00 +00:00
#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;
2015-04-16 16:50:22 +00:00
CSMTools::Search mSearch;
2015-04-16 17:02:03 +00:00
bool mLocked;
CSVWorld::TableBottomBox* mBottom;
2015-04-16 18:11:14 +00:00
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);
2015-04-16 16:50:22 +00:00
void replaceRequest();
void replaceAllRequest();
void tableSizeUpdate();
2015-04-16 16:50:22 +00:00
void operationDone(int type, bool failed);
};
}
#endif