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

Fix issues with LfpDisplay initialization

parent 1a8db544
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ LfpDisplayCanvas::LfpDisplayCanvas(LfpDisplayNode* processor_) :
timebaseSelection = new ComboBox("Timebase");
timebaseSelection->addItemList(timebases, 1);
timebaseSelection->setSelectedId(3,false);
timebaseSelection->setSelectedId(2, false);
timebaseSelection->addListener(this);
addAndMakeVisible(timebaseSelection);
......@@ -196,6 +196,8 @@ void LfpDisplayCanvas::update()
lfpDisplay->setBounds(0,0,getWidth()-scrollBarThickness*2, lfpDisplay->getTotalHeight());
resized();
}
void LfpDisplayCanvas::comboBoxChanged(ComboBox* cb)
......@@ -606,7 +608,7 @@ void LfpDisplay::setNumChannels(int numChannels)
for (int i = 0; i < numChans; i++)
{
//std::cout << "Adding new channel display." << std::endl;
std::cout << "Adding new display for channel " << i << std::endl;
LfpChannelDisplay* lfpChan = new LfpChannelDisplay(canvas, this, i);
......@@ -632,6 +634,12 @@ void LfpDisplay::setNumChannels(int numChannels)
}
//std::cout << "TOTAL HEIGHT = " << totalHeight << std::endl;
// // this doesn't seem to do anything:
//canvas->fullredraw = true;
//refresh();
}
int LfpDisplay::getTotalHeight()
......@@ -666,6 +674,7 @@ void LfpDisplay::resized()
}
canvas->fullredraw = true; //issue full redraw
refresh();
// std::cout << "Total height: " << totalHeight << std::endl;
......
......@@ -333,7 +333,7 @@ void EditorViewport::refreshEditors()
int lastBound = borderSize+tabSize;
int totalWidth = 0;
std::cout << insertionPoint << std::endl;
//std::cout << insertionPoint << std::endl;
bool tooLong;
......
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