digiKam
Digikam::AltLangStrEdit Class Reference
+ Inheritance diagram for Digikam::AltLangStrEdit:

Signals

void signalModified (const QString &lang, const QString &text)
 Emitted when the user changes the text for the current language. More...
 
void signalSelectionChanged (const QString &lang)
 Emitted when the current language changed. More...
 
void signalValueAdded (const QString &lang, const QString &text)
 Emitted when an entry for a new language is added. More...
 
void signalValueDeleted (const QString &lang)
 Emitted when the entry for a language is removed. More...
 

Public Member Functions

void addCurrent ()
 
 AltLangStrEdit (QWidget *const parent)
 
bool asDefaultAltLang () const
 
QString currentLanguageCode () const
 
QString defaultAltLang () const
 
QString languageCode (int index) const
 
uint linesVisible () const
 
void reset ()
 
void setCurrentLanguageCode (const QString &lang)
 
void setLinesVisible (uint lines)
 
void setPlaceholderText (const QString &msg)
 
void setTitle (const QString &title)
 
void setValues (const MetaEngine::AltLangMap &values)
 
QTextEdit * textEdit () const
 
MetaEngine::AltLangMapvalues () const
 
 ~AltLangStrEdit () override
 

Protected Slots

void slotDeleteValue ()
 
void slotSelectionChanged ()
 
void slotTextChanged ()
 

Protected Member Functions

void changeEvent (QEvent *e) override
 
void loadLangAltListEntries ()
 

Friends

class Private
 

Constructor & Destructor Documentation

◆ AltLangStrEdit()

Digikam::AltLangStrEdit::AltLangStrEdit ( QWidget *const  parent)
explicit

◆ ~AltLangStrEdit()

Digikam::AltLangStrEdit::~AltLangStrEdit ( )
override

Member Function Documentation

◆ addCurrent()

void Digikam::AltLangStrEdit::addCurrent ( )

Ensure that the current language is added to the list of entries, even if the text is empty. signalValueAdded() will be emitted.

References loadLangAltListEntries(), and signalValueAdded().

Referenced by slotTextChanged().

◆ asDefaultAltLang()

bool Digikam::AltLangStrEdit::asDefaultAltLang ( ) const

References defaultAltLang().

◆ changeEvent()

void Digikam::AltLangStrEdit::changeEvent ( QEvent *  e)
overrideprotected

◆ currentLanguageCode()

QString Digikam::AltLangStrEdit::currentLanguageCode ( ) const

◆ defaultAltLang()

QString Digikam::AltLangStrEdit::defaultAltLang ( ) const

Referenced by asDefaultAltLang().

◆ languageCode()

QString Digikam::AltLangStrEdit::languageCode ( int  index) const

◆ linesVisible()

uint Digikam::AltLangStrEdit::linesVisible ( ) const

Referenced by changeEvent().

◆ loadLangAltListEntries()

void Digikam::AltLangStrEdit::loadLangAltListEntries ( )
protected

◆ reset()

void Digikam::AltLangStrEdit::reset ( )

Reset widget, clear all entries

References setValues().

◆ setCurrentLanguageCode()

void Digikam::AltLangStrEdit::setCurrentLanguageCode ( const QString &  lang)

◆ setLinesVisible()

void Digikam::AltLangStrEdit::setLinesVisible ( uint  lines)

Fix lines visibile in text editor to lines. If zero, do not fix layout to number of lines visible.

Referenced by changeEvent().

◆ setPlaceholderText()

void Digikam::AltLangStrEdit::setPlaceholderText ( const QString &  msg)

◆ setTitle()

void Digikam::AltLangStrEdit::setTitle ( const QString &  title)

◆ setValues()

void Digikam::AltLangStrEdit::setValues ( const MetaEngine::AltLangMap values)

References loadLangAltListEntries(), and values().

Referenced by reset(), and slotDeleteValue().

◆ signalModified

void Digikam::AltLangStrEdit::signalModified ( const QString &  lang,
const QString &  text 
)
signal

Emitted when the user changes the text for the current language.

Referenced by slotTextChanged().

◆ signalSelectionChanged

void Digikam::AltLangStrEdit::signalSelectionChanged ( const QString &  lang)
signal

Emitted when the current language changed.

Referenced by slotSelectionChanged().

◆ signalValueAdded

void Digikam::AltLangStrEdit::signalValueAdded ( const QString &  lang,
const QString &  text 
)
signal

Emitted when an entry for a new language is added.

Referenced by addCurrent().

◆ signalValueDeleted

void Digikam::AltLangStrEdit::signalValueDeleted ( const QString &  lang)
signal

Emitted when the entry for a language is removed.

Referenced by slotDeleteValue().

◆ slotDeleteValue

void Digikam::AltLangStrEdit::slotDeleteValue ( )
protectedslot

◆ slotSelectionChanged

void Digikam::AltLangStrEdit::slotSelectionChanged ( )
protectedslot

References signalSelectionChanged().

Referenced by AltLangStrEdit().

◆ slotTextChanged

void Digikam::AltLangStrEdit::slotTextChanged ( )
protectedslot

◆ textEdit()

QTextEdit * Digikam::AltLangStrEdit::textEdit ( ) const

◆ values()

MetaEngine::AltLangMap & Digikam::AltLangStrEdit::values ( ) const

Referenced by setValues().

Friends And Related Function Documentation

◆ Private

friend class Private
friend

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