PropertyBox Class Reference

#include <PropertyBox.h>

Collaboration diagram for PropertyBox:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 31 of file PropertyBox.h.

Public Slots

void propertyContainerPropertyChanged (PropertyContainer *)
void propertyContainerPropertyRangeChanged (PropertyContainer *)
void pluginConfigurationChanged (QString)
void layerVisibilityChanged (bool)

Signals

void changePlayGain (float)
void changePlayGainDial (int)
void changePlayPan (float)
void changePlayPanDial (int)
void showLayer (bool)
void contextHelpChanged (const QString &)

Public Member Functions

 PropertyBox (PropertyContainer *)
 ~PropertyBox ()
PropertyContainergetContainer ()

Protected Slots

void propertyControllerChanged (int)
void propertyControllerChanged (bool)
void playGainChanged (float)
void playGainDialChanged (int)
void playPanChanged (float)
void playPanDialChanged (int)
void populateViewPlayFrame ()
void unitDatabaseChanged ()
void colourDatabaseChanged ()
void editPlugin ()
void mouseEnteredWidget ()
void mouseLeftWidget ()

Protected Member Functions

void updatePropertyEditor (PropertyContainer::PropertyName, bool rangeChanged=false)
void updateContextHelp (QObject *o)
void addNewColour ()

Protected Attributes

QLabel * m_nameWidget
QWidget * m_mainWidget
QGridLayout * m_layout
PropertyContainerm_container
QFrame * m_viewPlayFrame
QVBoxLayout * m_mainBox
LEDButtonm_showButton
LEDButtonm_playButton
std::map< QString, QLayout * > m_groupLayouts
std::map< QString, QWidget * > m_propertyControllers


Constructor & Destructor Documentation

PropertyBox::PropertyBox ( PropertyContainer  ) 

Definition at line 55 of file PropertyBox.cpp.

References colourDatabaseChanged(), ColourDatabase::getInstance(), UnitDatabase::getInstance(), PropertyContainer::getProperties(), PropertyContainer::getPropertyContainerName(), m_container, m_layout, m_mainBox, m_mainWidget, m_viewPlayFrame, populateViewPlayFrame(), unitDatabaseChanged(), and updatePropertyEditor().

PropertyBox::~PropertyBox (  ) 

Definition at line 108 of file PropertyBox.cpp.


Member Function Documentation

PropertyContainer* PropertyBox::getContainer (  )  [inline]

Definition at line 39 of file PropertyBox.h.

References m_container.

void PropertyBox::changePlayGain ( float   )  [signal]

Referenced by playGainDialChanged(), and populateViewPlayFrame().

void PropertyBox::changePlayGainDial ( int   )  [signal]

Referenced by playGainChanged(), and populateViewPlayFrame().

void PropertyBox::changePlayPan ( float   )  [signal]

Referenced by playPanDialChanged(), and populateViewPlayFrame().

void PropertyBox::changePlayPanDial ( int   )  [signal]

Referenced by playPanChanged(), and populateViewPlayFrame().

void PropertyBox::showLayer ( bool   )  [signal]

Referenced by populateViewPlayFrame().

void PropertyBox::contextHelpChanged ( const QString &   )  [signal]

Referenced by mouseLeftWidget(), and updateContextHelp().

void PropertyBox::propertyContainerPropertyChanged ( PropertyContainer  )  [slot]

Definition at line 526 of file PropertyBox.cpp.

References PropertyContainer::getProperties(), m_container, and updatePropertyEditor().

Referenced by propertyControllerChanged().

void PropertyBox::propertyContainerPropertyRangeChanged ( PropertyContainer  )  [slot]

Definition at line 547 of file PropertyBox.cpp.

References PropertyContainer::getProperties(), m_container, and updatePropertyEditor().

void PropertyBox::pluginConfigurationChanged ( QString   )  [slot]

Definition at line 732 of file PropertyBox.cpp.

References PropertyContainer::getPlayParameters(), m_container, and PlayParameters::setPlayPluginConfiguration().

Referenced by editPlugin().

void PropertyBox::layerVisibilityChanged ( bool   )  [slot]

Definition at line 741 of file PropertyBox.cpp.

References m_showButton, and LEDButton::setState().

