1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/* transform.h
* Copyright (C) 2006 Armin Burgmeier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __CLASSGEN_TRANSFORM_H__
#define __CLASSGEN_TRANSFORM_H__
#include "element-editor.h"
#include <glib.h>
G_BEGIN_DECLS
/* This file contains several functions that transform the user input from
* the main window to the actual output that is given to autogen.
*
* Most of these functions are very specialized and only for one special
* use case, but it should not be that hard to make them operate more
* general if you need them to. */
gboolean
cg_transform_default_c_type_to_g_type (const gchar *c_type,
const gchar **g_type_prefix,
const gchar **g_type_name);
gchar *
cg_transform_custom_c_type (const gchar *c_type,
gboolean upper_case,
gchar separator);
void
cg_transform_custom_c_type_to_g_type (const gchar *c_type,
gchar **g_type_prefix,
gchar **g_type_name,
gchar **g_func_prefix);
void
cg_transform_c_type_to_g_type (const gchar *c_type,
gchar **g_type_prefix,
gchar **g_type_name);
void
cg_transform_string (GHashTable *table,
const gchar *index);
void
cg_transform_flags (GHashTable *table,
const gchar *index,
const CgElementEditorFlags *flags);
void
cg_transform_guess_paramspec (GHashTable *table,
const gchar *param_index,
const gchar *type_index,
const gchar *guess_entry);
void
cg_transform_arguments (GHashTable *table,
const gchar *index,
gboolean make_void);
void
cg_transform_python_arguments (GHashTable *table,
const gchar *index);
void
cg_transform_string_to_identifier (GHashTable *table,
const gchar *string_index,
const gchar *identifier_index);
void
cg_transform_first_argument (GHashTable *table,
const gchar *index,
const gchar *type);
guint
cg_transform_arguments_to_gtypes (GHashTable *table,
const gchar *arguments_index,
const gchar *gtypes_index);
G_END_DECLS
#endif /* __CLASSGEN_TRANSFORM_H__ */
|