Commit graph

503 commits

Author SHA1 Message Date
David Ayers
57ca86ebd6 * EOAccess/EOSQLQualifier.m
(-[initWithEntity:qualifierFormat:]): Implement.
	(-[schemaBasedQualifierWithRootEntity:]): Ditto.
	(-[sqlStringForSQLExpression:]): Ditto.
	(-[dealloc]): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28407 72102866-910b-0410-8b05-ffd578937521
2009-07-24 16:43:07 +00:00
David Ayers
2883b0b21c 2009-06-24 Georg Fleischmann <g.fleischmann@vhf.de>
2009-06-24  David Ayers  <ayers@fsfe.org>

	* EOAccess/EOPrivate.h (EOQualifier <EOQualifierSQLGeneration>):
	Declare.
	* EOAccess/EOSQLQualifier.m
	([EOQualifier schemaBasedQualifierWithRootEntity:]),
	([EOQualifier sqlStringForSQLExpression:]): Add preliminary dummy
	implementations.
	([EONotQualifier schemaBasedQualifierWithRootEntity:]): Implement.
	


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28406 72102866-910b-0410-8b05-ffd578937521
2009-07-24 16:20:27 +00:00
David Ayers
8351843e41 * EOAdaptor/PostgreSQLAdaptor/EOPostgreSQLExpression.m
(+[formatValue:forAttribute:]): Do not escape underscore characters
	in values.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28316 72102866-910b-0410-8b05-ffd578937521
2009-06-01 12:02:25 +00:00
David Ayers
8eda0f3a98 * EOControl/EOAndQualifier.m
* EOControl/EOKeyComparisonQualifier.m
	* EOControl/EONotQualifier.m
	* EOControl/EOOrQualifier.m
	* EOControl/EOQualifier.m
	* EOAccess/EOSQLQualifier.m: Include NSArray.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28315 72102866-910b-0410-8b05-ffd578937521
2009-06-01 11:51:06 +00:00
David Ayers
93563c9829 (revert last change)
2009-04-04  David Ayers  <ayers@fsfe.org>

	* EOControl/EOUndoManager.m (-[registerUndoWithTarget:selector:arg:]):
	Defer to NSUndoManager's -[registerUndoWithTarget:selector:object:].
	


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28178 72102866-910b-0410-8b05-ffd578937521
2009-04-04 22:07:39 +00:00
David Ayers
68f606bf2a * EOControl/EOUndoManager.m (+[class],+[allocWithZone:]): Defer to
NSUndoManager.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28177 72102866-910b-0410-8b05-ffd578937521
2009-04-04 21:51:10 +00:00
David Ayers
97bdca0839 * EOAccess/EODatabase.m (setUpdateStrategy:): Count the snapshots
to determine if we actually already have fetched them.
	Reported by: Thierry Delhaise <befree_fr@mac.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28085 72102866-910b-0410-8b05-ffd578937521
