42 #ifndef STAGE_TEST_ELEMENT_ACCESS_H 43 #define STAGE_TEST_ELEMENT_ACCESS_H 65 using interact::UICoord;
66 using interact::UIC_VIEW;
67 using interact::UIC_TAB;
91 using DummyWidget::DummyWidget;
97 using DummyWidget::DummyWidget;
132 CHECK (existingPath >= location);
133 if (existingPath > location and !response)
135 if (location.leafLevel() == UIC_VIEW)
136 response.reset(
new DummyView(location[UIC_VIEW]));
138 if (location.leafLevel() == UIC_TAB)
139 response.reset(
new DummyTab(location[UIC_TAB]));
141 throw error::Invalid(
"Mock ElementAccess supports only creation of VIEW and TAB. Requested Target was "+
string(location));
144 return response.get();
Describe a location within the UI through structural/topological coordinates.
inline string literal This is a marker type to indicate that
RawResult performAccessTo(UICoord::Builder &target, size_t) override
Interface: access UI elements by navigating the UI topology.
Interface to discover and access raw UI elements in a cross cutting way.
Derived specific exceptions within Lumiera's exception hierarchy.
Marker types to indicate a literal string and a Symbol.
Lumiera GTK UI implementation root.
A topological addressing scheme to designate structural locations within the UI.
Mock implementation of the model::ElementAccess interface for testing without actual UI...
std::unique_ptr< model::Tangible > response
...and if acceptable, we record the last answer here
Lumiera error handling (C++ interface).
Mock UI element or controller.
UICoord existingPath
the next query will fail unless it presents this Path
UICoord const & uiCoord()
A generic interface element instrumented for unit testing.