Commit graph

16 commits

Author SHA1 Message Date
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
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
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
Blake Nicholson
440372a7d3 Replaced tabs with spaces throughout the DBModeler sub-project.
* DBModeler/AdaptorsPanel.m, DBModeler/AttributeCell.m,
  DBModeler/ConsistencyChecker.m, DBModeler/DefaultColumnProvider.m,
  DBModeler/DiagramView.m, DBModeler/EOAdditions.m, DBModeler/EntityView.m,
  DBModeler/GNUmakefile, DBModeler/KVDataSource.m,
  DBModeler/MainModelEditor.h, DBModeler/MainModelEditor.m,
  DBModeler/ModelerAttributeEditor.m, DBModeler/ModelerEntityEditor.h,
  DBModeler/ModelerEntityEditor.m,
  DBModeler/ModelerTableEmbedibleEditor.h,
  DBModeler/ModelerTableEmbedibleEditor.m,
  DBModeler/NSView+Additions.m, DBModeler/Preferences.m,
  DBModeler/SQLGenerator.m, DBModeler/Inspectors/AdvancedEntityInspector.m,
  DBModeler/Inspectors/AttributeInspector.h,
  DBModeler/Inspectors/AttributeInspector.m,
  DBModeler/Inspectors/RelationshipInspector.h,
  DBModeler/Inspectors/RelationshipInspector.m

  White-space clean-up.  Replaced tabs with spaces.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26556 72102866-910b-0410-8b05-ffd578937521
2008-05-23 12:11:26 +00:00
Blake Nicholson
2ba530d50e Clean up of the NSTableView's used by DBModeler. Added some preprocessor
directives to avoid using deprecated methods, and also use a few newer methods
to improve the appearance.  At some point, we should revisit these
NSTableView's as they seem to be candidates for re-factoring.

* DBModeler/ModelerEntityEditor.m, DBModeler/ModelerAttributeEditor.m

  (initWithParentEditor:): Replaced use of the deprecated
  [NSTableView setAutoresizesAllColumnsToFit:] on Mac OS X 10.4 and later with
  [NSTableView setColumnAutoresizingStyle:].  Also, make use of
  setUsesAlternatingRowBackgroundColors: and setGridStyleMask: to achieve an
  appearance that more closely mimics EOModeler.

