QElectroTech  0.8-dev
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
NameListWidget Class Reference

The NameListWidget class Provide a widget for let user define localized string;. More...

#include <namelistwidget.h>

Inherits QWidget.

Collaboration diagram for NameListWidget:
Collaboration graph

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 name_list. 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
 

Detailed Description

The NameListWidget class Provide a widget for let user define localized string;.

Constructor & Destructor Documentation

◆ NameListWidget()

NameListWidget::NameListWidget ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~NameListWidget()

NameListWidget::~NameListWidget ( )

Member Function Documentation

◆ addLine()

void NameListWidget::addLine ( )

NameListWidget::addLine Add a new line to the name list widget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clean()

void NameListWidget::clean ( )
private

NameListWidget::clean Clean the lists of names by removing the emtpy lines.

Here is the caller graph for this function:

◆ isEmpty()

bool NameListWidget::isEmpty ( ) const

NameListWidget::isEmpty.

Returns
true if empty. An empty dialog, is a dialog without any edited lang.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ names()

NamesList NameListWidget::names ( ) const

NameListWidget::names.

Returns
the current name list edited by this dialog
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_clipboard_cb_activated

void NameListWidget::on_m_clipboard_cb_activated ( int  index)
privateslot

◆ setClipboardValue()

void NameListWidget::setClipboardValue ( QHash< QString, QString >  value)
Here is the caller graph for this function:

◆ setNames()

void NameListWidget::setNames ( const NamesList name_list)

NameListWidget::setNames Set the current names of this dialog from name_list.

Parameters
name_list
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setReadOnly()

void NameListWidget::setReadOnly ( bool  ro)

NameListWidget::setReadOnly Set this dialog to read only or not.

Parameters
ro
Here is the caller graph for this function:

Member Data Documentation

◆ m_read_only

bool NameListWidget::m_read_only = false
private

◆ ui

Ui::NameListWidget* NameListWidget::ui
private

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