NDEVR
API Documentation
PopupManager.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/PopupInfo.h>
4#include <NDEVR/SoftwareService.h>
5#include <NDEVR/QCustomDockWidget.h>
6#include <QWidget>
7#include <QPointer>
8namespace NDEVR
9{
10 class ContainerWidget;
11 class PopupWidget;
16 class NDEVR_WIDGETS_API PopupManager : public SoftwareService
17 {
18 public:
32 virtual void hideWidget(QWidget* widget, const PopupInfo& popup_origin);
40 virtual bool showWidget(QWidget* widget, PopupInfo popup_origin, PopupInfo popup_end);
50 virtual SectionWidget* defaultDropReference(const QCustomDockWidget*) const { return nullptr; };
60 virtual ContainerWidgetBase* container() const { return nullptr; };
61 protected:
62 PopupWidget* m_popup_widget = nullptr;
64 };
65}
The root class that manages a series of SectionContent that can share the same space or lay out in va...
manages a series of SectionContent that can share the same space or lay out in various patterns inclu...
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
virtual ContainerWidgetBase * container() const
Returns the primary container widget for adding new docks.
virtual void hideWidget(QWidget *widget, const PopupInfo &popup_origin)
Hides a widget that was previously shown as a popup.
virtual SectionWidget * defaultDropReference(const QCustomDockWidget *) const
Returns the default drop reference section for a dock widget.
PopupManager()
Constructs a PopupManager.
virtual bool showWidget(QWidget *widget, PopupInfo popup_origin, PopupInfo popup_end)
Shows a widget as a popup with animation from origin to destination.
Dictionary< QObject *, QPointer< QCustomDockWidget > > m_docks
Mapping of objects to their associated dock widgets.
void setupAsPopupHandler()
Registers this manager as the application's popup handler service.
PopupWidget * m_popup_widget
The popup widget used for displaying popup content.
virtual DropArea defaultDropArea(const QCustomDockWidget *) const
Returns the default drop area for a dock widget.
virtual RibbonArea defaultRibbonArea(const QCustomDockWidget *)
Returns the default ribbon area for a dock widget.
Provides a wrapper for a widget that can be docked inside a Container or floated as a top-level windo...
SectionWidget manages multiple instances of SectionContent.
Base interface for services that extend or modify software behavior through modules.
The primary namespace for the NDEVR SDK.
DropArea
relates where a widget should be dropped relative to another.
Definition RibbonArea.h:46
@ e_drop_popup
Drop into a popup/floating container.
Definition RibbonArea.h:48
RibbonArea
Requests a ribbon or tab area to be in a certain location and orientation relative to another widget.
Definition RibbonArea.h:71
@ e_top
Ribbon positioned at the top, oriented horizontally.
Definition RibbonArea.h:73
Class which is used to pass arguments and requests for creating a popup dialog or widget.
Definition PopupInfo.h:16