open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | List of all members
iAFilterSelectionDlg Class Reference

Dialog for selecting a filter from the ones currently registered with the iAFilterRegistry. More...

#include <iAFilterSelectionDlg.h>

Inheritance diagram for iAFilterSelectionDlg:
[legend]
Collaboration diagram for iAFilterSelectionDlg:
[legend]

Public Slots

void filterChanged (QString const &)
 Called when the user has changed the content of the input field on top of the dialog.
 
void listSelectionChanged (QListWidgetItem *, QListWidgetItem *)
 Called when the user selects a filter from the list.
 

Public Member Functions

 iAFilterSelectionDlg (QWidget *parent, QString const &preselectedFilter="")
 Create a new filter selection dialog.
 
 ~iAFilterSelectionDlg ()
 
QString selectedFilterName () const
 Retrieve the name of the filter that the user has selected.
 

Detailed Description

Dialog for selecting a filter from the ones currently registered with the iAFilterRegistry.

Constructor & Destructor Documentation

◆ iAFilterSelectionDlg()

iAFilterSelectionDlg::iAFilterSelectionDlg ( QWidget *  parent,
QString const &  preselectedFilter = "" 
)

Create a new filter selection dialog.

Parameters
parentthe parent widget of the dialog (dialog will be a top level window if you pass nullptr)
preselectedFilterthe name of a filter that should be preselected in the dialog

◆ ~iAFilterSelectionDlg()

iAFilterSelectionDlg::~iAFilterSelectionDlg ( )
default

Member Function Documentation

◆ filterChanged

void iAFilterSelectionDlg::filterChanged ( QString const &  filter)
slot

Called when the user has changed the content of the input field on top of the dialog.

Causes the list of filters to be updated to only show the ones where at least a part of the name matches what the user has entered.

◆ listSelectionChanged

void iAFilterSelectionDlg::listSelectionChanged ( QListWidgetItem *  ,
QListWidgetItem *   
)
slot

Called when the user selects a filter from the list.

◆ selectedFilterName()

QString iAFilterSelectionDlg::selectedFilterName ( ) const

Retrieve the name of the filter that the user has selected.

Returns
a filter name as it can be passed to iAFilterRegistry::filter() for creating an instance of the filter.

The documentation for this class was generated from the following files: