[escher] move even odd cell in escher

Change-Id: Ifb751ac5e8c738965cb358ea55cf7ca67459ffa5
This commit is contained in:
Émilie Feral
2016-10-27 10:35:54 +02:00
parent c9434ab5a2
commit 81a4f11beb
10 changed files with 8 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
app_objs += $(addprefix apps/graph/,\
app.o\
even_odd_cell.o\
evaluate_context.o\
function.o\
function_store.o\

View File

@@ -2,7 +2,6 @@
#define GRAPH_FUNCTION_TITLE_CELL_H
#include <escher.h>
#include "even_odd_cell.h"
namespace Graph {
class FunctionTitleCell : public EvenOddCell {

View File

@@ -2,7 +2,6 @@
#define GRAPH_FUNCTION_EXPRESSION_H
#include <escher.h>
#include "../even_odd_cell.h"
#include "../function.h"
namespace Graph {

View File

@@ -2,7 +2,6 @@
#define GRAPH_NEW_FUNCTION_CELL_H
#include <escher.h>
#include "../even_odd_cell.h"
namespace Graph {
class NewFunctionCell : public EvenOddCell {

View File

@@ -2,7 +2,6 @@
#define GRAPH_TITLE_CELL_H
#include <escher.h>
#include "../even_odd_cell.h"
namespace Graph {
class TitleCell : public EvenOddCell {

View File

@@ -3,7 +3,6 @@
#include <escher.h>
#include <poincare.h>
#include "../even_odd_cell.h"
namespace Graph {
class ValueCell : public EvenOddCell {

View File

@@ -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\

View File

@@ -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>

View File

@@ -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

View File

@@ -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);
}
}