mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-16 08:20:59 +00:00
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:
parent
f9cb25f695
commit
0215e55df9
4 changed files with 22 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -34,6 +34,7 @@ endif
|
|||
endif
|
||||
|
||||
LoginPanel_NEEDS_GUI=yes
|
||||
LoginPanel_RESOURCE_FILES = sqlitelogo.tif
|
||||
LoginPanel_OBJC_FILES=SQLite3LoginPanel.m
|
||||
LoginPanel_PRINCIPAL_CLASS=SQLite3LoginPanel
|
||||
|
||||
|
|
|
@ -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"];
|
||||
|
|
BIN
EOAdaptors/SQLiteAdaptor/LoginPanel/sqlitelogo.tif
Normal file
BIN
EOAdaptors/SQLiteAdaptor/LoginPanel/sqlitelogo.tif
Normal file
Binary file not shown.
Loading…
Reference in a new issue