![]() |
Code Documentation 3.6
Social Network Visualizer
|
Visual query builder that composes a multi-condition AND filter. More...
#include <forms/dialogquerybuilder.h>


Classes | |
| struct | ConditionRow |
Signals | |
| void | userChoices (const GraphQuery &query) |
Public Member Functions | |
| DialogQueryBuilder (const QStringList &nodeKeys, const QStringList &edgeKeys, QWidget *parent=nullptr) | |
Private Slots | |
| void | onScopeChanged () |
| void | onAddRow () |
| void | onApply () |
Private Member Functions | |
| void | addRow () |
| void | removeRow (QWidget *rowWidget) |
| void | repopulateKeys () |
| void | updateRemoveButtons () |
| FilterCondition::Scope | currentScope () const |
Private Attributes | |
| QStringList | m_nodeKeys |
| QStringList | m_edgeKeys |
| QRadioButton * | m_nodesRadio |
| QRadioButton * | m_edgesRadio |
| QVBoxLayout * | m_rowsLayout |
| QWidget * | m_rowsContainer |
| QScrollArea * | m_scrollArea |
| QPushButton * | m_addRowBtn |
| QDialogButtonBox * | m_buttonBox |
| QList< ConditionRow > | m_rows |
Visual query builder that composes a multi-condition AND filter.
The user picks a scope (Nodes or Edges), then adds one or more condition rows (key / operator / value). Clicking Apply emits userChoices(GraphQuery) with all conditions carrying the chosen scope. The caller applies the filter and adds a single chip to the bar.
Implemented in pure C++ (no .ui file) so condition rows can be added and removed dynamically without UIC constraints.
|
explicit |
|
private |
|
private |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |