33 #ifndef STAGE_TEST_ELEMENT_ACCESS_H 34 #define STAGE_TEST_ELEMENT_ACCESS_H 56 using interact::UICoord;
57 using interact::UIC_VIEW;
58 using interact::UIC_TAB;
82 using DummyWidget::DummyWidget;
88 using DummyWidget::DummyWidget;
123 CHECK (existingPath >= location);
124 if (existingPath > location and !response)
126 if (location.leafLevel() == UIC_VIEW)
127 response.reset(
new DummyView(location[UIC_VIEW]));
129 if (location.leafLevel() == UIC_TAB)
130 response.reset(
new DummyTab(location[UIC_TAB]));
132 throw error::Invalid(
"Mock ElementAccess supports only creation of VIEW and TAB. Requested Target was "+
string(location));
135 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.