Skip to content
Snippets Groups Projects
Commit d3a7790a authored by jsiegle's avatar jsiegle
Browse files

Cleaned up FilterList code

parent 77b2557e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment