QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlTextFileViewer Class Reference

A subclass of QtlDialog which displays the content of a text file. More...

Inheritance diagram for QtlTextFileViewer:
QtlDialog

Public Member Functions

 QtlTextFileViewer (QWidget *parent=0, const QString &fileName=QString(), const QString &title=QString(), const QString &icon=QString())
 Constructor. More...
 
void clear ()
 Clear the text content. More...
 
void setText (const QString &text)
 Set a new text to display in the box. More...
 
void setTextFile (const QString &fileName)
 Load a new text file to display in the box. More...
 
QString text () const
 Get the text content of the viewer. More...
 
- Public Member Functions inherited from QtlDialog
 QtlDialog (QWidget *parent=0, Qt::WindowFlags flags=0, QtlGeometrySettingsInterface *geometrySettings=0)
 Constructor. More...
 
QtlGeometrySettingsInterfacegeometrySettings () const
 Get the object where to save and restore the dialog geometry. More...
 
void setGeometrySettings (QtlGeometrySettingsInterface *geometrySettings, bool restoreImmediately=false)
 Set the object where to save and restore the dialog geometry. More...
 

Private Member Functions

 QtlTextFileViewer () Q_DECL_EQ_DELETE
 

Private Attributes

QPlainTextEdit * _text
 Text viewer. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QtlDialog
virtual bool event (QEvent *event) Q_DECL_OVERRIDE
 Process an event. More...
 

Detailed Description

A subclass of QtlDialog which displays the content of a text file.

Constructor & Destructor Documentation

◆ QtlTextFileViewer() [1/2]

QtlTextFileViewer::QtlTextFileViewer ( QWidget *  parent = 0,
const QString &  fileName = QString(),
const QString &  title = QString(),
const QString &  icon = QString() 
)
explicit

Constructor.

Parameters
[in]parentOptional parent widget.
[in]fileNameOptional text file name.
[in]titleOptional dialog window title.
[in]iconOptional icon file name.

◆ QtlTextFileViewer() [2/2]

QtlTextFileViewer::QtlTextFileViewer ( )
private

Member Function Documentation

◆ setTextFile()

void QtlTextFileViewer::setTextFile ( const QString &  fileName)

Load a new text file to display in the box.

Parameters
[in]fileNameText file name.

◆ setText()

void QtlTextFileViewer::setText ( const QString &  text)

Set a new text to display in the box.

Parameters
[in]textText content.

◆ text()

QString QtlTextFileViewer::text ( ) const

Get the text content of the viewer.

Returns
The text content of the viewer.

◆ clear()

void QtlTextFileViewer::clear ( )

Clear the text content.

Member Data Documentation

◆ _text

QPlainTextEdit* QtlTextFileViewer::_text
private

Text viewer.


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