summaryrefslogtreecommitdiffstats
path: root/src/app.cpp
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-08-08layers: rename surface_id_to_layer and surface_id_to_layer_mapMarcus Fritzsch1-11/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: some comments and erorrs regarding IDs configurationMarcus Fritzsch1-0/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: when loading config, handle returned errorsMarcus Fritzsch1-8/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: simplify config loading code, handle errors tooMarcus Fritzsch1-6/+20
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08minor clang-formatMarcus Fritzsch1-7/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: handle failure to load layout.json gracefullyMarcus Fritzsch1-1/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: implement configured surface areas from ids.jsonMarcus Fritzsch1-13/+19
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: make genivi::rect::width and height int32Marcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: surfaces on layer != 1000 leave a 100pixel top and bottom marginMarcus Fritzsch1-3/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: add debug_terminate() event, quick hack to terminateMarcus Fritzsch1-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: clang-formatMarcus Fritzsch1-4/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: provide a layers-only vectorMarcus Fritzsch1-5/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: logdebug() layer setupMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: scene setup according to ids.jsonMarcus Fritzsch1-35/+38
* Setup layers as specified in ids.json. * Map surfaces to their layers. * Complain about unknown surfaces (i.e. those w/o a mapping). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: preallocate layouts storageMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/wayland: move surface setup as is to app controller hookMarcus Fritzsch1-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: wire up controller_hooksMarcus Fritzsch1-2/+39
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/layers: move embedded test run to layersMarcus Fritzsch1-22/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy once moreMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: introduce layers.hpp and .cpp for layer related codeMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: resturn Err() on failed IDs testMarcus Fritzsch1-4/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: try to parse ids.json, run embedded tests (debug output only)Marcus Fritzsch1-14/+48
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>