gschem
|
00001 /* gEDA - GPL Electronic Design Automation 00002 * gschem - gEDA Schematic Capture 00003 * Copyright (C) 1998-2010 Ales Hvezda 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00018 * MA 02111-1301 USA. 00019 */ 00020 00021 00022 #ifndef __X_COMPSELECT_H__ 00023 #define __X_COMPSELECT_H__ 00024 00025 00026 /* 00027 * CompselectBehavior 00028 */ 00029 00030 typedef enum { 00031 COMPSELECT_BEHAVIOR_REFERENCE, 00032 COMPSELECT_BEHAVIOR_EMBED, 00033 COMPSELECT_BEHAVIOR_INCLUDE 00034 } CompselectBehavior; 00035 00036 00037 GType compselect_behavior_get_type (void); 00038 #define COMPSELECT_TYPE_BEHAVIOR (compselect_behavior_get_type ()) 00039 00040 00041 /* 00042 * Compselect 00043 */ 00044 00045 #define TYPE_COMPSELECT (compselect_get_type()) 00046 #define COMPSELECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMPSELECT, Compselect)) 00047 #define COMPSELECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMPSELECT, CompselectClass)) 00048 #define IS_COMPSELECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMPSELECT)) 00049 #define COMPSELECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMPSELECT, CompselectClass)) 00050 00051 typedef struct _CompselectClass CompselectClass; 00052 typedef struct _Compselect Compselect; 00053 00054 00055 struct _CompselectClass { 00056 GschemDialogClass parent_class; 00057 00058 guint behavior_changed_signal_id; 00059 00060 }; 00061 00062 struct _Compselect { 00063 GschemDialog parent_instance; 00064 00065 GtkWidget *hpaned, *vpaned; 00066 GtkTreeView *libtreeview, *inusetreeview, *attrtreeview; 00067 GtkNotebook *viewtabs; 00068 Preview *preview; 00069 GtkEntry *entry_filter; 00070 GtkButton *button_clear; 00071 guint filter_timeout; 00072 GtkComboBox *combobox_behaviors; 00073 00074 gboolean hidden; 00075 }; 00076 00077 00078 GType compselect_get_type (void); 00079 00080 /* Response IDs for special dialog buttons */ 00081 typedef enum { 00082 COMPSELECT_RESPONSE_PLACE = 1, 00083 COMPSELECT_RESPONSE_HIDE = 2, 00084 COMPSELECT_RESPONSE_REFRESH = 3 00085 } CompselectResponseType; 00086 00087 #endif /* __X_COMPSEL_H__ */