MCPcopy Create free account
hub / github.com/LMMS/lmms / mousePressEvent

Method mousePressEvent

src/gui/widgets/SendButtonIndicator.cpp:30–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void SendButtonIndicator::mousePressEvent( QMouseEvent * e )
31{
32 FxMixer * mix = Engine::fxMixer();
33 int from = m_mv->currentFxLine()->channelIndex();
34 int to = m_parent->channelIndex();
35 FloatModel * sendModel = mix->channelSendModel(from, to);
36 if( sendModel == NULL )
37 {
38 // not sending. create a mixer send.
39 mix->createChannelSend( from, to );
40 }
41 else
42 {
43 // sending. delete the mixer send.
44 mix->deleteChannelSend( from, to );
45 }
46
47 m_mv->updateFxLine(m_parent->channelIndex());
48 updateLightStatus();
49}
50
51FloatModel * SendButtonIndicator::getSendModel()
52{

Callers

nothing calls this directly

Calls 6

fxMixerFunction · 0.85
channelIndexMethod · 0.80
channelSendModelMethod · 0.80
createChannelSendMethod · 0.80
deleteChannelSendMethod · 0.80
updateFxLineMethod · 0.80

Tested by

no test coverage detected