2009-03-16 08:26:00 +00:00
Matt Rice
4a7738a050 * DBModeler/ModelerAttributeEditor.m
(-displaygroupDidChangeSelection:): Activate self on selection change.
* DBModeler/MainModelEditor.m (-_activateSelection): Move method to
EOModeler.
(viewSelectedObject): Remove method.
(outlineViewSelectionDidChange:): Call -activateSelection.
* EOModeler/EOModelerEditor.m: Add activateSelection extension/method.
* EOModeler/EOModelerEditor.h: Ditto.
* EOModeler/EOModelerDocument.m (-addAttribute):
(-addRelationship): Add some Fixme's.  Call -activateSelection on the
editor.
(-delete:): Revert the selection back to the viewed object, and
activate the new selection.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28035 72102866-910b-0410-8b05-ffd578937521
2009-03-03 23:46:44 +00:00
Matt Rice
a962c06ac3 * DBModeler/ModelerAttributeEditor.m (dealloc): Remove observers and
release the selection, remove unused ivar.
(selectionDidChange:): Remove unused local.
* DBModeler/ModelerAttributeEditor.h: Remove unused ivar.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28024 72102866-910b-0410-8b05-ffd578937521
2009-03-02 09:35:34 +00:00
Matt Rice
31c7948faf * DBModeler/Inspectors/RelationshipInspector.m (-awakeFromNib):
Set text field delegate, implement controlTextDidEndEditing.
* DBModeler/Resources/Preferences.gorm: Remove unimplemented outlets.
* DBModeler/ModelerAttributeEditor.h: Add ivar.
* DBModeler/ModelerAttributeEditor.m: Add EOObserving for the current
selection.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28022 72102866-910b-0410-8b05-ffd578937521
2009-03-02 06:06:44 +00:00
Matt Rice
ecdc0c32ad * DBModeler/Inspectors/AttributesInspector.m: Implement
controlTextDidEndEditing:.
* DBModeler/Inspectors/AttributesInspector.gorm: Set text field
delegates, and nextKeyView.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28018 72102866-910b-0410-8b05-ffd578937521
2009-03-01 22:09:34 +00:00
Matt Rice
ad8dedbf6c * EOAccess/EORelationship.m (-referencesProperty:): Check if property
is the relationships destination entity.
* EOModeler/EOModelerDocument (-delete:): Call referencesToProperty:
on all model objects.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28011 72102866-910b-0410-8b05-ffd578937521
2009-03-01 10:08:12 +00:00
Matt Rice
500785be3b * DBModeler/DiagramView.m: Include math.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28000 72102866-910b-0410-8b05-ffd578937521
2009-02-27 16:26:09 +00:00
Matt Rice
b86447fc2f * DBModeler/MainModelEditor.m: Implement -viewSelectedObject
calling _activateSelection.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27997 72102866-910b-0410-8b05-ffd578937521
2009-02-27 14:30:02 +00:00
Matt Rice
66c54bc152 * EOInterface/EODisplayGroup.m:
(-selectObjectsIdenticalTo:selectFirstOnNoMatch:): Disable some
questionable code.
(-setSelectedObjects:): Use a copy, not a mutable copy.
* DBModeler/DiagramView.m (-orderViewFront:): Move the view to
the end, not the beginning.
(sortSubviews()): Flip the ascending/descending order.
(showEntity:): floor randomly generated points.
* DBModeler/MainModelEditor.m: Rename -viewSelectedObject method
to _activateSelection. Remove calls to super viewSelectedObject.
* DBModeler/ModelerAttributeEditor.m
(-displayGroupDidChangeSelection): View the selected object when
the current selection is the attribute editors entity.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27994 72102866-910b-0410-8b05-ffd578937521
2009-02-27 05:29:06 +00:00
David Ayers
f259e3a5ee * EOControl/EOEditingContext.m (_undoManagerCheckpoint:):
Insure we only call _processEndOfEventNotification: if we
	already have a grouping level.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27970 72102866-910b-0410-8b05-ffd578937521
2009-02-25 08:09:07 +00:00
Matt Rice
cf1768f553 * DBModeler/DiagramView.m (-dealloc): Release model.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27941 72102866-910b-0410-8b05-ffd578937521
2009-02-21 15:41:52 +00:00
Matt Rice
bbcf66dd59 * DBModeler/Modeler.m (-newFromDatabase:): Remove extra release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27940 72102866-910b-0410-8b05-ffd578937521
2009-02-21 15:31:38 +00:00
David Ayers
4227d241e5 * Version 0.12.0
* ANNOUNCE: Update for release.
	* NEWS: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27925 72102866-910b-0410-8b05-ffd578937521
2009-02-20 08:08:54 +00:00
David Ayers
677ebbfda3 * EOControl/gdl2.EOControl.make,
* EOAccess/gdl2.EOAccess.make,
	* EOInterface/gdl2.EOInterface.make: Remove convenience 
	make file fragements.
	* EOControl/Makefile.postamble,
	* EOAccess/Makefile.postamble,
	* EOInterface/Makefile.postamble: Remove references to
	convenience make file fragements.

	* README: Add documentation on usage of GDL2 components.
	Update versions of dependencies.  Add documentation for some missing
	components.  Remove obsolete documentation.  Refer to TODO file for
	missing features.
	* TODO: Update.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27924 72102866-910b-0410-8b05-ffd578937521
2009-02-20 07:25:48 +00:00
David Ayers
b991a133af * EOControl/EOPrivate.h/m (GDL2_isLegalDBName): New function.
* EOQualifier.m (getKey): Validate qualifier bind variable key.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27923 72102866-910b-0410-8b05-ffd578937521
2009-02-19 16:29:11 +00:00
David Ayers
68f788d944 * EOAccess/EOGenericRecord.h/m ([-entity]): New category.
* EOAccess/GNUmakefile (EOGenericRecord): Build and install new
	category.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27922 72102866-910b-0410-8b05-ffd578937521
