Commit graph

34 commits

Author SHA1 Message Date
Sebastian Reitenbach
e38bd61cb2 * add EOAdaptors/SQLiteAdaptor/SQLite3EOAdaptorInfo.plist
needed to make the EODataBrowser correctly detect that
          the SQLite3Adaptor is a subclass of EOAdaptor
        * EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m
          little tweak


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36418 72102866-910b-0410-8b05-ffd578937521
2013-03-24 16:52:06 +00:00
Sebastian Reitenbach
eabd42b3e2 * Apps/EOModelEditor/EOModelEditorApp.m set the model name
correctly for SQLite3 databases too, use the file name


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36417 72102866-910b-0410-8b05-ffd578937521
2013-03-24 16:13:48 +00:00
Sebastian Reitenbach
16ca8db210 * Apps/EOModelEditor/DataBrowser.[h|m]
* make the fetch limit and qualifier fields work



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36343 72102866-910b-0410-8b05-ffd578937521
2013-03-12 15:21:27 +00:00
Sebastian Reitenbach
31f47d1b3c * Apps/EOModelEditor/Resources/EOMEDocument.gsmarkup
give the window a better name than just "Window"


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36333 72102866-910b-0410-8b05-ffd578937521
2013-03-10 18:33:44 +00:00
Sebastian Reitenbach
97d069aa87 Fix some headers, remove unused variables, and use EOMApp
instead of NSApp



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36332 72102866-910b-0410-8b05-ffd578937521
2013-03-10 17:29:05 +00:00
Sebastian Reitenbach
56737b40a2 * Apps/EOModeler/EOMInspector.m
* Apps/EOModelEditor/Inspectors/AttributeInspector.m
          include missing header


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36328 72102866-910b-0410-8b05-ffd578937521
2013-03-10 13:27:58 +00:00
Sebastian Reitenbach
872f349c2c * Apps/EOModelEditor/Inspectors/EntityInspector.m
add warning about method not implemented


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36324 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:18:33 +00:00
Sebastian Reitenbach
60270fd8d9 * Apps/EOModelEditor/EOMEDocument.h
make the header match the implementation, fixing
          warning about incomplete implementation of class


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36303 72102866-910b-0410-8b05-ffd578937521
2013-03-08 08:48:25 +00:00
Sebastian Reitenbach
829a02e46a * Apps/EOModelEditor/AdaptorsPanel.m
* Apps/EOModelEditor/Preferences.m
        * EOAccess/EOAttribute.m
        * EOAccess/EOExpressionArray.m
        * EOAccess/EORelationship.m
        * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.m
        * EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
        * EOControl/EOCheapArray.m
        * EOControl/EOMutableKnownKeyDictionary.m
        * EOControl/EOPrivate.h
        * EOControl/EOPrivate.m
        * EOControl/Makefile.preamble
        * GDL2Palette/ConnectionInspector.m
        * GDL2Palette/DisplayGroupInspector.m
          Fix warnings about conflicting return types or paramters


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36241 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:20:35 +00:00
Sebastian Reitenbach
a6e98220c2 fix warnings related to format strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36234 72102866-910b-0410-8b05-ffd578937521
2013-03-02 15:28:25 +00:00
Sebastian Reitenbach
de5c0311d1 * shutup all clang warnings of type:
equality comparison with extraneous parentheses
          all harmless, but in EOEntity.m it actually was wrong



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36231 72102866-910b-0410-8b05-ffd578937521
2013-03-02 13:59:48 +00:00
Germán Arias
f9cb25f695 More improvements for use with menu in-window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34951 72102866-910b-0410-8b05-ffd578937521
2012-03-19 18:10:22 +00:00
Germán Arias
a3097a85e2 Fix a problem with last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34950 72102866-910b-0410-8b05-ffd578937521
2012-03-18 22:49:42 +00:00
Germán Arias
d1fb8fa910 Improvements for use with menu in-window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34949 72102866-910b-0410-8b05-ffd578937521
2012-03-18 19:49:38 +00:00
Germán Arias
ee07346906 Changed size of the EOModelEditor icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@31106 72102866-910b-0410-8b05-ffd578937521
2010-08-10 00:13:47 +00:00
Dave Wetzel
4a17f0a7a0 * EOAccess/EOModel.m
-writeToFile:
Don't copy or move directories
create an dir only if we have none
* Apps/EOModelEditor/EOMEDocument.m
copy old wrapper dir to new tmp path/URL
The model overwrites our own files then.
Trash like .svn stays intact this way :-)
Only OSX at the moment.
see
http://savannah.gnu.org/bugs/index.php?30348
(#ifdef'd)
-keepBackupFile
return YES
* Apps/EOModelEditor/CodeGenerator.m
don't write code for EOGenericRecord or EOCustomObject



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30922 72102866-910b-0410-8b05-ffd578937521
2010-07-05 01:58:11 +00:00
Dave Wetzel
385770a9a1 * EOAccess/EOModelGroup.m
add include
* EOAccess/EOEntity.m
- classProperties
small cleanup 
* EOAccess/EODatabaseOperation.m
-rowDiffsForAttributes:
add checks
* EOAccess/EODatabaseContext.h
add _missingObjectGIDs, _checkPropagatedPKs
add databaseContextFailedToFetchObject
+ _setUseToManyCaching:
added
removed -coordinator
add -missingObjectGlobalIDs
* EOAccess/EODatabaseContextPriv.h
add -_entityForObject:
* EOAccess/EODatabaseContext.m
add _useToManyCaching
add + _setUseToManyCaching:
add - _delegateHandledDatabaseException:
add -setCoordinator:
removed -coordinator
add databaseContextFailedToFetchObject
add -missingObjectGlobalIDs
cleanup _objectsChanged
-_snapshotsChangedInDatabase
renamed vars
- _batchNewPrimaryKeysWithEntity:count:
add
- prepareForSaveWithCoordinator:editingContext:
add checks
cleanup code
- _patchUpPK:
add
- recordChangesInEditingContext
rewritten
- _primaryKeyForIntermediateRowFromSourceObject:relationship:destinationObject:
add
- _databaseOperationForIntermediateRowFromSourceObject:relationship:destinationObject:
add
- _recordDeleteForIntermediateRowFromSourceObject:relationship:destinationObject:
add
- nullifyAttributesInRelationship:sourceObject:destinationObjects:
fixed, rewritten
- _entityForObject:
add
* EOAccess/EOAdaptorChannel.h
* EOAccess/EOAdaptorChannel.m
add primaryKeysForNewRowsWithEntity:count:
* Apps/EOModelEditor/DataBrowser.m
fix typo in import
* EOControl/EONSAddOns.h
* EOControl/EONSAddOns.m
add +dictionaryWithDictionary:keys:
add -translateFromKeys:toKeys:
add -containsAnyNullObject
* EOControl/EOSharedEditingContext.m
fix include
* EOControl/EOObjectStoreCoordinator.h
* EOControl/EOObjectStoreCoordinator.m
remove observers now
add setCoordinator and use it.
-coordinator
moved up from EODatabaseContext.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30918 72102866-910b-0410-8b05-ffd578937521
2010-07-04 10:00:57 +00:00
Dave Wetzel
f14aafa3fc * EOAccess/EOEntity.m
- createInstanceWithEditingContext:globalID:zone:
reformat, remove logs
* EOAccess/EODatabaseContext.m
-initializeObject:withGlobalID:editingContext:
rewritten, add exceptions
* EOAccess/EODatabaseChannel.m
-fetchObject
remove logs, add exceptions
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
postgresClientVersion()
use stringWithCString:encoding: not stringWithCString:
* Apps/EOModelEditor/CodeGenerator.m
don't add <NSCoding> to generated code
* EOControl/EOCustomObject.h
* EOControl/EOCustomObject.m
add -encodeWithCoder:
add -initWithCoder:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30875 72102866-910b-0410-8b05-ffd578937521
2010-06-28 09:31:49 +00:00
Dave Wetzel
a5a47b954d * EOAccess/EODatabaseContext.m
-isValidQualifierTypeForAttribute:
reformat, remove useless code
-qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:
reformat
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
-isValidQualifierType:model:
remove logs, format
* Apps/EOModelEditor/Inspectors/AttributeInspector.gsmarkup
* Apps/EOModeler/EOModelExtensions.m
Rename the char into BOOL
You can use BOOL to create code that has BOOL values.
Apple seems to do this in newer code 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30874 72102866-910b-0410-8b05-ffd578937521
2010-06-27 08:34:28 +00:00
Dave Wetzel
4cedecc3ed * Apps/EOModelEditor/CodeGenerator.m
-updateNeededForFileAtPath:content:canOverwrite:
do not overwrite files if canOverwrite = NO



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30846 72102866-910b-0410-8b05-ffd578937521
2010-06-24 23:43:57 +00:00
Dave Wetzel
1e1962ccd2 * README
add Additional Notes
* Apps/EOModelEditor/Inspectors/GNUmakefile
* Apps/EOModelEditor/GNUmakefile
* Apps/EOModeler/Makefile.preamble
add parent directories to search path as suggested by Sergey Golovin
* TODO
updated
* GDL2Palette/GNUmakefile
add ../Apps/EOModeler to ADDITIONAL_NATIVE_LIB_DIRS
(as suggested by Sergey Golovin)
It does not build on OS X, I need patches guys :-)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30845 72102866-910b-0410-8b05-ffd578937521
2010-06-24 22:55:58 +00:00
Dave Wetzel
003795c3d0 * Apps/EOModelEditor/Inspectors/AdvancedEntityInspector.gsmarkup
changed scrollView sizing
* Apps/EOModeler/EOMInspectorController.m
  refactored view switching into a single method
  disabled bounds logging
  Be sure to get the lastest gui if you try this!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30582 72102866-910b-0410-8b05-ffd578937521
2010-06-05 02:23:24 +00:00
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
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