* DBModeler/MainModelEditor.m

  (initWithDocument:): Replaced use of the deprecated
  [NSTableView setAutoresizesAllColumnsToFit:] on Mac OS X 10.4 and later with
  [NSTableView setColumnAutoresizingStyle:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26553 72102866-910b-0410-8b05-ffd578937521
2008-05-23 02:11:42 +00:00
Matt Rice
2d624f0ec5 * DBModeler/*.[h,m]: Fix includes for OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26508 72102866-910b-0410-8b05-ffd578937521
2008-05-09 20:21:17 +00:00
David Ayers
9720ac993d * COPYING.LIB: Update to LGPL 3.
* DB2Modeler/COPYING:  Update to GPL 3.
	* *.*: Update copyright notices.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@25326 72102866-910b-0410-8b05-ffd578937521
2007-07-12 06:39:22 +00:00
Matt Rice
92fcc10447 * Update Email address for Matt Rice.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24318 72102866-910b-0410-8b05-ffd578937521
2007-01-05 16:17:04 +00:00
Matt Rice
11c2e9260a * EOAccess/EOEntity.m (-dealloc): Only set parents to nil
properties which have been fully loaded.
        * EOAdaptors/PostgreSQL/LoginPanel/GNUmakefile: Remove references to
        libgnustep-db2control/access
        * DBModeler/MainModelEditor.m: Set the windows title.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24253 72102866-910b-0410-8b05-ffd578937521
2006-12-26 16:41:37 +00:00
Matt Rice
c7840e1ec0 * EOModeler/EOModelerDocument.m (-windowWillClose:): If document
owns the current editor, reset the seletion path, and unset the
        current editor.
        * EOModeler/EOModelerInspectorController.m (-selectionChanged:):
        handle an empty selection path.
        * EOModeler/EOModelerApp.m: Remove usage of
        EOModel -setCreatesMutableObjects:.
        * EOModeler/EOModelerEditor.m
        (EOModelerCompoundEditor -setSelectionPath:): Fix if statement which
        always returned yes.
        * DBModeler/MainModelEditor.m: Add more information to comment.
        * EOModeler/EOModelerApp.h: Whitespace changes.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23868 72102866-910b-0410-8b05-ffd578937521
2006-10-14 00:51:32 +00:00
Matt Rice
244fbb7fae * DBModeler/Modeler.m: Add ability to change the editor.
* DBModeler/MainModelerEditor.m (-activateEmbeddedEditor:): Don't
        modify editors view subview resizing behaviour.
        Dont call supers implementation until we have resized the 
	subview.
        * DBModeler/GNUmakefile: Add new files.
        * DBModeler/Resources/Key_Diagram.tiff
        * DBModeler/Resources/Locking_Diagram.tiff
        * DBModeler/Resources/ClassProperty_Diagram.tiff
        * DBModeler/AttributesCell.{h,m}
        * DBModeler/DiagramView.{h,m}
        * DBModeler/DiagramEditor.{h,m}
        * DBModeler/EntityView.{h,m}
        * DBModeler/NSView+Additions.{h,m}: New files, initial implementation
        of diagram editor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23805 72102866-910b-0410-8b05-ffd578937521
2006-10-09 18:56:25 +00:00
Matt Rice
f62d20d5bd update copyright.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23580 72102866-910b-0410-8b05-ffd578937521
2006-09-21 07:24:22 +00:00
David Ayers
efecac5875 DBModeler/ConsistencyChecker.m (+modelConsistencyCheck:): Honor
validation preferences.
	DBModeler/Modeler.m (-new:): Reimplement.
	(-setAdaptor:): Bail out it adaptor cannot be located.
	(-application:openFile:): Fine tune path checking and correct return
	values.
	(-openPrefs:): Implement.
	* DBModeler/Inspectors/RelationshipInspector.m
	(-displayName): Implement.
	(-selectedEntity): Validate selected row before commencing.
	(-selectedDestinationAttribute): Reimplement.
	(-updateConnectButton): Update enabled state of connect button.
	(-refresh): Correct handling of src/destAttrib_tableView.
	(-tableViewSelectionDidChange:): Allways call updateConnectButton.
	* DBModeler/SQLGenerator.m (-openSQLGenerator:): Reimplement.
	(-executeSQL:): Handle invalid adpator or connection information.
	(-saveAs:): Handle abort correctly.
	(-generate): Handle missing expression class.
	* DBModeler/ModelerTableEmbedibleEditor.h
	* DBModeler/ModelerEntityEditor.m (initWithParentEditor:): Correct
	autoresize behavior.
	(-activate): Update selection.
	(-needToFetch:): Do not reloadData in _topTable.
	(-displayGroupDidChangeSelection:): Update selection on parent.
	* DBModeler/ModelerTableEmbedibleEditor.m
	(-addDefaultTableColumnsForTableView:displayGroup:): Call tile instead
	of sizeToFit.
	* DBModeler/EOAdditions.m: Fix leaks.
	(setIsClassProperty): Reimplement.
	(-[setIsPrimaryKey:]): Ditto.
	(-[setIsClassProperty:]): Correct call to function.
	(-[isUsedForLocking]): Implement.
	(-[setIsUsedForLocking:]): Ditto.
	* DBModeler/MainModelEditor.h
	* DBModeler/MainModelEditor.m: Update view handling.
	* DBModeler/DefaultColumnProvider.m: Update handling of properties.
	* DBModeler/ModelerAttributeEditor.m: Update general GUI interaction.
	* DBModeler/Preferences.h: New file.
	* DBModeler/Preferences.m: Ditto.
	* DBModeler/Inspectors/RelationshipInspector.tiff: New file.
	* DBModeler/Inspectors/GNUmakefile: Add new file.
	* DBModeler/Resources/Preferences.gorm: New files.
	* DBModeler/Resources/Key_Header.tiff: Ditto.
	* DBModeler/Resources/ClassProperty_Header.tiff: Ditto.
	* DBModeler/Resources/Locking_On.tiff: Ditto.
	* DBModeler/Resources/Key_On.tiff: Ditto.
	* DBModeler/GNUmakefile: Add new files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23397 72102866-910b-0410-8b05-ffd578937521
2006-09-05 22:18:35 +00:00
Matt Rice
91868e3d12 * DBModeler/AdaptorsPanel.m (-init): Add parenthesis around
assignment.   Replace label with window title.
(-runAdaptorsPanel:): Remove unused variable.

* DBModeler/DefaultColumnProvider.m: Add missing braces, remove
unused ivars.
(-cellForColumnNamed:): Autorelease cells.

* DBModeler/EOAdditions.m: New EOAttribute KVC methods -allowNull and
 -setAllowNull:.

* DBModeler/GNUmakefile: Add new to project.

* DBModeler/KVDataSource.m (-createObject:): Return nil after
throwing exception.

* DBModeler/MainModelEditor.m
(-dragImageForRows:event:dragImageOffset:):: Enable drag and
drop for relationships.
(-initWithDocument:): Add parenthesis around assignment. Don't
release the document window on close.
(-ecStuff:): temporarily reload everything in the outline view when
something changes.
(-viewSelectedObject:): Remove NSLog.  Rewrite editor activation.
Fix leaks.

* DBModeler/Modeler.m (-applicationWillFinishLaunching:): Add new menu
items. Don't order our menu in.
(-new:,-open:): Move document initializition to _newDocumentWithModel:.
(-_newDocumentWithModel:,-newFromDatabase:): New methods.
(-validateMenuItem:,-generateSQL:): Ditto.

* DBModeler/ModelerAttributeEditor.m (-initWithParentEditor:):
Remove unused variables.
(-displayGroupDidChangeSelection:): return early if there is no
longer a selection.

* DBModeler/ModelerEntityEditor.m:
(-canSupportCurrentSelection): Remove NSLog.
(-displayGroupDidChangeSelection:): Ditto.
(-dealloc:): New method.
(-initWithParentEditor:): Remove unused variables.  Add parens around
assignment.  Release local variables.

* DBModeler/ModelerTableEmbedibleEditor:
(-addDefaultTableColumnsForTableView:displayGroup:): Release table
 columns.
(-addTableColumnForItem:tableView:): Ditto.

* DBModeler/Inspectors/RelationshipInspector.m:
(-selectedEntity, -selectedDestinationAttribute): New methods.
(-selectedSourceAttribute, -indexOfSourceAttribute:): Ditto.
(-indexOfDestinationAttribute:,joinWithSource:destination:): Ditto.
(-selectedJoin:,updateConnectButton,): Ditto.
(-refresh): Rewrite using new methods.
(-numberOfRowsInTableView:): Add fallback return value.
(-tableView:objectValueForTableColumn:row:): Ditto.
(-tableView:selectionDidChange:): If a source or destination
attribute is now selected, select its counterpart.
(-tableView:shouldSelectRow:): New method to disallow entity
selection if there is a destination entity.
(-tableView:willDisplayCell:forTableColumn:row:): New method,
set the cell text color to disabled text color, if we would disallow
 selection.
(-connectionChanged:): Implement disconnection.

* DBModeler/SQLGenerator.h/m: New files initial implementation.
* DBModeler/Resources/SQLGenerator.gorm: Ditto.
* DBModeler/ConsistencyChecker.h/m: Ditto.
* DBModeler/ConsistencyResults.h/m: Ditto.
* DBModeler/ConsistencyResults.gorm: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21438 72102866-910b-0410-8b05-ffd578937521
2005-07-09 02:07:42 +00:00
Matt Rice
34bed39fc9 New files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21224 72102866-910b-0410-8b05-ffd578937521
2005-05-13 00:25:27 +00:00