2009-02-19 11:15:22 +00:00
David Ayers
c95034cfa5 * GDL2.gsdoc: Update relative path to sub project documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27920 72102866-910b-0410-8b05-ffd578937521
2009-02-18 20:13:42 +00:00
David Ayers
b8cfc601fc * configure.ac (enable-examples): Allow examples to be built from
top-level makefile.
	* GNUmakefile.in: Ditto.
	* configure: Regenerate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27919 72102866-910b-0410-8b05-ffd578937521
2009-02-18 18:50:45 +00:00
David Ayers
4d73ac52dd * Documentation/GDL2Intro/Examples: Move to ...
* Examples: ... here.
	* Examples/GNUmakefile: Adapt to new location.
	* Documentation/GDL2Intro/GNUmakefile: Remove subproject.
	* Documentation/GDL2Intro/GDL2Intro.texi: Update references to new
	location.
	* Trading: Move to ...
	* Examples/Trading: ... here.
	* Examples/Trading/GNUmakefile: Adapte to new location.
	* Examples/GNUmakefile: Add Trading.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27918 72102866-910b-0410-8b05-ffd578937521
2009-02-18 17:21:05 +00:00
David Ayers
c16000b164 * configure.ac (enable-gui-projects): New option to disable builing
of projects depending -gui/AppKit.  Default to yes.
	(enable-gorm-palette): Default to the setting for enable-gui-projects.
	* configure: Regenerate.
	* GNUmakefile.in: Extract all GUI libs into variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27917 72102866-910b-0410-8b05-ffd578937521
2009-02-18 16:28:00 +00:00
Matt Rice
25a2598847 * GNUmakefile.in: Add Trading subproject.
* EOAccess/EORelationship.m (-_joinsChanged:): Set the destination to
the first object.
(-destinationEntity): Call _joinsChanged if the destination is nil.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27916 72102866-910b-0410-8b05-ffd578937521
2009-02-18 14:47:26 +00:00
David Ayers
c1a1ad155e * EOAccess/EOEntity.m (-dealloc): Invalidate class description
cache.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27910 72102866-910b-0410-8b05-ffd578937521
2009-02-18 05:52:42 +00:00
David Ayers
0cba21bb90 * EOControl/Makefile.postamble
* EOAccess/Makefile.postamble
	* EOInterface/Makefile.postamble
	(after-uninstall::) Remove make file fragments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27909 72102866-910b-0410-8b05-ffd578937521
2009-02-18 05:09:35 +00:00
Matt Rice
f7ceba56ed * EOAccess/EOEntityPriv.h: Remove GDL2DestinationEntitiesAddRelationship, and
GDL2DestinationEntitiesRemoveRelationship.
* EOAccess/EOEntity.m (+initialize, -dealloc): Remove usage and
implementations of the above functions.
* EOAccess/EORelationship.m (-initWithPropertyList:owner:):
(-setDefinition:): Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27908 72102866-910b-0410-8b05-ffd578937521
2009-02-18 05:05:21 +00:00
David Ayers
2cad6cba47 * EOControl/gdl2.EOControl.make
* EOAccess/gdl2.EOAccess.make
	* EOInterface/gdl2.EOInterface.make
	* EOControl/Makefile.postamble
	* EOAccess/Makefile.postamble
	* EOInterface/Makefile.postamble
	Install makefile fragments for each 'core' library which adds
	linker flags.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27904 72102866-910b-0410-8b05-ffd578937521
2009-02-17 16:33:17 +00:00
Matt Rice
54bd63733a add comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27903 72102866-910b-0410-8b05-ffd578937521
2009-02-17 15:46:37 +00:00
Matt Rice
f8943e1caa revert last patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27902 72102866-910b-0410-8b05-ffd578937521
2009-02-17 15:41:40 +00:00
Matt Rice
03927bc87c * EOControl/EOEditingContext.m (_undoManagerCheckpoint:): call
_processEndOfEventNotification by performing a selector through the
runloop.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27898 72102866-910b-0410-8b05-ffd578937521
2009-02-17 12:38:56 +00:00
Matt Rice
7708423f71 add hack for windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27756 72102866-910b-0410-8b05-ffd578937521
2009-02-02 11:47:13 +00:00
Matt Rice
33f45b02b0 link in libGorm.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27755 72102866-910b-0410-8b05-ffd578937521
2009-02-02 09:32:16 +00:00
Nicola Pero
c3f58d8027 Fixed typo that would prevent the SQLiteAdaptor from linking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27747 72102866-910b-0410-8b05-ffd578937521
2009-01-31 20:41:20 +00:00
Nicola Pero
154a47dff3 Fixed typo in --with-sqlite3-library=xxx, was setting sqlite3 variable instead of sqlite3_libdir
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27746 72102866-910b-0410-8b05-ffd578937521
2009-01-31 20:37:24 +00:00
Matt Rice
f4498d2a98 *EOControl/EODefines.h: switch BUILD_libgnustep-db2control_DLL define
to BUILD_libEOControl_DLL.
        * EOControl/EOGlobalID.m: include limits.h.
        * EOControl/EOPrivate.m: implement -copyWithZone: and
        -mutableCopyWithZone: in GDL2NonRetainingArray.
        * EOAccess/EODefines.h: switch BUILD_libgnustep-db2_DLL define to
        BUILD_libEOAccess_DLL. 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27724 72102866-910b-0410-8b05-ffd578937521
