1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

New method for TableListBox and ComboBox, made AudioSampleBuffer::writeToAudioWriter and ResamplingAudioSource handle multiple channels.

This commit is contained in:
Julian Storer 2010-06-30 09:25:40 +01:00
parent fad682c1e1
commit e502d753d7
14 changed files with 261 additions and 192 deletions

View file

@ -237,14 +237,6 @@ public:
return String::empty;
}
juce_UseDebuggingNewOperator
private:
TableListBox& owner;
int row;
bool isSelected, isDragging, selectRowOnMouseUp;
BigInteger columnsWithComponents;
Component* findChildComponentForColumn (const int columnId) const
{
for (int i = getNumChildComponents(); --i >= 0;)
@ -258,6 +250,14 @@ private:
return 0;
}
juce_UseDebuggingNewOperator
private:
TableListBox& owner;
int row;
bool isSelected, isDragging, selectRowOnMouseUp;
BigInteger columnsWithComponents;
TableListRowComp (const TableListRowComp&);
TableListRowComp& operator= (const TableListRowComp&);
};
@ -392,6 +392,12 @@ const Rectangle<int> TableListBox::getCellPosition (const int columnId,
headerCell.getWidth(), row.getHeight());
}
Component* TableListBox::getCellComponent (int columnId, int rowNumber) const
{
TableListRowComp* const rowComp = dynamic_cast <TableListRowComp*> (getComponentForRowNumber (rowNumber));
return rowComp != 0 ? rowComp->findChildComponentForColumn (columnId) : 0;
}
void TableListBox::scrollToEnsureColumnIsOnscreen (const int columnId)
{
ScrollBar* const scrollbar = getHorizontalScrollBar();