gschem

x_multiattrib.h

Go to the documentation of this file.
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_MULTIATTRIB_H__
00023 #define __X_MULTIATTRIB_H__
00024 
00025 
00026 /*
00027  * Multiattrib
00028  */
00029 
00030 #define TYPE_MULTIATTRIB         (multiattrib_get_type())
00031 #define MULTIATTRIB(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIATTRIB, Multiattrib))
00032 #define MULTIATTRIB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIATTRIB, MultiattribClass))
00033 #define IS_MULTIATTRIB(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIATTRIB))
00034 
00035 
00036 typedef struct _MultiattribClass MultiattribClass;
00037 typedef struct _Multiattrib      Multiattrib;
00038 
00039 
00040 struct _MultiattribClass {
00041   GschemDialogClass parent_class;
00042   
00043 };
00044 
00045 struct _Multiattrib {
00046   GschemDialog parent_instance;
00047 
00048   OBJECT *object;
00049 
00050   GtkTreeView    *treeview;
00051 
00052   GtkWidget      *show_inherited;
00053   GtkCombo       *combo_name;
00054   GtkTextView    *textview_value;
00055   GtkCheckButton *button_visible;
00056   GtkOptionMenu  *optionmenu_shownv;
00057   GtkWidget      *frame_attributes;
00058   GtkWidget      *frame_add;
00059 
00060   GdkColor       value_normal_text_color;   /* Workaround for lameness in GtkTextView */
00061   GdkColor       insensitive_text_color;
00062 };
00063 
00064 
00065 GType multiattrib_get_type (void);
00066 
00067 void multiattrib_update (Multiattrib *multiattrib);
00068 
00069 
00070 /*
00071  * CellTextView
00072  */
00073 
00074 #define TYPE_CELL_TEXT_VIEW         (celltextview_get_type())
00075 #define CELL_TEXT_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CELL_TEXT_VIEW, CellTextView))
00076 #define CELL_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CELL_TEXT_VIEW, CellTextViewClass))
00077 #define IS_CELL_TEXT_VIEW(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CELL_TEXT_VIEW))
00078 
00079 
00080 typedef struct _CellTextViewClass CellTextViewClass;
00081 typedef struct _CellTextView      CellTextView;
00082 
00083 
00084 struct _CellTextViewClass {
00085   GtkTextViewClass parent_class;
00086   
00087 };
00088 
00089 struct _CellTextView {
00090   GtkTextView parent_instance;
00091 
00092   gboolean editing_canceled;
00093 };
00094 
00095 
00096 GType celltextview_get_type (void);
00097 
00098 
00099 /*
00100  * CellRendererMultiLineText
00101  */
00102 
00103 #define TYPE_CELL_RENDERER_MULTI_LINE_TEXT         (cellrenderermultilinetext_get_type())
00104 #define CELL_RENDERER_MULTI_LINE_TEXT(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CELL_RENDERER_MULTI_LINE_TEXT, CellRendererMultiLineText))
00105 #define CELL_RENDERER_MULTI_LINE_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CELL_RENDERER_MULTI_LINE_TEXT, CellRendererMultiLineText))
00106 #define IS_CELL_RENDERER_MULTI_LINE_TEXT(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CELL_RENDERER_MULTI_LINE_TEXT))
00107 
00108 
00109 typedef struct _CellRendererMultiLineTextClass CellRendererMultiLineTextClass;
00110 typedef struct _CellRendererMultiLineText      CellRendererMultiLineText;
00111 
00112 
00113 struct _CellRendererMultiLineTextClass {
00114   GtkCellRendererTextClass parent_class;
00115   
00116 };
00117 
00118 struct _CellRendererMultiLineText {
00119   GtkCellRendererText parent_instance;
00120 
00121   /*< private >*/
00122   guint focus_out_id;
00123 
00124 };
00125 
00126 
00127 GType cellrenderermultilinetext_get_type (void);
00128 
00129 
00130 #endif /* __X_MULTIATTRIB_H__ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines