mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-22 02:41:05 +00:00
* 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
This commit is contained in:
parent
081f2c530d
commit
941076c761
4 changed files with 18 additions and 11 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-09-16 Matt Rice <ratmice@yahoo.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2006-09-16 David Ayers <ayers@fsfe.org>
|
2006-09-16 David Ayers <ayers@fsfe.org>
|
||||||
|
|
||||||
* EOAccess/EOAttribute.[hm]: Add documentation.
|
* EOAccess/EOAttribute.[hm]: Add documentation.
|
||||||
|
|
|
@ -46,8 +46,7 @@
|
||||||
|
|
||||||
static DefaultColumnProvider *_sharedDefaultColumnProvider;
|
static DefaultColumnProvider *_sharedDefaultColumnProvider;
|
||||||
static NSMutableDictionary *_aspectsAndKeys;
|
static NSMutableDictionary *_aspectsAndKeys;
|
||||||
/* todo make this a struct instead of an array */
|
|
||||||
/* object key default */
|
|
||||||
struct column_info {
|
struct column_info {
|
||||||
NSString *key;
|
NSString *key;
|
||||||
NSString *name;
|
NSString *name;
|
||||||
|
@ -55,18 +54,18 @@ struct column_info {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct column_info attribute_columns[] = {
|
static struct column_info attribute_columns[] = {
|
||||||
{@"allowNull", @"Allows null", YES},
|
{@"isPrimaryKey", @"Primary key", YES},
|
||||||
{@"isClassProperty", @"Class property", YES},
|
{@"isClassProperty", @"Class property", YES},
|
||||||
{@"columnName", @"Column name", YES},
|
{@"allowNull", @"Allows null", YES},
|
||||||
{@"definition", @"Definition", NO},
|
|
||||||
{@"externalType", @"External Type", YES},
|
|
||||||
{@"isUsedForLocking", @"Locking", YES},
|
{@"isUsedForLocking", @"Locking", YES},
|
||||||
{@"name", @"Name", YES},
|
{@"name", @"Name", YES},
|
||||||
|
{@"columnName", @"Column name", YES},
|
||||||
|
{@"valueClassName", @"Value class name", YES},
|
||||||
|
{@"externalType", @"External Type", YES},
|
||||||
|
{@"definition", @"Definition", NO},
|
||||||
{@"precision", @"Precision", NO},
|
{@"precision", @"Precision", NO},
|
||||||
{@"isPrimaryKey", @"Primary key", YES},
|
|
||||||
{@"readFormat", @"Read format", NO},
|
{@"readFormat", @"Read format", NO},
|
||||||
{@"scale", @"Scale", NO},
|
{@"scale", @"Scale", NO},
|
||||||
{@"valueClassName", @"Value class name", YES},
|
|
||||||
{@"valueType", @"Value type", NO},
|
{@"valueType", @"Value type", NO},
|
||||||
{@"width", @"Width", YES},
|
{@"width", @"Width", YES},
|
||||||
{@"writeFormat", @"Write format", NO}
|
{@"writeFormat", @"Write format", NO}
|
||||||
|
@ -102,8 +101,7 @@ static struct column_info entity_columns[] = {
|
||||||
otherColumnName = "otherAspectKey";
|
otherColumnName = "otherAspectKey";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
* or something not sure if id columns[][2] would work as a method so i'll use
|
*/
|
||||||
* a function.. it _should_ but iirc buggy somewhere (forwarding?) */
|
|
||||||
void registerColumnsForClass(struct column_info columns[], int count, Class aClass,NSMutableArray *defaultColumnsArray)
|
void registerColumnsForClass(struct column_info columns[], int count, Class aClass,NSMutableArray *defaultColumnsArray)
|
||||||
{
|
{
|
||||||
id *objects;
|
id *objects;
|
||||||
|
@ -237,6 +235,7 @@ void registerColumnsForClass(struct column_info columns[], int count, Class aCla
|
||||||
[cell setImagePosition:NSImageOnly];
|
[cell setImagePosition:NSImageOnly];
|
||||||
[cell setBordered:NO];
|
[cell setBordered:NO];
|
||||||
[cell setBezeled:NO];
|
[cell setBezeled:NO];
|
||||||
|
[cell setAlternateImage:[NSImage imageNamed:@"AllowsNull_On"]];
|
||||||
[cell setControlSize: NSSmallControlSize];
|
[cell setControlSize: NSSmallControlSize];
|
||||||
[cell setEditable:YES];
|
[cell setEditable:YES];
|
||||||
return AUTORELEASE(cell);
|
return AUTORELEASE(cell);
|
||||||
|
|
|
@ -50,7 +50,8 @@ $(APP_NAME)_RESOURCE_FILES = \
|
||||||
Resources/ClassProperty_Header.tiff \
|
Resources/ClassProperty_Header.tiff \
|
||||||
Resources/Preferences.gorm \
|
Resources/Preferences.gorm \
|
||||||
Resources/ConsistencyResults.gorm \
|
Resources/ConsistencyResults.gorm \
|
||||||
Resources/DBModeler.tiff
|
Resources/DBModeler.tiff \
|
||||||
|
Resources/AllowsNull_On.tiff
|
||||||
|
|
||||||
$(APP_NAME)_OBJC_FILES = \
|
$(APP_NAME)_OBJC_FILES = \
|
||||||
main.m \
|
main.m \
|
||||||
|
|
BIN
DBModeler/Resources/AllowsNull_On.tiff
Normal file
BIN
DBModeler/Resources/AllowsNull_On.tiff
Normal file
Binary file not shown.
Loading…
Reference in a new issue