diff --git a/Source/UI/FilterList.cpp b/Source/UI/FilterList.cpp index 893345d2a53d91a0ff1ee47b6b447d427c0faf43..8ab4415e4ce3235149bc10b1597083f3b577871f 100644 --- a/Source/UI/FilterList.cpp +++ b/Source/UI/FilterList.cpp @@ -67,8 +67,6 @@ FilterList::FilterList() : isDragging(false) //baseItem->addSubItem(utilities); // set parent names / colors - - baseItem->setParentName("Processors"); for (int n = 0; n < baseItem->getNumSubItems(); n++) @@ -114,28 +112,11 @@ void FilterList::renderOpenGL() { glClear(GL_COLOR_BUFFER_BIT); // clear buffers to preset values - drawItems(); - - // for (int i = 0; i < nChans; i++) - // { - // bool isSelected = false; - - // if (selectedChan == i) - // isSelected = true; - - // if (checkBounds(i)) { - // setViewport(i); - // drawBorder(isSelected); - // drawChannelInfo(i,isSelected); - // } - // } drawScrollBars(); } - - void FilterList::drawItems() { int itemNum = 0; @@ -171,8 +152,6 @@ void FilterList::drawItems() } } - //totalHeight -= subItemHeight;//(itemHeight+yBuffer)*(itemNum+1); - } void FilterList::drawItem(FilterListItem* item) @@ -351,10 +330,6 @@ void FilterList::resized() {canvasWasResized();} void FilterList::mouseDown(const MouseEvent& e) { - //setBounds(0,0,225,itemHeight + 2*yBuffer); - - - isDragging = false; Point<int> pos = e.getPosition(); @@ -400,7 +375,6 @@ void FilterList::mouseDown(const MouseEvent& e) mouseDownInCanvas(e); - repaint(); } @@ -442,7 +416,6 @@ void FilterList::mouseDrag(const MouseEvent& e) g.setColour (fli->color); g.fillAll(); g.setColour(Colours::white); - //g.drawRect(4,4,50,10); g.setFont(14); g.drawSingleLineText(fli->getName(),10,12);//,75,15,Justification::centredRight,true); diff --git a/Source/UI/FilterList.h b/Source/UI/FilterList.h index d1d889fd9ace7e7488c3a7b41d27ec5487638781..ed0b642fd4023d3e9f54e30695d21c677164c7d0 100644 --- a/Source/UI/FilterList.h +++ b/Source/UI/FilterList.h @@ -82,14 +82,6 @@ private: String category; - // bool checkBounds(int chan); - - // void setViewport(int chan); - // void drawBorder(bool isSelected); - // void drawChannelInfo(int chan, bool isSelected); - - // void drawTicks(); - void resized(); void mouseDown(const MouseEvent& e); void mouseDrag(const MouseEvent& e); @@ -97,23 +89,7 @@ private: void mouseUp(const MouseEvent& e); void mouseWheelMove(const MouseEvent&, float, float); - //bool isDragAndDropActive(); - // void startDragging(const var &sourceDescription, - // Component* sourceComponent, - // const Image &dragImage, - // bool allowDraggingToOtherJuceWindows, - // const Point<int>* imageOffsetFromMouse); - - //String getCurrentDragDescription(); - - //const String getDragSourceDescription () - FilterListItem* baseItem; - - -// int nChans, plotHeight, totalHeight; -// int selectedChan; -// int xBuffer, yBuffer; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FilterList);