14#include <QtWidgets/qdockwidget.h>
15#include <QtCore/qobject.h>
16#include <QtCore/qsize.h>
30 class GraphicsItemCfg;
31 class TreeWidgetFilter;
32 class GraphicsItemPreview;
33 class GraphicsPickerCollectionPackage;
41 QWidget* pickerWidget(
void);
43 void setOrientation(Qt::Orientation _orientation);
44 Qt::Orientation orientation(
void)
const;
48 void add(
const std::list<ot::GraphicsPickerCollectionCfg*>& _topLevelCollections);
62 void slotSelectionChanged(
void);
66 void addCollections(
const std::list<ot::GraphicsPickerCollectionCfg*>& _categories, QTreeWidgetItem* _parentNavigationItem);
69 void addItems(
const std::list<GraphicsPickerItemInformation>& _info, QTreeWidgetItem* _parentNavigationItem);
74 QWidget* layoutWidget;
80 bool m_repaintPreviewRequired;
82 BasicServiceInformation m_owner;
86 TreeWidgetFilter* m_navigation;
88 std::list<PreviewBox> m_previews;
89 QWidget* m_viewLayoutW;
90 QGridLayout* m_viewLayout;
92 std::map<QTreeWidgetItem*, std::list<GraphicsPickerItemInformation>*> m_previewData;
122 virtual void resizeEvent(QResizeEvent* _event)
override;
129 inline Qt::Orientation calcWidgetOrientation(
void)
const {
return (this->width() > this->height() ? Qt::Horizontal : Qt::
Vertical); };
131 GraphicsPicker* m_widget;
Definition GraphicsItemPreview.h:20
Definition GraphicsPickerCollectionCfg.h:20
Package that will be used to fill the graphics picker The name of the editor must be unique....
Definition GraphicsPackage.h:24
Definition GraphicsPicker.h:35
void setOwner(const BasicServiceInformation &_owner)
Definition GraphicsPicker.h:55
const QSize & previewBoxSize(void) const
Definition GraphicsPicker.h:53
void setPreviewBoxSize(const QSize &_size)
Definition GraphicsPicker.h:52
const BasicServiceInformation & getOwner(void) const
Returns the current owner of the graphics picker. The owner information will be added to the mime dat...
Definition GraphicsPicker.h:59
@ Vertical
Definition GuiTypes.h:37