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
58b46bb3
Commit
58b46bb3
authored
12 years ago
by
Josh Siegle
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/open-ephys/GUI
parents
2d1cf1cd
3429a92f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Source/Processors/AudioNode.cpp
+6
-3
6 additions, 3 deletions
Source/Processors/AudioNode.cpp
Source/Processors/Editors/ChannelSelector.cpp
+2
-2
2 additions, 2 deletions
Source/Processors/Editors/ChannelSelector.cpp
Source/Processors/RecordNode.cpp
+9
-7
9 additions, 7 deletions
Source/Processors/RecordNode.cpp
with
17 additions
and
12 deletions
Source/Processors/AudioNode.cpp
+
6
−
3
View file @
58b46bb3
...
...
@@ -73,9 +73,12 @@ void AudioNode::resetConnections()
void
AudioNode
::
setChannel
(
Channel
*
ch
)
{
std
::
cout
<<
"Audio node setting channel."
<<
std
::
endl
;
setCurrentChannel
(
channelPointers
.
indexOf
(
ch
)
+
2
);
int
channelNum
=
channelPointers
.
indexOf
(
ch
);
std
::
cout
<<
"Audio node setting channel to "
<<
channelNum
<<
std
::
endl
;
setCurrentChannel
(
channelNum
);
}
void
AudioNode
::
setChannelStatus
(
Channel
*
chan
,
bool
status
)
...
...
@@ -90,7 +93,7 @@ void AudioNode::setChannelStatus(Channel* chan, bool status)
void
AudioNode
::
enableCurrentChannel
(
bool
state
)
{
setCurrentChannel
(
nextAvailableChannel
);
//
setCurrentChannel(nextAvailableChannel);
if
(
state
)
{
...
...
This diff is collapsed.
Click to expand it.
Source/Processors/Editors/ChannelSelector.cpp
+
2
−
2
View file @
58b46bb3
...
...
@@ -454,7 +454,7 @@ void ChannelSelector::buttonClicked(Button* button)
// get audio node, and inform it of the change
GenericEditor
*
editor
=
(
GenericEditor
*
)
getParentComponent
();
Channel
*
ch
=
editor
->
getChannel
(
b
->
getChannel
());
Channel
*
ch
=
editor
->
getChannel
(
b
->
getChannel
()
-
1
);
//int channelNum = editor->getStartChannel() + b->getChannel() - 1;
bool
status
=
b
->
getToggleState
();
...
...
@@ -473,7 +473,7 @@ void ChannelSelector::buttonClicked(Button* button)
// get record node, and inform it of the change
GenericEditor
*
editor
=
(
GenericEditor
*
)
getParentComponent
();
Channel
*
ch
=
editor
->
getChannel
(
b
->
getChannel
());
Channel
*
ch
=
editor
->
getChannel
(
b
->
getChannel
()
-
1
);
//int channelNum = editor->getStartChannel() + b->getChannel() - 1;
bool
status
=
b
->
getToggleState
();
...
...
This diff is collapsed.
Click to expand it.
Source/Processors/RecordNode.cpp
+
9
−
7
View file @
58b46bb3
...
...
@@ -52,9 +52,11 @@ RecordNode::~RecordNode() {
void
RecordNode
::
setChannel
(
Channel
*
ch
)
{
std
::
cout
<<
"Record node setting channel."
<<
std
::
endl
;
int
channelNum
=
channelPointers
.
indexOf
(
ch
)
;
setCurrentChannel
(
channelPointers
.
indexOf
(
ch
));
std
::
cout
<<
"Record node setting channel to "
<<
channelNum
<<
std
::
endl
;
setCurrentChannel
(
channelNum
);
// for (int i = 0; i < con.size(); i++)
// {
...
...
@@ -136,12 +138,12 @@ void RecordNode::addInputChannel(GenericProcessor* sourceNode, int chan)
channelPointers
[
channelIndex
]
->
filename
=
filename
;
channelPointers
[
channelIndex
]
->
file
=
0
;
if
(
channelPointers
[
channelIndex
]
->
isRecording
)
std
::
cout
<<
" This channel will be recorded."
<<
std
::
endl
;
else
std
::
cout
<<
" This channel will NOT be recorded."
<<
std
::
endl
;
//
if (channelPointers[channelIndex]->isRecording)
//
std::cout << " This channel will be recorded." << std::endl;
//
else
//
std::cout << " This channel will NOT be recorded." << std::endl;
std
::
cout
<<
"adding channel "
<<
getNextChannel
(
false
)
<<
std
::
endl
;
//
std::cout << "adding channel " << getNextChannel(false) << std::endl;
//std::pair<int, Channel> newPair (getNextChannel(false), newChannel);
...
...
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