2005-05-13 00:25:27 +00:00
|
|
|
/**
|
|
|
|
ModelerAttributeEditor.m
|
|
|
|
|
2007-01-05 16:17:04 +00:00
|
|
|
Author: Matt Rice <ratmice@gmail.com>
|
2006-09-21 07:24:22 +00:00
|
|
|
Date: 2005, 2006
|
2005-05-13 00:25:27 +00:00
|
|
|
|
|
|
|
This file is part of DBModeler.
|
|
|
|
|
|
|
|
<license>
|
|
|
|
DBModeler is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-07-12 06:39:22 +00:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2005-05-13 00:25:27 +00:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
DBModeler 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 General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with DBModeler; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
</license>
|
|
|
|
**/
|
|
|
|
|
|
|
|
#include "DefaultColumnProvider.h"
|
|
|
|
#include "ModelerAttributeEditor.h"
|
|
|
|
#include "ModelerEntityEditor.h"
|
|
|
|
#include "KVDataSource.h"
|
|
|
|
|
2008-05-09 20:21:17 +00:00
|
|
|
#ifdef NeXT_GUI_LIBRARY
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
#else
|
2005-05-13 00:25:27 +00:00
|
|
|
#include <AppKit/NSImage.h>
|
|
|
|
#include <AppKit/NSTableView.h>
|
|
|
|
#include <AppKit/NSTableColumn.h>
|
|
|
|
#include <AppKit/NSPopUpButton.h>
|
|
|
|
#include <AppKit/NSPopUpButtonCell.h>
|
|
|
|
#include <AppKit/NSScrollView.h>
|
|
|
|
#include <AppKit/NSSplitView.h>
|
2008-05-09 20:21:17 +00:00
|
|
|
#endif
|
2005-05-13 00:25:27 +00:00
|
|
|
|
2010-04-09 10:00:51 +00:00
|
|
|
#ifdef NeXT_Foundation_LIBRARY
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
#else
|
|
|
|
#include <Foundation/NSNotification.h>
|
|
|
|
#include <Foundation/NSRunLoop.h>
|
|
|
|
#endif
|
|
|
|
|
2008-05-09 20:21:17 +00:00
|
|
|
#include <EOAccess/EOAttribute.h>
|
2005-05-13 00:25:27 +00:00
|
|
|
#include <EOAccess/EOEntity.h>
|
2008-05-09 20:21:17 +00:00
|
|
|
#include <EOAccess/EORelationship.h>
|
2005-05-13 00:25:27 +00:00
|
|
|
|
* EOControl/EOAndQualifier.m,
* EOControl/EOFault.m,
* EOControl/EOFaultHandler.m,
* EOControl/EOKeyComparisonQualifier.m,
* EOControl/EOKeyValueArchiver.m,
* EOControl/EOKeyValueCoding.m,
* EOControl/EOKeyValueCodingBase.m,
* EOControl/EOMutableKnownKeyDictionary.h,
* EOControl/EONotQualifier.m,
* EOControl/EOOrQualifier.m,
* EOControl/EOQualifier.m,
* EOAccess/EOAdaptor.m,
* EOAccess/EOAdaptorContext.m,
* EOAccess/EOAttribute.m,
* EOAccess/EODatabase.m,
* EOAccess/EODatabaseContext.m,
* EOAccess/EOExpressionArray.m,
* EOAccess/EOJoin.m,
* EOAccess/EOModel.m,
* EOAccess/EOModelGroup.m,
* EOAccess/EORelationship.m,
* EOAccess/EOSQLExpression.m,
* EOAccess/EOSQLQualifier.m,
* EOAccess/EOSchemaGeneration.m,
* EOAccess/EOStoredProcedure.m,
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m,
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m,
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m,
* EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m,
* EOAdaptors/SQLiteAdaptor/SQLite3Channel.m,
* EOInterface/EOTableViewAssociation.m,
* EOModeler/EOModelExtensions.m,
* EOModeler/EOModelerApp.m,
* DBModeler/ModelerAttributeEditor.m,
* DBModeler/ModelerEntityEditor.m: Remove references to NSUtilities.h.
Add includes for missing header references.
* DBModeler/Modeler.m (-[showEditor:]): Add cast to avoid compiler
warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@25994 72102866-910b-0410-8b05-ffd578937521
2008-01-22 13:57:07 +00:00
|
|
|
#include <EOControl/EOEditingContext.h>
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
#include <EOModeler/EOModelerDocument.h>
|
|
|
|
#include <EOModeler/EOModelerApp.h>
|
|
|
|
|
|
|
|
#include <EOInterface/EODisplayGroup.h>
|
|
|
|
|
2008-05-09 20:21:17 +00:00
|
|
|
#include <GNUstepBase/GNUstep.h>
|
2008-05-23 02:11:42 +00:00
|
|
|
#include <GNUstepBase/GSVersionMacros.h>
|
2008-05-09 20:21:17 +00:00
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
@interface NSArray (EOMAdditions)
|
|
|
|
- (id) firstSelectionOfClass:(Class) aClass;
|
|
|
|
@end
|
|
|
|
@implementation ModelerAttributeEditor
|
|
|
|
|
|
|
|
- (id) initWithParentEditor:(id)parentEditor
|
|
|
|
{
|
|
|
|
NSScrollView *scrollView;
|
|
|
|
KVDataSource *wds1, *wds2;
|
|
|
|
NSPopUpButton *cornerView;
|
|
|
|
NSMenuItem *mi = [[NSMenuItem alloc] initWithTitle:@"+" action:(SEL)nil keyEquivalent:@""];
|
|
|
|
|
|
|
|
self = [super initWithParentEditor:parentEditor];
|
2006-09-05 22:18:35 +00:00
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
[DefaultColumnProvider class];
|
|
|
|
_mainView = [[NSSplitView alloc] initWithFrame:NSMakeRect(0,0,100,100)];
|
|
|
|
/* setup the attributes table view */
|
|
|
|
scrollView = [[NSScrollView alloc] initWithFrame:NSMakeRect(0,0,100,100)];
|
|
|
|
_attributes_tableView = [[NSTableView alloc] initWithFrame:NSMakeRect(0,0,100,100)];
|
2008-05-23 02:11:42 +00:00
|
|
|
#if OS_API_VERSION(GS_API_NONE, MAC_OS_X_VERSION_10_4)
|
2006-09-05 22:18:35 +00:00
|
|
|
[_attributes_tableView setAutoresizesAllColumnsToFit:NO];
|
2008-05-23 02:11:42 +00:00
|
|
|
#else
|
|
|
|
[_attributes_tableView setColumnAutoresizingStyle:NSTableViewLastColumnOnlyAutoresizingStyle];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST) || GNU_GUI_LIBRARY
|
|
|
|
[_attributes_tableView setUsesAlternatingRowBackgroundColors:YES];
|
|
|
|
[_attributes_tableView setGridStyleMask:NSTableViewSolidVerticalGridLineMask];
|
|
|
|
#endif
|
2006-09-05 22:18:35 +00:00
|
|
|
[_attributes_tableView setAllowsMultipleSelection:YES];
|
|
|
|
[_attributes_tableView setAllowsEmptySelection:YES];
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
[scrollView setBorderType: NSBezelBorder];
|
|
|
|
[scrollView setHasHorizontalScroller:YES];
|
|
|
|
[scrollView setHasVerticalScroller:YES];
|
|
|
|
[scrollView setDocumentView:_attributes_tableView];
|
|
|
|
RELEASE(_attributes_tableView);
|
|
|
|
[_mainView addSubview:scrollView];
|
|
|
|
RELEASE(scrollView);
|
|
|
|
|
|
|
|
/* and the tableViews corner view */
|
|
|
|
cornerView = [[NSPopUpButton alloc] initWithFrame:[[_attributes_tableView cornerView] bounds] pullsDown:YES];
|
|
|
|
[[cornerView cell] setArrowPosition:NSPopUpNoArrow];
|
|
|
|
[cornerView setTitle:@"+"];
|
|
|
|
[cornerView setPreferredEdge:NSMinYEdge];
|
2006-09-05 22:18:35 +00:00
|
|
|
[cornerView setBezelStyle:NSShadowlessSquareBezelStyle];
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
[[cornerView cell] setUsesItemFromMenu:NO];
|
|
|
|
[[cornerView cell] setShowsFirstResponder:NO];
|
|
|
|
[[cornerView cell] setMenuItem:mi];
|
|
|
|
|
|
|
|
[_attributes_tableView setCornerView:cornerView];
|
|
|
|
RELEASE(cornerView);
|
|
|
|
|
|
|
|
/* and the attributes tableview's display group */
|
|
|
|
wds1 = [[KVDataSource alloc] initWithClassDescription:nil
|
|
|
|
editingContext:[[self document] editingContext]];
|
|
|
|
[wds1 setKey:@"attributes"];
|
|
|
|
_attributes_dg = [[EODisplayGroup alloc] init];
|
|
|
|
[_attributes_dg setDataSource:wds1];
|
|
|
|
RELEASE(wds1);
|
|
|
|
[_attributes_dg setFetchesOnLoad:YES];
|
2006-09-05 22:18:35 +00:00
|
|
|
[_attributes_dg setSelectsFirstObjectAfterFetch:NO];
|
2005-05-13 00:25:27 +00:00
|
|
|
[_attributes_dg setDelegate:self];
|
|
|
|
|
|
|
|
[self setupCornerView:cornerView
|
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
|
|
|
tableView:_attributes_tableView
|
|
|
|
displayGroup:_attributes_dg
|
|
|
|
forClass:[EOAttribute class]];
|
2005-05-13 00:25:27 +00:00
|
|
|
[self addDefaultTableColumnsForTableView:_attributes_tableView
|
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
|
|
|
displayGroup:_attributes_dg];
|
2005-05-13 00:25:27 +00:00
|
|
|
|
|
|
|
/* setup the relationships table view */
|
|
|
|
scrollView = [[NSScrollView alloc] initWithFrame:NSMakeRect(0,0,100,100)];
|
|
|
|
[scrollView setBorderType: NSBezelBorder];
|
|
|
|
[scrollView setHasHorizontalScroller:YES];
|
|
|
|
[scrollView setHasVerticalScroller:YES];
|
|
|
|
_relationships_tableView = [[NSTableView alloc] initWithFrame:NSMakeRect(0,0,100,100)];
|
2008-05-23 02:11:42 +00:00
|
|
|
|
|
|
|
#if OS_API_VERSION(GS_API_NONE, MAC_OS_X_VERSION_10_4)
|
2006-09-05 22:18:35 +00:00
|
|
|
[_relationships_tableView setAutoresizesAllColumnsToFit:NO];
|
2008-05-23 02:11:42 +00:00
|
|
|
#else
|
|
|
|
[_relationships_tableView setColumnAutoresizingStyle:NSTableViewLastColumnOnlyAutoresizingStyle];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST) || GNU_GUI_LIBRARY
|
|
|
|
[_relationships_tableView setUsesAlternatingRowBackgroundColors:YES];
|
|
|
|
[_relationships_tableView setGridStyleMask:NSTableViewSolidVerticalGridLineMask];
|
|
|
|
#endif
|
|
|
|
|
2006-09-05 22:18:35 +00:00
|
|
|
[_relationships_tableView setAllowsMultipleSelection:YES];
|
|
|
|
[_relationships_tableView setAllowsEmptySelection:YES];
|
2005-05-13 00:25:27 +00:00
|
|
|
[scrollView setDocumentView:_relationships_tableView];
|
|
|
|
RELEASE(_relationships_tableView);
|
|
|
|
[_mainView addSubview:scrollView];
|
|
|
|
RELEASE(scrollView);
|
|
|
|
|
|
|
|
/* and the tableViews corner view */
|
|
|
|
cornerView = [[NSPopUpButton alloc] initWithFrame:[[_relationships_tableView cornerView] bounds] pullsDown:YES];
|
|
|
|
[cornerView setPreferredEdge:NSMinYEdge];
|
|
|
|
[[cornerView cell] setArrowPosition:NSPopUpNoArrow];
|
|
|
|
[cornerView setTitle:@"+"];
|
2006-09-05 22:18:35 +00:00
|
|
|
[cornerView setBezelStyle:NSShadowlessSquareBezelStyle];
|
2005-05-13 00:25:27 +00:00
|
|
|
[[cornerView cell] setUsesItemFromMenu:NO];
|
|
|
|
[[cornerView cell] setShowsFirstResponder:NO];
|
|
|
|
[[cornerView cell] setMenuItem:mi];
|
|
|
|
|
|
|
|
[_relationships_tableView setCornerView:cornerView];
|
|
|
|
RELEASE(cornerView);
|
|
|
|
/* and the relationships display group. */
|
|
|
|
wds2 = [[KVDataSource alloc] initWithClassDescription:nil
|
|
|
|
editingContext:[[self document] editingContext]];
|
|
|
|
[wds2 setKey:@"relationships"];
|
|
|
|
_relationships_dg = [[EODisplayGroup alloc] init];
|
|
|
|
[_relationships_dg setDataSource:wds2];
|
|
|
|
RELEASE(wds2);
|
|
|
|
[_relationships_dg setFetchesOnLoad:YES];
|
2006-09-05 22:18:35 +00:00
|
|
|
[_relationships_dg setSelectsFirstObjectAfterFetch:NO];
|
2005-05-13 00:25:27 +00:00
|
|
|
[_relationships_dg setDelegate:self];
|
|
|
|
|
|
|
|
[self setupCornerView:cornerView
|
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
|
|
|
tableView:_relationships_tableView
|
|
|
|
displayGroup:_relationships_dg
|
|
|
|
forClass:[EORelationship class]];
|
2005-05-13 00:25:27 +00:00
|
|
|
|
|
|
|
[self addDefaultTableColumnsForTableView:_relationships_tableView
|
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
|
|
|
displayGroup:_relationships_dg];
|
2009-03-02 06:06:44 +00:00
|
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter]
|
|
|
|
addObserver:self
|
|
|
|
selector:@selector(selectionDidChange:)
|
|
|
|
name:EOMSelectionChangedNotification
|
|
|
|
object:[self document]];
|
2005-05-13 00:25:27 +00:00
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) dealloc
|
|
|
|
{
|
2009-03-02 09:35:34 +00:00
|
|
|
int i, c;
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
if (_entityToObserve)
|
|
|
|
[EOObserverCenter removeObserver:self forObject:_entityToObserve];
|
2009-03-02 09:35:34 +00:00
|
|
|
|
|
|
|
c = [_oldSelection count];
|
|
|
|
for (i = 0; i < c; i++)
|
|
|
|
{
|
|
|
|
[EOObserverCenter removeObserver:self
|
|
|
|
forObject:[_oldSelection objectAtIndex:i]];
|
|
|
|
}
|
|
|
|
|
|
|
|
RELEASE(_oldSelection);
|
2005-05-13 00:25:27 +00:00
|
|
|
RELEASE(_mainView);
|
|
|
|
RELEASE(_relationships_dg);
|
|
|
|
RELEASE(_attributes_dg);
|
* EOAccess/EOSQLExpression.h (deleteStatementWithQualifier:entity:)
* EOAccess/EOSQLExpressionPriv.h (_aliasForRelationshipPath:)
(_flattenRelPath:entity:, _aliasForRelatedAttribute:relationshipPath:)
* EOAccess/EOSQLExpression.m (insertStatementForRow:entity:)
(updateStatementForRow:qualifier:entity:)
(deleteStatementWithQualifier:entity:)
(selectStatementForAttributes:lock:fetchSpecification:entity:)
(_aliasForRelationshipPath:)
* EOAccess/EORelationship.h (intermediateEntity)
(_foreignKeyForSourceRow:)
* EOAccess/EORelationship.m (_foreignKeyForSourceRow:, _leftSideKeyMap)
* EOAccess/EODatabaseContext.h (databaseOperationForObject:)
(databaseOperationForGlobalID:, recordDatabaseOperation:)
(_openChannelWithLoginPanel:)
* EOAccess/EODatabaseContextPriv.h (primaryKeyForObject:)
(_currentCommittedSnapshotForObject:)
* EOAccess/EOEntityPriv.h (_keyMapForRelationshipPath:)
(_keyMapForIdenticalKeyRelationshipPath:, _mapAttribute:)
(_relationshipPathIsToMany: valueForSQLExpression:)
(_parsePropertyName:, classPropertyAttributeNames)
(classPropertyToManyRelationshipNames)
(classPropertyToOneRelationshipNames, dbSnapshotKeys)
* EOAccess/EOUtilities.m (rawRowsForEntityNamed:qualifierFormat:)
(rawRowsMatchingValue:forKey:entityNamed:)
(rawRowsMatchingValues:entityNamed:, rawRowsWithSQL:modelNamed:)
(rawRowsWithStoredProcedureNamed:arguments:)
(executeStoredProcedureNamed:arguments:, databaseContextForModelNamed:)
(primaryKeyForObject:)
(destinationKeyForSourceObject:relationshipNamed:)
* EOAccess/EOEntity.m
(_mapAttribute:toDestinationAttributeInLastComponentOfRelationshipPath:)
* EOAccess/EOAdaptor.h (adaptorWithModel:,adaptorWithName:)
* EOAccess/EOModel.h (_classDescriptionNeeded:,_entityForClass:)
(_addEntityWithPropertyList:)
* EOAdaptors/Postgres95/Postgres95Channel.h
(_evaluateExpression:withAttributes:)
* EOControl/EOMutableKnownKeyDictionary.h/m (arrayMappingForKeys:)
(subsetMappingForSourceDictionaryInitializer:sourceKeys:destinationKeys:)
(subsetMappingForSourceDictionaryInitializer:)
(setObject:forKey:, removeObjectForKey:, indexForKey:, objectForKey:)
* EOControl/EOEditingContext.m (handleErrors:,setSharedEditingContext:)
(faultForRawRow:entityNamed:)
* GDL2Palette/KeyWrapper.h (setKey:, _key):
* EOModeler/EOModelerEditor.h (selectionWithinViewedObject)
* EOModeler/EOModelerEditor.m (initWithDocument:)
(initWithParentEditor:)
Correct method signatures. Add necessary forward @class declations.
* EOInterface/EOMasterDetailAssociation.m (establishConnection):
* DBModeler/ModelerTableEmbedibleEditor.m
(addDefaultTableColumnsForTableView:displayGroup:)
* DBModeler/DefaultColumnProvider.m (setupTitleForColumn:named:)
Cast types to avoid compiler warnings.
* EOControl/EOCheapArray.m (dealloc): Supress compiler warning.
* EOAdaptors/Postgres95/LoginPanel/Postgres95LoginPanel.m (dealloc)
* EOModeler/EOModelerEditor.m (dealloc):
* DBModeler/ModelerAttributeEditor.m (dealloc): Add missing call
to super.
* DBModeler/Preferences.m (sharedPreferences): Fix implementation for
new compiler semantics.
* EOControl/EOMultiReaderLock.m (init): Correct NSConditionLock
initialization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23472 72102866-910b-0410-8b05-ffd578937521
2006-09-12 19:36:24 +00:00
|
|
|
[super dealloc];
|
2005-05-13 00:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSView *)mainView
|
|
|
|
{
|
|
|
|
return _mainView;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) canSupportCurrentSelection
|
|
|
|
{
|
|
|
|
id selection = [self selectionWithinViewedObject];
|
|
|
|
BOOL flag;
|
|
|
|
|
|
|
|
if ([selection count] == 0)
|
|
|
|
return NO;
|
|
|
|
selection = [selection objectAtIndex:0];
|
|
|
|
flag = ([selection isKindOfClass:[EOEntity class]]
|
* 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
|
|
|
|| [selection isKindOfClass:[EOAttribute class]]
|
|
|
|
|| [selection isKindOfClass:[EORelationship class]]);
|
2005-05-13 00:25:27 +00:00
|
|
|
return flag;
|
|
|
|
}
|
|
|
|
|
2006-09-05 22:18:35 +00:00
|
|
|
- (void) needToFetch:(id)arg
|
|
|
|
{
|
|
|
|
[_attributes_dg fetch];
|
|
|
|
[_relationships_dg fetch];
|
|
|
|
}
|
2005-05-13 00:25:27 +00:00
|
|
|
|
|
|
|
- (void) activate
|
|
|
|
{
|
2006-09-05 22:18:35 +00:00
|
|
|
NSArray *selPath = [self selectionPath];
|
|
|
|
NSArray *selWithin = [self selectionWithinViewedObject];
|
|
|
|
id newEntityToObserve = [selPath firstSelectionOfClass:[EOEntity class]];
|
|
|
|
if (_entityToObserve != newEntityToObserve)
|
|
|
|
{
|
|
|
|
if (_entityToObserve)
|
|
|
|
[EOObserverCenter removeObserver:self forObject:_entityToObserve];
|
|
|
|
|
|
|
|
_entityToObserve = newEntityToObserve;
|
|
|
|
[EOObserverCenter addObserver:self forObject:_entityToObserve];
|
|
|
|
[(KVDataSource *)[_attributes_dg dataSource] setDataObject: _entityToObserve];
|
|
|
|
[(KVDataSource *)[_relationships_dg dataSource] setDataObject: _entityToObserve];
|
|
|
|
}
|
2005-05-13 00:25:27 +00:00
|
|
|
|
2006-09-05 22:18:35 +00:00
|
|
|
[self needToFetch:self];
|
|
|
|
|
|
|
|
if (![[_attributes_dg selectedObjects] isEqual:selWithin]
|
|
|
|
&& ![_attributes_dg selectObjectsIdenticalTo:selWithin
|
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
|
|
|
selectFirstOnNoMatch:NO])
|
2006-09-05 22:18:35 +00:00
|
|
|
[_attributes_dg clearSelection];
|
|
|
|
|
|
|
|
if (![[_relationships_dg selectedObjects] isEqual:selWithin]
|
|
|
|
&& ![_relationships_dg selectObjectsIdenticalTo:selWithin
|
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
|
|
|
selectFirstOnNoMatch:NO])
|
2006-09-05 22:18:35 +00:00
|
|
|
[_relationships_dg clearSelection];
|
2005-05-13 00:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) friendEditorClasses
|
|
|
|
{
|
|
|
|
return [NSArray arrayWithObjects: [ModelerEntityEditor class], nil];
|
|
|
|
}
|
|
|
|
|
2009-03-02 06:06:44 +00:00
|
|
|
- (void) selectionDidChange:(NSNotification *)notif
|
|
|
|
{
|
|
|
|
NSArray *newSelection = [[EOMApp currentEditor] selectionWithinViewedObject];
|
|
|
|
int i, c;
|
|
|
|
|
|
|
|
c = [_oldSelection count];
|
|
|
|
|
|
|
|
for (i = 0; i < c; i++)
|
|
|
|
{
|
|
|
|
id obj = [_oldSelection objectAtIndex:i];
|
|
|
|
|
|
|
|
[EOObserverCenter removeObserver:self forObject:obj];
|
|
|
|
}
|
|
|
|
|
|
|
|
c = [newSelection count];
|
|
|
|
for (i = 0; i < c; i++)
|
|
|
|
{
|
|
|
|
id obj = [newSelection objectAtIndex:i];
|
|
|
|
|
|
|
|
[EOObserverCenter addObserver:self forObject:obj];
|
|
|
|
}
|
|
|
|
ASSIGN(_oldSelection, newSelection);
|
|
|
|
}
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
- (void) objectWillChange:(id)sender
|
|
|
|
{
|
2006-09-05 22:18:35 +00:00
|
|
|
[[NSRunLoop currentRunLoop]
|
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
|
|
|
performSelector:@selector(needToFetch:)
|
|
|
|
target:self
|
|
|
|
argument:nil
|
|
|
|
order:999 /* this number is probably arbitrary */
|
|
|
|
modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]];
|
2005-05-13 00:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *)defaultColumnNamesForClass:(Class)aClass
|
|
|
|
{
|
|
|
|
NSArray *colNames = [super defaultColumnNamesForClass:aClass];
|
|
|
|
if (colNames == nil || [colNames count] == 0)
|
|
|
|
{
|
|
|
|
if (aClass == [EOAttribute class])
|
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
|
|
|
return DefaultAttributeColumns;
|
2005-05-13 00:25:27 +00:00
|
|
|
else if (aClass == [EORelationship class])
|
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
|
|
|
return DefaultRelationshipColumns;
|
2005-05-13 00:25:27 +00:00
|
|
|
else
|
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
|
|
|
return nil;
|
2005-05-13 00:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return colNames;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) displayGroupDidChangeSelection:(EODisplayGroup *)displayGroup
|
|
|
|
{
|
2006-09-05 22:18:35 +00:00
|
|
|
NSArray *selObj = [displayGroup selectedObjects];
|
2009-02-27 05:29:06 +00:00
|
|
|
NSArray *selWithin = RETAIN([self selectionWithinViewedObject]);
|
* 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
|
|
|
|
2009-02-27 05:29:06 +00:00
|
|
|
if ([selObj count] && (![selObj isEqual:selWithin]))
|
|
|
|
{
|
|
|
|
if ([selWithin containsObject:_entityToObserve])
|
|
|
|
{
|
|
|
|
NSAssert([selWithin count] == 1, @"how on earth?");
|
2009-03-03 23:46:44 +00:00
|
|
|
/* we need to turn
|
|
|
|
(model, (entity)) into
|
|
|
|
(model, entity, ())
|
|
|
|
*/
|
|
|
|
[[self parentEditor] viewSelectedObject];
|
2009-02-27 05:29:06 +00:00
|
|
|
}
|
2009-03-03 23:46:44 +00:00
|
|
|
/* now select the attribute/relationship */
|
2009-02-27 05:29:06 +00:00
|
|
|
[self setSelectionWithinViewedObject: selObj];
|
2009-03-03 23:46:44 +00:00
|
|
|
[self activate];
|
2009-02-27 05:29:06 +00:00
|
|
|
}
|
2009-03-03 23:46:44 +00:00
|
|
|
|
2009-02-27 05:29:06 +00:00
|
|
|
RELEASE(selWithin);
|
2005-05-13 00:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|