mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Lots of small whitespace tweaks.
This commit is contained in:
parent
0d3afee459
commit
02492b36b9
179 changed files with 405 additions and 407 deletions
|
|
@ -447,7 +447,7 @@ public:
|
|||
{
|
||||
for (int i = 0; i < getNumChildComponents(); ++i)
|
||||
{
|
||||
if (PinComponent* const pc = dynamic_cast <PinComponent*> (getChildComponent(i)))
|
||||
if (PinComponent* const pc = dynamic_cast<PinComponent*> (getChildComponent(i)))
|
||||
{
|
||||
const int total = pc->isInput ? numIns : numOuts;
|
||||
const int index = pc->index == FilterGraph::midiChannelNumber ? (total - 1) : pc->index;
|
||||
|
|
@ -463,7 +463,7 @@ public:
|
|||
{
|
||||
for (int i = 0; i < getNumChildComponents(); ++i)
|
||||
{
|
||||
if (PinComponent* const pc = dynamic_cast <PinComponent*> (getChildComponent(i)))
|
||||
if (PinComponent* const pc = dynamic_cast<PinComponent*> (getChildComponent(i)))
|
||||
{
|
||||
if (pc->index == index && isInput == pc->isInput)
|
||||
{
|
||||
|
|
@ -839,7 +839,7 @@ FilterComponent* GraphEditorPanel::getComponentForFilter (const uint32 filterID)
|
|||
{
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
{
|
||||
if (FilterComponent* const fc = dynamic_cast <FilterComponent*> (getChildComponent (i)))
|
||||
if (FilterComponent* const fc = dynamic_cast<FilterComponent*> (getChildComponent (i)))
|
||||
if (fc->filterID == filterID)
|
||||
return fc;
|
||||
}
|
||||
|
|
@ -851,7 +851,7 @@ ConnectorComponent* GraphEditorPanel::getComponentForConnection (const AudioProc
|
|||
{
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
{
|
||||
if (ConnectorComponent* const c = dynamic_cast <ConnectorComponent*> (getChildComponent (i)))
|
||||
if (ConnectorComponent* const c = dynamic_cast<ConnectorComponent*> (getChildComponent (i)))
|
||||
if (c->sourceFilterID == conn.sourceNodeId
|
||||
&& c->destFilterID == conn.destNodeId
|
||||
&& c->sourceFilterChannel == conn.sourceChannelIndex
|
||||
|
|
@ -866,10 +866,10 @@ PinComponent* GraphEditorPanel::findPinAt (const int x, const int y) const
|
|||
{
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
{
|
||||
if (FilterComponent* fc = dynamic_cast <FilterComponent*> (getChildComponent (i)))
|
||||
if (FilterComponent* fc = dynamic_cast<FilterComponent*> (getChildComponent (i)))
|
||||
{
|
||||
if (PinComponent* pin = dynamic_cast <PinComponent*> (fc->getComponentAt (x - fc->getX(),
|
||||
y - fc->getY())))
|
||||
if (PinComponent* pin = dynamic_cast<PinComponent*> (fc->getComponentAt (x - fc->getX(),
|
||||
y - fc->getY())))
|
||||
return pin;
|
||||
}
|
||||
}
|
||||
|
|
@ -891,13 +891,13 @@ void GraphEditorPanel::updateComponents()
|
|||
{
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
{
|
||||
if (FilterComponent* const fc = dynamic_cast <FilterComponent*> (getChildComponent (i)))
|
||||
if (FilterComponent* const fc = dynamic_cast<FilterComponent*> (getChildComponent (i)))
|
||||
fc->update();
|
||||
}
|
||||
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
{
|
||||
ConnectorComponent* const cc = dynamic_cast <ConnectorComponent*> (getChildComponent (i));
|
||||
ConnectorComponent* const cc = dynamic_cast<ConnectorComponent*> (getChildComponent (i));
|
||||
|
||||
if (cc != nullptr && cc != draggingConnector)
|
||||
{
|
||||
|
|
@ -944,7 +944,7 @@ void GraphEditorPanel::beginConnectorDrag (const uint32 sourceFilterID, const in
|
|||
const uint32 destFilterID, const int destFilterChannel,
|
||||
const MouseEvent& e)
|
||||
{
|
||||
draggingConnector = dynamic_cast <ConnectorComponent*> (e.originalComponent);
|
||||
draggingConnector = dynamic_cast<ConnectorComponent*> (e.originalComponent);
|
||||
|
||||
if (draggingConnector == nullptr)
|
||||
draggingConnector = new ConnectorComponent (graph);
|
||||
|
|
@ -1063,7 +1063,7 @@ public:
|
|||
void timerCallback()
|
||||
{
|
||||
Component* const underMouse = Desktop::getInstance().getMainMouseSource().getComponentUnderMouse();
|
||||
TooltipClient* const ttc = dynamic_cast <TooltipClient*> (underMouse);
|
||||
TooltipClient* const ttc = dynamic_cast<TooltipClient*> (underMouse);
|
||||
|
||||
String newTip;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue