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
8c729319
Commit
8c729319
authored
11 years ago
by
interpretivechaos
Browse files
Options
Downloads
Patches
Plain Diff
Fixes splitter saving hang
parent
7a659e91
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Processors/Editors/GenericEditor.cpp
+15
-5
15 additions, 5 deletions
Source/Processors/Editors/GenericEditor.cpp
Source/Processors/Editors/GenericEditor.h
+2
-0
2 additions, 0 deletions
Source/Processors/Editors/GenericEditor.h
with
17 additions
and
5 deletions
Source/Processors/Editors/GenericEditor.cpp
+
15
−
5
View file @
8c729319
...
@@ -90,7 +90,10 @@ void GenericEditor::constructorInitialize(GenericProcessor* owner, bool useDefau
...
@@ -90,7 +90,10 @@ void GenericEditor::constructorInitialize(GenericProcessor* owner, bool useDefau
addChildComponent
(
channelSelector
);
addChildComponent
(
channelSelector
);
channelSelector
->
setVisible
(
false
);
channelSelector
->
setVisible
(
false
);
isSplitOrMerge
=
false
;
}
else
{
isSplitOrMerge
=
true
;
}
}
backgroundGradient
=
ColourGradient
(
Colour
(
190
,
190
,
190
),
0.0
f
,
0.0
f
,
backgroundGradient
=
ColourGradient
(
Colour
(
190
,
190
,
190
),
0.0
f
,
0.0
f
,
...
@@ -475,10 +478,17 @@ bool GenericEditor::getAudioStatus(int chan)
...
@@ -475,10 +478,17 @@ bool GenericEditor::getAudioStatus(int chan)
void
GenericEditor
::
getChannelSelectionState
(
int
chan
,
bool
*
p
,
bool
*
r
,
bool
*
a
)
void
GenericEditor
::
getChannelSelectionState
(
int
chan
,
bool
*
p
,
bool
*
r
,
bool
*
a
)
{
{
if
(
!
isSplitOrMerge
)
*
p
=
channelSelector
->
getParamStatus
(
chan
);
{
*
r
=
channelSelector
->
getRecordStatus
(
chan
);
*
p
=
channelSelector
->
getParamStatus
(
chan
);
*
a
=
channelSelector
->
getAudioStatus
(
chan
);
*
r
=
channelSelector
->
getRecordStatus
(
chan
);
*
a
=
channelSelector
->
getAudioStatus
(
chan
);
}
else
{
*
p
=
FALSE
;
*
r
=
FALSE
;
*
a
=
FALSE
;
}
}
}
void
GenericEditor
::
setChannelSelectionState
(
int
chan
,
bool
p
,
bool
r
,
bool
a
)
void
GenericEditor
::
setChannelSelectionState
(
int
chan
,
bool
p
,
bool
r
,
bool
a
)
...
...
This diff is collapsed.
Click to expand it.
Source/Processors/Editors/GenericEditor.h
+
2
−
0
View file @
8c729319
...
@@ -275,6 +275,8 @@ private:
...
@@ -275,6 +275,8 @@ private:
bool
isSelected
;
bool
isSelected
;
bool
isEnabled
;
bool
isEnabled
;
/**Used to determine if an editor is a splitter or Merger to avoid calling on CHannelSelector*/
bool
isSplitOrMerge
;
int
tNum
;
int
tNum
;
...
...
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