CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::PopupToolbarWidget Class Reference

#include <cxPopupToolbarWidget.h>

Inheritance diagram for cx::PopupToolbarWidget:

Signals

void popup (bool show)
 

Public Member Functions

 PopupToolbarWidget (QWidget *parent)
 
bool popupIsVisible () const
 
void setPopupVisible (bool val)
 
QWidget * getToolbar ()
 
void refresh ()
 

Detailed Description

A toolbar that pops up inside a layout, controlled by a popup button floating over the parent widget.

Note: In order to get this working, set the parent layout margin and spacing to zero.

Add buttons to the toolbar by adding to getToolbar()

Definition at line 51 of file cxPopupToolbarWidget.h.

Constructor & Destructor Documentation

cx::PopupToolbarWidget::PopupToolbarWidget ( QWidget *  parent)

-----------------------------------------------------—


Definition at line 74 of file cxPopupToolbarWidget.cpp.

Member Function Documentation

QWidget * cx::PopupToolbarWidget::getToolbar ( )

Return an empty widget inside the toolbar. It can be filled with buttons or anything else.

Definition at line 90 of file cxPopupToolbarWidget.cpp.

void cx::PopupToolbarWidget::popup ( bool  show)
signal

emitted on popup show/hide.

bool cx::PopupToolbarWidget::popupIsVisible ( ) const

Return true if the popup is activated, i.e. the popup is pressed and the toolbar is visible.

Default: false.

Definition at line 95 of file cxPopupToolbarWidget.cpp.

void cx::PopupToolbarWidget::refresh ( )
inline

Call after parent gui construction is complete - required because we want to draw the popup button on top of the parent layout. Hack!

Definition at line 78 of file cxPopupToolbarWidget.h.

void cx::PopupToolbarWidget::setPopupVisible ( bool  val)

Show or hide the popup.

Definition at line 101 of file cxPopupToolbarWidget.cpp.


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