Class sh::search::SearchCriterionFactory¶
-
class
sh::search
::
SearchCriterionFactory
: public std::enable_shared_from_this<SearchCriterionFactory>¶ Abstract base class for a search criterion factory, which constructs some sh::search::SearchCriterion instances.
It also provides some control methods and metadata (which is possible since there is a separate factory for each criterion class).
Note: Though possible in some exotic situations, one should not override this class. Override and register sh::search::SearchCriterion instead!
Subclassed by sh::scripting::api::ApiSearchCriterionFactory, sh::search::SearchCriterionFactoryFromFunction
Public Functions
-
SearchCriterionFactory
()¶
-
QString
key
() = 0¶ Returns the string key for the associated search criterion class. .
-
QString
description
() = 0¶ Returns the description string for the associated search criterion class. .
Builds the search config ui in a search panel.
Takes the data from
c
and populatespanelcfg
with it.
Updates own data with the content from the search config ui in a search panel.
Takes the data from
panelcfg
and updatesc
with it.
-
std::shared_ptr<sh::search::SearchCriterion>
construct
() = 0¶ Constructs an instance of the associated search criterion class. .
Checks if the associated search criterion class should be offered to the user for a given node. .
-
~SearchCriterionFactory
()¶
-