[apps] Delete the long-dead PicView app

This commit is contained in:
Romain Goyet
2019-03-05 17:38:46 +01:00
committed by LeaNumworks
parent bd6339f9dc
commit ef3f5b877c
8 changed files with 0 additions and 106 deletions

View File

@@ -16,11 +16,6 @@
#include "backlight_dimming_timer.h"
#include "shared/global_context.h"
#define USE_PIC_VIEW_APP 0
#if USE_PIC_VIEW_APP
#include "picview/picview_app.h"
#endif
#ifdef EPSILON_BOOT_PROMPT
#include "on_boarding/pop_up_controller.h"
#endif
@@ -70,9 +65,6 @@ private:
AppsWindow m_window;
EmptyBatteryWindow m_emptyBatteryWindow;
#if USE_PIC_VIEW_APP
PicViewApp m_picViewApp;
#endif
Shared::GlobalContext m_globalContext;
MathToolbox m_mathToolbox;
VariableBoxController m_variableBoxController;

View File

@@ -1,18 +0,0 @@
app_objs += $(addprefix apps/picview/,\
pic_view.o\
picview_app.o\
picview_controller.o\
)
apps/picview/pic_view.cpp: apps/picview/image.c
apps/picview/image.c: apps/picview/image.raw
@echo "RAW2C $@"
@echo "const /* Needed otherwise the image will eat up all RAM */" > $@
@xxd -i $^ >> $@
apps/picview/image.raw: apps/picview/image.png
@echo "PNG2RAW $@"
@ffmpeg -loglevel panic -vcodec png -i $^ -vcodec rawvideo -f rawvideo -pix_fmt rgb565 $@
products += $(addprefix apps/picview/, image.raw image.c)

View File

@@ -1,14 +0,0 @@
#include "pic_view.h"
#include <assert.h>
PicView::PicView() :
View() {
}
#include "image.c"
void PicView::drawRect(KDContext * ctx, KDRect rect) const {
KDColor * pixels = (KDColor *)apps_picview_image_raw;
assert(apps_picview_image_raw_len == bounds().width() * bounds().height() * sizeof(KDColor));
ctx->fillRectWithPixels(bounds(), pixels, nullptr);
}

View File

@@ -1,12 +0,0 @@
#ifndef PICVIEW_PIC_VIEW_H
#define PICVIEW_PIC_VIEW_H
#include <escher.h>
class PicView : public View {
public:
PicView();
void drawRect(KDContext * ctx, KDRect rect) const override;
};
#endif

View File

@@ -1,7 +0,0 @@
#include "picview_app.h"
PicViewApp::PicViewApp(Container * container) :
::App(container, &m_picViewController),
m_picViewController(PicViewController(&m_modalViewController))
{
}

View File

@@ -1,14 +0,0 @@
#ifndef PICVIEW_PICVIEW_APP_H
#define PICVIEW_PICVIEW_APP_H
#include <escher.h>
#include "picview_controller.h"
class PicViewApp : public App {
public:
PicViewApp(Container * container);
private:
PicViewController m_picViewController;
};
#endif

View File

@@ -1,18 +0,0 @@
#include "picview_controller.h"
PicViewController::PicViewController(Responder * parentResponder) :
ViewController(parentResponder),
m_view(PicView())
{
}
View * PicViewController::view() {
return &m_view;
}
/*
const char * PicViewController::title() {
return "PicView";
}
*/

View File

@@ -1,15 +0,0 @@
#ifndef PICVIEW_PICVIEW_CONTROLLER_H
#define PICVIEW_PICVIEW_CONTROLLER_H
#include <escher.h>
#include "pic_view.h"
class PicViewController : public ViewController {
public:
PicViewController(Responder * parentResponder);
View * view() override;
private:
PicView m_view;
};
#endif