68 bool rowIsSelected) = 0;
82 bool rowIsSelected) = 0;
242 void setHeader (std::unique_ptr<TableHeaderComponent> newHeader);
247 void setHeaderHeight (
int newHeight);
262 void autoSizeColumn (
int columnId);
265 void autoSizeAllColumns();
270 void setAutoSizeMenuOptionShown (
bool shouldBeShown)
noexcept;
287 bool relativeToComponentTopLeft)
const;
294 Component* getCellComponent (
int columnId,
int rowNumber)
const;
300 void scrollToEnsureColumnIsOnscreen (
int columnId);
304 int getNumRows()
override;
306 void paintListBoxItem (
int,
Graphics&,
int,
int,
bool)
override;
308 Component* refreshComponentForRow (
int rowNumber,
bool isRowSelected,
Component* existingComponentToUpdate)
override;
310 void selectedRowsChanged (
int row)
override;
312 void deleteKeyPressed (
int currentSelectedRow)
override;
314 void returnKeyPressed (
int currentSelectedRow)
override;
316 void backgroundClicked (
const MouseEvent&)
override;
318 void listWasScrolled()
override;
328 void resized()
override;
#define noexcept
Definition DistrhoDefines.h:72
Definition juce_Component.h:36
String componentName
Definition juce_Component.h:2534
Definition juce_GraphicsContext.h:45
Definition juce_ListBox.h:38
friend class ListBox
Definition juce_ListBox.h:169
Definition juce_MouseEvent.h:39
Definition juce_Rectangle.h:67
Definition juce_SparseSet.h:41
Definition juce_String.h:53
int columnIdNowBeingDragged
Definition juce_TableListBox.h:337
void setModel(TableListBoxModel *newModel)
Definition juce_TableListBox.cpp:358
std::unique_ptr< AccessibilityHandler > createAccessibilityHandler() override
Definition juce_TableListBox.cpp:547
TableListBoxModel * model
Definition juce_TableListBox.h:336
bool isAutoSizeMenuOptionShown() const noexcept
Definition juce_TableListBox.h:275
TableHeaderComponent * header
Definition juce_TableListBox.h:335
TableListBox(const String &componentName=String(), TableListBoxModel *model=nullptr)
Definition juce_TableListBox.cpp:346
bool autoSizeOptionsShown
Definition juce_TableListBox.h:338
void updateColumnComponents() const
Definition juce_TableListBox.cpp:538
TableHeaderComponent & getHeader() const noexcept
Definition juce_TableListBox.h:235
TableListBoxModel * getModel() const noexcept
Definition juce_TableListBox.h:231
Definition juce_TableListBox.h:41
virtual ~TableListBoxModel()=default
virtual String getCellTooltip(int rowNumber, int columnId)
Definition juce_TableListBox.cpp:608
virtual void paintCell(Graphics &, int rowNumber, int columnId, int width, int height, bool rowIsSelected)=0
virtual int getColumnAutoSizeWidth(int columnId)
Definition juce_TableListBox.cpp:602
virtual var getDragSourceDescription(const SparseSet< int > ¤tlySelectedRows)
Definition juce_TableListBox.cpp:609
virtual void cellClicked(int rowNumber, int columnId, const MouseEvent &)
Definition juce_TableListBox.cpp:598
virtual void sortOrderChanged(int newSortColumnId, bool isForwards)
Definition juce_TableListBox.cpp:601
virtual void cellDoubleClicked(int rowNumber, int columnId, const MouseEvent &)
Definition juce_TableListBox.cpp:599
virtual void selectedRowsChanged(int lastRowSelected)
Definition juce_TableListBox.cpp:603
virtual void returnKeyPressed(int lastRowSelected)
Definition juce_TableListBox.cpp:605
TableListBoxModel()=default
virtual void backgroundClicked(const MouseEvent &)
Definition juce_TableListBox.cpp:600
virtual void listWasScrolled()
Definition juce_TableListBox.cpp:606
virtual Component * refreshComponentForCell(int rowNumber, int columnId, bool isRowSelected, Component *existingComponentToUpdate)
Definition juce_TableListBox.cpp:611
virtual void paintRowBackground(Graphics &, int rowNumber, int width, int height, bool rowIsSelected)=0
virtual int getNumRows()=0
virtual void deleteKeyPressed(int lastRowSelected)
Definition juce_TableListBox.cpp:604
Definition juce_Variant.h:42
static int int height
Definition pugl.h:1594
static int width
Definition pugl.h:1593
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
#define const
Definition zconf.h:137