#include "GraphicsPickerView.h"
Public Member Functions | |
GraphicsPickerView () | |
virtual | ~GraphicsPickerView () |
virtual QWidget * | getViewWidget (void) override |
Returns the widget that is set to this widget view. | |
![]() | |
GraphicsPicker (Qt::Orientation _orientation=Qt::Vertical) | |
virtual | ~GraphicsPicker () |
QWidget * | pickerWidget (void) |
void | setOrientation (Qt::Orientation _orientation) |
Qt::Orientation | orientation (void) const |
void | add (const ot::GraphicsPickerCollectionPackage &_pckg) |
void | add (ot::GraphicsPickerCollectionCfg *_topLevelCollection) |
void | add (const std::list< ot::GraphicsPickerCollectionCfg * > &_topLevelCollections) |
void | clear (void) |
void | setPreviewBoxSize (const QSize &_size) |
const QSize & | previewBoxSize (void) const |
void | setOwner (const BasicServiceInformation &_owner) |
const BasicServiceInformation & | getOwner (void) const |
Returns the current owner of the graphics picker. The owner information will be added to the mime data when dragging an item. | |
![]() | |
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) |
WidgetViewBase & | getViewData (void) |
const WidgetViewBase & | getViewData (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 |
Additional Inherited Members | |
![]() | |
enum | InsertFlag { NoInsertFlags = 0 << 0 , KeepCurrentFocus = 1 << 0 } |
typedef ot::Flags< InsertFlag > | InsertFlags |
![]() | |
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> | |
![]() | |
void | addWidgetToDock (QWidget *_widget) |
Call this function as soon as the widget for this view is created to add it to the dock. | |
ot::GraphicsPickerView::GraphicsPickerView | ( | ) |
|
virtual |
|
overridevirtual |
Returns the widget that is set to this widget view.
Implements ot::WidgetView.