Workspace 6.21.5
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
ColorSpectrumButton Class Reference

#include <DataAnalysis/Color/colorspectrumbutton.h>

Inherits QWidget.

Public Slots

void setSpectrum (const ColorSpectrum &s)
 
void showEditor (bool b=true)
 

Signals

void spectrumChanged (const ColorSpectrum &s)
 

Public Member Functions

 ColorSpectrumButton (QWidget *parent=nullptr)
 
 ~ColorSpectrumButton () override
 
ColorSpectrumEditorgetEditor ()
 
const ColorSpectrumgetSpectrum () const
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 

Constructor & Destructor Documentation

◆ ColorSpectrumButton()

ColorSpectrumButton ( QWidget *  parent = nullptr)

◆ ~ColorSpectrumButton()

~ColorSpectrumButton ( )
override

Member Function Documentation

◆ getEditor()

ColorSpectrumEditor * getEditor ( )
Returns
A pointer to the editor for this button. If no editor exists at the time of the call, a new one will be created (but not necessarily shown). It will be a child widget of the button itself but will appear to be a modeless window.
See also
showEditor()

◆ getSpectrum()

const ColorSpectrum & getSpectrum ( ) const

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  event)
overrideprotected

◆ setSpectrum

void setSpectrum ( const ColorSpectrum s)
slot

◆ showEditor

void showEditor ( bool  b = true)
slot
Parameters
bIf true, this function ensures that the editor for this button is created and visible, and then tries to make it the top and active window. If it is false, the editor will be hidden but not deleted (if one existed at the time of the call).
See also
getEditor()

◆ spectrumChanged

void spectrumChanged ( const ColorSpectrum s)
signal