# eric7.EricWidgets.EricStringListEditWidget

Module implementing a dialog to edit a list of strings.

### Global Attributes

None

### Classes

EricStringListEditWidget | Class implementing a dialog to edit a list of strings.

### Functions

None

## EricStringListEditWidget

Class implementing a dialog to edit a list of strings.

### Signals

setToDefault()
  emitted to request the default list of values

### Derived from

QWidget, Ui_EricStringListEditWidget

### Class Attributes

None

### Class Methods

None

### Methods

EricStringListEditWidget | Constructor
count | Public method to get the number of entries of the list.
getList | Public method to get the edited list of strings.
isListEmpty | Public method to check, if the list is empty.
on_addButton_clicked | Private slot to add an entry to the list.
on_resetButton_clicked | Private slot to reset the list to its initial value.
setAddVisible | Public method to show or hide the add button.
setDefaultVisible | Public method to show or hide the default button.
setList | Public method to set the list of strings to be edited.
setListWhatsThis | Public method to set a what's that help text for the string list.
setResetVisible | Public method to show or hide the reset button.

### Static Methods

None

#### EricStringListEditWidget (Constructor)

EricStringListEditWidget(parent=None)

Constructor

parent (QWidget)
  reference to the parent widget

#### EricStringListEditWidget.count

count()

Public method to get the number of entries of the list.

Return:
  number of list entries

Return Type:
  int

#### EricStringListEditWidget.getList

getList()

Public method to get the edited list of strings.

Return:
  edited list of string

Return Type:
  list of str

#### EricStringListEditWidget.isListEmpty

isListEmpty()

Public method to check, if the list is empty.

Return:
  flag indicating an empty list

Return Type:
  bool

#### EricStringListEditWidget.on_addButton_clicked

on_addButton_clicked()

Private slot to add an entry to the list.

#### EricStringListEditWidget.on_resetButton_clicked

on_resetButton_clicked()

Private slot to reset the list to its initial value.

#### EricStringListEditWidget.setAddVisible

setAddVisible(visible)

Public method to show or hide the add button.

visible (bool)
  flag indicating the visibility of the add button

#### EricStringListEditWidget.setDefaultVisible

setDefaultVisible(visible)

Public method to show or hide the default button.

visible (bool)
  flag indicating the visibility of the default button

#### EricStringListEditWidget.setList

setList(stringList)

Public method to set the list of strings to be edited.

stringList (list of str)
  list of strings to be edited

#### EricStringListEditWidget.setListWhatsThis

setListWhatsThis(txt)

Public method to set a what's that help text for the string list.

txt (str)
  help text to be set

#### EricStringListEditWidget.setResetVisible

setResetVisible(visible)

Public method to show or hide the reset button.

visible (bool)
  flag indicating the visibility of the reset button

Up