Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
MessageEditor Class Reference

#include <messageeditor.h>

+ Inheritance diagram for MessageEditor:
+ Collaboration diagram for MessageEditor:

Public Slots

void undo ()
 
void redo ()
 
void cut ()
 
void copy ()
 
void paste ()
 
void selectAll ()
 
void beginFromSource ()
 
void setEditorFocus ()
 
void setTranslation (int latestModel, const QString &translation)
 
void setLengthVariants (bool on)
 
void increaseFontSize ()
 
void decreaseFontSize ()
 
void resetFontSize ()
 

Signals

void translationChanged (const QStringList &translations)
 
void translatorCommentChanged (const QString &comment)
 
void activeModelChanged (int model)
 
void undoAvailable (bool avail)
 
void redoAvailable (bool avail)
 
void cutAvailable (bool avail)
 
void copyAvailable (bool avail)
 
void pasteAvailable (bool avail)
 
void beginFromSourceAvailable (bool enable)
 

Public Member Functions

 MessageEditor (MultiDataModel *dataModel, QMainWindow *parent=0)
 
 ~MessageEditor ()
 
void showNothing ()
 
void showMessage (const MultiDataIndex &index)
 
void setNumerusForms (int model, const QStringList &numerusForms)
 
bool eventFilter (QObject *, QEvent *) override
 
void setNumerusTranslation (int model, const QString &translation, int numerus)
 
int activeModel () const
 
void setEditorFocusForModel (int model)
 
void setUnfinishedEditorFocus ()
 
bool focusNextUnfinished ()
 
void setVisualizeWhitespace (bool value)
 
void setFontSize (const float fontSize)
 
float fontSize ()
 
- Public Member Functions inherited from QScrollArea
 QScrollArea (QWidget *parent=nullptr)
 Constructs an empty scroll area with the given parent.
 
 ~QScrollArea ()
 Destroys the scroll area and its child widget.
 
QWidgetwidget () const
 Returns the scroll area's widget, or \nullptr if there is none.
 
void setWidget (QWidget *widget)
 Sets the scroll area's widget.
 
QWidgettakeWidget ()
 Removes the scroll area's widget, and passes ownership of the widget to the caller.
 
bool widgetResizable () const
 
void setWidgetResizable (bool resizable)
 
QSize sizeHint () const override
 \reimp
 
bool focusNextPrevChild (bool next) override
 \reimp
 
Qt::Alignment alignment () const
 
void setAlignment (Qt::Alignment)
 
void ensureVisible (int x, int y, int xmargin=50, int ymargin=50)
 Scrolls the contents of the scroll area so that the point (x, y) is visible inside the region of the viewport with margins specified in pixels by xmargin and ymargin.
 
void ensureWidgetVisible (QWidget *childWidget, int xmargin=50, int ymargin=50)
 

Additional Inherited Members

- Protected Member Functions inherited from QScrollArea
 QScrollArea (QScrollAreaPrivate &dd, QWidget *parent=nullptr)
 
bool event (QEvent *) override
 \reimp
 
bool eventFilter (QObject *, QEvent *) override
 \reimp
 
void resizeEvent (QResizeEvent *) override
 \reimp
 
void scrollContentsBy (int dx, int dy) override
 \reimp
 
QSize viewportSizeHint () const override
 \reimp
 
- Properties inherited from QScrollArea
bool widgetResizable
 whether the scroll area should resize the view widget
 
Qt::Alignment alignment
 the alignment of the scroll area's widget
 

Detailed Description

Definition at line 36 of file messageeditor.h.

Constructor & Destructor Documentation

◆ MessageEditor()

QT_BEGIN_NAMESPACE MessageEditor::MessageEditor ( MultiDataModel * dataModel,
QMainWindow * parent = 0 )

Definition at line 35 of file messageeditor.cpp.

◆ ~MessageEditor()

MessageEditor::~MessageEditor ( )

Definition at line 85 of file messageeditor.cpp.

Member Function Documentation

◆ activeModel()

int MessageEditor::activeModel ( ) const
inline

Definition at line 49 of file messageeditor.h.

◆ activeModelChanged

void MessageEditor::activeModelChanged ( int model)
signal

◆ beginFromSource

void MessageEditor::beginFromSource ( )
slot

Definition at line 802 of file messageeditor.cpp.

References MultiDataModel::messageItem().

+ Here is the call graph for this function:

◆ beginFromSourceAvailable

void MessageEditor::beginFromSourceAvailable ( bool enable)
signal

◆ copy

void MessageEditor::copy ( )
slot

Definition at line 721 of file messageeditor.cpp.

◆ copyAvailable

void MessageEditor::copyAvailable ( bool avail)
signal

◆ cut

void MessageEditor::cut ( )
slot

Definition at line 716 of file messageeditor.cpp.

◆ cutAvailable

void MessageEditor::cutAvailable ( bool avail)
signal

◆ decreaseFontSize

void MessageEditor::decreaseFontSize ( )
slot

Definition at line 913 of file messageeditor.cpp.

◆ eventFilter()

bool MessageEditor::eventFilter ( QObject * o,
QEvent * e )
override

Definition at line 478 of file messageeditor.cpp.

References FormWidget::getEditor().

+ Here is the call graph for this function:

◆ focusNextUnfinished()

bool MessageEditor::focusNextUnfinished ( )

Definition at line 854 of file messageeditor.cpp.

◆ fontSize()

float MessageEditor::fontSize ( )

Definition at line 882 of file messageeditor.cpp.

◆ increaseFontSize

void MessageEditor::increaseFontSize ( )
slot

Definition at line 904 of file messageeditor.cpp.

◆ paste

void MessageEditor::paste ( )
slot

Definition at line 747 of file messageeditor.cpp.

◆ pasteAvailable

void MessageEditor::pasteAvailable ( bool avail)
signal

◆ redo

void MessageEditor::redo ( )
slot

Definition at line 689 of file messageeditor.cpp.

◆ redoAvailable

void MessageEditor::redoAvailable ( bool avail)
signal

◆ resetFontSize

void MessageEditor::resetFontSize ( )
slot

Definition at line 921 of file messageeditor.cpp.

◆ selectAll

void MessageEditor::selectAll ( )
slot

Definition at line 767 of file messageeditor.cpp.

References FormWidget::getEditor().

+ Here is the call graph for this function:

◆ setEditorFocus

void MessageEditor::setEditorFocus ( )
slot

Definition at line 810 of file messageeditor.cpp.

◆ setEditorFocusForModel()

void MessageEditor::setEditorFocusForModel ( int model)

Definition at line 817 of file messageeditor.cpp.

Referenced by FocusWatcher::eventFilter().

+ Here is the caller graph for this function:

◆ setFontSize()

void MessageEditor::setFontSize ( const float fontSize)

Definition at line 874 of file messageeditor.cpp.

◆ setLengthVariants

void MessageEditor::setLengthVariants ( bool on)
slot

Definition at line 676 of file messageeditor.cpp.

◆ setNumerusForms()

void MessageEditor::setNumerusForms ( int model,
const QStringList & numerusForms )

◆ setNumerusTranslation()

void MessageEditor::setNumerusTranslation ( int model,
const QString & translation,
int numerus )

Definition at line 637 of file messageeditor.cpp.

References FormMultiWidget::setTranslation().

+ Here is the call graph for this function:

◆ setTranslation

void MessageEditor::setTranslation ( int latestModel,
const QString & translation )
slot

Definition at line 648 of file messageeditor.cpp.

References FormMultiWidget::setTranslation().

+ Here is the call graph for this function:

◆ setUnfinishedEditorFocus()

void MessageEditor::setUnfinishedEditorFocus ( )

Definition at line 849 of file messageeditor.cpp.

◆ setVisualizeWhitespace()

void MessageEditor::setVisualizeWhitespace ( bool value)

Definition at line 859 of file messageeditor.cpp.

References FormWidget::getEditor(), and FormatTextEdit::setVisualizeWhitespace().

+ Here is the call graph for this function:

◆ showMessage()

void MessageEditor::showMessage ( const MultiDataIndex & index)

Definition at line 563 of file messageeditor.cpp.

References MultiDataModel::isModelWritable(), MessageItem::message(), MultiDataModel::messageItem(), TranslatorMessage::Obsolete, MessageEditorData::pluralEditMode, FormWidget::setTranslation(), MessageEditorData::transCommentText, TranslatorMessage::type(), and TranslatorMessage::Vanished.

+ Here is the call graph for this function:

◆ showNothing()

void MessageEditor::showNothing ( )

Definition at line 545 of file messageeditor.cpp.

References FormWidget::clearTranslation().

+ Here is the call graph for this function:

◆ translationChanged

void MessageEditor::translationChanged ( const QStringList & translations)
signal

◆ translatorCommentChanged

void MessageEditor::translatorCommentChanged ( const QString & comment)
signal

◆ undo

void MessageEditor::undo ( )
slot

Definition at line 684 of file messageeditor.cpp.

◆ undoAvailable

void MessageEditor::undoAvailable ( bool avail)
signal

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