summaryrefslogtreecommitdiffstats
path: root/src/layers.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-09-04add role to layer::to_json()Marcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clang-tidyMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clang-formatMarcus Fritzsch1-16/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04Implement surface namesMarcus Fritzsch1-7/+40
* 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-15layers: remove last remnants of get<T> to read ints from jsonMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-11Remove the DB() makro, replace with logdebug() where sensibleMarcus Fritzsch1-5/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-11layers: fix json to actually include numbersMarcus Fritzsch1-8/+8
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-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08remove some unnuecessary commentsMarcus Fritzsch1-4/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/api: add demo_activate_surface() api_bindingMarcus Fritzsch1-0/+5
* 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-08add license text to implementation filesMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: add layer and layer_map to_json() helperMarcus Fritzsch1-1/+33
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: rename surface_id_to_layer and surface_id_to_layer_mapMarcus Fritzsch1-21/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08minor clang-formatMarcus Fritzsch1-8/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: implement configured surface areas from ids.jsonMarcus Fritzsch1-6/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: clang-formatMarcus Fritzsch1-13/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: provide a layers-only vectorMarcus Fritzsch1-1/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/layers: move embedded test run to layersMarcus Fritzsch1-1/+29
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08remove some of th more verbose debug messagesMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: move get_layer_for_surface() to .cppMarcus Fritzsch1-1/+24
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: introduce layers.hpp and .cpp for layer related codeMarcus Fritzsch1-0/+48
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>