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

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
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2022-09-22 18:26:05 +00:00
ReportTable* mTable;
SearchBox mSearchBox;
CSMDoc::Document& mDocument;
CSMTools::Search mSearch;
bool mLocked;
CSVWorld::TableBottomBox* mBottom;
2022-09-22 18:26:05 +00:00
private:
void replace(bool selection);
2015-04-16 18:11:14 +00:00
2022-09-22 18:26:05 +00:00
protected:
void showEvent(QShowEvent* event) override;
2022-09-22 18:26:05 +00:00
public:
SearchSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document);
2022-09-22 18:26:05 +00:00
void setEditLock(bool locked) override;
2022-09-22 18:26:05 +00:00
void setStatusBar(bool show) override;
2022-09-22 18:26:05 +00:00
private slots:
2022-09-22 18:26:05 +00:00
void stateChanged(int state, CSMDoc::Document* document);
2022-09-22 18:26:05 +00:00
void startSearch(const CSMTools::Search& search);
2022-09-22 18:26:05 +00:00
void replaceRequest();
2022-09-22 18:26:05 +00:00
void replaceAllRequest();
2022-09-22 18:26:05 +00:00
void tableSizeUpdate();
2015-04-16 16:50:22 +00:00
2022-09-22 18:26:05 +00:00
void operationDone(int type, bool failed);
};
}
#endif