2 #include "../apps_container.h" 10 return I18n::Message::CodeApp;
14 return I18n::Message::CodeAppCapital;
18 return ImageStore::CodeIcon;
23 m_lockOnConsole(
false),
34 m_scriptStore.deleteAllScripts();
43 return &m_scriptStore;
47 bool App::Snapshot::lockOnConsole()
const {
48 return m_lockOnConsole;
51 void App::Snapshot::setOpt(
const char * name,
char * value) {
52 if (
strcmp(name,
"script") == 0) {
54 char * separator =
strchr(value,
':');
59 const char * scriptName = value;
60 const char * scriptContent = separator+1;
62 m_scriptStore.addScriptFromTemplate(&script);
65 if (
strcmp(name,
"lock-on-console") == 0) {
66 m_lockOnConsole =
true;
75 m_menuController(&m_listFooter,
snapshot->scriptStore(), &m_listFooter
81 m_variableBoxController(&m_menuController,
snapshot->scriptStore())
87 if (pythonText !=
nullptr) {
void displayModalViewController(ViewController *vc, float verticalAlignment, float horizontalAlignment, KDCoordinate topMargin=0, KDCoordinate leftMargin=0, KDCoordinate bottomMargin=0, KDCoordinate rightMargin=0)
I18n::Message name() override
ScriptStore * scriptStore()
virtual bool handleEventWithText(const char *text, bool indenting=false)=0
App(Container *container, Snapshot *snapshot, ViewController *rootViewController, I18n::Message warningMessage=(I18n::Message) 0)
App * unpack(Container *container) override
ModalViewController m_modalViewController
I18n::Message upperName() override
char * strchr(const char *s, int c)
Descriptor * descriptor() override
static constexpr KDCoordinate PopUpTopMargin
const Image * icon() override
const Container * container() const
int strcmp(const char *s1, const char *s2)
static constexpr KDCoordinate PopUpRightMargin
bool textInputDidReceiveEvent(TextInput *textInput, Ion::Events::Event event)
void setTextInputCaller(TextInput *textInput)
const char * PythonTextForEvent(Ion::Events::Event event)
static constexpr KDCoordinate PopUpLeftMargin