Updated copyright text/header in most source files.
[geda-gaf.git] / gschem / include / x_compselect.h
blob7507326a7cf0ae98b525647699023cb00ee0466a
1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
3 * Copyright (C) 1998-2010 Ales Hvezda
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __X_COMPSELECT_H__
22 #define __X_COMPSELECT_H__
26 * CompselectBehavior
29 typedef enum {
30 COMPSELECT_BEHAVIOR_REFERENCE,
31 COMPSELECT_BEHAVIOR_EMBED,
32 COMPSELECT_BEHAVIOR_INCLUDE
33 } CompselectBehavior;
36 GType compselect_behavior_get_type (void);
37 #define COMPSELECT_TYPE_BEHAVIOR (compselect_behavior_get_type ())
41 * Compselect
44 #define TYPE_COMPSELECT (compselect_get_type())
45 #define COMPSELECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMPSELECT, Compselect))
46 #define COMPSELECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMPSELECT, CompselectClass))
47 #define IS_COMPSELECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMPSELECT))
48 #define COMPSELECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMPSELECT, CompselectClass))
50 typedef struct _CompselectClass CompselectClass;
51 typedef struct _Compselect Compselect;
54 struct _CompselectClass {
55 GschemDialogClass parent_class;
57 guint behavior_changed_signal_id;
61 struct _Compselect {
62 GschemDialog parent_instance;
64 GtkWidget *hpaned, *vpaned;
65 GtkTreeView *libtreeview, *inusetreeview, *attrtreeview;
66 GtkNotebook *viewtabs;
67 Preview *preview;
68 GtkEntry *entry_filter;
69 GtkButton *button_clear;
70 guint filter_timeout;
71 GtkComboBox *combobox_behaviors;
73 gboolean hidden;
77 GType compselect_get_type (void);
79 /* Response IDs for special dialog buttons */
80 typedef enum {
81 COMPSELECT_RESPONSE_PLACE = 1,
82 COMPSELECT_RESPONSE_HIDE = 2,
83 COMPSELECT_RESPONSE_REFRESH = 3
84 } CompselectResponseType;
86 #endif /* __X_COMPSEL_H__ */