mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Delete the long-dead PicView app
This commit is contained in:
committed by
LeaNumworks
parent
bd6339f9dc
commit
ef3f5b877c
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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
|
||||
@@ -1,7 +0,0 @@
|
||||
#include "picview_app.h"
|
||||
|
||||
PicViewApp::PicViewApp(Container * container) :
|
||||
::App(container, &m_picViewController),
|
||||
m_picViewController(PicViewController(&m_modalViewController))
|
||||
{
|
||||
}
|
||||
@@ -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
|
||||
@@ -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";
|
||||
}
|
||||
*/
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user