2002-10-26 Mike Kestner <mkestner@speakeasy.net>
* api/*.xml : get libgda and libgnomedb metadata setup * gconf/*/Makefile.in : patch from MauricioC for -L's and /r's * gnomedb/Makefile.in : patch from MauricioC for -L's and /r's * generator/ClassBase.cs (ctor): mangle hash names for sigs and props * generator/Parameters.cs (MangleName): handle params, null, and ref * generator/Parser.cs (ParseNamespace): ignore "hidden" types * generator/StructBase.cs (MangleName): handle params, null, and ref * glib/Object.cs (Equals): kill, also kill == and != * sources/Gda.metadata : new, make Gda behave without hand edits * sources/GnomeDb.metadata : ditto svn path=/trunk/gtk-sharp/; revision=8577
This commit is contained in:
parent
d6d4267bc5
commit
2e07bf7e87
23 changed files with 404 additions and 86 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2002-10-26 Mike Kestner <mkestner@speakeasy.net>
|
||||
|
||||
* api/*.xml : get libgda and libgnomedb metadata setup
|
||||
* gconf/*/Makefile.in : patch from MauricioC for -L's and /r's
|
||||
* gnomedb/Makefile.in : patch from MauricioC for -L's and /r's
|
||||
* generator/ClassBase.cs (ctor): mangle hash names for sigs and props
|
||||
* generator/Parameters.cs (MangleName): handle params, null, and ref
|
||||
* generator/Parser.cs (ParseNamespace): ignore "hidden" types
|
||||
* generator/StructBase.cs (MangleName): handle params, null, and ref
|
||||
* glib/Object.cs (Equals): kill, also kill == and !=
|
||||
* sources/Gda.metadata : new, make Gda behave without hand edits
|
||||
* sources/GnomeDb.metadata : ditto
|
||||
|
||||
2002-10-21 Vladimir Vukicevic <vladimir@pobox.com>
|
||||
|
||||
* glade/XML.custom: add SetCustomHandler() wrapper
|
||||
|
|
7
api/.cvsignore
Executable file
7
api/.cvsignore
Executable file
|
@ -0,0 +1,7 @@
|
|||
*.dll
|
||||
*.exe
|
||||
*.xml
|
||||
generated
|
||||
generated-stamp
|
||||
Makefile
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<namespace name="Art" library="art_lgpl">
|
||||
<enum name="AlphaType" cname="ArtAlphaType" type="enum">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<namespace name="Atk" library="atk-1.0">
|
||||
<enum name="CoordType" cname="AtkCoordType" type="enum">
|
||||
|
|
144
api/gda-api.xml
144
api/gda-api.xml
|
@ -201,21 +201,21 @@
|
|||
<return-type type="GList*"/>
|
||||
<parameters>
|
||||
<parameter type="GdaCommand*" name="cmd"/>
|
||||
<parameter type="GdaParameterList*" name="parameters"/>
|
||||
<parameter type="GdaParameterList*" name="params"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="ExecuteNonQuery" cname="gda_connection_execute_non_query">
|
||||
<return-type type="gint"/>
|
||||
<parameters>
|
||||
<parameter type="GdaCommand*" name="cmd"/>
|
||||
<parameter type="GdaParameterList*" name="parameters"/>
|
||||
<parameter type="GdaParameterList*" name="params"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="ExecuteSingleCommand" cname="gda_connection_execute_single_command">
|
||||
<return-type type="GdaDataModel*"/>
|
||||
<parameters>
|
||||
<parameter type="GdaCommand*" name="cmd"/>
|
||||
<parameter type="GdaParameterList*" name="parameters"/>
|
||||
<parameter type="GdaParameterList*" name="params"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetClient" cname="gda_connection_get_client">
|
||||
|
@ -243,7 +243,7 @@
|
|||
<return-type type="GdaDataModel*"/>
|
||||
<parameters>
|
||||
<parameter type="GdaConnectionSchema" name="schema"/>
|
||||
<parameter type="GdaParameterList*" name="parameters"/>
|
||||
<parameter type="GdaParameterList*" name="params"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetServerVersion" cname="gda_connection_get_server_version">
|
||||
|
@ -294,19 +294,19 @@
|
|||
<parameter type="GdaDataModel*" name="model"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="BeginEdition" cname="begin_edit" when="LAST">
|
||||
<signal name="BeginEditing" cname="begin_edit" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaDataModel*" name="model"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="CancelEdition" cname="cancel_edit" when="LAST">
|
||||
<signal name="CancelEditing" cname="cancel_edit" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaDataModel*" name="model"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="EndEdition" cname="end_edit" when="LAST">
|
||||
<signal name="EndEditing" cname="end_edit" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaDataModel*" name="model"/>
|
||||
|
@ -432,6 +432,12 @@
|
|||
<parameter type="gboolean" name="standalone"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="ToXmlNode" cname="gda_data_model_to_xml_node" hidden="1">
|
||||
<return-type type="xmlNodePtr"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="name"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="UpdateRow" cname="gda_data_model_update_row">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
|
@ -452,6 +458,12 @@
|
|||
<parameter type="gint" name="cols"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetNColumns" cname="gda_data_model_array_set_n_columns">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="gint" name="cols"/>
|
||||
</parameters>
|
||||
</method>
|
||||
</object>
|
||||
<object name="DataModelHash" cname="GdaDataModelHash" parent="GdaDataModel">
|
||||
<field cname="priv" type="GdaDataModelHashPrivate*"/>
|
||||
|
@ -488,6 +500,12 @@
|
|||
<parameter type="gint" name="cols"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetNColumns" cname="gda_data_model_hash_set_n_columns">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="gint" name="cols"/>
|
||||
</parameters>
|
||||
</method>
|
||||
</object>
|
||||
<object name="DataModelList" cname="GdaDataModelList" parent="GdaDataModel">
|
||||
<field cname="priv" type="GdaDataModelListPrivate*"/>
|
||||
|
@ -565,6 +583,89 @@
|
|||
</parameters>
|
||||
</method>
|
||||
</object>
|
||||
<object name="Export" cname="GdaExport" parent="GObject" hidden="1">
|
||||
<field cname="priv" type="GdaExportPrivate*"/>
|
||||
<signal name="ObjectSelected" cname="object_selected" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaExport*" name="exp"/>
|
||||
<parameter type="GdaConnectionSchema" name="schema"/>
|
||||
<parameter type="const-gchar*" name="name"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="ObjectUnselected" cname="object_unselected" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaExport*" name="exp"/>
|
||||
<parameter type="GdaConnectionSchema" name="schema"/>
|
||||
<parameter type="const-gchar*" name="name"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="Finished" cname="finished" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaExport*" name="exp"/>
|
||||
<parameter type="GdaXmlDatabase*" name="xmldb"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="Finished" cname="finished" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaExport*" name="exp"/>
|
||||
<parameter type="GdaXmlDatabase*" name="xmldb"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<method name="GetConnection" cname="gda_export_get_connection">
|
||||
<return-type type="GdaConnection*"/>
|
||||
</method>
|
||||
<method name="GetSelectedTables" cname="gda_export_get_selected_tables">
|
||||
<return-type type="GList*"/>
|
||||
</method>
|
||||
<method name="GetTables" cname="gda_export_get_tables">
|
||||
<return-type type="GList*"/>
|
||||
</method>
|
||||
<method name="GetType" cname="gda_export_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<constructor cname="gda_export_new">
|
||||
<parameters>
|
||||
<parameter type="GdaConnection*" name="cnc"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="Run" cname="gda_export_run">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaExportFlags" name="flags"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SelectTable" cname="gda_export_select_table">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="table"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SelectTableList" cname="gda_export_select_table_list">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GList*" name="tables"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SetConnection" cname="gda_export_set_connection">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdaConnection*" name="cnc"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Stop" cname="gda_export_stop">
|
||||
<return-type type="void"/>
|
||||
</method>
|
||||
<method name="UnselectTable" cname="gda_export_unselect_table">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="table"/>
|
||||
</parameters>
|
||||
</method>
|
||||
</object>
|
||||
<object name="Select" cname="GdaSelect" parent="GdaDataModelArray">
|
||||
<field cname="priv" type="GdaSelectPrivate*"/>
|
||||
<method name="GetType" cname="gda_select_get_type" shared="true">
|
||||
|
@ -635,7 +736,7 @@
|
|||
<parameters>
|
||||
<parameter type="GdaConnection*" name="cnc"/>
|
||||
<parameter type="GdaCommand*" name="cmd"/>
|
||||
<parameter type="GdaParameterList*" name="parameters"/>
|
||||
<parameter type="GdaParameterList*" name="params"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetDatabase" cname="gda_server_provider_get_database">
|
||||
|
@ -649,7 +750,7 @@
|
|||
<parameters>
|
||||
<parameter type="GdaConnection*" name="cnc"/>
|
||||
<parameter type="GdaConnectionSchema" name="schema"/>
|
||||
<parameter type="GdaParameterList*" name="parameters"/>
|
||||
<parameter type="GdaParameterList*" name="params"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetServerVersion" cname="gda_server_provider_get_server_version">
|
||||
|
@ -668,7 +769,7 @@
|
|||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter type="GdaConnection*" name="cnc"/>
|
||||
<parameter type="GdaQuarkList*" name="parameters"/>
|
||||
<parameter type="GdaQuarkList*" name="params"/>
|
||||
<parameter type="const-gchar*" name="username"/>
|
||||
<parameter type="const-gchar*" name="password"/>
|
||||
</parameters>
|
||||
|
@ -1104,7 +1205,7 @@
|
|||
<method name="SetReferences" cname="gda_field_attributes_set_references">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="references"/>
|
||||
<parameter type="const-gchar*" name="ref"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SetScale" cname="gda_field_attributes_set_scale">
|
||||
|
@ -1256,6 +1357,11 @@
|
|||
<parameter type="gint" name="count"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<constructor cname="gda_row_new_from_list">
|
||||
<parameters>
|
||||
<parameter type="const-GList*" name="values"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetId" cname="gda_row_set_id">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
|
@ -1365,7 +1471,7 @@
|
|||
<method name="GetVtype" cname="gda_value_get_vtype">
|
||||
<return-type type="GdaValueType"/>
|
||||
</method>
|
||||
<method name="IsNullValue" cname="gda_value_is_null">
|
||||
<method name="IsNull" cname="gda_value_is_null">
|
||||
<return-type type="gboolean"/>
|
||||
</method>
|
||||
<method name="IsNumber" cname="gda_value_is_number">
|
||||
|
@ -1682,7 +1788,7 @@
|
|||
<parameter type="gchar*" name="value"/>
|
||||
<parameter type="gchar*" name="alias"/>
|
||||
<parameter type="gchar*" name="type"/>
|
||||
<parameter type="gchar*" name="txt_null"/>
|
||||
<parameter type="gchar*" name="null"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
</struct>
|
||||
|
@ -1707,7 +1813,7 @@
|
|||
<parameters>
|
||||
<parameter type="gchar*" name="value"/>
|
||||
<parameter type="gchar*" name="type"/>
|
||||
<parameter type="gboolean" name="is_null"/>
|
||||
<parameter type="gboolean" name="null"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="AddFieldFromText" cname="gda_xql_dml_add_field_from_text">
|
||||
|
@ -1764,7 +1870,7 @@
|
|||
<parameter type="gchar*" name="field"/>
|
||||
<parameter type="gchar*" name="value"/>
|
||||
<parameter type="gchar*" name="type"/>
|
||||
<parameter type="gboolean" name="is_null"/>
|
||||
<parameter type="gboolean" name="null"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="AddTargetFromText" cname="gda_xql_dml_add_target_from_text">
|
||||
|
@ -1960,7 +2066,7 @@
|
|||
<parameters>
|
||||
<parameter type="gchar*" name="value"/>
|
||||
<parameter type="gchar*" name="type"/>
|
||||
<parameter type="gchar*" name="txt_null"/>
|
||||
<parameter type="gchar*" name="null"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="AddFieldFromText" cname="gda_xql_func_add_field_from_text">
|
||||
|
@ -2014,7 +2120,7 @@
|
|||
<method name="AddRef" cname="gda_xql_item_add_ref">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="gchar*" name="reference"/>
|
||||
<parameter type="gchar*" name="ref"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="FindId" cname="gda_xql_item_find_id">
|
||||
|
@ -2026,7 +2132,7 @@
|
|||
<method name="FindRef" cname="gda_xql_item_find_ref">
|
||||
<return-type type="GdaXqlItem*"/>
|
||||
<parameters>
|
||||
<parameter type="gchar*" name="reference"/>
|
||||
<parameter type="gchar*" name="ref"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="FindRoot" cname="gda_xql_item_find_root">
|
||||
|
@ -2044,7 +2150,7 @@
|
|||
<method name="GetRef" cname="gda_xql_item_get_ref">
|
||||
<return-type type="GdaXqlItem*"/>
|
||||
<parameters>
|
||||
<parameter type="gchar*" name="reference"/>
|
||||
<parameter type="gchar*" name="ref"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetTag" cname="gda_xql_item_get_tag">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<namespace name="Gdk" library="gdk-x11-2.0">
|
||||
<enum name="AxisUse" cname="GdkAxisUse" type="enum">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<namespace name="Glade" library="glade-2.0">
|
||||
<callback name="ApplyCustomPropFunc" cname="GladeApplyCustomPropFunc">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<namespace name="Gnome" library="gnome-2">
|
||||
<enum name="FileDomain" cname="GnomeFileDomain" type="enum">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<api>
|
||||
<namespace name="GnomeDb" library="gnomedb-2">
|
||||
<enum name="ComponentType" cname="GnomeDbComponentType" type="enum">
|
||||
<member cname="GNOME_DB_COMPONENT_TYPE_INVALID" name="Invalid"/>
|
||||
<member cname="GNOME_DB_COMPONENT_TYPE_INVALID" name="Invalid" value="-1"/>
|
||||
<member cname="GNOME_DB_COMPONENT_TYPE_EXE" name="Exe"/>
|
||||
<member cname="GNOME_DB_COMPONENT_TYPE_SHLIB" name="Shlib"/>
|
||||
<member cname="GNOME_DB_COMPONENT_TYPE_FACTORY" name="Factory"/>
|
||||
|
@ -95,6 +95,66 @@
|
|||
</method>
|
||||
<constructor cname="gnome_db_connection_selector_new"/>
|
||||
</object>
|
||||
<object name="Control" cname="GnomeDbControl" parent="BonoboControl" hidden="1">
|
||||
<field cname="priv" type="GnomeDbControlPrivate*"/>
|
||||
<signal name="Activated" cname="activated" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GnomeDbControl*" name="control"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="GetProperty" cname="get_property" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GnomeDbControl*" name="control"/>
|
||||
<parameter type="GdaValue*" name="value"/>
|
||||
<parameter type="guint" name="id"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<signal name="SetProperty" cname="set_property" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GnomeDbControl*" name="control"/>
|
||||
<parameter type="const-GdaValue*" name="value"/>
|
||||
<parameter type="guint" name="id"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<method name="Activate" cname="gnome_db_control_activate">
|
||||
<return-type type="void"/>
|
||||
</method>
|
||||
<method name="Construct" cname="gnome_db_control_construct">
|
||||
<return-type type="GnomeDbControl*"/>
|
||||
<parameters>
|
||||
<parameter type="GtkWidget*" name="widget"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Deactivate" cname="gnome_db_control_deactivate">
|
||||
<return-type type="void"/>
|
||||
</method>
|
||||
<method name="GetType" cname="gnome_db_control_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<constructor cname="gnome_db_control_new">
|
||||
<parameters>
|
||||
<parameter type="GtkWidget*" name="widget"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetStatus" cname="gnome_db_control_set_status">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="msg"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SetUi" cname="gnome_db_control_set_ui">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="app_prefix"/>
|
||||
<parameter type="const-gchar*" name="ui_xml_file"/>
|
||||
<parameter type="BonoboUIVerb*" name="verbs"/>
|
||||
<parameter type="gpointer" name="user_data"/>
|
||||
</parameters>
|
||||
</method>
|
||||
</object>
|
||||
<object name="ControlWidget" cname="GnomeDbControlWidget" parent="GtkVBox">
|
||||
<field cname="priv" type="GnomeDbControlWidgetPrivate*"/>
|
||||
<method name="Activate" cname="gnome_db_control_widget_activate">
|
||||
|
@ -566,6 +626,56 @@
|
|||
</method>
|
||||
<constructor cname="gnome_db_table_editor_new"/>
|
||||
</object>
|
||||
<object name="Window" cname="GnomeDbWindow" parent="BonoboWindow" hidden="1">
|
||||
<field cname="priv" type="GnomeDbWindowPrivate*"/>
|
||||
<property name="Contents" cname="contents" type="GtkWidget" doc-string=" NULL" readable="true" writeable="true"/>
|
||||
<property name="Status" cname="status" type="gchar*" doc-string=" NULL" writeable="true"/>
|
||||
<signal name="Close" cname="close" when="LAST">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GnomeDbWindow*" name="window"/>
|
||||
</parameters>
|
||||
</signal>
|
||||
<method name="Close" cname="gnome_db_window_close">
|
||||
<return-type type="void"/>
|
||||
</method>
|
||||
<method name="GetContents" cname="gnome_db_window_get_contents">
|
||||
<return-type type="GtkWidget*"/>
|
||||
</method>
|
||||
<method name="GetType" cname="gnome_db_window_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<method name="GetUiComponent" cname="gnome_db_window_get_ui_component">
|
||||
<return-type type="BonoboUIComponent*"/>
|
||||
</method>
|
||||
<method name="GetUiContainer" cname="gnome_db_window_get_ui_container">
|
||||
<return-type type="Bonobo_UIContainer"/>
|
||||
</method>
|
||||
<constructor cname="gnome_db_window_new">
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="name"/>
|
||||
<parameter type="const-gchar*" name="app_prefix"/>
|
||||
<parameter type="const-gchar*" name="ui_xml_file"/>
|
||||
<parameter type="BonoboUIVerb*" name="verbs"/>
|
||||
<parameter type="gpointer" name="data"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetContents" cname="gnome_db_window_set_contents">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GtkWidget*" name="contents"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SetStatus" cname="gnome_db_window_set_status">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="status"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Show" cname="gnome_db_window_show">
|
||||
<return-type type="void"/>
|
||||
</method>
|
||||
</object>
|
||||
<struct name="ComponentInfo" cname="GnomeDbComponentInfo">
|
||||
<field cname="id" type="gchar*"/>
|
||||
<field cname="location" type="gchar*"/>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<api>
|
||||
<namespace name="Pango" library="pango-1.0">
|
||||
<enum name="Alignment" cname="PangoAlignment" type="enum">
|
||||
|
|
|
@ -18,7 +18,7 @@ SOURCES = \
|
|||
all: gconf-sharp-peditors.dll
|
||||
|
||||
gconf-sharp-peditors.dll: $(SOURCES)
|
||||
$(MCS) $(SOURCES) /r:../GConf/gconf-sharp.dll /r:glib-sharp /r:gtk-sharp /r:gnome-sharp /r:glade-sharp /r:System.Drawing /target:library /out:gconf-sharp-peditors.dll
|
||||
$(MCS) $(SOURCES) -L ../../glib -L ../../pango -L ../../atk -L ../../gdk -L ../../gtk -L ../../art -L ../../gnome -L ../GConf -L ../../glade /r:glib-sharp.dll /r:pango-sharp.dll /r:atk-sharp.dll /r:gdk-sharp.dll /r:gtk-sharp.dll /r:art-sharp.dll /r:gnome-sharp.dll /r:glade-sharp.dll /r:gconf-sharp.dll /r:System.Drawing /target:library /out:gconf-sharp-peditors.dll
|
||||
|
||||
install: all
|
||||
cp gconf-sharp-peditors.dll $(DESTDIR)@prefix@/lib
|
||||
|
|
|
@ -16,7 +16,7 @@ SOURCES = \
|
|||
all: gconf-sharp.dll
|
||||
|
||||
gconf-sharp.dll: $(SOURCES)
|
||||
$(MCS) $(SOURCES) /r:glib-sharp.dll /target:library /out:gconf-sharp.dll
|
||||
$(MCS) $(SOURCES) -L ../../glib /r:glib-sharp.dll /target:library /out:gconf-sharp.dll
|
||||
|
||||
install: all
|
||||
cp gconf-sharp.dll $(DESTDIR)@prefix@/lib
|
||||
|
|
|
@ -51,20 +51,27 @@ namespace GtkSharp.Generation {
|
|||
if (member.HasAttribute ("hidden"))
|
||||
continue;
|
||||
|
||||
string name;
|
||||
switch (node.Name) {
|
||||
case "method":
|
||||
string name = member.GetAttribute("name");
|
||||
name = member.GetAttribute("name");
|
||||
while (methods.ContainsKey(name))
|
||||
name += "mangled";
|
||||
methods.Add (name, new Method (LibraryName, member, this));
|
||||
break;
|
||||
|
||||
case "property":
|
||||
props.Add (member.GetAttribute ("name"), new Property (member, this));
|
||||
name = member.GetAttribute("name");
|
||||
while (props.ContainsKey(name))
|
||||
name += "mangled";
|
||||
props.Add (name, new Property (member, this));
|
||||
break;
|
||||
|
||||
case "signal":
|
||||
sigs.Add (member.GetAttribute ("name"), new Signal (member, this));
|
||||
name = member.GetAttribute("name");
|
||||
while (sigs.ContainsKey(name))
|
||||
name += "mangled";
|
||||
sigs.Add (name, new Signal (member, this));
|
||||
break;
|
||||
|
||||
case "implements":
|
||||
|
|
|
@ -478,8 +478,14 @@ namespace GtkSharp.Generation {
|
|||
return "str1ng";
|
||||
case "event":
|
||||
return "evnt";
|
||||
case "null":
|
||||
return "is_null";
|
||||
case "object":
|
||||
return "objekt";
|
||||
case "params":
|
||||
return "parms";
|
||||
case "ref":
|
||||
return "reference";
|
||||
case "in":
|
||||
return "in_param";
|
||||
case "out":
|
||||
|
|
|
@ -64,6 +64,9 @@ namespace GtkSharp.Generation {
|
|||
XmlElement elem = (XmlElement) def;
|
||||
IGeneratable igen = null;
|
||||
|
||||
if (elem.HasAttribute("hidden"))
|
||||
continue;
|
||||
|
||||
switch (def.Name) {
|
||||
|
||||
case "alias":
|
||||
|
|
|
@ -189,8 +189,14 @@ namespace GtkSharp.Generation {
|
|||
return "str1ng";
|
||||
} else if (name == "event") {
|
||||
return "evnt";
|
||||
} else if (name == "null") {
|
||||
return "is_null";
|
||||
} else if (name == "object") {
|
||||
return "objekt";
|
||||
} else if (name == "ref") {
|
||||
return "reference";
|
||||
} else if (name == "params") {
|
||||
return "parms";
|
||||
} else if (name == "in") {
|
||||
return "inn";
|
||||
} else {
|
||||
|
|
|
@ -200,58 +200,6 @@ namespace GLib {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Equals Method
|
||||
/// </summary>
|
||||
///
|
||||
/// <remarks>
|
||||
/// Checks equivalence of two Objects.
|
||||
/// </remarks>
|
||||
|
||||
public override bool Equals (object o)
|
||||
{
|
||||
if (!(o is Object))
|
||||
return false;
|
||||
|
||||
return (Handle == ((Object) o).Handle);
|
||||
}
|
||||
|
||||
public static bool operator == (Object a, Object b)
|
||||
{
|
||||
object oa = a;
|
||||
object ob = b;
|
||||
|
||||
if (ob == null){
|
||||
if (oa == null)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
} else {
|
||||
if (oa == null)
|
||||
return false;
|
||||
else
|
||||
return a.Equals (b);
|
||||
}
|
||||
}
|
||||
|
||||
public static bool operator != (Object a, Object b)
|
||||
{
|
||||
object oa = a;
|
||||
object ob = b;
|
||||
|
||||
if (ob == null){
|
||||
if (oa == null)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
} else {
|
||||
if (oa == null)
|
||||
return true;
|
||||
else
|
||||
return !a.Equals (b);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// GetHashCode Method
|
||||
/// </summary>
|
||||
|
|
|
@ -5,12 +5,12 @@ DESTDIR=
|
|||
@ENABLE_GNOMEDB_FALSE@ all:
|
||||
|
||||
windows:
|
||||
$(CSC) /unsafe /target:library /r:../glib/glib-sharp.dll /r:../gtk/gtk-sharp.dll /r:../gnome/gnome-sharp.dll /r:../gda/gda-sharp.dll /out:gnomedb-sharp.dll /recurse:*.cs
|
||||
$(CSC) /unsafe /target:library /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:../atk/atk-sharp.dll /r:../art/art-sharp.dll /r:../gdk/gdk-sharp.dll /r:../gtk/gtk-sharp.dll /r:../gnome/gnome-sharp.dll /r:../gda/gda-sharp.dll /out:gnomedb-sharp.dll /recurse:*.cs
|
||||
|
||||
linux: gnomedb-sharp.dll
|
||||
|
||||
gnomedb-sharp.dll: Application.cs generated/*.cs
|
||||
$(MCS) --unsafe --target library -L ../glib -r glib-sharp.dll -r gtk-sharp.dll -r gnome-sharp.dll -r gda-sharp.dll -o gnomedb-sharp.dll --recurse '*.cs'
|
||||
$(MCS) --unsafe --target library -L ../glib -L ../pango -L ../atk -L ../art -L ../gdk -L ../gtk -L ../gnome -L ../gda -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r art-sharp.dll -r gdk-sharp.dll -r gtk-sharp.dll -r gnome-sharp.dll -r gda-sharp.dll -o gnomedb-sharp.dll --recurse '*.cs'
|
||||
|
||||
clean:
|
||||
rm -f *.dll
|
||||
|
|
3
parser/.cvsignore
Executable file
3
parser/.cvsignore
Executable file
|
@ -0,0 +1,3 @@
|
|||
Makefile
|
||||
gapi_format_xml
|
||||
|
|
@ -9,7 +9,7 @@ GCONFDIR=../../gconf
|
|||
all: sample.exe
|
||||
|
||||
sample.exe: sample.schema sample.glade $(SOURCES)
|
||||
$(MCS) /out:sample.exe $(SOURCES) /r:$(GCONFDIR)/GConf/gconf-sharp.dll /r:$(GCONFDIR)/GConf.PropertyEditors/gconf-sharp-peditors.dll /r:gtk-sharp /r:glade-sharp /r:gnome-sharp /r:System.Drawing /resource:sample.glade
|
||||
$(MCS) /out:sample.exe $(SOURCES) /r:../../glib/glib-sharp.dll /r:../../pango/pango-sharp.dll /r:../../atk/atk-sharp.dll /r:../../art/art-sharp.dll /r:../../gdk/gdk-sharp.dll /r:$(GCONFDIR)/GConf/gconf-sharp.dll /r:../../gtk/gtk-sharp.dll /r:../../gnome/gnome-sharp.dll /r:../../glade/glade-sharp.dll /r:$(GCONFDIR)/GConf.PropertyEditors/gconf-sharp-peditors.dll /r:System.Drawing /resource:sample.glade
|
||||
|
||||
Settings.cs: sample.schema
|
||||
MONO_PATH=$(top_builddir)/gconf/GConf/gconf-sharp.dll mono $(GCONFDIR)/tools/gconfsharp-schemagen.exe Sample sample.schema > Settings.cs
|
||||
|
|
82
sources/Gda.metadata
Normal file
82
sources/Gda.metadata
Normal file
|
@ -0,0 +1,82 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
|
||||
<!-- renames -->
|
||||
<rule>
|
||||
<class name="GdaDataModel">
|
||||
<signal>Changed</signal>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="signal">
|
||||
<name>name</name>
|
||||
<value>DataChanged</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdaDataModel">
|
||||
<signal>BeginEdit</signal>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="signal">
|
||||
<name>name</name>
|
||||
<value>BeginEditing</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdaDataModel">
|
||||
<signal>CancelEdit</signal>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="signal">
|
||||
<name>name</name>
|
||||
<value>CancelEditing</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdaDataModel">
|
||||
<signal>EndEdit</signal>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="signal">
|
||||
<name>name</name>
|
||||
<value>EndEditing</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdaXmlDatabase">
|
||||
<signal>Changed</signal>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="signal">
|
||||
<name>name</name>
|
||||
<value>DataChanged</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdaDataModel">
|
||||
<method>ToXmlNode</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="method">
|
||||
<name>hidden</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdaExport">
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="class">
|
||||
<name>hidden</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
|
||||
</metadata>
|
26
sources/GnomeDb.metadata
Normal file
26
sources/GnomeDb.metadata
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
|
||||
<!-- renames -->
|
||||
<rule>
|
||||
<class name="GnomeDbWindow">
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="class">
|
||||
<name>hidden</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GnomeDbControl">
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="class">
|
||||
<name>hidden</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
|
||||
</metadata>
|
|
@ -17,3 +17,4 @@ gtkhtml: cvs branch gnome-2-port files gtkhtml.[ch], gtkhtml-types.h,
|
|||
libglade-2.0.0
|
||||
libart_lgpl-2.3.10
|
||||
libgda-0.8.193
|
||||
libgnomedb-0.8.193
|
||||
|
|
Loading…
Reference in a new issue