Added SQLite logo in login panel

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34953 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2012-03-20 05:47:28 +00:00
parent f9cb25f695
commit 0215e55df9
4 changed files with 22 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2012-03-19 German A. Arias <german@xelalug.org>
* 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 <german@xelalug.org>
* EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.h:

View file

@ -34,6 +34,7 @@ endif
endif
LoginPanel_NEEDS_GUI=yes
LoginPanel_RESOURCE_FILES = sqlitelogo.tif
LoginPanel_OBJC_FILES=SQLite3LoginPanel.m
LoginPanel_PRINCIPAL_CLASS=SQLite3LoginPanel

View file

@ -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"];

Binary file not shown.