Commit graph

20 commits

Author SHA1 Message Date
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
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
Blake Nicholson
17ae63bbae Updated the DBModeler application so the SQLGenerator window uses the
Renaissance library.  Replaced the gorm file with a gsmarkup file, and
modified the app code to use it.

* DBModeler/SQLGenerator.m

  (init): Updated to load the gsmarkup file, rather than the nib.

  (awakeFromGSMarkup): Replaces the previous awakeFromNib.

* DBModeler/Resources/SQLGenerator.gsmarkup

  Initial import.

* DBModeler/Resources/SQLGenerator.gorm

  Removed from repository.

* DBModeler/GNUmakefile

  Replaced the SQLGenerator.gorm resource with SQLGenerator.gsmarkup.  Removed
  a dangling reference to ConsistencyResults.gorm.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26522 72102866-910b-0410-8b05-ffd578937521
2008-05-13 17:53:24 +00:00
Matt Rice
b4e0ed69a3 * DBModeler/Resources/ConsistencyResults.gsmarkup: initial import.
* DBModeler/GNUmakefile: Add ConsistencyResults.gsmarkup.
        * DBModeler/ConsistencyResults.m: Use gsmarkup file.
        * DBModeler/Resources/ConsistencyResults.gorm: Remove file.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26519 72102866-910b-0410-8b05-ffd578937521
2008-05-13 09:55:43 +00:00
Matt Rice
df5e05ebad * DBModeler/Resources/Menu-{Cocoa,GNUstep}.gsmarkup: Remove a TODO
for an old unused hack.
        * EOModeler/EOModelerDocument.m: Add some comments about the new hack.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26518 72102866-910b-0410-8b05-ffd578937521
2008-05-13 07:15:20 +00:00
Matt Rice
1b2a288fdc * DBModeler/Resources/MainMenu-GNUstep.gsmarkup: Use openPrefs: action
for preferences menu item.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26517 72102866-910b-0410-8b05-ffd578937521
2008-05-13 06:53:42 +00:00
Blake Nicholson
6d66f9739c Modified the DBModeler application to use Renaissance to generate its main
menu.

* DBModeler/main.m

  (main): Added code to load the application menu, as described in the
  Renaissance tutorial.

* DBModeler/Modeler.m

  (applicationWillFinishLaunching:): Removed code to manually created the
  application's menu.  This is now handled by Renaissance.
  
* DBModeler/Resources/Menu-GNUstep.gsmarkup,
  DBModeler/Resources/Menu-Cocoa.gsmarkup

  Initial import

* DBModeler/GNUmakefile

  Added Renaissance to the list of libraries used by DBModeler.  Added
  Menu-Cocoa.gsmarkup and  Menu-GNUstep.gsmarkup to the list of application
  resources.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26516 72102866-910b-0410-8b05-ffd578937521
2008-05-13 03:34:01 +00:00
Blake Nicholson
2a7cbceb9c Updated the application so we have an icon for Mac OS X.
* DBModeler/GNUmakefile: Added DBModeler.icns to the list of resources, and
  set DBModeler_APPLICATION_ICON so the icon will be set appropriately.

* DBModeler/Resources/DBModeler.icns: Initial import.  Created with Icon
  Composer using DBModeler.tiff.  This will need to be replaced at some point
  with an image that goes up to 512x512.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26515 72102866-910b-0410-8b05-ffd578937521
2008-05-13 00:56:44 +00:00
Matt Rice
0a02721cbe * DBModeler/AdaptorsPanel.m: Add responder chain, key equivalents,
autosize controls, and don't release the window when closed.
        * DBModeler/Resources/ConsistencyResults.gorm: Add responder chain.
        * DBModeler/Resources/Preferences.gorm: Add responder chain.
        * DBModeler/Resources/SQLGenerator.gorm: Add responder chain.
        * DBModeler/Preferences.m (-switchButtonChanged:): Handle -1 as
        no row selected.
        * DBModeler/EntityView.m: Call supers dealloc not release.
        * DBModeler/EntityView.h: Fix method declaration.
        * DBModeler/DiagramView.h: Ditto.
        * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.m: 
	Fix typo.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24334 72102866-910b-0410-8b05-ffd578937521
2007-01-10 12:13:37 +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
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
554b600357 * DBModeler/Resources/AllowsNull_Header.tiff: New file.
* DBModeler/GNUmakefile: Add new file.
        * DBModeler/DefaultColumnProvider.m: Set column header image.




git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23534 72102866-910b-0410-8b05-ffd578937521
2006-09-16 13:27:05 +00:00
Matt Rice
941076c761 * DBModeler/Resources/AllowsNull_On.tiff: New file.
* DBModeler/GNUmakefile: Add new file.
        * DBModeler/DefaultColumnProvider.m: Reorder table columns.
        Use new file, for allows null column.  Remove out of date comments.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23533 72102866-910b-0410-8b05-ffd578937521
2006-09-16 13:02:02 +00:00
Matt Rice
40fc895654 * DBModeler/Resources/ModelDrag.tiff: Update Image.
* DBModeler/Resources/DBModeler.tiff: Correct image format.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23529 72102866-910b-0410-8b05-ffd578937521
2006-09-15 14:17:01 +00:00
Matt Rice
a2e920b01f * DBModeler/Resources/DBModeler.tiff: New file.
* DBModeler/Resources/Locking_Header.tiff: Ditto.
        * DBModeler/Resources/Key_On.tiff: Add check box background.
        * DBModeler/Resources/Info-GNUstep.plist: Update info panel copyright.
        * DBModeler/ModelerEntityEditor.m (-dealloc): Don't set the datasource
        to nil, its handled in EODisplayGroup -dealloc.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23409 72102866-910b-0410-8b05-ffd578937521
2006-09-07 16:20:38 +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
1761a012a1 * DBModeler/Resources/Info-gnustep.plist: New file.
* DBModeler/Modeler.m (-applicationWillFinishLaunching:): Rearrange
        menu layout.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21443 72102866-910b-0410-8b05-ffd578937521
2005-07-10 19:24: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