Commit graph

568 commits

Author SHA1 Message Date
Dave Wetzel
eab4c9915c * configure.ac
replaced DBModeler with Apps/EOModeler Apps/EOModelEditor 
 * configure: regenerated
 * Apps/EOModelEditor/Inspectors/AttributeInspector.gsmarkup
 * Apps/EOModelEditor/Inspectors/EntityStoredProcedureInspector.gsmarkup
 * Apps/EOModelEditor/Inspectors/AdvancedAttributeInspector.gsmarkup
 * Apps/EOModelEditor/Inspectors/EntityInspector.gsmarkup
   Changed box sizes.
* Apps/EOModeler/EOMInspectorController.m
  add inspector view in background.
  add NSLogs to help debugging (still broken on X11)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30568 72102866-910b-0410-8b05-ffd578937521
2010-06-03 23:33:33 +00:00
Dave Wetzel
86ddea2fa3 * Apps/EOModelEditor/Inspectors/*.gsmarkup
trying to fix offsets on X11
* Apps/EOModeler/EOModelExtensions.m
  remove config.h include as suggested by David Ayers



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30563 72102866-910b-0410-8b05-ffd578937521
2010-06-03 18:49:35 +00:00
Dave Wetzel
272ff9fd66 * EOControl/EOEditingContext.m
* EOControl/EOMultiReaderLock.m
* EOControl/EODetailDataSource.m
  fix warnings
* EOControl/EOCustomObject.m
  validateValue:forKey:error: -- add reason in NSLocalizedDescriptionKey
  fix warnings



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30558 72102866-910b-0410-8b05-ffd578937521
2010-06-03 10:21:28 +00:00
Dave Wetzel
b50974f473 * EOAccess/EOModel.m
include GNUstepBase/NSObject+GNUstepBase.h
  _removePropertiesReferencingEntity: fix selector name
  removeEntity: add comment, call _removeEntity:
  implemented removeEntityAndReferences:
* EOAccess/EOAttribute.m
  include GNUstepBase/NSObject+GNUstepBase.h
  add comment
* EOAccess/EOModel.h
  add comment
* Apps/EOModelEditor/EOMEDocument.m
  deleting of attributes, arguments (stored procedures) and entities works now
* Apps/EOModelEditor/EOMEDocument.h
  add methods to avoid warnings



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30554 72102866-910b-0410-8b05-ffd578937521
2010-06-03 08:09:25 +00:00
Dave Wetzel
8f66ac4667 * EOAccess/EOModel.m/h
new (still empty) _loadFetchSpecificationDictionaryForEntityNamed:
  added _removePropertiesReferencingProperty:
  added _removePropertiesReferencingEntity:
  loadAllModelObjects: load storedProcedures, call _loadEntity  
  fixed referencesToProperty:
  added referencesProperty:
  
* EOAccess/EOAttribute.m
  fixed valueForSQLExpression:
  changed return type of _definitionArray to EOExpressionArray *

* EOAccess/EOEntity.m
  fixed attributesUsedForLocking
  fixed removeAttribute:
  fixed removeRelationship:
  fixed _fetchSpecificationDictionary
  fixed _loadEntity
  
* EOAccess/EORelationship.m
  verified valueForSQLExpression, removed logs
  fixed referencesProperty:
  
* Apps/EOModelEditor/EOMEDocument.m
  make deleting of attributes work.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30536 72102866-910b-0410-8b05-ffd578937521
2010-06-02 07:55:16 +00:00
Dave Wetzel
2f44a63450 Apps/EOModelEditor/Resources/PlusCorner.tiff added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30528 72102866-910b-0410-8b05-ffd578937521
2010-06-01 17:22:13 +00:00
Dave Wetzel
bfd39c720e * Apps/EOModelEditor/Inspectors/*.gsmarkup
tried to fix on X11
* Apps/EOModelEditor/EOModelEditorApp.m
  new: to create new models manually
* Apps/EOModelEditor/Inspectors/EntityInspector.m
  check for empty strings before filling fields
* Apps/EOModelEditor/Inspectors/RelationshipInspector.m
  check for empty name
* Apps/EOModelEditor/EOMEDocument.m
  addEntity, addRelationship, validateUserInterfaceItem



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30519 72102866-910b-0410-8b05-ffd578937521
2010-06-01 09:30:14 +00:00
Dave Wetzel
5095e6dfe9 int -> NSUInteger, call sizeToCells
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30518 72102866-910b-0410-8b05-ffd578937521
2010-06-01 02:19:12 +00:00
Dave Wetzel
981cb4903f * EOAccess/EOAttribute.m: reformat
* EOAccess/EOAdaptor.m
in databaseEncoding: use +[GSMimeDocument encodingFromCharset:]
less logging
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.h: reformat
encoding -> _encoding
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
Use _encoding now for reading and writing Strings.
less logging
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLCompatibility.h
if 0 for now (please check if that code is still needed!)
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLPrivate.m
fix header
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
less logging
* Apps/EOModelEditor
* Apps/EOModelEditor/Inspectors
propset  svn:ignore
* Apps/EOModelEditor/GNUmakefile
add -lgnustep-baseadd on non-GNUstep



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30517 72102866-910b-0410-8b05-ffd578937521
2010-06-01 00:29:37 +00:00
Dave Wetzel
dafa40f0e5 make compile on Ubuntu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30505 72102866-910b-0410-8b05-ffd578937521
2010-05-31 03:40:11 +00:00
Dave Wetzel
c17aa7241f fix imports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30504 72102866-910b-0410-8b05-ffd578937521
2010-05-31 01:09:20 +00:00
Dave Wetzel
5a3cb0721e deleted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30503 72102866-910b-0410-8b05-ffd578937521
2010-05-31 00:35:18 +00:00
Dave Wetzel
9acc7d11cd Initial Version of EOModelEditor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30502 72102866-910b-0410-8b05-ffd578937521
2010-05-31 00:04:49 +00:00
Dave Wetzel
1935fd8e22 Remove lots of logging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30496 72102866-910b-0410-8b05-ffd578937521
2010-05-30 19:25:53 +00:00
Dave Wetzel
021d9c6759 * EOAccess/EOAttribute.m
added attributeWithParent: definition: convenience method
* EOAccess/EOAdaptorContext.m
  _channelDidInit: setDelegate
* EOAccess/EODatabaseContext.m
  availableChannel: call registerChannel
  new method _fetchRawRowKeyPaths:fetchSpecification:entity:editingContext:
* EOAccess/EODatabaseChannel.m
  raise NSInvalidArgumentException in init.
  initWithDatabaseContext: more checks
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLContext.m
  beginTransaction: more checks, raise NSInternalInconsistencyException



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30494 72102866-910b-0410-8b05-ffd578937521
2010-05-30 18:24:14 +00:00
Dave Wetzel
fb061e0a13 added support for stored procedures
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30461 72102866-910b-0410-8b05-ffd578937521
2010-05-27 06:50:25 +00:00
Dave Wetzel
6b69c88f62 * EOAccess/EOStoredProcedure.m
setName: added loadAllModelObjects and checks
setExternalName: add checks
* EOAccess/EORelationship.m
encodeIntoPropertyList:
added code for ownsDestination and propagatesPrimaryKey from Sergey Golovin.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30430 72102866-910b-0410-8b05-ffd578937521
2010-05-19 17:00:10 +00:00
Dave Wetzel
b6d3915786 * EOAccess/EOModel.m:
entities: make sure we use a mutable array. Destroy _entities cache when adding a new one.
(We run into wrong sorted arrays otherwise)
* EOAccess/EOEntity.m:
make setName: work
* EOAccess/EORelationship.m
add support for KVObserving.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30397 72102866-910b-0410-8b05-ffd578937521
2010-05-16 08:14:49 +00:00
Dave Wetzel
9ef3e0ff2a added + _joinSemanticForName:
added + _nameForJoinSemantic:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30289 72102866-910b-0410-8b05-ffd578937521
2010-05-03 22:41:57 +00:00
Dave Wetzel
ff63a21003 * EOAccess/EOAttribute.m: Add comment
* EOControl/EOEditingContext.m: Do not raise on inserting bad objects for now
(Non-EOCustomObject subclasses)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30285 72102866-910b-0410-8b05-ffd578937521
2010-05-03 09:38:59 +00:00
Dave Wetzel
216724f0c0 load markup, not gorm
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30282 72102866-910b-0410-8b05-ffd578937521
2010-05-02 23:54:01 +00:00
Matt Rice
01d46e5527 * DBModeler/ModelerTableEmbedibleEditor.h/m: Remove usage of
NSMenuItem protocol.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30281 72102866-910b-0410-8b05-ffd578937521
2010-05-02 23:18:24 +00:00
Dave Wetzel
4983a5c38e * DBModeler/Inspectors/AttributeInspector.*
* DBModeler/Inspectors/GNUmakefile
Moved to Renaissance for the Attribute Inspector



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30280 72102866-910b-0410-8b05-ffd578937521
2010-05-02 22:47:00 +00:00
Dave Wetzel
51b728a2b8 * DBModeler/Modeler.m: use sel_isEqual to check menu
* DBModeler/Resources/SQLGenerator.gsmarkup: make window resizeable
* DBModeler/CodeGenerator.m: add credits for initialCapitalString and
  initialLowercaseString
  use ASSIGN() in generated code.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30260 72102866-910b-0410-8b05-ffd578937521
2010-04-29 18:14:30 +00:00
Dave Wetzel
2f65a25e2f * EOControl/EOMutableKnownKeyDictionary.m
removed __PRETTY_FUNCTION__ from Asserts
removed NSLogs
* EOModeler/EOModelExtensions.m
added - (NSString *)cScalarTypeString
* DBModeler/CodeGenerator.h/m: new file
Added a Code Generator like EOGenerator from www.rubicode.com



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30256 72102866-910b-0410-8b05-ffd578937521
2010-04-29 02:28:23 +00:00
Dave Wetzel
671dac2c7b EOInterface/* numberOfRowsInTableView returns NSInteger now
EOModeler/EOModelerDocument.m: do not insert a model into EditingContext.
EOModeler/EOModelerEditor.m: avoid crash



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30245 72102866-910b-0410-8b05-ffd578937521
2010-04-27 01:49:42 +00:00
Dave Wetzel
fea268900f * EOControl/EOEditingContext.m:
added @implementation EOCustomObject (AssociationsHack)
re-added registerAssociationForDeallocHack
* EOControl/*: ported to new runtime and OS X



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30244 72102866-910b-0410-8b05-ffd578937521
2010-04-26 22:05:17 +00:00
Dave Wetzel
7e98e4bba8 replaced unsigned int with NSUInteger. works for me, but needs code review.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30243 72102866-910b-0410-8b05-ffd578937521
2010-04-26 21:58:31 +00:00
Dave Wetzel
e92812fdff * EOAccess/EODatabaseContext.m
implemented _assertValidStateWithSelector:
fixed leaks
* EOAccess/Makefile.preamble: added -Werror-implicit-function-declaration
* EOAccess/*: ported to new runtime and OS X



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30242 72102866-910b-0410-8b05-ffd578937521
2010-04-26 21:52:42 +00:00
Dave Wetzel
3f1ad81647 * EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.h/m
added _evaluateExprInProgress
_evaluateExpression:withAttributes: returns number of affected rows now.
This removes the need for keeping the _pgResult alive.
(and leak)
fix includes for non-GNUstep platforms
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLContext.m
fix includes for non-GNUstep platforms
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
fix includes for non-GNUstep platforms
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m
fix includes for non-GNUstep platforms



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30238 72102866-910b-0410-8b05-ffd578937521
2010-04-26 20:48:27 +00:00
David Ayers
7d7f63a828 * EOAccess/EODatabaseContext.m
(prepareForSaveWithCoordinator:editingContext:): Correct logic
	for primary key generation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30219 72102866-910b-0410-8b05-ffd578937521
2010-04-22 09:38:07 +00:00
David Ayers
1ac1fc7f7d * DBModeler/ConsistencyChecker.m (attributeDetailsCheckForModel:)
Fix iterator variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30210 72102866-910b-0410-8b05-ffd578937521
2010-04-21 14:05:19 +00:00
David Ayers
677af06a20 * EOControl/EOObserver.h
(EODelayedObserver): Inherit from EOCustomObject
	to be able to rely on implicit breaking of connections
	during dealloc.
	* EOInterface/EOAssociation.m
	(establishConnection): Reactivate implicit connection handling.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30209 72102866-910b-0410-8b05-ffd578937521
2010-04-21 13:59:28 +00:00
Dave Wetzel
a8f69ea595 globalIDForRow: isFinal: - create EOKeyGlobalID ouside loop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30201 72102866-910b-0410-8b05-ffd578937521
2010-04-20 06:14:21 +00:00
Dave Wetzel
4b25a97b64 start transaction in
objectsWithFetchSpecification: editingContext:
if none was in place before.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30200 72102866-910b-0410-8b05-ffd578937521
2010-04-20 06:11:53 +00:00
Fred Kiefer
ce2d3fb811 Fix a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30199 72102866-910b-0410-8b05-ffd578937521
2010-04-19 18:00:53 +00:00
Fred Kiefer
ab3613f0c2 Use NSUInteger and remove methods declared in super class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30198 72102866-910b-0410-8b05-ffd578937521
2010-04-19 17:43:01 +00:00
David Ayers
6b8476b76b * EOAccess/EODatabaseContext.m
(qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:)
	Revert rewrite.  Adapt to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30194 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:45:08 +00:00
David Ayers
234e98ea68 revert EODatabaseContext rewrite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30193 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:32:31 +00:00
Dave Wetzel
d763dcfadd remove hacks, adapt to EOCustomObject
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30192 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:15:37 +00:00
Dave Wetzel
0a68de0f7c rewrote qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30191 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:15:05 +00:00
Dave Wetzel
9e3ab48964 EOControl/EOControl.h: add EOCustomObject.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30177 72102866-910b-0410-8b05-ffd578937521
2010-04-17 11:51:20 +00:00
Dave Wetzel
6e8f3f92f3 EOCustomObject.h/m new class like in EOF3.
Use this as your EO's superclass or use EOGenericRecords


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30176 72102866-910b-0410-8b05-ffd578937521
2010-04-17 05:55:38 +00:00
David Ayers
462ff14dac revert accidentally committed changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30161 72102866-910b-0410-8b05-ffd578937521
2010-04-14 21:08:00 +00:00
David Ayers
09805686bf * EOMutableKnownKeyDictionary.h/m ([-initWithObjects:forKeys:count:]):
* EOFault.h/m ([-retainCount]):
	* EOKeyGlobalID.h/m ([-hash]):
	* EOMultiReaderLock.m ([-tryLockForReading]):
	* EOCheapArray.h/m ([-initWithObjects:count:],[initWithCapacity:]):
	* EOGlobalID.h/m ([-hash]): Use NS(U)Integer instead of int.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30160 72102866-910b-0410-8b05-ffd578937521
2010-04-14 21:06:05 +00:00
David Ayers
c557edfd4d * EOControl/EONSAddOns.h (GDL2_ActivateAllGDL2Categories):
Remove obsolete declaration.
	* EOControl/EONSAddOns.m (GDL2_ActivateAll): Remove.
	(GDL2_Activate): Add assertions for parameters.
	* EOControl/EOClassDescription.m (+[GDL2CDNSObject load])
	* EOControl/EOKeyValueCoding.m (+[GDL2KVCNSObject load])
	(+[GDL2KVCNSArray load], +[GDL2KVCNSDictionary load])
	(+[GDL2KVCNSMutableDictionary load]): Setup classes individually
	to insure the are available in the runtime.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30116 72102866-910b-0410-8b05-ffd578937521
2010-04-09 17:44:00 +00:00
David Ayers
04fcac2a87 * DBModeler/Inspectors/AttributeInspector.m: Add missing guard to include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30115 72102866-910b-0410-8b05-ffd578937521
2010-04-09 10:50:44 +00:00
David Ayers
2960b436cf * EOInterface/EODisplayGroup.m (_qualifierForKey:value:defaultOperator:):
* EOAccess/EOUtilities.m (-rawRowsWithStoredProcedureNamed:arguments:):
	* EOAccess/EOSQLExpression.m (addInsertListAttribute:value:):
	* GDL2Palette/ConnectionInspector.m (_keysFromClassDescription:):
	* DBModeler/Inspectors/AttributeInspector.m (setValueType:):
	Initialize variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30114 72102866-910b-0410-8b05-ffd578937521
2010-04-09 10:43:59 +00:00
David Ayers
abd5a8bd20 * EOControl/EOSharedEditingContext.m
(-objectsByEntityName, -objectsByEntityNameAndFetchSpecificationName)
	(objectForGlobalID:,faultForGlobalID:editingContext:,registeredObjects):
	Initialize variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30113 72102866-910b-0410-8b05-ffd578937521
2010-04-09 10:27:15 +00:00
David Ayers
c4fa031137 * EOControl/EOClassDescription.m: Add declartions for method
replacement hack.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30112 72102866-910b-0410-8b05-ffd578937521
2010-04-09 10:19:31 +00:00