LMMS
Loading...
Searching...
No Matches
juce_TableListBox.cpp
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
30 public TooltipClient
31{
32public:
38
39 void paint (Graphics& g) override
40 {
41 if (auto* tableModel = owner.getModel())
42 {
43 tableModel->paintRowBackground (g, row, getWidth(), getHeight(), isSelected);
44
45 auto& headerComp = owner.getHeader();
46 auto numColumns = headerComp.getNumColumns (true);
47 auto clipBounds = g.getClipBounds();
48
49 for (int i = 0; i < numColumns; ++i)
50 {
51 if (columnComponents[i] == nullptr)
52 {
53 auto columnRect = headerComp.getColumnPosition (i).withHeight (getHeight());
54
55 if (columnRect.getX() >= clipBounds.getRight())
56 break;
57
58 if (columnRect.getRight() > clipBounds.getX())
59 {
61
62 if (g.reduceClipRegion (columnRect))
63 {
64 g.setOrigin (columnRect.getX(), 0);
65 tableModel->paintCell (g, row, headerComp.getColumnIdOfIndex (i, true),
66 columnRect.getWidth(), columnRect.getHeight(), isSelected);
67 }
68 }
69 }
70 }
71 }
72 }
73
74 void update (int newRow, bool isNowSelected)
75 {
76 jassert (newRow >= 0);
77
78 if (newRow != row || isNowSelected != isSelected)
79 {
80 row = newRow;
81 isSelected = isNowSelected;
82 repaint();
83 }
84
85 auto* tableModel = owner.getModel();
86
87 if (tableModel != nullptr && row < owner.getNumRows())
88 {
89 const Identifier columnProperty ("_tableColumnId");
90 auto numColumns = owner.getHeader().getNumColumns (true);
91
92 for (int i = 0; i < numColumns; ++i)
93 {
94 auto columnId = owner.getHeader().getColumnIdOfIndex (i, true);
95 auto* comp = columnComponents[i];
96
97 if (comp != nullptr && columnId != static_cast<int> (comp->getProperties() [columnProperty]))
98 {
99 columnComponents.set (i, nullptr);
100 comp = nullptr;
101 }
102
103 comp = tableModel->refreshComponentForCell (row, columnId, isSelected, comp);
104 columnComponents.set (i, comp, false);
105
106 if (comp != nullptr)
107 {
108 comp->getProperties().set (columnProperty, columnId);
109
112 }
113 }
114
115 columnComponents.removeRange (numColumns, columnComponents.size());
116 }
117 else
118 {
119 columnComponents.clear();
120 }
121 }
122
123 void resized() override
124 {
125 for (int i = columnComponents.size(); --i >= 0;)
127 }
128
129 void resizeCustomComp (int index)
130 {
131 if (auto* c = columnComponents.getUnchecked (index))
132 c->setBounds (owner.getHeader().getColumnPosition (index)
133 .withY (0).withHeight (getHeight()));
134 }
135
136 void mouseDown (const MouseEvent& e) override
137 {
138 isDragging = false;
139 selectRowOnMouseUp = false;
140
141 if (isEnabled())
142 {
143 if (! isSelected)
144 {
145 owner.selectRowsBasedOnModifierKeys (row, e.mods, false);
146
147 auto columnId = owner.getHeader().getColumnIdAtX (e.x);
148
149 if (columnId != 0)
150 if (auto* m = owner.getModel())
151 m->cellClicked (row, columnId, e);
152 }
153 else
154 {
155 selectRowOnMouseUp = true;
156 }
157 }
158 }
159
160 void mouseDrag (const MouseEvent& e) override
161 {
162 if (isEnabled()
163 && owner.getModel() != nullptr
164 && e.mouseWasDraggedSinceMouseDown()
165 && ! isDragging)
166 {
167 SparseSet<int> rowsToDrag;
168
169 if (owner.selectOnMouseDown || owner.isRowSelected (row))
170 rowsToDrag = owner.getSelectedRows();
171 else
173
174 if (rowsToDrag.size() > 0)
175 {
176 auto dragDescription = owner.getModel()->getDragSourceDescription (rowsToDrag);
177
178 if (! (dragDescription.isVoid() || (dragDescription.isString() && dragDescription.toString().isEmpty())))
179 {
180 isDragging = true;
181 owner.startDragAndDrop (e, rowsToDrag, dragDescription, true);
182 }
183 }
184 }
185 }
186
187 void mouseUp (const MouseEvent& e) override
188 {
189 if (selectRowOnMouseUp && e.mouseWasClicked() && isEnabled())
190 {
191 owner.selectRowsBasedOnModifierKeys (row, e.mods, true);
192
193 auto columnId = owner.getHeader().getColumnIdAtX (e.x);
194
195 if (columnId != 0)
196 if (TableListBoxModel* m = owner.getModel())
197 m->cellClicked (row, columnId, e);
198 }
199 }
200
201 void mouseDoubleClick (const MouseEvent& e) override
202 {
203 auto columnId = owner.getHeader().getColumnIdAtX (e.x);
204
205 if (columnId != 0)
206 if (auto* m = owner.getModel())
207 m->cellDoubleClicked (row, columnId, e);
208 }
209
211 {
212 auto columnId = owner.getHeader().getColumnIdAtX (getMouseXYRelative().getX());
213
214 if (columnId != 0)
215 if (auto* m = owner.getModel())
216 return m->getCellTooltip (row, columnId);
217
218 return {};
219 }
220
222 {
223 return columnComponents [owner.getHeader().getIndexOfColumnId (columnId, true)];
224 }
225
226 std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override
227 {
228 return std::make_unique<RowAccessibilityHandler> (*this);
229 }
230
231 //==============================================================================
233 {
234 public:
236 : AccessibilityHandler (rowComp,
239 { std::make_unique<RowComponentCellInterface> (*this) }),
240 rowComponent (rowComp)
241 {
242 }
243
244 String getTitle() const override
245 {
246 if (auto* m = rowComponent.owner.ListBox::model)
247 return m->getNameForRow (rowComponent.row);
248
249 return {};
250 }
251
252 String getHelp() const override { return rowComponent.getTooltip(); }
253
255 {
256 if (auto* m = rowComponent.owner.getModel())
257 if (rowComponent.row >= m->getNumRows())
258 return AccessibleState().withIgnored();
259
261
262 if (rowComponent.owner.multipleSelection)
263 state = state.withMultiSelectable();
264 else
265 state = state.withSelectable();
266
267 if (rowComponent.isSelected)
268 return state.withSelected();
269
270 return state;
271 }
272
274 {
275 public:
280
281 int getColumnIndex() const override { return 0; }
282 int getColumnSpan() const override { return 1; }
283
284 int getRowIndex() const override { return owner.rowComponent.row; }
285 int getRowSpan() const override { return 1; }
286
287 int getDisclosureLevel() const override { return 0; }
288
289 const AccessibilityHandler* getTableHandler() const override { return owner.rowComponent.owner.getAccessibilityHandler(); }
290
291 private:
293 };
294
295 private:
297 };
298
299 //==============================================================================
302 int row = -1;
303 bool isSelected = false, isDragging = false, selectRowOnMouseUp = false;
304
306};
307
308
309//==============================================================================
311{
312public:
313 Header (TableListBox& tlb) : owner (tlb) {}
314
315 void addMenuItems (PopupMenu& menu, int columnIdClicked)
316 {
317 if (owner.isAutoSizeMenuOptionShown())
318 {
319 menu.addItem (autoSizeColumnId, TRANS("Auto-size this column"), columnIdClicked != 0);
320 menu.addItem (autoSizeAllId, TRANS("Auto-size all columns"), owner.getHeader().getNumColumns (true) > 0);
321 menu.addSeparator();
322 }
323
324 TableHeaderComponent::addMenuItems (menu, columnIdClicked);
325 }
326
327 void reactToMenuItem (int menuReturnId, int columnIdClicked)
328 {
329 switch (menuReturnId)
330 {
331 case autoSizeColumnId: owner.autoSizeColumn (columnIdClicked); break;
332 case autoSizeAllId: owner.autoSizeAllColumns(); break;
333 default: TableHeaderComponent::reactToMenuItem (menuReturnId, columnIdClicked); break;
334 }
335 }
336
337private:
339
340 enum { autoSizeColumnId = 0xf836743, autoSizeAllId = 0xf836744 };
341
343};
344
345//==============================================================================
347 : ListBox (name, nullptr), model (m)
348{
350
351 setHeader (std::make_unique<Header> (*this));
352}
353
357
359{
360 if (model != newModel)
361 {
362 model = newModel;
364 }
365}
366
367void TableListBox::setHeader (std::unique_ptr<TableHeaderComponent> newHeader)
368{
369 if (newHeader == nullptr)
370 {
371 jassertfalse; // you need to supply a real header for a table!
372 return;
373 }
374
375 Rectangle<int> newBounds (100, 28);
376
377 if (header != nullptr)
378 newBounds = header->getBounds();
379
380 header = newHeader.get();
381 header->setBounds (newBounds);
382
383 setHeaderComponent (std::move (newHeader));
384
385 header->addListener (this);
386}
387
389{
390 return header->getHeight();
391}
392
394{
395 header->setSize (header->getWidth(), newHeight);
396 resized();
397}
398
400{
401 auto width = model != nullptr ? model->getColumnAutoSizeWidth (columnId) : 0;
402
403 if (width > 0)
404 header->setColumnWidth (columnId, width);
405}
406
408{
409 for (int i = 0; i < header->getNumColumns (true); ++i)
410 autoSizeColumn (header->getColumnIdOfIndex (i, true));
411}
412
413void TableListBox::setAutoSizeMenuOptionShown (bool shouldBeShown) noexcept
414{
415 autoSizeOptionsShown = shouldBeShown;
416}
417
418Rectangle<int> TableListBox::getCellPosition (int columnId, int rowNumber, bool relativeToComponentTopLeft) const
419{
420 auto headerCell = header->getColumnPosition (header->getIndexOfColumnId (columnId, true));
421
422 if (relativeToComponentTopLeft)
423 headerCell.translate (header->getX(), 0);
424
425 return getRowPosition (rowNumber, relativeToComponentTopLeft)
426 .withX (headerCell.getX())
427 .withWidth (headerCell.getWidth());
428}
429
430Component* TableListBox::getCellComponent (int columnId, int rowNumber) const
431{
432 if (auto* rowComp = dynamic_cast<RowComp*> (getComponentForRowNumber (rowNumber)))
433 return rowComp->findChildComponentForColumn (columnId);
434
435 return nullptr;
436}
437
439{
440 auto& scrollbar = getHorizontalScrollBar();
441 auto pos = header->getColumnPosition (header->getIndexOfColumnId (columnId, true));
442
443 auto x = scrollbar.getCurrentRangeStart();
444 auto w = scrollbar.getCurrentRangeSize();
445
446 if (pos.getX() < x)
447 x = pos.getX();
448 else if (pos.getRight() > x + w)
449 x += jmax (0.0, pos.getRight() - (x + w));
450
451 scrollbar.setCurrentRangeStart (x);
452}
453
455{
456 return model != nullptr ? model->getNumRows() : 0;
457}
458
459void TableListBox::paintListBoxItem (int, Graphics&, int, int, bool)
460{
461}
462
463Component* TableListBox::refreshComponentForRow (int rowNumber, bool rowSelected, Component* existingComponentToUpdate)
464{
465 if (existingComponentToUpdate == nullptr)
466 existingComponentToUpdate = new RowComp (*this);
467
468 static_cast<RowComp*> (existingComponentToUpdate)->update (rowNumber, rowSelected);
469
470 return existingComponentToUpdate;
471}
472
474{
475 if (model != nullptr)
476 model->selectedRowsChanged (row);
477}
478
480{
481 if (model != nullptr)
482 model->deleteKeyPressed (row);
483}
484
486{
487 if (model != nullptr)
488 model->returnKeyPressed (row);
489}
490
492{
493 if (model != nullptr)
494 model->backgroundClicked (e);
495}
496
498{
499 if (model != nullptr)
500 model->listWasScrolled();
501}
502
509
516
518{
519 if (model != nullptr)
520 model->sortOrderChanged (header->getSortColumnId(),
521 header->isSortedForwards());
522}
523
525{
526 columnIdNowBeingDragged = columnIdNowBeingDragged_;
527 repaint();
528}
529
531{
533
534 header->resizeAllColumnsToFit (getVisibleContentWidth());
535 setMinimumContentWidth (header->getTotalWidth());
536}
537
539{
540 auto firstRow = getRowContainingPosition (0, 0);
541
542 for (int i = firstRow + getNumRowsOnScreen() + 2; --i >= firstRow;)
543 if (auto* rowComp = dynamic_cast<RowComp*> (getComponentForRowNumber (i)))
544 rowComp->resized();
545}
546
547std::unique_ptr<AccessibilityHandler> TableListBox::createAccessibilityHandler()
548{
549 class TableInterface : public AccessibilityTableInterface
550 {
551 public:
552 explicit TableInterface (TableListBox& tableListBoxToWrap)
553 : tableListBox (tableListBoxToWrap)
554 {
555 }
556
557 int getNumRows() const override
558 {
559 if (auto* tableModel = tableListBox.getModel())
560 return tableModel->getNumRows();
561
562 return 0;
563 }
564
565 int getNumColumns() const override
566 {
567 return tableListBox.getHeader().getNumColumns (false);
568 }
569
570 const AccessibilityHandler* getCellHandler (int row, int column) const override
571 {
573 {
574 if (isPositiveAndBelow (column, getNumColumns()))
575 if (auto* cellComponent = tableListBox.getCellComponent (tableListBox.getHeader().getColumnIdOfIndex (column, false), row))
576 return cellComponent->getAccessibilityHandler();
577
578 if (auto* rowComp = tableListBox.getComponentForRowNumber (row))
579 return rowComp->getAccessibilityHandler();
580 }
581
582 return nullptr;
583 }
584
585 private:
586 TableListBox& tableListBox;
587
589 };
590
591 return std::make_unique<AccessibilityHandler> (*this,
594 AccessibilityHandler::Interfaces { std::make_unique<TableInterface> (*this) });
595}
596
597//==============================================================================
607
608String TableListBoxModel::getCellTooltip (int /*rowNumber*/, int /*columnId*/) { return {}; }
610
611Component* TableListBoxModel::refreshComponentForCell (int, int, bool, Component* existingComponentToUpdate)
612{
613 ignoreUnused (existingComponentToUpdate);
614 jassert (existingComponentToUpdate == nullptr); // indicates a failure in the code that recycles the components
615 return nullptr;
616}
617
618} // namespace juce
Type jmax(const Type a, const Type b)
Definition MathsFunctions.h:48
#define noexcept
Definition DistrhoDefines.h:72
#define nullptr
Definition DistrhoDefines.h:75
Definition juce_AccessibilityActions.h:73
Definition juce_AccessibilityCellInterface.h:37
Definition juce_AccessibilityHandler.h:41
virtual AccessibleState getCurrentState() const
Definition juce_AccessibilityHandler.cpp:75
AccessibilityHandler(Component &componentToWrap, AccessibilityRole accessibilityRole, AccessibilityActions actions={}, Interfaces interfaces={})
Definition juce_AccessibilityHandler.cpp:55
Definition juce_AccessibilityTableInterface.h:37
Definition juce_AccessibilityState.h:39
JUCE_NODISCARD AccessibleState withIgnored() const noexcept
Definition juce_AccessibilityState.h:95
Definition juce_Component.h:36
void setFocusContainerType(FocusContainerType containerType) noexcept
Definition juce_Component.cpp:2862
int getHeight() const noexcept
Definition juce_Component.h:274
int getX() const noexcept
Definition juce_Component.h:259
void addAndMakeVisible(Component *child, int zOrder=-1)
Definition juce_Component.cpp:1554
void repaint()
Definition juce_Component.cpp:1917
Component() noexcept
Definition juce_Component.cpp:517
@ focusContainer
Definition juce_Component.h:1295
Point< int > getMouseXYRelative() const
Definition juce_Component.cpp:3210
int getWidth() const noexcept
Definition juce_Component.h:271
bool isEnabled() const noexcept
Definition juce_Component.cpp:3104
Definition juce_GraphicsContext.h:660
Definition juce_GraphicsContext.h:45
Definition juce_Identifier.h:39
int getRowContainingPosition(int x, int y) const noexcept
Definition juce_ListBox.cpp:824
void setMinimumContentWidth(int newMinimumWidth)
Definition juce_ListBox.cpp:1024
Component * getComponentForRowNumber(int rowNumber) const noexcept
Definition juce_ListBox.cpp:845
int getVisibleContentWidth() const noexcept
Definition juce_ListBox.cpp:1030
ScrollBar & getHorizontalScrollBar() const noexcept
Definition juce_ListBox.cpp:1033
Rectangle< int > getRowPosition(int rowNumber, bool relativeToComponentTopLeft) const noexcept
Definition juce_ListBox.cpp:858
int getNumRowsOnScreen() const noexcept
Definition juce_ListBox.cpp:1019
void updateContent()
Definition juce_ListBox.cpp:622
void setHeaderComponent(std::unique_ptr< Component > newHeaderComponent)
Definition juce_ListBox.cpp:1053
void assignModelPtr(ListBoxModel *)
Definition juce_ListBox.cpp:547
void resized() override
Definition juce_ListBox.cpp:601
friend class ListBox
Definition juce_ListBox.h:169
Definition juce_MouseEvent.h:39
Definition juce_OwnedArray.h:51
Definition juce_PopupMenu.h:80
void addSeparator()
Definition juce_PopupMenu.cpp:1920
void addItem(Item newItem)
Definition juce_PopupMenu.cpp:1753
static JUCE_NODISCARD Range withStartAndLength(const ValueType startValue, const ValueType length) noexcept
Definition juce_Range.h:66
Definition juce_Rectangle.h:67
Definition juce_SparseSet.h:41
Type size() const noexcept
Definition juce_SparseSet.h:67
void addRange(Range< Type > range)
Definition juce_SparseSet.h:143
Definition juce_String.h:53
Definition juce_TableHeaderComponent.h:47
virtual void addMenuItems(PopupMenu &menu, int columnIdClicked)
Definition juce_TableHeaderComponent.cpp:484
virtual void reactToMenuItem(int menuReturnId, int columnIdClicked)
Definition juce_TableHeaderComponent.cpp:493
TableHeaderComponent()
Definition juce_TableHeaderComponent.cpp:51
Definition juce_TableListBox.cpp:311
Header(TableListBox &tlb)
Definition juce_TableListBox.cpp:313
@ autoSizeColumnId
Definition juce_TableListBox.cpp:340
@ autoSizeAllId
Definition juce_TableListBox.cpp:340
TableListBox & owner
Definition juce_TableListBox.cpp:338
void reactToMenuItem(int menuReturnId, int columnIdClicked)
Definition juce_TableListBox.cpp:327
void addMenuItems(PopupMenu &menu, int columnIdClicked)
Definition juce_TableListBox.cpp:315
int getRowIndex() const override
Definition juce_TableListBox.cpp:284
RowAccessibilityHandler & owner
Definition juce_TableListBox.cpp:292
int getColumnIndex() const override
Definition juce_TableListBox.cpp:281
int getColumnSpan() const override
Definition juce_TableListBox.cpp:282
RowComponentCellInterface(RowAccessibilityHandler &handler)
Definition juce_TableListBox.cpp:276
int getDisclosureLevel() const override
Definition juce_TableListBox.cpp:287
const AccessibilityHandler * getTableHandler() const override
Definition juce_TableListBox.cpp:289
int getRowSpan() const override
Definition juce_TableListBox.cpp:285
RowAccessibilityHandler(RowComp &rowComp)
Definition juce_TableListBox.cpp:235
AccessibleState getCurrentState() const override
Definition juce_TableListBox.cpp:254
String getTitle() const override
Definition juce_TableListBox.cpp:244
String getHelp() const override
Definition juce_TableListBox.cpp:252
RowComp & rowComponent
Definition juce_TableListBox.cpp:296
Definition juce_TableListBox.cpp:31
void resized() override
Definition juce_TableListBox.cpp:123
String getTooltip() override
Definition juce_TableListBox.cpp:210
void mouseDrag(const MouseEvent &e) override
Definition juce_TableListBox.cpp:160
int row
Definition juce_TableListBox.cpp:302
bool selectRowOnMouseUp
Definition juce_TableListBox.cpp:303
void update(int newRow, bool isNowSelected)
Definition juce_TableListBox.cpp:74
TableListBox & owner
Definition juce_TableListBox.cpp:300
void mouseUp(const MouseEvent &e) override
Definition juce_TableListBox.cpp:187
void mouseDoubleClick(const MouseEvent &e) override
Definition juce_TableListBox.cpp:201
OwnedArray< Component > columnComponents
Definition juce_TableListBox.cpp:301
void mouseDown(const MouseEvent &e) override
Definition juce_TableListBox.cpp:136
void resizeCustomComp(int index)
Definition juce_TableListBox.cpp:129
Component * findChildComponentForColumn(int columnId) const
Definition juce_TableListBox.cpp:221
void paint(Graphics &g) override
Definition juce_TableListBox.cpp:39
bool isDragging
Definition juce_TableListBox.cpp:303
bool isSelected
Definition juce_TableListBox.cpp:303
RowComp(TableListBox &tlb) noexcept
Definition juce_TableListBox.cpp:33
std::unique_ptr< AccessibilityHandler > createAccessibilityHandler() override
Definition juce_TableListBox.cpp:226
void tableColumnsChanged(TableHeaderComponent *) override
Definition juce_TableListBox.cpp:503
void autoSizeAllColumns()
Definition juce_TableListBox.cpp:407
int columnIdNowBeingDragged
Definition juce_TableListBox.h:337
void setModel(TableListBoxModel *newModel)
Definition juce_TableListBox.cpp:358
int getHeaderHeight() const noexcept
Definition juce_TableListBox.cpp:388
std::unique_ptr< AccessibilityHandler > createAccessibilityHandler() override
Definition juce_TableListBox.cpp:547
TableListBoxModel * model
Definition juce_TableListBox.h:336
void scrollToEnsureColumnIsOnscreen(int columnId)
Definition juce_TableListBox.cpp:438
void paintListBoxItem(int, Graphics &, int, int, bool) override
Definition juce_TableListBox.cpp:459
TableHeaderComponent * header
Definition juce_TableListBox.h:335
void setHeaderHeight(int newHeight)
Definition juce_TableListBox.cpp:393
TableListBox(const String &componentName=String(), TableListBoxModel *model=nullptr)
Definition juce_TableListBox.cpp:346
void autoSizeColumn(int columnId)
Definition juce_TableListBox.cpp:399
Component * getCellComponent(int columnId, int rowNumber) const
Definition juce_TableListBox.cpp:430
bool autoSizeOptionsShown
Definition juce_TableListBox.h:338
void deleteKeyPressed(int currentSelectedRow) override
Definition juce_TableListBox.cpp:479
void setHeader(std::unique_ptr< TableHeaderComponent > newHeader)
Definition juce_TableListBox.cpp:367
void tableColumnsResized(TableHeaderComponent *) override
Definition juce_TableListBox.cpp:510
void setAutoSizeMenuOptionShown(bool shouldBeShown) noexcept
Definition juce_TableListBox.cpp:413
Component * refreshComponentForRow(int rowNumber, bool isRowSelected, Component *existingComponentToUpdate) override
Definition juce_TableListBox.cpp:463
void updateColumnComponents() const
Definition juce_TableListBox.cpp:538
void listWasScrolled() override
Definition juce_TableListBox.cpp:497
void resized() override
Definition juce_TableListBox.cpp:530
int getNumRows() override
Definition juce_TableListBox.cpp:454
void selectedRowsChanged(int row) override
Definition juce_TableListBox.cpp:473
~TableListBox() override
Definition juce_TableListBox.cpp:354
Rectangle< int > getCellPosition(int columnId, int rowNumber, bool relativeToComponentTopLeft) const
Definition juce_TableListBox.cpp:418
void returnKeyPressed(int currentSelectedRow) override
Definition juce_TableListBox.cpp:485
void tableSortOrderChanged(TableHeaderComponent *) override
Definition juce_TableListBox.cpp:517
void tableColumnDraggingChanged(TableHeaderComponent *, int) override
Definition juce_TableListBox.cpp:524
void backgroundClicked(const MouseEvent &) override
Definition juce_TableListBox.cpp:491
Definition juce_TableListBox.h:41
virtual String getCellTooltip(int rowNumber, int columnId)
Definition juce_TableListBox.cpp:608
virtual int getColumnAutoSizeWidth(int columnId)
Definition juce_TableListBox.cpp:602
virtual var getDragSourceDescription(const SparseSet< int > &currentlySelectedRows)
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
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 deleteKeyPressed(int lastRowSelected)
Definition juce_TableListBox.cpp:604
Definition juce_TooltipClient.h:42
Definition juce_Variant.h:42
* e
Definition inflate.c:1404
UINT_D64 w
Definition inflate.c:942
unsigned * m
Definition inflate.c:1559
int g
Definition inflate.c:1573
register unsigned i
Definition inflate.c:1575
unsigned x[BMAX+1]
Definition inflate.c:1586
static const char * name
Definition pugl.h:1582
static int width
Definition pugl.h:1593
#define TRANS(stringLiteral)
Definition juce_LocalisedStrings.h:208
#define jassert(expression)
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define jassertfalse
static int JUCE_CDECL comp(const void *a, const void *b)
Definition lsp.c:298
Definition carla_juce.cpp:31
void ignoreUnused(Types &&...) noexcept
Definition juce_MathsFunctions.h:333
static AccessibilityActions getListRowAccessibilityActions(RowComponentType &rowComponent)
Definition juce_ListBox.cpp:30
bool isPositiveAndBelow(Type1 valueToTest, Type2 upperLimit) noexcept
Definition juce_MathsFunctions.h:279
AccessibilityRole
Definition juce_AccessibilityRole.h:37
@ list
Definition juce_AccessibilityRole.h:56
@ column
Definition juce_AccessibilityRole.h:52
@ row
Definition juce_AccessibilityRole.h:53
Definition juce_AccessibilityHandler.h:49
return c
Definition crypt.c:175
void handler(int signal)
Definition fileio.c:1632
ss
Definition zipinfo.c:2292
#define const
Definition zconf.h:137