/*
 * $RCSfile: timer_edit.h,v $  $Revision: 1.2 $  $Name:  $
 * $Id: timer_edit.h,v 1.2 2007/01/04 15:43:14 bpaauwe Exp $
 * $Author: bpaauwe $
 * $Date: 2007/01/04 15:43:14 $
 * ----------------------------------------------------------------------------
 *
 *  Copyright (c) Bob Paauwe (2006)
 *
 *  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 of the License, 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.,
 *  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * ----------------------------------------------------------------------------
 *
 *  Description:
 *
 * ----------------------------------------------------------------------------
 */
#ifndef _TIMER_EDIT_H
#define _TIMER_EDIT_H

#include <gtk/gtk.h>
#include <glade/glade.h>
#include "scenes.h"

extern ilib_t *iplc; /* device handle */
extern unsigned char need_to_save;
extern scene_t *scene_list;
extern device_t device_array[2000];
extern int last_device;

GtkWidget *tm_dialog;
GtkWidget *tm_list;
GtkWidget *tm_hours;
GtkWidget *tm_minutes;
GtkWidget *tm_tt_time;
GtkWidget *tm_tt_sunrise_p;
GtkWidget *tm_tt_sunrise_m;
GtkWidget *tm_tt_sunset_p;
GtkWidget *tm_tt_sunset_m;
GtkWidget *tm_monday;
GtkWidget *tm_tuesday;
GtkWidget *tm_wednesday;
GtkWidget *tm_thursday;
GtkWidget *tm_friday;
GtkWidget *tm_saturday;
GtkWidget *tm_sunday;
GtkWidget *tm_security;
GtkWidget *tm_rnd_security;
GtkWidget *tm_holiday;
GtkWidget *tm_active;
GtkWidget *tm_sel_device;
GtkWidget *tm_sel_scene;
GtkWidget *tm_device_selector;
GtkWidget *tm_scene_selector;
GtkWidget *tm_command;
GtkWidget *tm_on_level;
GtkWidget *tm_tod;

void initialize_timers_configuration(GladeXML *xml);
void on_edit_timers_activate(GtkWidget *widget, gpointer user_data);
void on_tm_close_clicked(GtkWidget *widget, gpointer user_data);
void on_tm_add_clicked(GtkWidget *widget, gpointer user_data);
void on_tm_modify_clicked(GtkWidget *widget, gpointer user_data);
void on_tm_delete_clicked(GtkWidget *widget, gpointer user_data);
void on_tm_delete_all_clicked(GtkWidget *widget, gpointer user_data);
void on_tm_list_cursor_changed(GtkWidget *widget, gpointer user_data);

#endif