2009-01-29 22:34:41 +00:00
David Ayers
23b00c21c7 * EOAccess/EOJoin.h: Update memory mangement comments.
* EOAccess/EOJoin.m (dealloc): Implement.
	* EOAccess/EORelationship.m (dealloc,_flushCahce): Fix memory leaks.
	* EOAccess/EOAttribute.h: Update some signatures.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27695 72102866-910b-0410-8b05-ffd578937521
2009-01-26 12:05:29 +00:00
Matt Rice
d0097cc42c * DBModeler/MainModelEditor.m: Implement
-draggingSourceOperationMaskForLocal:.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27693 72102866-910b-0410-8b05-ffd578937521
2009-01-26 05:32:38 +00:00
David Ayers
0ea7aaf64a * config.h.in (getRCSID): Mark inline to avoid compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26978 72102866-910b-0410-8b05-ffd578937521
2008-10-27 16:59:35 +00:00
David Ayers
22b8c9171d * EOControl/EOClassDescription.m (classDescriptionForClass:): Only
register null internally if the notification returned nothing.
	Adjust NSLog typespeficier.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26748 72102866-910b-0410-8b05-ffd578937521
2008-07-06 10:52:27 +00:00
Matt Rice
4c6a55e3fd * EOControl/EOPrivate.m (GDL2_PrivateInit):
* EOAccess/EOPrivate.m (GDL2_AccessPrivateInit): Set initialized to YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26601 72102866-910b-0410-8b05-ffd578937521
2008-06-06 22:54:24 +00:00
David Ayers
5c84e40422 * EOAccess/EOAttribute.m (-setDefinition:): Clear _columnName before
calling _setIsEdited on the parent.  Document.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26597 72102866-910b-0410-8b05-ffd578937521
2008-06-06 09:26:14 +00:00
David Ayers
35ea180bdc * EOAccess/EORelationship.h/m (-setInverseRelationship:): Rename to...
(-_setInverseRelationship:): ... and move to local privat method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26596 72102866-910b-0410-8b05-ffd578937521
2008-06-06 09:21:35 +00:00
Matt Rice
a6415d024a EOAccess/EOEntity.m (performSelectorOnArrayWithEachObjectOfClass()):
Perform the selectors on a copy of the array.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26595 72102866-910b-0410-8b05-ffd578937521
2008-06-05 23:18:39 +00:00
Matt Rice
80a2657f4a * EOAccess/EOModel.m (-setName:, -setAdaptorName:, -setDocComment):
* EOAccess/EORelationship.m (-setName:, -setDocComment:):
* EOAccess/EOStoredProcedure.m (-setName:, -setExternalName:):
* EOAccess/EOAttribute.m (-setAdaptorValueConversionMethodName:)
(-setName, -setColumnName:, -setExternalType:, -setValueType:):
(-setValueClassName:, -setWriteFormat:, -setReadFormat:):
(-setDocComment:, -setValueFactoryMethodName:):
(-setAdaptorValueConversionMethodName:): Use ASSIGNCOPY instead of
ASSIGN.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26594 72102866-910b-0410-8b05-ffd578937521
2008-06-05 23:14:14 +00:00
Matt Rice
a8f0ef8c1d * README: Add Trading framework.
* GNUmakefile: Ditto.
* Trading/*: Initial import.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26593 72102866-910b-0410-8b05-ffd578937521
2008-06-03 13:29:46 +00:00
Matt Rice
d89df1082e * README: Reflect name change of PostgreSQL adaptor, and addition of
SQLite adaptor. Bump supported version of Postgres Adaptor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26592 72102866-910b-0410-8b05-ffd578937521
2008-06-03 11:35:51 +00:00