1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +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.

68 lines
1.2 KiB
C++
Raw Normal View History

#ifndef CSV_TOOLS_SEARCHSUBVIEW_H
#define CSV_TOOLS_SEARCHSUBVIEW_H
2015-04-16 18:50:22 +02:00
#include "../../model/tools/search.hpp"
#include "../doc/subview.hpp"
#include "searchbox.hpp"
class QTableView;
class QModelIndex;
namespace CSMDoc
{
class Document;
}
namespace CSVWorld
{
class TableBottomBox;
}
namespace CSVTools
{
class ReportTable;
class SearchSubView : public CSVDoc::SubView
{
2022-09-22 21:26:05 +03:00
Q_OBJECT
2022-09-22 21:26:05 +03:00
ReportTable* mTable;
SearchBox mSearchBox;
CSMDoc::Document& mDocument;
CSMTools::Search mSearch;
bool mLocked;
CSVWorld::TableBottomBox* mBottom;
2022-09-22 21:26:05 +03:00
private:
void replace(bool selection);
2015-04-16 20:11:14 +02:00
2022-09-22 21:26:05 +03:00
protected:
void showEvent(QShowEvent* event) override;
2022-09-22 21:26:05 +03:00
public:
SearchSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document);
2022-09-22 21:26:05 +03:00
void setEditLock(bool locked) override;
2022-09-22 21:26:05 +03:00
void setStatusBar(bool show) override;
2022-09-22 21:26:05 +03:00
private slots:
2022-09-22 21:26:05 +03:00
void stateChanged(int state, CSMDoc::Document* document);
2022-09-22 21:26:05 +03:00
void startSearch(const CSMTools::Search& search);
2022-09-22 21:26:05 +03:00
void replaceRequest();
2022-09-22 21:26:05 +03:00
void replaceAllRequest();
2022-09-22 21:26:05 +03:00
void tableSizeUpdate();
2015-04-16 18:50:22 +02:00
2022-09-22 21:26:05 +03:00
void operationDone(int type, bool failed);
};
}
#endif