OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::PlainTextEdit Class Reference

#include "PlainTextEdit.h"

Inheritance diagram for ot::PlainTextEdit:
ot::QWidgetInterface ot::PlainTextEditView ot::TextEditor ot::TextEditorView

Public Slots

void slotTextChanged (void)
 

Public Member Functions

 PlainTextEdit (QWidget *_parent=(QWidget *) nullptr)
 
virtual ~PlainTextEdit ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
void setAutoScrollToBottomEnabled (bool _enabled)
 
bool isAutoScrollToBottomEnabled (void) const
 
void scrollToBottom (void)
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 
void centerOnParent (const QWidget *const _parentWidget)
 Centers this widget on the parent. If no parent is provided the widget will center on the screen.
 
QPoint calculateCenterOnParentPos (const QWidget *const _parentWidget)
 Calculates the top left corner of this widget centered on the parent widget. If no parent is provided the widget will center on the screen.
 

Additional Inherited Members

- Protected Attributes inherited from ot::QWidgetInterface
WidgetFlags m_widgetFlags
 

Constructor & Destructor Documentation

◆ PlainTextEdit()

ot::PlainTextEdit::PlainTextEdit ( QWidget * _parent = (QWidget*)nullptr)

◆ ~PlainTextEdit()

ot::PlainTextEdit::~PlainTextEdit ( )
virtual

Member Function Documentation

◆ getQWidget()

virtual QWidget * ot::PlainTextEdit::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ isAutoScrollToBottomEnabled()

bool ot::PlainTextEdit::isAutoScrollToBottomEnabled ( void ) const
inline

◆ scrollToBottom()

void ot::PlainTextEdit::scrollToBottom ( void )

◆ setAutoScrollToBottomEnabled()

void ot::PlainTextEdit::setAutoScrollToBottomEnabled ( bool _enabled)

◆ slotTextChanged

void ot::PlainTextEdit::slotTextChanged ( void )
slot

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