Referenced by PropertyStack::repopulate().

void PropertyBox::propertyControllerChanged ( int   )  [protected, slot]

Definition at line 598 of file PropertyBox.cpp.

References addNewColour(), PropertyContainer::ColourProperty, ColourDatabase::getInstance(), UnitDatabase::getInstance(), PropertyContainer::getPropertyType(), PropertyContainer::InvalidProperty, m_container, propertyContainerPropertyChanged(), PropertyContainer::setPropertyWithCommand(), PropertyContainer::UnitsProperty, and updateContextHelp().

Referenced by propertyControllerChanged(), and updatePropertyEditor().

void PropertyBox::propertyControllerChanged ( bool   )  [protected, slot]

Definition at line 592 of file PropertyBox.cpp.

References propertyControllerChanged().

void PropertyBox::playGainChanged ( float   )  [protected, slot]

Definition at line 657 of file PropertyBox.cpp.

References changePlayGainDial().

Referenced by populateViewPlayFrame().

void PropertyBox::playGainDialChanged ( int   )  [protected, slot]

Definition at line 666 of file PropertyBox.cpp.

References changePlayGain(), and updateContextHelp().

Referenced by populateViewPlayFrame().

void PropertyBox::playPanChanged ( float   )  [protected, slot]

Definition at line 675 of file PropertyBox.cpp.

References changePlayPanDial().

Referenced by populateViewPlayFrame().

void PropertyBox::playPanDialChanged ( int   )  [protected, slot]

Definition at line 684 of file PropertyBox.cpp.

References changePlayPan(), and updateContextHelp().

Referenced by populateViewPlayFrame().

void PropertyBox::populateViewPlayFrame (  )  [protected, slot]

Definition at line 116 of file PropertyBox.cpp.

References changePlayGain(), changePlayGainDial(), changePlayPan(), changePlayPanDial(), editPlugin(), PropertyContainer::getPlayParameters(), PlayParameters::getPlayPluginId(), PropertyContainer::getPropertyContainerName(), PlayParameters::isPlayMuted(), m_container, m_mainBox, m_playButton, m_showButton, m_viewPlayFrame, mouseEnteredWidget(), mouseLeftWidget(), playGainChanged(), playGainDialChanged(), playPanChanged(), playPanDialChanged(), AudioDial::setDefaultValue(), AudioDial::setMeterColor(), AudioDial::setRangeMapper(), AudioDial::setShowToolTip(), LEDButton::setState(), and showLayer().

Referenced by PropertyBox().

void PropertyBox::unitDatabaseChanged (  )  [protected, slot]

Definition at line 560 of file PropertyBox.cpp.

References PropertyContainer::getProperties(), PropertyContainer::getPropertyType(), m_container, PropertyContainer::UnitsProperty, and updatePropertyEditor().

Referenced by PropertyBox().

void PropertyBox::colourDatabaseChanged (  )  [protected, slot]

Definition at line 576 of file PropertyBox.cpp.

References PropertyContainer::ColourProperty, PropertyContainer::getProperties(), PropertyContainer::getPropertyType(), m_container, and updatePropertyEditor().

Referenced by PropertyBox().

void PropertyBox::editPlugin (  )  [protected, slot]

Definition at line 695 of file PropertyBox.cpp.

References PropertyContainer::getPlayParameters(), PlayParameters::getPlayPluginConfiguration(), PlayParameters::getPlayPluginId(), RealTimePluginFactory::instanceFor(), RealTimePluginFactory::instantiatePlugin(), m_container, pluginConfigurationChanged(), and PlayParameters::setPlayPluginConfiguration().

Referenced by populateViewPlayFrame().

void PropertyBox::mouseEnteredWidget (  )  [protected, slot]

Definition at line 747 of file PropertyBox.cpp.

References updateContextHelp().

Referenced by populateViewPlayFrame(), and updatePropertyEditor().

void PropertyBox::mouseLeftWidget (  )  [protected, slot]

Definition at line 793 of file PropertyBox.cpp.

References contextHelpChanged().

Referenced by populateViewPlayFrame(), and updatePropertyEditor().

void PropertyBox::updatePropertyEditor ( PropertyContainer::PropertyName  ,
bool  rangeChanged = false 
) [protected]

