NorMIT-nav  22.09
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

◆ PopupToolbarWidget()

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

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


Definition at line 74 of file cxPopupToolbarWidget.cpp.

Member Function Documentation

◆ getToolbar()

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.

◆ popup

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

emitted on popup show/hide.

◆ popupIsVisible()

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.

◆ refresh()

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.

◆ setPopupVisible()

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: