The WidgetView class is used to integrate the Qt-ADS functionallity into open twin.
More...
#include "WidgetView.h"
|
void | addWidgetToDock (QWidget *_widget) |
| Call this function as soon as the widget for this view is created to add it to the dock.
|
|
The WidgetView class is used to integrate the Qt-ADS functionallity into open twin.
◆ InsertFlags
◆ InsertFlag
Enumerator |
---|
NoInsertFlags | |
KeepCurrentFocus | |
◆ WidgetView()
◆ ~WidgetView()
ot::WidgetView::~WidgetView |
( |
| ) |
|
|
virtual |
◆ addWidgetToDock()
void ot::WidgetView::addWidgetToDock |
( |
QWidget * | _widget | ) |
|
|
protected |
Call this function as soon as the widget for this view is created to add it to the dock.
◆ createStoredViewName() [1/2]
std::string ot::WidgetView::createStoredViewName |
( |
const std::string & | _entityName, |
|
|
WidgetViewBase::ViewType | _viewType ) |
|
static |
Creates the name that should be used in the view management logic. The resulted name has the following syntax: <entityName>$<viewTypeString>
◆ createStoredViewName() [2/2]
std::string ot::WidgetView::createStoredViewName |
( |
const WidgetViewBase & | _view | ) |
|
|
static |
◆ getCurrentViewTitle()
QString ot::WidgetView::getCurrentViewTitle |
( |
void | | ) |
const |
Returns the widget view title that is currently displayed.
◆ getViewContentModified()
bool ot::WidgetView::getViewContentModified |
( |
void | | ) |
const |
|
inline |
◆ getViewData() [1/2]
◆ getViewData() [2/2]
◆ getViewDockWidget()
ads::CDockWidget * ot::WidgetView::getViewDockWidget |
( |
void | | ) |
const |
|
inline |
Returns the dock widget that belongs to this widget view.
◆ getViewIsPermanent()
bool ot::WidgetView::getViewIsPermanent |
( |
void | | ) |
const |
|
inline |
Permanent views wont be removed from the widget view manager when calling remove view.
◆ getViewToggleAction()
QAction * ot::WidgetView::getViewToggleAction |
( |
void | | ) |
const |
Returns the dock widget toggle visibility action. Returns 0 if no widget view is set.
◆ getViewWidget()
virtual QWidget * ot::WidgetView::getViewWidget |
( |
void | | ) |
|
|
pure virtual |
◆ isCurrentViewTab()
bool ot::WidgetView::isCurrentViewTab |
( |
void | | ) |
const |
◆ setAsCurrentViewTab()
void ot::WidgetView::setAsCurrentViewTab |
( |
void | | ) |
|
◆ setViewContentModified()
void ot::WidgetView::setViewContentModified |
( |
bool | _isModified | ) |
|
Set the view modified state. Modified views will change the title to display an unsaved change.
◆ setViewData()
◆ setViewIsPermanent()
void ot::WidgetView::setViewIsPermanent |
( |
bool | _permanent = true | ) |
|
|
inline |
Permanent views wont be removed from the widget view manager when calling remove view.
◆ setViewWidgetFocus()
void ot::WidgetView::setViewWidgetFocus |
( |
void | | ) |
|
|
virtual |
Sets the input focus to the view widget. Custom widget views with nested widgets can override this method to set the focus to the correct widget. By default the root widget (widget returned by WidgetView::getViewWidget()) will get the focus set.
◆ viewDataModifiedChanged
void ot::WidgetView::viewDataModifiedChanged |
( |
void | | ) |
|
|
signal |
◆ WidgetViewManager
The documentation for this class was generated from the following files: