mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[escher] move even odd cell in escher
Change-Id: Ifb751ac5e8c738965cb358ea55cf7ca67459ffa5
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
app_objs += $(addprefix apps/graph/,\
|
||||
app.o\
|
||||
even_odd_cell.o\
|
||||
evaluate_context.o\
|
||||
function.o\
|
||||
function_store.o\
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define GRAPH_FUNCTION_TITLE_CELL_H
|
||||
|
||||
#include <escher.h>
|
||||
#include "even_odd_cell.h"
|
||||
|
||||
namespace Graph {
|
||||
class FunctionTitleCell : public EvenOddCell {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define GRAPH_FUNCTION_EXPRESSION_H
|
||||
|
||||
#include <escher.h>
|
||||
#include "../even_odd_cell.h"
|
||||
#include "../function.h"
|
||||
|
||||
namespace Graph {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define GRAPH_NEW_FUNCTION_CELL_H
|
||||
|
||||
#include <escher.h>
|
||||
#include "../even_odd_cell.h"
|
||||
|
||||
namespace Graph {
|
||||
class NewFunctionCell : public EvenOddCell {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define GRAPH_TITLE_CELL_H
|
||||
|
||||
#include <escher.h>
|
||||
#include "../even_odd_cell.h"
|
||||
|
||||
namespace Graph {
|
||||
class TitleCell : public EvenOddCell {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <escher.h>
|
||||
#include <poincare.h>
|
||||
#include "../even_odd_cell.h"
|
||||
|
||||
namespace Graph {
|
||||
class ValueCell : public EvenOddCell {
|
||||
|
||||
@@ -5,8 +5,9 @@ objs += $(addprefix escher/src/,\
|
||||
buffer_text_view.o\
|
||||
button.o\
|
||||
container.o\
|
||||
header_view_controller.o\
|
||||
even_odd_cell.o\
|
||||
expression_view.o\
|
||||
header_view_controller.o\
|
||||
image_view.o\
|
||||
invocation.o\
|
||||
input_view_controller.o\
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
#include <escher/buffer_text_view.h>
|
||||
#include <escher/button.h>
|
||||
#include <escher/container.h>
|
||||
#include <escher/header_view_controller.h>
|
||||
#include <escher/even_odd_cell.h>
|
||||
#include <escher/expression_view.h>
|
||||
#include <escher/header_view_controller.h>
|
||||
#include <escher/image.h>
|
||||
#include <escher/image_view.h>
|
||||
#include <escher/input_view_controller.h>
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
#ifndef GRAPH_EVEN_ODD_CELL_H
|
||||
#define GRAPH_EVEN_ODD_CELL_H
|
||||
#ifndef ESCHER_EVEN_ODD_CELL_H
|
||||
#define ESCHER_EVEN_ODD_CELL_H
|
||||
|
||||
#include <escher.h>
|
||||
|
||||
namespace Graph {
|
||||
#include <escher/table_view_cell.h>
|
||||
|
||||
class EvenOddCell : public TableViewCell {
|
||||
public:
|
||||
@@ -20,6 +18,4 @@ private:
|
||||
bool m_even;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,4 @@
|
||||
#include "even_odd_cell.h"
|
||||
|
||||
namespace Graph {
|
||||
#include <escher/even_odd_cell.h>
|
||||
|
||||
constexpr KDColor EvenOddCell::k_evenLineBackgroundColor;
|
||||
constexpr KDColor EvenOddCell::k_oddLineBackgroundColor;
|
||||
@@ -28,5 +26,3 @@ void EvenOddCell::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
KDColor background = backgroundColor();
|
||||
ctx->fillRect(rect, background);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user