QElectroTech  0.70
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
ElementInfoPartWidget Class Reference

#include <elementinfopartwidget.h>

Signals

void textEdited (const QString &text)
 
void textChanged (const QString &text)
 

Public Member Functions

 ElementInfoPartWidget (QString key, const QString &translated_key, QWidget *parent=nullptr)
 ElementInfoPartWidget::ElementInfoPartWidget Constructor. More...
 
 ~ElementInfoPartWidget () override
 ElementInfoPartWidget::~ElementInfoPartWidget destructor. More...
 
QString key () const
 
void setText (const QString &)
 ElementInfoPartWidget::setText Set text to line edit. More...
 
QString text () const
 ElementInfoPartWidget::text. More...
 
void setPlaceHolderText (const QString &text)
 ElementInfoPartWidget::setPlaceHolderText. More...
 
void setFocusTolineEdit ()
 ElementInfoPartWidget::setFocusTolineEdit Set the focus to the line edit. More...
 
void setEnabled (bool e)
 ElementInfoPartWidget::setEnabled enable the line edit. More...
 
void setDisabled (bool d)
 ElementInfoPartWidget::setDisabled disable the line edit. More...
 
void setEraseTextVisible (bool visible)
 ElementInfoPartWidget::setEraseTextVisible. More...
 
void setEraseTextChecked (bool check)
 ElementInfoPartWidget::setEraseTextChecked. More...
 
Qt::CheckState EraseTextCheckState () const
 ElementInfoPartWidget::EraseTextCheckState. More...
 

Private Slots

void on_m_erase_text_clicked ()
 

Private Attributes

Ui::ElementInfoPartWidget * ui
 
QString key_
 
bool m_show_erase = false
 

Detailed Description

Definition at line 27 of file elementinfopartwidget.h.

Constructor & Destructor Documentation

◆ ElementInfoPartWidget()

ElementInfoPartWidget::ElementInfoPartWidget ( QString  key,
const QString &  translated_key,
QWidget *  parent = nullptr 
)
explicit

ElementInfoPartWidget::ElementInfoPartWidget Constructor.

Parameters
keythe string key what represent this info part
translated_keythe string key translated
parentparent widget

Definition at line 33 of file elementinfopartwidget.cpp.

References textChanged(), textEdited(), and ui.

◆ ~ElementInfoPartWidget()

ElementInfoPartWidget::~ElementInfoPartWidget ( )
override

ElementInfoPartWidget::~ElementInfoPartWidget destructor.

Definition at line 50 of file elementinfopartwidget.cpp.

References ui.

Member Function Documentation

◆ EraseTextCheckState()

Qt::CheckState ElementInfoPartWidget::EraseTextCheckState ( ) const

ElementInfoPartWidget::EraseTextCheckState.

Returns

Definition at line 132 of file elementinfopartwidget.cpp.

References ui.

◆ key()

QString ElementInfoPartWidget::key ( ) const
inline

Definition at line 36 of file elementinfopartwidget.h.

References key_.

Referenced by ElementInfoWidget::infoPartWidgetForKey().

◆ on_m_erase_text_clicked

void ElementInfoPartWidget::on_m_erase_text_clicked ( )
privateslot

Definition at line 136 of file elementinfopartwidget.cpp.

References SearchAndReplaceWorker::eraseText(), and ui.

◆ setDisabled()

void ElementInfoPartWidget::setDisabled ( bool  d)

ElementInfoPartWidget::setDisabled disable the line edit.

Parameters
d

Definition at line 107 of file elementinfopartwidget.cpp.

References ui.

Referenced by ElementInfoWidget::setElement().

◆ setEnabled()

void ElementInfoPartWidget::setEnabled ( bool  e)

ElementInfoPartWidget::setEnabled enable the line edit.

Parameters
e

Definition at line 98 of file elementinfopartwidget.cpp.

References ui.

Referenced by ElementInfoWidget::setElement().

◆ setEraseTextChecked()

void ElementInfoPartWidget::setEraseTextChecked ( bool  check)

ElementInfoPartWidget::setEraseTextChecked.

Parameters
check

Definition at line 124 of file elementinfopartwidget.cpp.

References ui.

◆ setEraseTextVisible()

void ElementInfoPartWidget::setEraseTextVisible ( bool  visible)

ElementInfoPartWidget::setEraseTextVisible.

Parameters
visible

Definition at line 115 of file elementinfopartwidget.cpp.

References m_show_erase, and ui.

Referenced by ReplaceElementDialog::buildWidget().

◆ setFocusTolineEdit()

void ElementInfoPartWidget::setFocusTolineEdit ( )

ElementInfoPartWidget::setFocusTolineEdit Set the focus to the line edit.

Definition at line 89 of file elementinfopartwidget.cpp.

References ui.

◆ setPlaceHolderText()

void ElementInfoPartWidget::setPlaceHolderText ( const QString &  text)

ElementInfoPartWidget::setPlaceHolderText.

Parameters
text

Definition at line 81 of file elementinfopartwidget.cpp.

References text(), and ui.

Referenced by ReplaceElementDialog::buildWidget().

◆ setText()

void ElementInfoPartWidget::setText ( const QString &  txt)

ElementInfoPartWidget::setText Set text to line edit.

Parameters
txt

Definition at line 60 of file elementinfopartwidget.cpp.

References m_show_erase, SearchAndReplaceWorker::setupLineEdit(), and ui.

◆ text()

QString ElementInfoPartWidget::text ( ) const

ElementInfoPartWidget::text.

Returns
the text in the line edit

Definition at line 73 of file elementinfopartwidget.cpp.

References ui.

Referenced by ElementInfoWidget::setElement(), and setPlaceHolderText().

◆ textChanged

void ElementInfoPartWidget::textChanged ( const QString &  text)
signal

◆ textEdited

void ElementInfoPartWidget::textEdited ( const QString &  text)
signal

Referenced by ElementInfoPartWidget().

Member Data Documentation

◆ key_

QString ElementInfoPartWidget::key_
private

Definition at line 57 of file elementinfopartwidget.h.

Referenced by key().

◆ m_show_erase

bool ElementInfoPartWidget::m_show_erase = false
private

Definition at line 58 of file elementinfopartwidget.h.

Referenced by setEraseTextVisible(), and setText().

◆ ui

Ui::ElementInfoPartWidget* ElementInfoPartWidget::ui
private

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