Files
Upsilon/apps/code/app.cpp
Émilie Feral bb5523b747 [python] Change app name and icon
Change-Id: I0c505d08a464d63200bd5e1e0dc81825632691e5
2017-08-17 16:21:21 +02:00

36 lines
684 B
C++

#include "app.h"
#include "../apps_container.h"
#include "code_icon.h"
#include <assert.h>
namespace Code {
I18n::Message App::Descriptor::name() {
return I18n::Message::CodeApp;
}
I18n::Message App::Descriptor::upperName() {
return I18n::Message::CodeAppCapital;
}
const Image * App::Descriptor::icon() {
return ImageStore::CodeIcon;
}
App * App::Snapshot::unpack(Container * container) {
return new App(container, this);
}
App::Descriptor * App::Snapshot::descriptor() {
static Descriptor descriptor;
return &descriptor;
}
App::App(Container * container, Snapshot * snapshot) :
::App(container, snapshot, &m_editorController),
m_editorController(this)
{
}
}