@@ -111,22 +111,17 @@ void CustomTabButton::itemDragEnter (const SourceDetails& dragSourceDetails)
111111
112112 repaint ();
113113
114- LOGD (" Entering " , getName ());
115114}
116115
117116void CustomTabButton::itemDragExit (const SourceDetails& dragSourceDetails)
118117{
119118 isDraggingOver = false ;
120119
121120 repaint ();
122-
123- LOGD (" Exiting " , getName ());
124121}
125122
126123void CustomTabButton::itemDropped (const SourceDetails& dragSourceDetails)
127124{
128- LOGD (" DROPPED ON " , getName ());
129-
130125 isDraggingOver = false ;
131126
132127 repaint ();
@@ -136,8 +131,6 @@ void CustomTabButton::itemDropped (const SourceDetails& dragSourceDetails)
136131 int incomingNodeId = descr->getUnchecked (1 );
137132 String name = descr->getUnchecked (2 );
138133
139- LOGD (" ITEM DROPPED ON TAB" );
140-
141134 parent->moveTabByNodeId (name, incomingNodeId, nodeId);
142135}
143136
@@ -198,16 +191,12 @@ void DraggableTabComponent::itemDragEnter (const SourceDetails& dragSourceDetail
198191{
199192 isDraggingOver = true ;
200193 repaint ();
201-
202- LOGD (" Entering PARENT" );
203194}
204195
205196void DraggableTabComponent::itemDragExit (const SourceDetails& dragSourceDetails)
206197{
207198 isDraggingOver = false ;
208199 repaint ();
209-
210- LOGD (" Exiting PARENT" );
211200}
212201
213202void DraggableTabComponent::itemDropped (const juce::DragAndDropTarget::SourceDetails& dragSourceDetails)
@@ -225,8 +214,6 @@ void DraggableTabComponent::itemDropped (const juce::DragAndDropTarget::SourceDe
225214 && dragSourceDetails.localPosition .y < getTabbedButtonBar ().getTabButton (getNumTabs () - 1 )->getBounds ().getBottom ())
226215 return ;
227216
228- LOGD (" ITEM DROPPED ON PARENT" );
229-
230217 Component* contentComponent = dataViewport->getContentComponentForNodeId (incomingNodeId);
231218 dataViewport->removeTab (incomingNodeId, false );
232219 addNewTab (name, contentComponent, incomingNodeId);
@@ -247,12 +234,8 @@ void DraggableTabComponent::addNewTab (String name, Component* component, int no
247234
248235bool DraggableTabComponent::removeTabForNodeId (int nodeId, bool sendNotification)
249236{
250- LOGD (" REMOVING TAB" );
251-
252237 int index = tabNodeIds.indexOf (nodeId);
253238
254- LOGD (" INDEX: " , index);
255-
256239 if (index > -1 )
257240 {
258241 removeTab (index);
@@ -647,8 +630,6 @@ void DataViewport::removeTab (int nodeId, bool sendNotification)
647630 {
648631 bool foundTab = draggableTabComponent->removeTabForNodeId (nodeId, sendNotification);
649632
650- LOGD (foundTab, " " , draggableTabComponent->getNumTabs (), " " , draggableTabComponents.size ());
651-
652633 if (foundTab)
653634 {
654635 // remove the tabbed component if it's empty
0 commit comments