#include <ModulationAssignerTable.h>
|
| | ModulationAssignerTable (ModulationAssigner &owner, String name, String id) |
| |
| int | getNumRows () override |
| |
| void | paintRowBackground (Graphics &g, int rowNumber, int width, int height, bool rowIsSelected) override |
| |
| void | paintCell (Graphics &g, int rowNumber, int columnId, int width, int height, bool rowIsSelected) override |
| |
| Component * | refreshComponentForCell (int rowNumber, int columnId, bool isRowSelected, Component *existingComponentToUpdate) override |
| |
| void | paint (Graphics &g) |
| |
| void | resized () override |
| |
| void | addRow (const ValueTree &modulationInstanceTree) |
| |
| void | deleteRow (const ValueTree &modulationInstanceTree, int row, bool notifyAssigner) |
| |
| void | deleteRow (int rowNumber, bool notifyAssigner) |
| |
| void | deleteRow (const ValueTree &modulationInstanceTree, bool notifyAssigner) |
| |
| const String & | getId () |
| |
◆ ColumnIDs
IDs for the table list box columns.
| Enumerator |
|---|
| col_Source | |
| col_Destination | |
| col_Depth | |
| col_Delete | |
◆ ModulationAssignerTable()
| krotos::ModulationAssignerTable::ModulationAssignerTable |
( |
ModulationAssigner & | owner, |
|
|
String | name, |
|
|
String | id ) |
◆ addRow()
| void krotos::ModulationAssignerTable::addRow |
( |
const ValueTree & | modulationInstanceTree | ) |
|
Adds a row to the table, extracting the modulation and destination info from the modulationInstanceTree ValueTree
- Parameters
-
| modulationInstanceTree | A "MODULATION" child tree which contains all modulation info |
◆ deleteRow() [1/3]
| void krotos::ModulationAssignerTable::deleteRow |
( |
const ValueTree & | modulationInstanceTree, |
|
|
bool | notifyAssigner ) |
Searches the table for a given ValueTree and deletes that row, and if specified, notifies the modulation assigner to delete that modulation instance via the modulationDeleted callback.
- Parameters
-
| modulationInstanceTree | A "MODULATION" child tree which contains all modulation info |
| notifyAssigner | Calls modulationDeleted() to notify the ModulationAssigner that something was deleted from the table. This can be used to differentiate between a delete that should just remove the row from the GUI, or remove the row from the GUI and delete the modulation instance as well. |
◆ deleteRow() [2/3]
| void krotos::ModulationAssignerTable::deleteRow |
( |
const ValueTree & | modulationInstanceTree, |
|
|
int | row, |
|
|
bool | notifyAssigner ) |
Delete a row specifying the row it's on and ValueTree
- Parameters
-
| modulationInstanceTree | A "MODULATION" child tree which contains all modulation info |
| rowNumber | The index of the row to delete. |
| notifyAssigner | Calls modulationDeleted() to notify the ModulationAssigner that something was deleted from the table. This can be used to differentiate between a delete that should just remove the row from the GUI, or remove the row from the GUI and delete the modulation instance as well. |
◆ deleteRow() [3/3]
| void krotos::ModulationAssignerTable::deleteRow |
( |
int | rowNumber, |
|
|
bool | notifyAssigner ) |
Deletes the given rowNumber
- Parameters
-
| rowNumber | The index of the row to delete. |
| notifyAssigner | Calls modulationDeleted() to notify the ModulationAssigner that something was deleted from the table. This can be used to differentiate between a delete that should just remove the row from the GUI, or remove the row from the GUI and delete the modulation instance as well. |
◆ getId()
| const String & krotos::ModulationAssignerTable::getId |
( |
| ) |
|
|
inline |
◆ getNumRows()
| int krotos::ModulationAssignerTable::getNumRows |
( |
| ) |
|
|
override |
◆ paint()
| void krotos::ModulationAssignerTable::paint |
( |
Graphics & | g | ) |
|
◆ paintCell()
| void krotos::ModulationAssignerTable::paintCell |
( |
Graphics & | g, |
|
|
int | rowNumber, |
|
|
int | columnId, |
|
|
int | width, |
|
|
int | height, |
|
|
bool | rowIsSelected ) |
|
override |
◆ paintRowBackground()
| void krotos::ModulationAssignerTable::paintRowBackground |
( |
Graphics & | g, |
|
|
int | rowNumber, |
|
|
int | width, |
|
|
int | height, |
|
|
bool | rowIsSelected ) |
|
override |
◆ refreshComponentForCell()
| Component * krotos::ModulationAssignerTable::refreshComponentForCell |
( |
int | rowNumber, |
|
|
int | columnId, |
|
|
bool | isRowSelected, |
|
|
Component * | existingComponentToUpdate ) |
|
override |
◆ resized()
| void krotos::ModulationAssignerTable::resized |
( |
| ) |
|
|
override |
◆ k_dropTabIndex
| const int krotos::ModulationAssignerTable::k_dropTabIndex {0} |
|
private |
◆ k_maxAppendLength
| const int krotos::ModulationAssignerTable::k_maxAppendLength {16} |
|
private |
◆ m_assigner
◆ m_backButton
| TextButton krotos::ModulationAssignerTable::m_backButton |
|
private |
◆ m_depthIdentifier
| const Identifier krotos::ModulationAssignerTable::m_depthIdentifier {"depth"} |
|
private |
◆ m_destinations
| StringArray krotos::ModulationAssignerTable::m_destinations |
|
private |
◆ m_font
| Font krotos::ModulationAssignerTable::m_font {14.0f} |
|
private |
◆ m_id
| String krotos::ModulationAssignerTable::m_id |
|
private |
◆ m_modulationTrees
| std::vector<ValueTree> krotos::ModulationAssignerTable::m_modulationTrees |
|
private |
◆ m_numRows
| int krotos::ModulationAssignerTable::m_numRows |
|
private |
◆ m_padding
| const int krotos::ModulationAssignerTable::m_padding {5} |
|
private |
◆ m_sources
| StringArray krotos::ModulationAssignerTable::m_sources |
|
private |
◆ m_table
| TableListBox krotos::ModulationAssignerTable::m_table |
|
private |
◆ m_tableMap
| std::map<ValueTree, int> krotos::ModulationAssignerTable::m_tableMap |
|
private |
◆ m_titleLabel
| Label krotos::ModulationAssignerTable::m_titleLabel |
|
private |
The documentation for this class was generated from the following files: