AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | List of all members

A widget for displaying a list of audio files. More...

#include <FileListWidget.h>

Inheritance diagram for FileListWidget:
Inheritance graph
[legend]
Collaboration diagram for FileListWidget:
Collaboration graph
[legend]

Public Slots

void populateList (QList< AudioSample > files)
 Populate the file list with the given list of AudioSample files.
 
void clearList ()
 Clear the file list.
 
QString getSelectedFilePath ()
 Get the file path of the selected file.
 
bool eventFilter (QObject *obj, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 

Signals

void didSelectAudioFile (QString)
 Signal emitted when an audio file is selected.
 
void didPushImportFileButton ()
 Signal emitted when the "Import file" button is clicked.
 
void didPushClearFileButton ()
 Signal emitted when the "Clear files" button is clicked.
 

Public Member Functions

 FileListWidget (QWidget *parent=nullptr)
 Construct a new FileListWidget.
 
 ~FileListWidget ()
 Destroy the FileListWidget.
 
QWidget * createWidget ()
 Creates the widget for the FileListWidget.
 

Detailed Description

A widget for displaying a list of audio files.

FileListWidget provides a scrollable area for displaying a list of audio files, and emits signals when a file is selected, or when the user interacts with the "Import file" or "Clear files" buttons.

Constructor & Destructor Documentation

◆ FileListWidget()

FileListWidget::FileListWidget ( QWidget *  parent = nullptr)
explicit

Construct a new FileListWidget.

Parameters
parentThe parent widget

Member Function Documentation

◆ createWidget()

QWidget * FileListWidget::createWidget ( )

Creates the widget for the FileListWidget.

Returns
A pointer to the created widget.

◆ didSelectAudioFile

void FileListWidget::didSelectAudioFile ( QString  _t1)
signal

Signal emitted when an audio file is selected.

Parameters
filePathThe file path of the selected audio file.

◆ eventFilter

bool FileListWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
slot

Filters events if this object has been installed as an event filter for the watched object.

Parameters
objThe object being watched.
eventThe event to be filtered.
Returns
true if the event should be filtered out (i.e., stopped); otherwise false.

◆ getSelectedFilePath

QString FileListWidget::getSelectedFilePath ( )
slot

Get the file path of the selected file.

Returns
The file path of the selected file.

◆ populateList

void FileListWidget::populateList ( QList< AudioSample files)
slot

Populate the file list with the given list of AudioSample files.

Parameters
filesThe list of AudioSample files.

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