Help text read from config 58/194658/2
authorMichal Skorupinski <m.skorupinsk@samsung.com>
Wed, 5 Dec 2018 13:59:50 +0000 (14:59 +0100)
committerMichal Skorupinski <m.skorupinsk@samsung.com>
Thu, 17 Jan 2019 12:41:24 +0000 (13:41 +0100)
Change-Id: I35ef4b75a9e1c09e26f1fc9a399ec0b228bb5aed
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
inc/steering_setup.h
src/steering_setup.c
src/view/view_help.c

index 715d9bd..fcada52 100644 (file)
 #ifndef STEERING_SETUP_H_
 #define STEERING_SETUP_H_
 
-void steering_setup_set_sensor_steering_bezel_velocity();
-void steering_setup_set_bezel_steering_sensor_velocity();
-void steering_setup_set_sensor_steering_sensor_velocity_bezel_elev();
-void steering_setup_set_sensor_steering_sensor_velocity_bezel_azimuth();
 void steering_setup();
 
 
index b6dab69..bdcd0de 100644 (file)
@@ -177,8 +177,6 @@ void _set_buttons()
 
 void steering_setup()
 {
-       config_set_string("steering", "mode", "axis_x->direction;axis_y->cam.elevation;bezel->throttle;buttons->cam.azimuth");
-
        _set_roles();
        _set_bezel();
 
index 15faede..399ce51 100644 (file)
@@ -18,6 +18,7 @@
 #include "view/view_help.h"
 #include "view_manager/view_manager.h"
 #include "controller/controller_help.h"
+#include "config.h"
 
 typedef struct _s_view_help {
        s_view_base view_base;
@@ -41,7 +42,17 @@ static void _view_help_create_gui(Evas_Object *parent)
        eext_object_event_callback_add(s_info.view_base.view, EEXT_CALLBACK_BACK, _layout_back_cb, NULL);
 
        //Setting text
-       elm_layout_text_set(s_info.view_base.view, "txt_title", "Help view text, that can be long enough to fill these lines");
+       char *help_text;
+
+       config_get_string_or_set_default("info", "description",
+                       "axis_x: direction<br>"
+                       "axis_y: camera elevation<br>"
+                       "bezel: throttle<br>"
+                       "buttons: camera azimuth<br>", &help_text);
+
+       elm_layout_text_set(s_info.view_base.view, "txt_title", help_text);
+
+       free(help_text);
 
        //Creating OK button
        view_base_create_button(s_info.view_base.view, "Button_Ok", "OK", NULL, "racing_bottom", _ok_button_clicked_cb, NULL);