|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <ColumnFilterPopup.hpp>


Signals | |
| void | Applied (const QSet< QString > &allowed) |
| void | AppliedExcluding (const QSet< QString > &excluded) |
| void | Cleared () |
Public Member Functions | |
| ColumnFilterPopup (const QString &columnTitle, const ColumnDistinctValues &distinct, const std::optional< QSet< QString > > &allowed, QWidget *parent=nullptr) | |
| QSet< QString > | CheckedValues () const |
| Raw values of every checked entry (including ones hidden by the search). | |
| QSet< QString > | UncheckedValues () const |
| Raw values of every listed entry that is not checked. | |
Private Member Functions | |
| void | OnSearchChanged (const QString &text) |
| void | OnSelectAllToggled () |
| void | OnItemChanged (QListWidgetItem *item) |
| void | UpdateSelectAllState () |
| void | Accept () |
Private Attributes | |
| QLineEdit * | m_search {nullptr} |
| QCheckBox * | m_selectAll {nullptr} |
| QListWidget * | m_list {nullptr} |
| bool | m_updating {false} |
| bool | m_truncated {false} |
Excel-style value filter for one table column: a search box, a "Select all" check box and one check box per distinct value.
Emits Applied(checked) on OK (even with every value checked: only the receiver knows whether the old filter restricts values the list could not show), or Cleared() when "Clear filter" is pressed. When the value list was truncated, OK emits AppliedExcluding(unchecked) instead: the values that could not be listed must stay visible.
| ui::qt::ColumnFilterPopup::ColumnFilterPopup | ( | const QString & | columnTitle, |
| const ColumnDistinctValues & | distinct, | ||
| const std::optional< QSet< QString > > & | allowed, | ||
| QWidget * | parent = nullptr |
||
| ) |
| allowed | currently allowed values; std::nullopt = no filter yet (every value starts checked). |

|
private |


|
signal |

|
signal |

| QSet< QString > ui::qt::ColumnFilterPopup::CheckedValues | ( | ) | const |
Raw values of every checked entry (including ones hidden by the search).

|
signal |

|
private |


|
private |


|
private |


| QSet< QString > ui::qt::ColumnFilterPopup::UncheckedValues | ( | ) | const |
Raw values of every listed entry that is not checked.

|
private |

|
private |
|
private |
|
private |
|
private |
|
private |