mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[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:
@@ -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\
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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
|
||||
@@ -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\
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user