14#include <AUI/Model/AListModelIndex.h>
15#include <AUI/Model/AListModelObserver.h>
16#include <AUI/Model/AListModelSelection.h>
17#include <AUI/Model/IListModel.h>
19#include "AScrollArea.h"
35 bool mAllowMultipleSelection =
false;
38 void handleMouseDoubleClicked(
AListItem* item);
40 void clearSelectionInternal();
50 CLEAR_SELECTION_AND_SET,
79 void selectItem(
size_t i) { updateSelectionOnItem(i, SelectAction::CLEAR_SELECTION_AND_SET); }
81 int getContentFullHeight() {
return getLayout()->getMinimumHeight() + 8; }
83 void setAllowMultipleSelection(
bool allowMultipleSelection);
89 void insertItem(
size_t at,
const AString& value)
override;
90 void updateItem(
size_t at,
const AString& value)
override;
91 void removeItem(
size_t at)
override;
93 void onDataCountChanged()
override;
94 void onDataChanged()
override;
100 void clearSelection();
Definition: AListView.cpp:65
Definition: AListModelObserver.h:22
Definition: AListModelSelection.h:28
Definition: AListView.cpp:24
Displays a list model of strings.
Definition: AListView.h:28
void selectItem(size_t i)
Acts on the item at index i as if the user were left-clicked without keyboard modifiers on it.
Definition: AListView.h:79
SelectAction
Selection action for updateSelectionOnItem.
Definition: AListView.h:46
A std::set with AUI extensions.
Definition: ASet.h:25
Represents a Unicode character string.
Definition: AString.h:37
const _unique< ALayout > & getLayout() const noexcept
Get layout manager of the container.
Definition: AViewContainerBase.h:140
Definition: IListModel.h:23
An std::weak_ptr with AUI extensions.
Definition: SharedPtrTypes.h:177