Definition at line 261 of file PropertyBox.cpp.

References PropertyContainer::ColourProperty, ColourDatabase::getColourCount(), ColourDatabase::getColourName(), ColourDatabase::getExamplePixmap(), ColourDatabase::getInstance(), UnitDatabase::getInstance(), UnitDatabase::getKnownUnits(), PropertyContainer::getNewPropertyRangeMapper(), PropertyContainer::getPropertyContainerName(), PropertyContainer::getPropertyGroupName(), PropertyContainer::getPropertyIconName(), PropertyContainer::getPropertyLabel(), PropertyContainer::getPropertyRangeAndValue(), PropertyContainer::getPropertyType(), PropertyContainer::getPropertyValueLabel(), UnitDatabase::getUnitById(), m_container, m_groupLayouts, m_layout, m_mainWidget, m_propertyControllers, mouseEnteredWidget(), mouseLeftWidget(), propertyControllerChanged(), PropertyContainer::RangeProperty, AudioDial::setDefaultValue(), AudioDial::setRangeMapper(), AudioDial::setShowToolTip(), AudioDial::setValue(), PropertyContainer::ToggleProperty, PropertyContainer::UnitsProperty, and PropertyContainer::ValueProperty.

Referenced by colourDatabaseChanged(), PropertyBox(), propertyContainerPropertyChanged(), propertyContainerPropertyRangeChanged(), and unitDatabaseChanged().

void PropertyBox::updateContextHelp ( QObject *  o  )  [protected]

Definition at line 753 of file PropertyBox.cpp.

References contextHelpChanged(), PropertyContainer::getPropertyContainerName(), RangeMapper::getUnit(), m_container, m_playButton, m_showButton, AudioDial::mappedValue(), and AudioDial::rangeMapper().

Referenced by mouseEnteredWidget(), playGainDialChanged(), playPanDialChanged(), and propertyControllerChanged().

void PropertyBox::addNewColour (  )  [protected]

Definition at line 639 of file PropertyBox.cpp.

References ColourDatabase::addColour(), and ColourDatabase::getInstance().

Referenced by propertyControllerChanged().


Member Data Documentation

QLabel* PropertyBox::m_nameWidget [protected]

Definition at line 80 of file PropertyBox.h.

QWidget* PropertyBox::m_mainWidget [protected]

Definition at line 81 of file PropertyBox.h.

Referenced by PropertyBox(), and updatePropertyEditor().

QGridLayout* PropertyBox::m_layout [protected]

Definition at line 82 of file PropertyBox.h.

Referenced by PropertyBox(), and updatePropertyEditor().

PropertyContainer* PropertyBox::m_container [protected]

Definition at line 83 of file PropertyBox.h.

Referenced by colourDatabaseChanged(), editPlugin(), getContainer(), pluginConfigurationChanged(), populateViewPlayFrame(), PropertyBox(), propertyContainerPropertyChanged(), propertyContainerPropertyRangeChanged(), propertyControllerChanged(), unitDatabaseChanged(), updateContextHelp(), and updatePropertyEditor().

QFrame* PropertyBox::m_viewPlayFrame [protected]

Definition at line 84 of file PropertyBox.h.

Referenced by populateViewPlayFrame(), and PropertyBox().

QVBoxLayout* PropertyBox::m_mainBox [protected]

Definition at line 85 of file PropertyBox.h.

Referenced by populateViewPlayFrame(), and PropertyBox().

LEDButton* PropertyBox::m_showButton [protected]

Definition at line 86 of file PropertyBox.h.

Referenced by layerVisibilityChanged(), populateViewPlayFrame(), and updateContextHelp().

LEDButton* PropertyBox::m_playButton [protected]

Definition at line 87 of file PropertyBox.h.

Referenced by populateViewPlayFrame(), and updateContextHelp().

std::map<QString, QLayout *> PropertyBox::m_groupLayouts [protected]

Definition at line 88 of file PropertyBox.h.

Referenced by updatePropertyEditor().

std::map<QString, QWidget *> PropertyBox::m_propertyControllers [protected]

Definition at line 89 of file PropertyBox.h.

Referenced by updatePropertyEditor().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:35 2008 for SonicVisualiser by  doxygen 1.5.1