QElectroTech
0.70
|
The NameListWidget class Provide a widget for let user define localized string;. More...
#include <namelistwidget.h>
Public Member Functions | |
NameListWidget (QWidget *parent=nullptr) | |
~NameListWidget () | |
void | addLine () |
NameListWidget::addLine Add a new line to the name list widget. More... | |
void | setNames (const NamesList &name_list) |
NameListWidget::setNames Set the current names of this dialog from . More... | |
NamesList | names () const |
NameListWidget::names. More... | |
void | setReadOnly (bool ro) |
NameListWidget::setReadOnly Set this dialog to read only or not. More... | |
bool | isEmpty () const |
NameListWidget::isEmpty. More... | |
void | setClipboardValue (QHash< QString, QString > value) |
Private Slots | |
void | on_m_clipboard_cb_activated (int index) |
Private Member Functions | |
void | clean () |
NameListWidget::clean Clean the lists of names by removing the emtpy lines. More... | |
Private Attributes | |
Ui::NameListWidget * | ui |
bool | m_read_only = false |
The NameListWidget class Provide a widget for let user define localized string;.
Definition at line 32 of file namelistwidget.h.
|
explicit |
Definition at line 24 of file namelistwidget.cpp.
NameListWidget::~NameListWidget | ( | ) |
Definition at line 33 of file namelistwidget.cpp.
References ui.
void NameListWidget::addLine | ( | ) |
NameListWidget::addLine Add a new line to the name list widget.
Definition at line 42 of file namelistwidget.cpp.
References clean(), m_read_only, and ui.
Referenced by NameListWidget().
|
private |
NameListWidget::clean Clean the lists of names by removing the emtpy lines.
Definition at line 148 of file namelistwidget.cpp.
References ui.
Referenced by addLine().
bool NameListWidget::isEmpty | ( | ) | const |
Definition at line 123 of file namelistwidget.cpp.
References NamesList::isEmpty(), and names().
Referenced by ElementsCategoryEditor::acceptCreation(), ElementsCategoryEditor::acceptUpdate(), ElementScene::slot_editNames(), and NewElementWizard::validateCurrentPage().
NamesList NameListWidget::names | ( | ) | const |
Definition at line 80 of file namelistwidget.cpp.
References NamesList::addName(), and ui.
Referenced by ElementsCategoryEditor::acceptCreation(), ElementsCategoryEditor::acceptUpdate(), TitleBlockTemplateCellWidget::editTranslatableValue(), isEmpty(), and ElementScene::slot_editNames().
|
privateslot |
Definition at line 161 of file namelistwidget.cpp.
References ui.
void NameListWidget::setClipboardValue | ( | QHash< QString, QString > | value | ) |
Definition at line 127 of file namelistwidget.cpp.
References ui.
Referenced by TitleBlockTemplateCellWidget::editTranslatableValue().
void NameListWidget::setNames | ( | const NamesList & | name_list | ) |
NameListWidget::setNames Set the current names of this dialog from .
name_list |
Definition at line 60 of file namelistwidget.cpp.
References NamesList::langs(), m_read_only, and ui.
Referenced by TitleBlockTemplateCellWidget::editTranslatableValue(), and ElementScene::slot_editNames().
void NameListWidget::setReadOnly | ( | bool | ro | ) |
NameListWidget::setReadOnly Set this dialog to read only or not.
ro |
Definition at line 102 of file namelistwidget.cpp.
References m_read_only, QET::Icons::ro, and ui.
Referenced by ElementScene::slot_editNames().
|
private |
Definition at line 55 of file namelistwidget.h.
Referenced by addLine(), setNames(), and setReadOnly().
|
private |
Definition at line 54 of file namelistwidget.h.
Referenced by addLine(), clean(), NameListWidget(), names(), on_m_clipboard_cb_activated(), setClipboardValue(), setNames(), setReadOnly(), and ~NameListWidget().