Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPanelLogicsSearchTagsAndLabels.hpp
Go to the documentation of this file.
1#ifndef LIBS_PANELS_CPANELLOGICSSEARCHTAGSANDLABELS_HPP_
2#define LIBS_PANELS_CPANELLOGICSSEARCHTAGSANDLABELS_HPP_
3
6
7#include <cstddef>
8#include <string>
9#include <vector>
10
12
14{
15public:
27
28 explicit CPanelLogicsSearchTagsAndLabels(CPanelLogicsEditor *panelLogicsEditor);
34
36 void clearAllFoundItems();
37 void findAll();
38 void findCurrentIndex();
39 void findNextIndex();
40 void findPreviousIndex();
41 void repeatSearch();
42 void search();
43
44private:
45 bool prvAddMatchToSearchResult(const std::string &strItemText, AbstractCanvasItem::TId itemId);
47 void prvClearFoundItems();
51 bool prvIsIndexOutOfSearchResultsBounds(size_t index);
52 bool prvNewSearch();
54
56
59
60 std::vector<SPrvSearchResultElement> m_searchResult;
62};
63
64#endif /* LIBS_PANELS_CPANELLOGICSSEARCHTAGSANDLABELS_HPP_ */
uint32_t TId
Definition AbstractCanvasItem.hpp:47
Definition AbstractComponentGUI.hpp:30
Definition CPanelLogicsEditor.hpp:37
Definition CPanelLogicsSearchTagsAndLabels.hpp:14
void findNextIndex()
Definition CPanelLogicsSearchTagsAndLabels.cpp:206
AbstractComponentGUI * buildPanel()
Definition CPanelLogicsSearchTagsAndLabels.cpp:117
void findAll()
Definition CPanelLogicsSearchTagsAndLabels.cpp:170
bool prvAddMatchToSearchResult(const std::string &strItemText, AbstractCanvasItem::TId itemId)
Definition CPanelLogicsSearchTagsAndLabels.cpp:321
void findCurrentIndex()
Definition CPanelLogicsSearchTagsAndLabels.cpp:186
CSearchSet::SSearchData m_searchDataCurrent
Definition CPanelLogicsSearchTagsAndLabels.hpp:58
std::vector< SPrvSearchResultElement > m_searchResult
Definition CPanelLogicsSearchTagsAndLabels.hpp:60
CPanelLogicsSearchTagsAndLabels(CPanelLogicsSearchTagsAndLabels &&other)=delete
CPanelLogicsSearchTagsAndLabels & operator=(CPanelLogicsSearchTagsAndLabels &&other)=delete
void prvClearCurrentIndexItem()
Definition CPanelLogicsSearchTagsAndLabels.cpp:350
void repeatSearch()
Definition CPanelLogicsSearchTagsAndLabels.cpp:246
void prvClearFoundItems()
Definition CPanelLogicsSearchTagsAndLabels.cpp:368
bool prvSearchHasResults()
Definition CPanelLogicsSearchTagsAndLabels.cpp:414
bool prvHasTagsOrLabelsChanged()
Definition CPanelLogicsSearchTagsAndLabels.cpp:391
CPanelLogicsSearchTagsAndLabels(const CPanelLogicsSearchTagsAndLabels &other)=delete
void clearAllFoundItems()
Definition CPanelLogicsSearchTagsAndLabels.cpp:152
void prvClearItem(AbstractCanvasItem::TId itemId)
Definition CPanelLogicsSearchTagsAndLabels.cpp:376
void search()
Definition CPanelLogicsSearchTagsAndLabels.cpp:251
size_t m_searchResultCurrentIndex
Definition CPanelLogicsSearchTagsAndLabels.hpp:61
CPanelLogicsSearchTagsAndLabels(CPanelLogicsEditor *panelLogicsEditor)
Definition CPanelLogicsSearchTagsAndLabels.cpp:104
bool prvHasSearchDataChanged()
Definition CPanelLogicsSearchTagsAndLabels.cpp:386
CSearchSet * m_searchSet
Definition CPanelLogicsSearchTagsAndLabels.hpp:57
bool prvNewSearch()
Definition CPanelLogicsSearchTagsAndLabels.cpp:401
~CPanelLogicsSearchTagsAndLabels() override=default
bool prvIsIndexOutOfSearchResultsBounds(size_t index)
Definition CPanelLogicsSearchTagsAndLabels.cpp:396
void findPreviousIndex()
Definition CPanelLogicsSearchTagsAndLabels.cpp:223
CPanelLogicsEditor * m_panelLogicsEditorRef
Definition CPanelLogicsSearchTagsAndLabels.hpp:55
CPanelLogicsSearchTagsAndLabels & operator=(const CPanelLogicsSearchTagsAndLabels &other)=delete
Definition CSearchSet.hpp:12
Definition IDataPanel.hpp:5
Definition CPanelLogicsSearchTagsAndLabels.hpp:17
SPrvSearchResultElement(SPrvSearchResultElement &&other)=default
SPrvSearchResultElement & operator=(SPrvSearchResultElement &&other)=default
SPrvSearchResultElement(const SPrvSearchResultElement &other)=default
SPrvSearchResultElement & operator=(const SPrvSearchResultElement &other)=default
AbstractCanvasItem::TId m_canvasItemId
Definition CPanelLogicsSearchTagsAndLabels.hpp:25
SPrvSearchResultElement()
Definition CPanelLogicsSearchTagsAndLabels.cpp:99
Definition CSearchSet.hpp:17