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

#include "TableView.h"

Inheritance diagram for ot::TableView:
ot::Table ot::WidgetView

Public Member Functions

 TableView ()
 
virtual ~TableView ()
 
virtual QWidget * getViewWidget (void) override
 Returns the widget that is set to this widget view.
 
virtual void setupFromConfig (const TableCfg &_config) override
 
virtual TableCfg createConfig (void) const override
 
- Public Member Functions inherited from ot::Table
 Table (QWidget *_parentWidget=(QWidget *) nullptr)
 
 Table (int _rows, int _columns, QWidget *_parentWidget=(QWidget *) nullptr)
 
virtual ~Table ()
 
void setContentChanged (bool _changed=true)
 
bool getContentChanged (void) const
 
void setSelectedCellsBackground (const ot::Color &_color)
 
void setSelectedCellsBackground (const QColor &_color)
 
void prepareForDataChange (void)
 
- Public Member Functions inherited from ot::WidgetView
 WidgetView (WidgetViewBase::ViewType _viewType)
 
virtual ~WidgetView ()
 
virtual void setViewWidgetFocus (void)
 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.
 
void setViewData (const WidgetViewBase &_data)
 
WidgetViewBasegetViewData (void)
 
const WidgetViewBasegetViewData (void) const
 
ads::CDockWidget * getViewDockWidget (void) const
 Returns the dock widget that belongs to this widget view.
 
QAction * getViewToggleAction (void) const
 Returns the dock widget toggle visibility action. Returns 0 if no widget view is set.
 
void setViewIsPermanent (bool _permanent=true)
 Permanent views wont be removed from the widget view manager when calling remove view.
 
bool getViewIsPermanent (void) const
 Permanent views wont be removed from the widget view manager when calling remove view.
 
void setViewContentModified (bool _isModified)
 Set the view modified state. Modified views will change the title to display an unsaved change.
 
bool getViewContentModified (void) const
 
QString getCurrentViewTitle (void) const
 Returns the widget view title that is currently displayed.
 
void setAsCurrentViewTab (void)
 
bool isCurrentViewTab (void) const
 

Protected Member Functions

virtual void contentSaved (void) override
 
virtual void contentChanged (void) override
 
- Protected Member Functions inherited from ot::Table
virtual void showEvent (QShowEvent *_event) override
 
virtual void hideEvent (QHideEvent *_event) override
 
- Protected Member Functions inherited from ot::WidgetView
void addWidgetToDock (QWidget *_widget)
 Call this function as soon as the widget for this view is created to add it to the dock.
 

Additional Inherited Members

- Public Types inherited from ot::WidgetView
enum  InsertFlag { NoInsertFlags = 0 << 0 , KeepCurrentFocus = 1 << 0 }
 
typedef ot::Flags< InsertFlagInsertFlags
 
- Signals inherited from ot::Table
void saveRequested (void)
 
- Static Public Member Functions inherited from ot::WidgetView
static std::string createStoredViewName (const WidgetViewBase &_view)
 
static std::string createStoredViewName (const std::string &_entityName, WidgetViewBase::ViewType _viewType)
 Creates the name that should be used in the view management logic. The resulted name has the following syntax: <entityName>$<viewTypeString>
 

Constructor & Destructor Documentation

◆ TableView()

ot::TableView::TableView ( )

◆ ~TableView()

ot::TableView::~TableView ( )
virtual

Member Function Documentation

◆ contentChanged()

void ot::TableView::contentChanged ( void )
overrideprotectedvirtual

Reimplemented from ot::Table.

◆ contentSaved()

void ot::TableView::contentSaved ( void )
overrideprotectedvirtual

Reimplemented from ot::Table.

◆ createConfig()

ot::TableCfg ot::TableView::createConfig ( void ) const
overridevirtual

Reimplemented from ot::Table.

◆ getViewWidget()

QWidget * ot::TableView::getViewWidget ( void )
overridevirtual

Returns the widget that is set to this widget view.

Implements ot::WidgetView.

◆ setupFromConfig()

void ot::TableView::setupFromConfig ( const TableCfg & _config)
overridevirtual

Reimplemented from ot::Table.


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