summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Piskun <o.piskun@samsung.com>2017-12-29 22:09:44 +0200
committerMykyta Biliavskyi <belyavskijnb@gmail.com>2017-12-29 22:09:44 +0200
commit5dede954e6be0d2b87fee8ae7a1866f9551ef576 (patch)
tree743fe084ece8e4cbc0e63eb583f42d2f818b2c1b
parent5f81b8976e8a83b152749eb68f0c954400786ffb (diff)
Move navigation source code to additional folder.HEADmaster
Summary: Rename navigation module to plots module because it related to diplaying plots. Reviewers: NikaWhite Differential Revision: https://phab.enlightenment.org/D5718
-rw-r--r--src/lib/CMakeLists.txt4
-rw-r--r--src/lib/main.c6
-rw-r--r--src/lib/plots/plots.c (renamed from src/lib/navigation.c)8
-rw-r--r--src/lib/plots/plots.h (renamed from src/lib/navigation.h)10
4 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index e305a74..dd8600a 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -5,8 +5,8 @@ set(LIB_SOURCE
5 ui_private.h 5 ui_private.h
6 interval_fill.c 6 interval_fill.c
7 #navigation 7 #navigation
8 navigation.c 8 plots/plots.c
9 navigation.h 9 plots/plots.h
10 #data loader 10 #data loader
11 logload.c 11 logload.c
12 logload.h 12 logload.h
diff --git a/src/lib/main.c b/src/lib/main.c
index 859a19a..6a846e9 100644
--- a/src/lib/main.c
+++ b/src/lib/main.c
@@ -20,7 +20,7 @@
20#include "helper.h" 20#include "helper.h"
21#include "ui.h" 21#include "ui.h"
22#include "logload.h" 22#include "logload.h"
23#include "navigation.h" 23#include "plots/plots.h"
24#include "filters.h" 24#include "filters.h"
25#include "interval_fill.h" 25#include "interval_fill.h"
26#include "find/find.h" 26#include "find/find.h"
@@ -48,7 +48,7 @@ efl_profiling_viewer_init(Evas_Object *parent)
48 Evas_Object *content = ui_init(parent); 48 Evas_Object *content = ui_init(parent);
49 filters_init(content); 49 filters_init(content);
50 logload_init(content); 50 logload_init(content);
51 navigation_init(content); 51 plots_init(content);
52 interval_fill_init(content); 52 interval_fill_init(content);
53 find_init(content); 53 find_init(content);
54 54
@@ -140,7 +140,7 @@ efl_profiling_viewer_shutdown(Evas_Object *content)
140 } 140 }
141 141
142 interval_fill_shutdown(content); 142 interval_fill_shutdown(content);
143 navigation_shutdown(content); 143 plots_shutdown(content);
144 logload_shutdown(content); 144 logload_shutdown(content);
145 filters_shutdown(content); 145 filters_shutdown(content);
146 ui_shutdown(content); 146 ui_shutdown(content);
diff --git a/src/lib/navigation.c b/src/lib/plots/plots.c
index f131555..309d555 100644
--- a/src/lib/navigation.c
+++ b/src/lib/plots/plots.c
@@ -17,8 +17,8 @@
17 * along with this program; If not, see www.gnu.org/licenses/lgpl.html. 17 * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
18 */ 18 */
19 19
20#include "helper.h" 20#include "../helper.h"
21#include "navigation.h" 21#include "plots.h"
22 22
23/** 23/**
24 * @brief Approximate Graph data 24 * @brief Approximate Graph data
@@ -217,14 +217,14 @@ _graph_data_update_cb(void* data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
217} 217}
218 218
219Eina_Bool 219Eina_Bool
220navigation_init(Evas_Object* content) 220plots_init(Evas_Object* content)
221{ 221{
222 evas_object_smart_callback_add(content, "graph,data,update", _graph_data_update_cb, NULL); 222 evas_object_smart_callback_add(content, "graph,data,update", _graph_data_update_cb, NULL);
223 return EINA_TRUE; 223 return EINA_TRUE;
224} 224}
225 225
226Eina_Bool 226Eina_Bool
227navigation_shutdown(Evas_Object* content) 227plots_shutdown(Evas_Object* content)
228{ 228{
229 evas_object_smart_callback_del(content, "graph,data,update", _graph_data_update_cb); 229 evas_object_smart_callback_del(content, "graph,data,update", _graph_data_update_cb);
230 return EINA_TRUE; 230 return EINA_TRUE;
diff --git a/src/lib/navigation.h b/src/lib/plots/plots.h
index ff8305b..1334e6c 100644
--- a/src/lib/navigation.h
+++ b/src/lib/plots/plots.h
@@ -23,24 +23,24 @@
23#define MAX_GRAPH_POINTS 300 23#define MAX_GRAPH_POINTS 300
24 24
25/** 25/**
26 * @brief Initializes navigation module. 26 * @brief Initializes plots module.
27 * 27 *
28 * This function initialize the navigation module. 28 * This function initialize the plots module.
29 * Subscibe to the global signals. 29 * Subscibe to the global signals.
30 * 30 *
31 * @return EINA_TRUE in case of success, EINA_FALSE otherwise. 31 * @return EINA_TRUE in case of success, EINA_FALSE otherwise.
32 * 32 *
33 */ 33 */
34Eina_Bool navigation_init(Evas_Object* win); 34Eina_Bool plots_init(Evas_Object* win);
35 35
36/** 36/**
37 * @brief Function shutdowns navigation module. 37 * @brief Function shutdowns plots module.
38 * 38 *
39 * Unsubscribe from global signal. 39 * Unsubscribe from global signal.
40 * 40 *
41 * @return EINA_TRUE in case of success, EINA_FALSE otherwise. 41 * @return EINA_TRUE in case of success, EINA_FALSE otherwise.
42 * 42 *
43 */ 43 */
44Eina_Bool navigation_shutdown(Evas_Object* win); 44Eina_Bool plots_shutdown(Evas_Object* win);
45 45
46#endif 46#endif