14#include <AUI/Util/ADataBinding.h>
15#include "AAssSelector.h"
22 friend struct Selected;
24 virtual bool selectableIsSelectedImpl() = 0;
42 _unique<IAssSubSelector> mWrapped;
46 Selected(T value): mWrapped(
new T(std::move(value))) {}
49 bool isPossiblyApplicable(
AView* view)
override {
50 return mWrapped->isPossiblyApplicable(view) &&
dynamic_cast<ISelectable*
>(view);
53 bool isStateApplicable(
AView* view)
override {
54 if (!mWrapped->isStateApplicable(view))
58 return c->selectableIsSelectedImpl();
64 IAssSubSelector::setupConnections(view, helper);
65 mWrapped->setupConnections(view, helper);
void clearAllOutgoingConnectionsWith(aui::no_escape< AObjectBase > object) const noexcept override
Destroys all connections with passed receiver, if any.
Definition ASignal.h:211
Base class of all UI objects.
Definition AView.h:78
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
Definition AAssSelector.h:28
Interface to work with ass::Selected selector.
Definition Selected.h:21
class_of c
Selects views that are of the specified classes.
Definition class_of.h:84
static decltype(auto) connect(const Signal &signal, Object *object, Function &&function)
Connects signal to the slot of the specified object.
Definition AObject.h:86
#define slot(v)
Passes some variable and type of the variable separated by comma. It's convenient to use with the con...
Definition kAUI.h:88