anatomist 6.0.4
3D neuroimaging data viewer
anatomist::MiniPaletteWidgetTranscient Class Reference

The transcient palette editor widget features a MiniPaletteWidgetEdit which shows up upon given conditions (see MiniPaletteWidget) and closes when the editor widget loses focus. More...

#include <anatomist/color/minipalette.h>

Inheritance diagram for anatomist::MiniPaletteWidgetTranscient:
Collaboration diagram for anatomist::MiniPaletteWidgetTranscient:

Public Slots

void closeIfFinished ()
 
void sliderPressed ()
 
void sliderReleased ()
 

Signals

void editorClosed ()
 signal emitted when the editor widget closes
 

Public Member Functions

 MiniPaletteWidgetTranscient (AObject *object=0, int dim=0, MiniPaletteWidget *pw=0, QWidget *parent=0, bool opened_by_click=false, bool auto_range=false)
 
virtual ~MiniPaletteWidgetTranscient ()
 
void reposition ()
 Repositions / resizes the widget to superpose on its MiniPaletteWidget.
 
MiniPaletteWidgetEditeditor ()
 

Protected Member Functions

void leaveEvent (QEvent *event)
 
void focusOutEvent (QFocusEvent *event)
 
void enterEvent (QEvent *event)
 
void focusInEvent (QFocusEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void closeEvent (QCloseEvent *event)
 

Detailed Description

The transcient palette editor widget features a MiniPaletteWidgetEdit which shows up upon given conditions (see MiniPaletteWidget) and closes when the editor widget loses focus.

More precisely, if opened by a click, a complete focus loss is needed to close the window (which is generally triggered by another user action like a click at some other place or a keyboard focus change, using <tab> for instance).

If not opened by a click, the widget will close as soon as the mouse pointer leaves the widget surface, or when the focus is lost, thus not requiring a click or keyboard user action.

Definition at line 292 of file minipalette.h.

Constructor & Destructor Documentation

◆ MiniPaletteWidgetTranscient()

anatomist::MiniPaletteWidgetTranscient::MiniPaletteWidgetTranscient ( AObject * object = 0,
int dim = 0,
MiniPaletteWidget * pw = 0,
QWidget * parent = 0,
bool opened_by_click = false,
bool auto_range = false )

◆ ~MiniPaletteWidgetTranscient()

virtual anatomist::MiniPaletteWidgetTranscient::~MiniPaletteWidgetTranscient ( )
virtual

Member Function Documentation

◆ closeEvent()

void anatomist::MiniPaletteWidgetTranscient::closeEvent ( QCloseEvent * event)
protected

◆ closeIfFinished

void anatomist::MiniPaletteWidgetTranscient::closeIfFinished ( )
slot

◆ editor()

MiniPaletteWidgetEdit * anatomist::MiniPaletteWidgetTranscient::editor ( )

◆ editorClosed

void anatomist::MiniPaletteWidgetTranscient::editorClosed ( )
signal

signal emitted when the editor widget closes

◆ enterEvent()

void anatomist::MiniPaletteWidgetTranscient::enterEvent ( QEvent * event)
protected

◆ focusInEvent()

void anatomist::MiniPaletteWidgetTranscient::focusInEvent ( QFocusEvent * event)
protected

◆ focusOutEvent()

void anatomist::MiniPaletteWidgetTranscient::focusOutEvent ( QFocusEvent * event)
protected

◆ keyPressEvent()

void anatomist::MiniPaletteWidgetTranscient::keyPressEvent ( QKeyEvent * event)
protected

◆ leaveEvent()

void anatomist::MiniPaletteWidgetTranscient::leaveEvent ( QEvent * event)
protected

◆ reposition()

void anatomist::MiniPaletteWidgetTranscient::reposition ( )

Repositions / resizes the widget to superpose on its MiniPaletteWidget.

◆ sliderPressed

void anatomist::MiniPaletteWidgetTranscient::sliderPressed ( )
slot

◆ sliderReleased

void anatomist::MiniPaletteWidgetTranscient::sliderReleased ( )
slot

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