Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
d3a7790a
Commit
d3a7790a
authored
13 years ago
by
jsiegle
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned up FilterList code
parent
77b2557e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/UI/FilterList.cpp
+0
-27
0 additions, 27 deletions
Source/UI/FilterList.cpp
Source/UI/FilterList.h
+0
-24
0 additions, 24 deletions
Source/UI/FilterList.h
with
0 additions
and
51 deletions
Source/UI/FilterList.cpp
+
0
−
27
View file @
d3a7790a
...
...
@@ -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);
...
...
This diff is collapsed.
Click to expand it.
Source/UI/FilterList.h
+
0
−
24
View file @
d3a7790a
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment