diff --git a/ChangeLog b/ChangeLog index bde4bbc..1cd8b0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-03-19 German A. Arias + + * EOAdaptors/SQLiteAdaptor/LoginPanel/sqlitelogo.tif: + * EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile: + * EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m: Added + SQLite logo in login panel. + 2012-03-19 German A. Arias * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.h: diff --git a/EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile b/EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile index 1a714a7..fb6f723 100644 --- a/EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile +++ b/EOAdaptors/SQLiteAdaptor/LoginPanel/GNUmakefile @@ -34,6 +34,7 @@ endif endif LoginPanel_NEEDS_GUI=yes +LoginPanel_RESOURCE_FILES = sqlitelogo.tif LoginPanel_OBJC_FILES=SQLite3LoginPanel.m LoginPanel_PRINCIPAL_CLASS=SQLite3LoginPanel diff --git a/EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m b/EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m index 5aaf5b9..7673498 100644 --- a/EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m +++ b/EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m @@ -53,12 +53,25 @@ static BOOL insideModalLoop = YES; { NSRect fr1, fr2; float w; + NSImage *imageLogo; + NSImageView *logo; /* TODO make the interface pretty */ - _win = [[NSPanel alloc] initWithContentRect:NSMakeRect(0, 0, 256, 128) + _win = [[NSPanel alloc] initWithContentRect:NSMakeRect(0, 0, 256, 148) styleMask: NSTitledWindowMask backing:NSBackingStoreBuffered defer:YES]; [_win center]; + + imageLogo = [[NSImage alloc] initWithContentsOfFile: + [[NSBundle bundleForClass: [self class]] + pathForImageResource:@"sqlitelogo"]]; + logo = [[NSImageView alloc] initWithFrame:NSMakeRect(5, 48, 214, 96)]; + [logo setImage: imageLogo]; + [logo setEditable:NO]; + [[_win contentView] addSubview: logo]; + [imageLogo release]; + [logo release]; + _ok = [[NSButton alloc] init]; _cancel = [[NSButton alloc] init]; [_ok setTitle:@"Ok"]; diff --git a/EOAdaptors/SQLiteAdaptor/LoginPanel/sqlitelogo.tif b/EOAdaptors/SQLiteAdaptor/LoginPanel/sqlitelogo.tif new file mode 100644 index 0000000..93a7516 Binary files /dev/null and b/EOAdaptors/SQLiteAdaptor/LoginPanel/sqlitelogo.tif differ