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__
30 COMPSELECT_BEHAVIOR_REFERENCE
,
31 COMPSELECT_BEHAVIOR_EMBED
,
32 COMPSELECT_BEHAVIOR_INCLUDE
36 GType
compselect_behavior_get_type (void);
37 #define COMPSELECT_TYPE_BEHAVIOR (compselect_behavior_get_type ())
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
;
62 GschemDialog parent_instance
;
64 GtkWidget
*hpaned
, *vpaned
;
65 GtkTreeView
*libtreeview
, *inusetreeview
, *attrtreeview
;
66 GtkNotebook
*viewtabs
;
68 GtkEntry
*entry_filter
;
69 GtkButton
*button_clear
;
71 GtkComboBox
*combobox_behaviors
;
77 GType
compselect_get_type (void);
79 /* Response IDs for special dialog buttons */
81 COMPSELECT_RESPONSE_PLACE
= 1,
82 COMPSELECT_RESPONSE_HIDE
= 2,
83 COMPSELECT_RESPONSE_REFRESH
= 3
84 } CompselectResponseType
;
86 #endif /* __X_COMPSEL_H__ */