Extcap argument representing a text input field.
More...
#include <extcap_argument.h>
|
|
virtual void | setDefaultValue () |
| | Sets the text field to its default value.
|
| |
| 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.
|
| |
|
| | ExtArgText (extcap_arg *argument, QObject *parent=Q_NULLPTR) |
| | Constructs an ExtArgText.
|
| |
| virtual QWidget * | createEditor (QWidget *parent) |
| | Creates the text editor widget.
|
| |
| virtual QString | value () |
| | Retrieves the current text value.
|
| |
| virtual bool | isValid () |
| | Checks if the current text value is valid.
|
| |
| virtual bool | isSetDefaultValueSupported () |
| | Checks if setting a default text value is supported.
|
| |
| | ExtcapArgument (QObject *parent=Q_NULLPTR) |
| | Constructs an empty ExtcapArgument.
|
| |
| | ExtcapArgument (extcap_arg *argument, QObject *parent=Q_NULLPTR) |
| | Constructs an ExtcapArgument from a core extcap_arg structure.
|
| |
| | ExtcapArgument (const ExtcapArgument &obj) |
| | Copy constructor for ExtcapArgument.
|
| |
|
virtual | ~ExtcapArgument () |
| | Destroys the ExtcapArgument.
|
| |
| virtual QWidget * | createLabel (QWidget *parent=0) |
| | Creates a label widget for this argument.
|
| |
| virtual extcap_arg * | argument () |
| | Retrieves the underlying extcap_arg structure.
|
| |
| virtual QString | call () |
| | Retrieves the call string for this argument.
|
| |
| virtual QString | defaultValue () |
| | Retrieves the default value of the argument.
|
| |
| bool | isDefault () |
| | Checks if the argument currently holds its default value.
|
| |
| bool | isRequired () |
| | Checks if the argument is required.
|
| |
| bool | isSufficient () |
| | Checks if the argument provides sufficient information on its own.
|
| |
| bool | reload () |
| | Reloads the argument data.
|
| |
| QString | prefKey (const QString &device_name, const QString &option_name, const QString &option_value) |
| | Generates a preference key for this argument.
|
| |
| virtual QString | prefValue () |
| | Retrieves the preference value for this argument.
|
| |
|
void | resetValue () |
| | Resets the argument to its initial value.
|
| |
| virtual QString | group () const |
| | Retrieves the group name this argument belongs to.
|
| |
| virtual int | argNr () const |
| | Retrieves the argument number.
|
| |
|
|
void | valueChanged () |
| | Signal emitted when the argument's value changes.
|
| |
| static ExtcapArgument * | create (extcap_arg *argument=Q_NULLPTR, QObject *parent=Q_NULLPTR) |
| | Factory method to create an appropriate ExtcapArgument subclass.
|
| |
| 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.
|
| |
Extcap argument representing a text input field.
◆ ExtArgText()
| ExtArgText::ExtArgText |
( |
extcap_arg * |
argument, |
|
|
QObject * |
parent = Q_NULLPTR |
|
) |
| |
Constructs an ExtArgText.
- Parameters
-
| argument | Pointer to the core extcap_arg. |
| parent | The parent QObject. |
◆ createEditor()
| QWidget * ExtArgText::createEditor |
( |
QWidget * |
parent | ) |
|
|
virtual |
Creates the text editor widget.
- Parameters
-
| parent | The parent widget for the editor. |
- Returns
- A pointer to the created line edit widget.
Reimplemented from ExtcapArgument.
Reimplemented in ExtArgNumber.
◆ isSetDefaultValueSupported()
| bool ExtArgText::isSetDefaultValueSupported |
( |
| ) |
|
|
virtual |
Checks if setting a default text value is supported.
- Returns
- True if supported, false otherwise.
Reimplemented from ExtcapArgument.
◆ isValid()
| bool ExtArgText::isValid |
( |
| ) |
|
|
virtual |
Checks if the current text value is valid.
- Returns
- True if valid, false otherwise.
Reimplemented from ExtcapArgument.
◆ value()
| QString ExtArgText::value |
( |
| ) |
|
|
virtual |
Retrieves the current text value.
- Returns
- The text string.
Reimplemented from ExtcapArgument.
◆ textBox
| QLineEdit* ExtArgText::textBox |
|
protected |
The line edit widget used for text input.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/extcap_argument.h
- /builds/wireshark/wireshark/ui/qt/extcap_argument.cpp