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
179d0988
Commit
179d0988
authored
13 years ago
by
jsiegle
Browse files
Options
Downloads
Patches
Plain Diff
Changed layout of LfpDisplayEditor
parent
fe3a5a73
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Processors/Editors/LfpDisplayEditor.cpp
+17
-6
17 additions, 6 deletions
Source/Processors/Editors/LfpDisplayEditor.cpp
with
17 additions
and
6 deletions
Source/Processors/Editors/LfpDisplayEditor.cpp
+
17
−
6
View file @
179d0988
...
...
@@ -18,7 +18,7 @@ SelectorButton::SelectorButton()
DrawablePath
normal
,
over
,
down
;
Path
p
;
p
.
add
Ellips
e
(
0.0
,
0.0
,
20.0
,
20.0
);
p
.
add
Rectangl
e
(
0.0
,
0.0
,
20.0
,
20.0
);
normal
.
setPath
(
p
);
normal
.
setFill
(
Colours
::
lightgrey
);
normal
.
setStrokeThickness
(
0.0
f
);
...
...
@@ -29,7 +29,7 @@ SelectorButton::SelectorButton()
over
.
setStrokeThickness
(
5.0
f
);
setImages
(
&
normal
,
&
over
,
&
over
);
setBackgroundColours
(
Colours
::
darkgrey
,
Colours
::
green
);
setBackgroundColours
(
Colours
::
darkgrey
,
Colours
::
white
);
setClickingTogglesState
(
true
);
setTooltip
(
"Toggle a state."
);
...
...
@@ -52,13 +52,21 @@ LfpDisplayEditor::LfpDisplayEditor (GenericProcessor* parentNode,
desiredWidth
=
250
;
StringArray
timeBaseValues
;
timeBaseValues
.
add
(
"1"
);
timeBaseValues
.
add
(
"2"
);
timeBaseValues
.
add
(
"5"
);
timeBaseValues
.
add
(
"10"
);
createRadioButtons
(
35
,
50
,
160
,
timeBaseValues
,
"Display width (s)"
);
StringArray
displayGainValues
;
displayGainValues
.
add
(
"1"
);
displayGainValues
.
add
(
"2"
);
displayGainValues
.
add
(
"4"
);
displayGainValues
.
add
(
"8"
);
createRadioButtons
(
35
,
5
0
,
160
,
displayGainValues
,
"Display Gain"
);
createRadioButtons
(
35
,
9
0
,
160
,
displayGainValues
,
"Display Gain"
);
for
(
int
n
=
0
;
n
<
getNumChildComponents
();
n
++
)
{
...
...
@@ -90,7 +98,7 @@ LfpDisplayEditor::LfpDisplayEditor (GenericProcessor* parentNode,
tabSelector
=
new
SelectorButton
();
tabSelector
->
addListener
(
this
);
tabSelector
->
setBounds
(
100
,
85
,
50
,
25
);
tabSelector
->
setBounds
(
215
,
30
,
25
,
25
);
addAndMakeVisible
(
tabSelector
);
tabSelector
->
setToggleState
(
false
,
false
);
...
...
@@ -150,10 +158,13 @@ void LfpDisplayEditor::setBuffers(AudioSampleBuffer* asb, MidiBuffer* mb)
void
LfpDisplayEditor
::
buttonClicked
(
Button
*
button
)
{
if
(
button
->
getRadioGroupId
()
>
0
)
{
int
gId
=
button
->
getRadioGroupId
();
if
(
gId
>
0
)
{
if
(
canvas
!=
0
)
{
canvas
->
setParameter
(
0
,
button
->
getName
().
getFloatValue
());
canvas
->
setParameter
(
gId
-
1
,
button
->
getName
().
getFloatValue
());
}
}
else
{
...
...
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