[apps] Move the graph/cursor view to the apps root to be used by other

app (as regression app)

Change-Id: Ie3b7f1028333fe136b0ac761cc728a05a90ffc7f
This commit is contained in:
Émilie Feral
2016-12-30 16:12:25 +01:00
parent 7e44dfee12
commit 71f9913b08
5 changed files with 4 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ include apps/statistics/Makefile
app_objs += $(addprefix apps/,\
apps_container.o\
constant.o\
cursor_view.o\
curve_view.o\
curve_view_with_banner.o\
curve_view_window.o\

View File

@@ -1,12 +1,8 @@
#include "cursor_view.h"
namespace Graph {
void CursorView::drawRect(KDContext * ctx, KDRect rect) const {
KDCoordinate width = bounds().width();
KDCoordinate height = bounds().height();
ctx->fillRect(KDRect(width/2, 0, 1, height), KDColorBlack);
ctx->fillRect(KDRect(0, height/2, width, 1), KDColorBlack);
}
}

View File

@@ -1,15 +1,12 @@
#ifndef GRAPH_CURSOR_VIEW_H
#define GRAPH_CURSOR_VIEW_H
#ifndef APPS_CURSOR_VIEW_H
#define APPS_CURSOR_VIEW_H
#include <escher.h>
namespace Graph {
class CursorView : public View {
public:
using View::View;
void drawRect(KDContext * ctx, KDRect rect) const override;
};
}
#endif

View File

@@ -6,7 +6,6 @@ app_objs += $(addprefix apps/graph/,\
graph/banner_view.o\
graph/graph_window.o\
graph/window_parameter_controller.o\
graph/cursor_view.o\
graph/curve_parameter_controller.o\
graph/goto_parameter_controller.o\
graph/graph_controller.o\

View File

@@ -3,7 +3,7 @@
#include <escher.h>
#include "banner_view.h"
#include "cursor_view.h"
#include "../../cursor_view.h"
#include "graph_window.h"
#include "../../curve_view_with_banner.h"
#include "../../constant.h"