/*
 * $RCSfile: ilink.h,v $  $Revision: 1.16 $  $Name:  $
 * $Id: ilink.h,v 1.16 2006/10/04 05:21:45 bpaauwe Exp $
 * $Author: bpaauwe $
 * $Date: 2006/10/04 05:21:45 $
 * ----------------------------------------------------------------------------
 *
 *  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:
 *    Header file for insteon message sending functions.
 * ----------------------------------------------------------------------------
 */
#ifndef _ILINK_H
#define _ILINK_H

#include "libilib/ilib.h"

ilib_t *iplc;
unsigned char need_to_save = 0;

GtkWidget *main_window;
GtkWidget *open_file;
GtkWidget *save_file;

/* Widgets that have stored data that will be used when buttons are pressed */
GtkWidget *device_id;
GtkWidget *device_name;
GtkWidget *device_type;
GtkWidget *about_close;

GtkWidget *new_scene_name;
GtkWidget *scene_selector;
GtkWidget *scene_controller;
GtkWidget *scene_group;

GtkWidget *responder_selector;
GtkWidget *responder_data1;
GtkWidget *responder_data2;
GtkWidget *responder_data3;
GtkWidget *responder_list;

GtkWidget *device_selector;
GtkWidget *link_list;

GtkWidget *replace_dialog;
GtkWidget *replace_src;
GtkWidget *replace_dst;

GtkWidget *status_bar;
GtkWidget *device_bar;

GtkWidget *about_dialog;

GtkWidget *dc_dialog;
GtkWidget *dc_selector;
GtkWidget *dc_device_type;
GtkWidget *dc_status;
GtkWidget *dc_on_level;

GtkWidget *sr_dialog;
GtkWidget *sr_selector;
GtkWidget *sr_entry;
GtkWidget *sr_cancel;
GtkWidget *sr_apply;
GtkWidget *sr_ok;

GtkWidget *progress_dialog;
GtkWidget *progress_bar;
int progress_bar_active;

void populate_combo_boxes();
void free_combo_boxes();

extern GtkWidget *kpl_selector;
extern GtkWidget *kpl_progress;
extern GtkWidget *kpl_dialog;
extern GtkWidget *cs_new_controller;
extern GtkWidget *tm_list;
extern GtkWidget *tm_device_selector;

#endif
