/* $Id$ * $URL$ * * timer widget handling * * Copyright (C) 2006 Michael Reinelt * Copyright (C) 2006 The LCD4Linux Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ /* * exported functions: * * WIDGET_CLASS Widget_Timer * the timer widget * */ #include "config.h" #include #include #include #include #include "debug.h" #include "cfg.h" #include "qprintf.h" #include "property.h" #include "timer_group.h" #include "widget.h" #include "widget_timer.h" #ifdef WITH_DMALLOC #include #endif void widget_timer_update(void *Self) { WIDGET *W = (WIDGET *) Self; WIDGET_TIMER *Timer = W->data; int update, active; /* evaluate expressions */ property_eval(&Timer->update); property_eval(&Timer->active); /* get new update interval */ update = P2N(&Timer->update); if (update < 10) update = 10; /* finally, fire it! */ active = P2N(&Timer->active); if (active > 0) { property_eval(&Timer->expression); } /* add a new one-shot timer */ timer_add_widget(widget_timer_update, Self, update, 1); } int widget_timer_init(WIDGET * Self) { char *section; WIDGET_TIMER *Timer; /* prepare config section */ /* strlen("Widget:")=7 */ section = malloc(strlen(Self->name) + 8); strcpy(section, "Widget:"); strcat(section, Self->name); Timer = malloc(sizeof(WIDGET_TIMER)); memset(Timer, 0, sizeof(WIDGET_TIMER)); /* load properties */ property_load(section, "expression", NULL, &Timer->expression); property_load(section, "update", "100", &Timer->update); property_load(section, "active", "1", &Timer->active); free(section); Self->data = Timer; Self->x2 = NOCOORD; Self->y2 = NOCOORD; /* just do it! */ widget_timer_update(Self); return 0; } int widget_timer_quit(WIDGET * Self) { if (Self) { /* do not deallocate child widget! */ if (Self->parent == NULL) { if (Self->data) { WIDGET_TIMER *Timer = Self->data; property_free(&Timer->expression); property_free(&Timer->update); property_free(&Timer->active); free(Self->data); Self->data = NULL; } } } return 0; } int widget_timer_register(void) { WIDGET_CLASS wc; wc = Widget_Timer; widget_register(&wc); return 0; } WIDGET_CLASS Widget_Timer = { .name = "timer", .type = WIDGET_TYPE_TIMER, .init = widget_timer_init, .draw = NULL, .quit = widget_timer_quit, }; bian/dtv-scan-tables.git/tree/dvb-s/ChinaSat5A-87.5E?h=debian/0%2bgit20171226.07b18ec-1&id=86e10c1a9641692a062ca159b49d91e0525d8c2c'>ChinaSat5A-87.5E
blob: 0c03cfc29d42db8741b7d597d9dfd8cf711e9d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# ChinaStar 1 @ 87.5E C-BAND
# Generated by Pietro Casoar
# 1st March 2009

# MPEG-2 & MPEG-4 QPSK (DVBS/S2)
# freq pol sr fec

# Myawady TV
S 3734000 H 5925000 3/4

# Zam TV Tests
S 4076000 H 2532000 3/4

# Test Card
S 4081000 H 4687000 3/4