Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 72 of file cxPopupToolbarWidget.h.

Constructor & Destructor Documentation

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

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


Definition at line 94 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 110 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 115 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 99 of file cxPopupToolbarWidget.h.

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

Show or hide the popup.

Definition at line 121 of file cxPopupToolbarWidget.cpp.


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