ui: Colors in SearchView
Show the right colors in SearchView for the different NodeTypes or QueryNodeTyps Note: add colors to your Applcationsettings like in the template fortune cookie message = recognition will come from unexpected sources
This commit is contained in:
@@ -7,7 +7,17 @@
|
||||
class QueryNode
|
||||
{
|
||||
public:
|
||||
QueryNode();
|
||||
enum QueryNodeType
|
||||
{
|
||||
QUERYNODETYPE_NONE,
|
||||
QUERYNODETYPE_TOKEN,
|
||||
QUERYNODETYPE_COMMAND,
|
||||
QUERYNODETYPE_OPERATOR
|
||||
};
|
||||
|
||||
static std::string queryNodeTypeToString(const QueryNodeType& type);
|
||||
|
||||
QueryNode(QueryNodeType queryNodeType = QUERYNODETYPE_NONE);
|
||||
virtual ~QueryNode();
|
||||
|
||||
virtual bool isCommand() const = 0;
|
||||
@@ -16,6 +26,7 @@ public:
|
||||
|
||||
virtual bool derivedIsComplete() const = 0;
|
||||
|
||||
|
||||
virtual std::string getName() const = 0;
|
||||
|
||||
virtual void print(std::ostream& ostream) const = 0;
|
||||
@@ -27,7 +38,11 @@ public:
|
||||
bool isComplete() const;
|
||||
void setIsComplete(bool isComplete);
|
||||
|
||||
QueryNodeType getQueryNodeType() const;
|
||||
std::string getQueryNodeTypeAsString() const;
|
||||
|
||||
private:
|
||||
QueryNodeType m_nodeType;
|
||||
bool m_isGroup;
|
||||
bool m_isComplete;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user