|
TracktionEngine
|
Manages a list of items that are currently selected. More...
#include <tracktion_SelectionManager.h>
Classes | |
| struct | ChangedSelectionDetector |
| struct | ScopedSelectionState |
| struct | Iterator |
| struct | ComponentWithSelectionManager |
Public Member Functions | |
| SelectionManager (Engine &) | |
| ~SelectionManager () override | |
| int | getNumObjectsSelected () const |
| Selectable * | getSelectedObject (int index) const |
| bool | isSelected (const Selectable *) const |
| bool | isSelected (const Selectable &) const |
| const SelectableList & | getSelectedObjects () const |
| SelectableClass * | getFirstSelectableClass () const |
| void | selectOnly (Selectable *) |
| void | selectOnly (Selectable &) |
| void | addToSelection (Selectable *) |
| void | addToSelection (Selectable &) |
| void | select (Selectable *, bool addToCurrentSelection) |
| void | select (Selectable &, bool addToCurrentSelection) |
| void | select (const SelectableList &) |
| void | deselectAll () |
| void | deselect (Selectable *) |
| void | selectOtherObjects (SelectableClass::Relationship, bool keepOldItemsSelected) |
| Selects related objects, e.g. | |
| template<typename SelectableClass> | |
| bool | containsType () const |
| template<typename SelectableClass> | |
| int | getNumObjectsSelectedOfType () const |
| template<typename SelectableClass> | |
| juce::Array< SelectableClass * > | getItemsOfType () const |
| template<typename SelectableClass> | |
| SelectableClass * | getFirstItemOfType () const |
| void | deleteSelected () |
| bool | copySelected () |
| bool | cutSelected () |
| bool | pasteSelected () |
| Offers the selected things the chance to paste the contents of the clipboard onto themselves, returns false if they didn't handle it. | |
| void | keepSelectedObjectsOnScreen () |
| Scrolls whatever is necessary to keep the selected stuff visible. | |
| void | refreshPropertyPanel () |
| void | selectableObjectChanged (Selectable *) override |
| void | selectableObjectAboutToBeDeleted (Selectable *) override |
| Edit * | getEdit () const |
Static Public Member Functions | |
| static void | refreshAllPropertyPanels () |
| static void | refreshAllPropertyPanelsShowing (Selectable &) |
| static void | deselectAllFromAllWindows () |
| static SelectionManager * | findSelectionManager (const juce::Component *) |
| static SelectionManager * | findSelectionManager (const juce::Component &) |
| static SelectionManager * | findSelectionManagerContaining (const Selectable *) |
| static SelectionManager * | findSelectionManagerContaining (const Selectable &) |
Public Attributes | |
| int | selectionChangeCount = 0 |
| SafeSelectable< Edit > | edit |
| If this SelectionManager is being used to represent items inside a particular view of an edit, this id should be set so you can find it by iterating the SelectionManagers. | |
| int | editViewID = -1 |
| EditInsertPoint * | insertPoint = nullptr |
| Engine & | engine |
Manages a list of items that are currently selected.
| engine::SelectionManager::SelectionManager | ( | Engine & | ) |
Referenced by findSelectionManager(), findSelectionManager(), findSelectionManagerContaining(), findSelectionManagerContaining(), engine::SelectionManager::Iterator::get(), engine::SelectionManager::ComponentWithSelectionManager::getSelectionManager(), engine::SelectionManager::ChangedSelectionDetector::isFirstChangeSinceSelection(), engine::SelectionManager::Iterator::operator->(), engine::SelectionManager::ScopedSelectionState::ScopedSelectionState(), Selectable, and engine::SelectionManager::ScopedSelectionState::~ScopedSelectionState().
|
override |
| int engine::SelectionManager::getNumObjectsSelected | ( | ) | const |
| Selectable * engine::SelectionManager::getSelectedObject | ( | int | index | ) | const |
References Selectable.
| bool engine::SelectionManager::isSelected | ( | const Selectable * | ) | const |
References Selectable.
| bool engine::SelectionManager::isSelected | ( | const Selectable & | ) | const |
References Selectable.
| const SelectableList & engine::SelectionManager::getSelectedObjects | ( | ) | const |
| SelectableClass * engine::SelectionManager::getFirstSelectableClass | ( | ) | const |
| void engine::SelectionManager::selectOnly | ( | Selectable * | ) |
References Selectable.
| void engine::SelectionManager::selectOnly | ( | Selectable & | ) |
References Selectable.
| void engine::SelectionManager::addToSelection | ( | Selectable * | ) |
References Selectable.
| void engine::SelectionManager::addToSelection | ( | Selectable & | ) |
References Selectable.
| void engine::SelectionManager::select | ( | Selectable * | , |
| bool | addToCurrentSelection ) |
References Selectable.
| void engine::SelectionManager::select | ( | Selectable & | , |
| bool | addToCurrentSelection ) |
References Selectable.
| void engine::SelectionManager::select | ( | const SelectableList & | ) |
| void engine::SelectionManager::deselectAll | ( | ) |
| void engine::SelectionManager::deselect | ( | Selectable * | ) |
References Selectable.
| void engine::SelectionManager::selectOtherObjects | ( | SelectableClass::Relationship | , |
| bool | keepOldItemsSelected ) |
Selects related objects, e.g.
the thing to the right of the current thing, etc.
| bool engine::SelectionManager::containsType | ( | ) | const |
| int engine::SelectionManager::getNumObjectsSelectedOfType | ( | ) | const |
| juce::Array< SelectableClass * > engine::SelectionManager::getItemsOfType | ( | ) | const |
| SelectableClass * engine::SelectionManager::getFirstItemOfType | ( | ) | const |
| void engine::SelectionManager::deleteSelected | ( | ) |
| bool engine::SelectionManager::copySelected | ( | ) |
| bool engine::SelectionManager::cutSelected | ( | ) |
| bool engine::SelectionManager::pasteSelected | ( | ) |
Offers the selected things the chance to paste the contents of the clipboard onto themselves, returns false if they didn't handle it.
| void engine::SelectionManager::keepSelectedObjectsOnScreen | ( | ) |
Scrolls whatever is necessary to keep the selected stuff visible.
| void engine::SelectionManager::refreshPropertyPanel | ( | ) |
|
static |
|
static |
References Selectable.
|
static |
|
overridevirtual |
Implements engine::SelectableListener.
References Selectable.
|
overridevirtual |
Implements engine::SelectableListener.
References Selectable.
|
static |
References SelectionManager().
|
static |
References SelectionManager().
|
static |
References Selectable, and SelectionManager().
|
static |
References Selectable, and SelectionManager().
| Edit * engine::SelectionManager::getEdit | ( | ) | const |
| int engine::SelectionManager::selectionChangeCount = 0 |
| SafeSelectable<Edit> engine::SelectionManager::edit |
If this SelectionManager is being used to represent items inside a particular view of an edit, this id should be set so you can find it by iterating the SelectionManagers.
| int engine::SelectionManager::editViewID = -1 |
| EditInsertPoint* engine::SelectionManager::insertPoint = nullptr |
| Engine& engine::SelectionManager::engine |