Represents an extcap argument displayed as an editable table.
More...
#include <extcap_argument_multiselect.h>
|
|
virtual void | setDefaultValue () |
| | Sets the table to its default state.
|
| |
|
virtual void | setDefaultValue () |
| | Sets the selector to its default values.
|
| |
| virtual void | setDefaultValue () |
| | Slot to set the argument to its default value.
|
| |
| void | onBoolChanged (bool val) |
| | Slot to handle boolean value changes.
|
| |
| void | onIntChanged (int val) |
| | Slot to handle integer value changes.
|
| |
| void | onStringChanged (QString val) |
| | Slot to handle string value changes.
|
| |
|
| virtual QWidget * | createEditor (QWidget *parent) |
| | Creates the editor widget for the table argument.
|
| |
|
void | addKnown () |
| | Adds a known entry to the table.
|
| |
|
void | addCustom () |
| | Opens a dialog to add a custom entry to the table.
|
| |
|
void | removeSelected () |
| | Removes the currently selected entries from the table.
|
| |
| void | addChecked (QStringList checked, QStringList options) |
| | Adds a list of checked items to the table.
|
| |
| virtual void | showExtcapOptionsDialogForOptionValue (QStandardItem *item, QString &option_value) |
| | Displays the extcap options dialog for a specific item.
|
| |
| virtual void | extcap_options_finished (QStandardItem *item) |
| | Handles the completion of the extcap options dialog.
|
| |
| virtual QList< QStandardItem * > | valueWalker (ExtcapValueList list, QStringList &defaults) |
| | Traverses the value list to create standard items.
|
| |
| void | checkItemsWalker (QStandardItem *item, QStringList defaults) |
| | Traverses and checks items recursively based on default values.
|
| |
| virtual QStringList | checkedValues () |
| | Retrieves a list of all currently checked values.
|
| |
| bool | fileExists () |
| | Checks if a file path specified by the argument exists.
|
| |
| ExtcapValueList | loadValues (QString parent) |
| | Loads the available values for this argument.
|
| |
| bool | reloadValues () |
| | Reloads the values list.
|
| |
Represents an extcap argument displayed as an editable table.
◆ ExtArgTable()
| ExtArgTable::ExtArgTable |
( |
extcap_arg * |
argument, |
|
|
QObject * |
parent = Q_NULLPTR |
|
) |
| |
Constructs an ExtArgTable.
- Parameters
-
| argument | Pointer to the core extcap_arg. |
| parent | The parent QObject, defaults to Q_NULLPTR. |
◆ addChecked()
| void ExtArgTable::addChecked |
( |
QStringList |
checked, |
|
|
QStringList |
options |
|
) |
| |
|
protected |
Adds a list of checked items to the table.
- Parameters
-
| checked | The list of checked strings. |
| options | The corresponding list of options. |
◆ createEditor()
| QWidget * ExtArgTable::createEditor |
( |
QWidget * |
parent | ) |
|
|
protectedvirtual |
Creates the editor widget for the table argument.
- Parameters
-
- Returns
- A pointer to the created table widget.
Reimplemented from ExtArgMultiSelect.
◆ extcap_options_finished()
| void ExtArgTable::extcap_options_finished |
( |
QStandardItem * |
item | ) |
|
|
protectedvirtual |
Handles the completion of the extcap options dialog.
- Parameters
-
| item | The standard item that was edited. |
◆ showExtcapOptionsDialogForOptionValue()
| void ExtArgTable::showExtcapOptionsDialogForOptionValue |
( |
QStandardItem * |
item, |
|
|
QString & |
option_value |
|
) |
| |
|
protectedvirtual |
Displays the extcap options dialog for a specific item.
- Parameters
-
| item | The standard item to edit. |
| option_value | The current option value. |
◆ value()
| QString ExtArgTable::value |
( |
| ) |
|
|
virtual |
Retrieves the serialized string representing the table's values.
- Returns
- The serialized values string.
Reimplemented from ExtArgMultiSelect.
The documentation for this class was generated from the following files: