OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::QWidgetInterface Class Referenceabstract

#include "QWidgetInterface.h"

Inheritance diagram for ot::QWidgetInterface:
ProjectOverviewWidget ot::CheckBox ot::ColorPickButton ot::ColorPreviewBox ot::ComboBox ot::Dialog ot::DoubleSpinBox ot::FilePathEdit ot::GraphicsView ot::ImagePreview ot::Label ot::LineEdit ot::Painter2DEditButton ot::Painter2DPreview ot::PlainTextEdit ot::Plot ot::PropertyGrid ot::PropertyInput ot::PushButton ot::SpinBox ot::TabWidget ot::ToolButton ot::TreeWidget ot::TreeWidgetFilter ot::VersionGraphManager

Public Member Functions

 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
virtual QWidget * getQWidget (void)=0
 Returns a pointer to the root widget of this object.
 
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.
 

Protected Attributes

WidgetFlags m_widgetFlags
 

Constructor & Destructor Documentation

◆ QWidgetInterface()

ot::QWidgetInterface::QWidgetInterface ( )
inline

◆ ~QWidgetInterface()

virtual ot::QWidgetInterface::~QWidgetInterface ( )
inlinevirtual

Member Function Documentation

◆ calculateCenterOnParentPos()

QPoint ot::QWidgetInterface::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.

◆ centerOnParent()

void ot::QWidgetInterface::centerOnParent ( const QWidget *const _parentWidget)

Centers this widget on the parent. If no parent is provided the widget will center on the screen.

◆ getQWidget()

◆ otWidgetFlags()

const WidgetFlags & ot::QWidgetInterface::otWidgetFlags ( void ) const
inline

◆ otWidgetFlagsChanged()

virtual void ot::QWidgetInterface::otWidgetFlagsChanged ( const WidgetFlags & _flags)
inlinevirtual

◆ setOTWidgetFlags()

void ot::QWidgetInterface::setOTWidgetFlags ( const WidgetFlags & _flags)

Member Data Documentation

◆ m_widgetFlags

WidgetFlags ot::QWidgetInterface::m_widgetFlags
protected

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