mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[calculation][escher] Move ScrollableExpressionView from apps/calculation/ to
escher/
This commit is contained in:
@@ -25,7 +25,6 @@ app_calculation_src = $(addprefix apps/calculation/,\
|
||||
expression_field.cpp \
|
||||
history_view_cell.cpp \
|
||||
history_controller.cpp \
|
||||
scrollable_expression_view.cpp \
|
||||
selectable_table_view.cpp \
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <escher.h>
|
||||
#include "calculation.h"
|
||||
#include "scrollable_expression_view.h"
|
||||
#include "../shared/scrollable_exact_approximate_expressions_view.h"
|
||||
|
||||
namespace Calculation {
|
||||
|
||||
@@ -55,6 +55,7 @@ escher_src += $(addprefix escher/src/,\
|
||||
scroll_view.cpp \
|
||||
scroll_view_data_source.cpp \
|
||||
scroll_view_indicator.cpp \
|
||||
scrollable_expression_view.cpp \
|
||||
scrollable_view.cpp \
|
||||
selectable_table_view.cpp \
|
||||
selectable_table_view_delegate.cpp \
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
#include <escher/scroll_view_data_source.h>
|
||||
#include <escher/scroll_view_indicator.h>
|
||||
#include <escher/scrollable_view.h>
|
||||
#include <escher/scrollable_expression_view.h>
|
||||
#include <escher/selectable_table_view.h>
|
||||
#include <escher/selectable_table_view_data_source.h>
|
||||
#include <escher/selectable_table_view_delegate.h>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef CALCULATION_SCROLLABLE_EXPRESSION_VIEW_H
|
||||
#define CALCULATION_SCROLLABLE_EXPRESSION_VIEW_H
|
||||
#ifndef ESCHER_SCROLLABLE_EXPRESSION_VIEW_H
|
||||
#define ESCHER_SCROLLABLE_EXPRESSION_VIEW_H
|
||||
|
||||
#include <escher.h>
|
||||
|
||||
namespace Calculation {
|
||||
#include <escher/scrollable_view.h>
|
||||
#include <escher/scroll_view_data_source.h>
|
||||
#include <escher/expression_view.h>
|
||||
|
||||
class ScrollableExpressionView : public ScrollableView, public ScrollViewDataSource {
|
||||
public:
|
||||
@@ -16,6 +16,4 @@ private:
|
||||
ExpressionView m_expressionView;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "scrollable_expression_view.h"
|
||||
#include <escher/scrollable_expression_view.h>
|
||||
#include <poincare/layout.h>
|
||||
#include <escher/metric.h>
|
||||
#include <assert.h>
|
||||
using namespace Poincare;
|
||||
|
||||
namespace Calculation {
|
||||
|
||||
ScrollableExpressionView::ScrollableExpressionView(Responder * parentResponder) :
|
||||
ScrollableView(parentResponder, &m_expressionView, this),
|
||||
@@ -21,7 +20,7 @@ Poincare::Layout ScrollableExpressionView::layout() const {
|
||||
return m_expressionView.layout();
|
||||
}
|
||||
|
||||
void ScrollableExpressionView::setLayout(Layout layout) {
|
||||
void ScrollableExpressionView::setLayout(Poincare::Layout layout) {
|
||||
m_expressionView.setLayout(layout);
|
||||
}
|
||||
|
||||
@@ -33,5 +32,3 @@ void ScrollableExpressionView::setBackgroundColor(KDColor backgroundColor) {
|
||||
void ScrollableExpressionView::setExpressionBackgroundColor(KDColor backgroundColor) {
|
||||
m_expressionView.setBackgroundColor(backgroundColor);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user