|
Packit |
1e8aac |
/*
|
|
Packit |
1e8aac |
* Copyright (C) 2008 Tristan Van Berkom.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* This library is free software; you can redistribute it and/or modify it
|
|
Packit |
1e8aac |
* under the terms of the GNU Lesser General Public License as
|
|
Packit |
1e8aac |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
1e8aac |
* the License, or (at your option) any later version.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* This library is distributed in the hope that it will be useful, but
|
|
Packit |
1e8aac |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
1e8aac |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
1e8aac |
* Lesser General Public License for more details.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
1e8aac |
* License along with this program; if not, write to the Free Software
|
|
Packit |
1e8aac |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
1e8aac |
*
|
|
Packit |
1e8aac |
* Authors:
|
|
Packit |
1e8aac |
* Tristan Van Berkom <tvb@gnome.org>
|
|
Packit |
1e8aac |
*/
|
|
Packit |
1e8aac |
#ifndef _GLADE_CELL_RENDERER_EDITOR_H_
|
|
Packit |
1e8aac |
#define _GLADE_CELL_RENDERER_EDITOR_H_
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#include <gladeui/glade-editable.h>
|
|
Packit |
1e8aac |
#include <gtk/gtk.h>
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
G_BEGIN_DECLS
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#define GLADE_TYPE_CELL_RENDERER_EDITOR (glade_cell_renderer_editor_get_type ())
|
|
Packit |
1e8aac |
#define GLADE_CELL_RENDERER_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_CELL_RENDERER_EDITOR, GladeCellRendererEditor))
|
|
Packit |
1e8aac |
#define GLADE_CELL_RENDERER_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_CELL_RENDERER_EDITOR, GladeCellRendererEditorClass))
|
|
Packit |
1e8aac |
#define GLADE_IS_CELL_RENDERER_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_CELL_RENDERER_EDITOR))
|
|
Packit |
1e8aac |
#define GLADE_IS_CELL_RENDERER_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_CELL_RENDERER_EDITOR))
|
|
Packit |
1e8aac |
#define GLADE_CELL_RENDERER_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_CELL_RENDERER_EDITOR, GladeCellRendererEditorClass))
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#define GLADE_TYPE_EPROP_CELL_ATTRIBUTE (glade_eprop_cell_attribute_get_type())
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
typedef struct _GladeCellRendererEditor GladeCellRendererEditor;
|
|
Packit |
1e8aac |
typedef struct _GladeCellRendererEditorClass GladeCellRendererEditorClass;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
struct _GladeCellRendererEditor
|
|
Packit |
1e8aac |
{
|
|
Packit |
1e8aac |
GtkBox parent;
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GtkWidget *embed; /* Embedded parent class editor */
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GList *checks; /* A list of radio buttons for each property/attribute pair */
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GList *properties; /* A list of eprops to update at load() time */
|
|
Packit |
1e8aac |
};
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
struct _GladeCellRendererEditorClass
|
|
Packit |
1e8aac |
{
|
|
Packit |
1e8aac |
GtkBoxClass parent;
|
|
Packit |
1e8aac |
};
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GType glade_eprop_cell_attribute_get_type (void) G_GNUC_CONST;
|
|
Packit |
1e8aac |
GType glade_cell_renderer_editor_get_type (void) G_GNUC_CONST;
|
|
Packit |
1e8aac |
GtkWidget *glade_cell_renderer_editor_new (GladeWidgetAdaptor *adaptor,
|
|
Packit |
1e8aac |
GladeEditorPageType type,
|
|
Packit |
1e8aac |
GladeEditable *editable);
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
GladeWidget *glade_cell_renderer_get_model (GladeWidget *renderer);
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
G_END_DECLS
|
|
Packit |
1e8aac |
|
|
Packit |
1e8aac |
#endif /* _GLADE_CELL_RENDERER_EDITOR_H_ */
|