summaryrefslogtreecommitdiffstats
path: root/src/app.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-09-12app/layers: consolidate signed/unsigned usageMarcus Fritzsch1-38/+28
* Also make use of optional's operator* where appropriate. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app/layout: fix split layout from and to transitionsMarcus Fritzsch1-73/+54
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12binding: make the pending_events functionality nicer[tm]Marcus Fritzsch1-5/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12binding: ping() dispatches only pending eventsMarcus Fritzsch1-3/+11
* Also, move binding_m mutex to the binding glue. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app/main: dispatch wayland events using ping(), WIP on split layoutMarcus Fritzsch1-27/+203
* Dispatch ayland events with ping() API call, after having read events from wayland fd - in order to prevent indefinite-poll on wrongly read+ dispatch from multiple threads (dispatcher and API call). * Add scope trace to all API call thunks. * Split layout advancements, still broken AF though. * Add App1 example split layout to App layer. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: remove last remnants of obsolete layout configMarcus Fritzsch1-57/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12WIP split layouts, reading config, defining data layout.Marcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App/binding: move binding_api impl to its own source file.Marcus Fritzsch1-73/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: emit visibility eventsMarcus Fritzsch1-6/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: be a little more thorough when activating a surfaceMarcus Fritzsch1-1/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: only activate/deactivate if necessaryMarcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: remove unimplemented (stubbed) binding API methodsMarcus Fritzsch1-12/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: some quality improvements, add activate/deactivate helperMarcus Fritzsch1-24/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: remove last_active logicMarcus Fritzsch1-37/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: cleanup requestSurface API method.Marcus Fritzsch1-3/+3
* Use lookup_id(). * Do not call activate_surface() as the surface does not yet exist. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: emit activated and deactivated eventsMarcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: cleanup name/id mapping and its reverseMarcus Fritzsch1-51/+32
* Single name/id mapping in id_alloc. * Add Proxy methods to App. * Disable old API functions to activate surfaces by ID. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App/API: fix event emission methodsMarcus Fritzsch1-4/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: remove previous work around experiments, add one that fixes HomeScreenMarcus Fritzsch1-21/+44
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: remove add_task/execute_pending supportMarcus Fritzsch1-35/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: workaround for visibility setting; use system()Marcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: visibility setting work around... peak software enfineering right here!!1Marcus Fritzsch1-2/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: do not use the Qt surface ID shift hackMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: use activate_surface() in surface_set_layout()Marcus Fritzsch1-2/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: use id_shift of 22, just like in QtMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app/main: add send_event() to binding_apiMarcus Fritzsch1-2/+21
* Preliminary event support - wrong names, likely wrong implementation Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: added enddraw() and deactivate_surface()Marcus Fritzsch1-10/+91
Implementation untested, not sure if this is even sensible... Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app/id_alloc: remove destroyed surfacesMarcus Fritzsch1-3/+6
Also, make away with those overloaded operators for generation and lookup. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clarify some thingsMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04add role to layer::to_json()Marcus Fritzsch1-5/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clang-tidyMarcus Fritzsch1-3/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clang-formatMarcus Fritzsch1-10/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04Implement surface namesMarcus Fritzsch1-14/+77
* request_surface(name: string) -> id: int. * activate_surface(name: string). * names will be mapped to their respective layers by use of the layers' surface rola match, a regex. * the generated IDs are global and not reused. * allow wp-request to use -p, disable use of pygments even if found. Things missing: * surface removal does not remove already established mappings/names. * Mostly untested. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-16app: some more constructor securityMarcus Fritzsch1-1/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-11Remove the DB() makro, replace with logdebug() where sensibleMarcus Fritzsch1-6/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-11layers: fix json to actually include numbersMarcus Fritzsch1-5/+5
Actually use numbers where we had number-strings. This simplifies the json parsing quite a bit. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang formattingMarcus Fritzsch1-7/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08remove some unnuecessary commentsMarcus Fritzsch1-5/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/api: add demo_activate_all()Marcus Fritzsch1-2/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: remove spurious commentMarcus Fritzsch1-1/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/api: add demo_activate_surface() api_bindingMarcus Fritzsch1-0/+39
* Added "main_surface" entry to layers.json. * This surface is never made invisible by activate_surface(). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: do not set surface source rectangle on layout setupMarcus Fritzsch1-2/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: comment on surface visiblity and layout setupMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/wayland: move late-tasks to AppMarcus Fritzsch1-6/+23
* Move late-tasks to App. * Add add_task() to controller_hooks. * Do not roundtrip at the end of App::execute_pending(), flush() is enough. * Tasks are now void() functions, need to capture what is needed. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: add surface_set_layout(), call it from genivi::controller late-taskMarcus Fritzsch1-38/+54
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: rename fullscren surface taskMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08add license text to implementation filesMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: debug_layers returns a representation of layers.json configurationMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: use config to determine json config file namesMarcus Fritzsch1-13/+20
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: rename load_layer_ids to load_layer_mapMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>