2006-09-14 11:58:24 +00:00
|
|
|
#
|
|
|
|
# DBModeler makefile for GNUstep Database Library.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2005,2006 Free Software Foundation, Inc.
|
|
|
|
#
|
2007-01-05 16:17:04 +00:00
|
|
|
# Author: Matt Rice <ratmice@gmail.com>
|
2006-09-14 11:58:24 +00:00
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Database Library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
2007-07-12 06:39:22 +00:00
|
|
|
# version 3 of the License, or (at your option) any later version.
|
2006-09-14 11:58:24 +00:00
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# If not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
|
2006-12-30 17:41:02 +00:00
|
|
|
include ../common.make
|
Updated all project GNUmakefile's to include the local common.make, which will
attempt to populate GNUSTEP_MAKEFILES by calling gnustep-config.
* GNUmakefile.in, EOInterface/GNUmakefile, EOAccess/GNUmakefile,
DBModeler/Inspectors/GNUmakefile, DBModeler/GNUmakefile, Tools/GNUmakefile,
EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile,
EOAdaptors/SQLiteAdaptor/GNUmakefile.in, EOAdaptors/GNUmakefile.in,
EOAdaptors/PostgreSQLAdaptor/LoginPanel/GNUmakefile,
EOAdaptors/PostgreSQLAdaptor/GNUmakefile.in, EOControl/GNUmakefile,
GDL2Palette/GNUmakefile, Documentation/GDL2Intro/GNUmakefile,
Documentation/GDL2Intro/Examples/GNUmakefile, Documentation/GNUmakefile,
EOModeler/GNUmakefile, common.make
Added logic to the local common.make to try to populate GNUSTEP_MAKEFILES by
calling gnustep-config, if GNUSTEP_MAKEFILES is not already populated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26583 72102866-910b-0410-8b05-ffd578937521
2008-05-29 14:57:30 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
2005-05-17 23:33:04 +00:00
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
APP_NAME = DBModeler
|
* DBModeler/GNUmakefile,
* DBModeler/Inspectors/GNUmakefile,
* Documentation/GDL2Intro/Examples/GNUmakefile.connection,
* Documentation/GDL2Intro/Examples/GNUmakefile.eoexample,
* Documentation/GDL2Intro/Examples/GNUmakefile.eoexample2,
* EOAccess/GNUmakefile,
* EOAdaptors/PostgreSQLAdaptor/GNUmakefile.in,
* EOAdaptors/PostgreSQLAdaptor/LoginPanel/GNUmakefile,
* EOAdaptors/SQLiteAdaptor/GNUmakefile.in,
* EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile,
* EOControl/GNUmakefile,
* EOInterface/GNUmakefile,
* EOModeler/GNUmakefile,
* GDL2Palette/GNUmakefile,
* Tools/GNUmakefile (XXX_NEEDS_GUI): Set appropriately.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26233 72102866-910b-0410-8b05-ffd578937521
2008-03-06 21:58:26 +00:00
|
|
|
|
* DBModeler/GNUmakefile,
* DBModeler/Inspectors/GNUmakefile,
* Documentation/GDL2Intro/Examples/GNUmakefile.connection,
* Documentation/GDL2Intro/Examples/GNUmakefile.eoexample,
* Documentation/GDL2Intro/Examples/GNUmakefile.eoexample2,
* EOAccess/GNUmakefile,
* EOAdaptors/PostgreSQLAdaptor/GNUmakefile.in,
* EOAdaptors/PostgreSQLAdaptor/LoginPanel/GNUmakefile,
* EOAdaptors/SQLiteAdaptor/GNUmakefile.in,
* EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile,
* EOControl/GNUmakefile,
* EOInterface/GNUmakefile,
* EOModeler/GNUmakefile,
* GDL2Palette/GNUmakefile,
* Tools/GNUmakefile (XXX_NEEDS_GUI): Use lowercase value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26264 72102866-910b-0410-8b05-ffd578937521
2008-03-11 08:29:42 +00:00
|
|
|
DBModeler_NEEDS_GUI = yes
|
2005-05-13 00:25:27 +00:00
|
|
|
DBModeler_SUBPROJECTS=Inspectors
|
|
|
|
|
2008-05-13 00:56:44 +00:00
|
|
|
ifeq ($(GUI_LIB),apple)
|
|
|
|
DBModeler_APPLICATION_ICON = DBModeler.icns
|
|
|
|
else
|
|
|
|
DBModeler_APPLICATION_ICON = DBModeler.tiff
|
|
|
|
endif
|
|
|
|
|
2006-09-14 21:11:01 +00:00
|
|
|
ADDITIONAL_INCLUDE_DIRS+=-I../
|
|
|
|
ADDITIONAL_NATIVE_LIB_DIRS+=../EOAccess ../EOControl ../EOInterface ../EOModeler
|
2008-05-13 03:34:01 +00:00
|
|
|
ADDITIONAL_NATIVE_LIBS += EOAccess EOControl EOInterface EOModeler Renaissance
|
2005-05-13 00:25:27 +00:00
|
|
|
|
2006-09-05 22:18:35 +00:00
|
|
|
$(APP_NAME)_RESOURCE_FILES = \
|
|
|
|
Resources/ModelDrag.tiff \
|
2008-05-13 17:53:24 +00:00
|
|
|
Resources/SQLGenerator.gsmarkup \
|
2006-09-05 22:18:35 +00:00
|
|
|
Resources/Info-gnustep.plist \
|
2006-10-09 18:56:25 +00:00
|
|
|
Resources/Key_Diagram.tiff \
|
2006-09-05 22:18:35 +00:00
|
|
|
Resources/Key_Header.tiff \
|
2006-10-09 18:56:25 +00:00
|
|
|
Resources/Key_On.tiff \
|
|
|
|
Resources/Locking_Diagram.tiff \
|
2006-09-05 22:18:35 +00:00
|
|
|
Resources/Locking_Header.tiff \
|
2006-10-09 18:56:25 +00:00
|
|
|
Resources/Locking_On.tiff \
|
|
|
|
Resources/ClassProperty_Diagram.tiff \
|
2006-09-05 22:18:35 +00:00
|
|
|
Resources/ClassProperty_Header.tiff \
|
2006-10-09 18:56:25 +00:00
|
|
|
Resources/ClassProperty_On.tiff \
|
2006-09-05 22:18:35 +00:00
|
|
|
Resources/Preferences.gorm \
|
2006-09-16 13:02:02 +00:00
|
|
|
Resources/DBModeler.tiff \
|
2008-05-13 00:56:44 +00:00
|
|
|
Resources/DBModeler.icns \
|
2006-09-16 13:27:05 +00:00
|
|
|
Resources/AllowsNull_On.tiff \
|
2008-05-13 03:34:01 +00:00
|
|
|
Resources/AllowsNull_Header.tiff \
|
|
|
|
Resources/Menu-Cocoa.gsmarkup \
|
2008-05-13 09:55:43 +00:00
|
|
|
Resources/Menu-GNUstep.gsmarkup \
|
|
|
|
Resources/ConsistencyResults.gsmarkup
|
2005-05-13 00:25:27 +00:00
|
|
|
|
|
|
|
$(APP_NAME)_OBJC_FILES = \
|
|
|
|
main.m \
|
|
|
|
Modeler.m \
|
|
|
|
AdaptorsPanel.m \
|
|
|
|
MainModelEditor.m \
|
|
|
|
ModelerEntityEditor.m \
|
|
|
|
DefaultColumnProvider.m \
|
|
|
|
KVDataSource.m \
|
|
|
|
ModelerAttributeEditor.m \
|
|
|
|
EOAdditions.m \
|
* 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
|
|
|
ModelerTableEmbedibleEditor.m \
|
|
|
|
SQLGenerator.m \
|
|
|
|
ConsistencyResults.m \
|
2006-09-05 22:18:35 +00:00
|
|
|
Preferences.m \
|
2006-10-09 18:56:25 +00:00
|
|
|
ConsistencyChecker.m \
|
|
|
|
DiagramView.m \
|
|
|
|
AttributeCell.m \
|
|
|
|
NSView+Additions.m \
|
|
|
|
EntityView.m \
|
2010-04-29 02:28:23 +00:00
|
|
|
DiagramEditor.m \
|
|
|
|
CodeGenerator.m
|
2005-05-17 23:33:04 +00:00
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/application.make
|