openshot-audio  0.1.5
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
juce::PluginListComponent::TableModel Class Reference
Inheritance diagram for juce::PluginListComponent::TableModel:
juce::TableListBoxModel

Public Types

enum  {
  nameCol = 1, typeCol = 2, categoryCol = 3, manufacturerCol = 4,
  descCol = 5
}
 

Public Member Functions

 TableModel (PluginListComponent &c, KnownPluginList &l)
 
int getNumRows () override
 
void paintRowBackground (Graphics &g, int, int, int, bool rowIsSelected) override
 
void paintCell (Graphics &g, int row, int columnId, int width, int height, bool) override
 
void deleteKeyPressed (int) override
 
void sortOrderChanged (int newSortColumnId, bool isForwards) override
 
- Public Member Functions inherited from juce::TableListBoxModel
 TableListBoxModel ()
 
virtual ~TableListBoxModel ()
 
virtual ComponentrefreshComponentForCell (int rowNumber, int columnId, bool isRowSelected, Component *existingComponentToUpdate)
 
virtual void cellClicked (int rowNumber, int columnId, const MouseEvent &)
 
virtual void cellDoubleClicked (int rowNumber, int columnId, const MouseEvent &)
 
virtual void backgroundClicked (const MouseEvent &)
 
virtual int getColumnAutoSizeWidth (int columnId)
 
virtual String getCellTooltip (int rowNumber, int columnId)
 
virtual void selectedRowsChanged (int lastRowSelected)
 
virtual void returnKeyPressed (int lastRowSelected)
 
virtual void listWasScrolled ()
 
virtual var getDragSourceDescription (const SparseSet< int > &currentlySelectedRows)
 

Static Public Member Functions

static String getPluginDescription (const PluginDescription &desc)
 

Public Attributes

PluginListComponentowner
 
KnownPluginListlist
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
nameCol 
typeCol 
categoryCol 
manufacturerCol 
descCol 

Constructor & Destructor Documentation

◆ TableModel()

juce::PluginListComponent::TableModel::TableModel ( PluginListComponent c,
KnownPluginList l 
)
inline

Member Function Documentation

◆ deleteKeyPressed()

void juce::PluginListComponent::TableModel::deleteKeyPressed ( int  lastRowSelected)
inlineoverridevirtual

Override this to be informed when the delete key is pressed.

See also
ListBox::deleteKeyPressed()

Reimplemented from juce::TableListBoxModel.

◆ getNumRows()

int juce::PluginListComponent::TableModel::getNumRows ( )
inlineoverridevirtual

This must return the number of rows currently in the table.

If the number of rows changes, you must call TableListBox::updateContent() to cause it to refresh the list.

Implements juce::TableListBoxModel.

◆ getPluginDescription()

static String juce::PluginListComponent::TableModel::getPluginDescription ( const PluginDescription desc)
inlinestatic

◆ paintCell()

void juce::PluginListComponent::TableModel::paintCell ( Graphics ,
int  rowNumber,
int  columnId,
int  width,
int  height,
bool  rowIsSelected 
)
inlineoverridevirtual

This must draw one of the cells.

The graphics context's origin will already be set to the top-left of the cell, whose size is specified by (width, height).

Note that the rowNumber value may be greater than the number of rows in your list, so be careful that you don't assume it's less than getNumRows().

Implements juce::TableListBoxModel.

◆ paintRowBackground()

void juce::PluginListComponent::TableModel::paintRowBackground ( Graphics ,
int  rowNumber,
int  width,
int  height,
bool  rowIsSelected 
)
inlineoverridevirtual

This must draw the background behind one of the rows in the table.

The graphics context has its origin at the row's top-left, and your method should fill the area specified by the width and height parameters.

Note that the rowNumber value may be greater than the number of rows in your list, so be careful that you don't assume it's less than getNumRows().

Implements juce::TableListBoxModel.

◆ sortOrderChanged()

void juce::PluginListComponent::TableModel::sortOrderChanged ( int  newSortColumnId,
bool  isForwards 
)
inlineoverridevirtual

This callback is made when the table's sort order is changed.

This could be because the user has clicked a column header, or because the TableHeaderComponent::setSortColumnId() method was called.

If you implement this, your method should re-sort the table using the given column as the key.

Reimplemented from juce::TableListBoxModel.

Member Data Documentation

◆ list

KnownPluginList& juce::PluginListComponent::TableModel::list

◆ owner

PluginListComponent& juce::PluginListComponent::TableModel::owner

The documentation for this class was generated from the following file: