Exemplo n.º 1
0
        public void UpdWidget(LCDScreen screen, LCDWidget widget, LCDParser parser)
        {
            if (!screens.ContainsKey(screen))
            {
                Hyena.Log.Warning("Screen " + screen.name + " not registered");
                return;
            }

            if (!screens[screen].Contains(widget))
            {
                Hyena.Log.Warning("Widget " + widget.name + " not registered in screen " + screen.name);
                return;
            }

            SendString("widget_set " + screen.name + " " + widget.name + " " + widget.GetSetString(parser) + "\n");
        }
Exemplo n.º 2
0
        public void UnregWidget(LCDScreen screen, LCDWidget widget)
        {
            if (!screens.ContainsKey(screen))
            {
                Hyena.Log.Warning("Screen " + screen.name + " not registered");
                return;
            }

            if (!screens[screen].Contains(widget))
            {
                Hyena.Log.Warning("Widget " + widget.name + " not registered in screen " + screen.name);
                return;
            }

            SendString("widget_del " + screen.name + "\n");
            screens[screen].Remove(widget);
        }
Exemplo n.º 3
0
        public void RegWidget(LCDScreen screen, LCDWidget widget)
        {
            if (!screens.ContainsKey(screen))
            {
                Hyena.Log.Warning("Screen " + screen.name + " not registered");
                return;
            }

            if (screens[screen].Contains(widget))
            {
                Hyena.Log.Warning("Widget " + widget.name + " already registered in screen " + screen.name);
                return;
            }

            screens[screen].Add(widget);
            SendString("widget_add " + screen.name + " " + widget.name + " " + widget.typename + "\n");
        }
        public void UpdWidget(LCDScreen screen, LCDWidget widget, LCDParser parser)
        {
            if (!screens.ContainsKey(screen))
            {
                Hyena.Log.Warning("Screen "+screen.name+" not registered");
                return;
            }

            if (!screens[screen].Contains(widget))
            {
                Hyena.Log.Warning("Widget "+widget.name+" not registered in screen "+screen.name);
                return;
            }

            SendString("widget_set "+screen.name+" "+widget.name+" "+widget.GetSetString(parser)+"\n");
        }
        public void UnregWidget(LCDScreen screen, LCDWidget widget)
        {
            if (!screens.ContainsKey(screen))
            {
                Hyena.Log.Warning("Screen "+screen.name+" not registered");
                return;
            }

            if (!screens[screen].Contains(widget))
            {
                Hyena.Log.Warning("Widget "+widget.name+" not registered in screen "+screen.name);
                return;
            }

            SendString("widget_del "+screen.name+"\n");
            screens[screen].Remove(widget);
        }
        public void RegWidget(LCDScreen screen, LCDWidget widget)
        {
            if (!screens.ContainsKey(screen))
            {
                Hyena.Log.Warning("Screen "+screen.name+" not registered");
                return;
            }

            if (screens[screen].Contains(widget))
            {
                Hyena.Log.Warning("Widget "+widget.name+" already registered in screen "+screen.name);
                return;
            }

            screens[screen].Add(widget);
            SendString("widget_add "+screen.name+" "+widget.name+" "+widget.typename+"\n");
        }