mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Correction for inspector resizing issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21743 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90a920d9cb
commit
ca69dba62e
5 changed files with 23 additions and 11 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2005-09-25 12:54 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* English.lproj/GormInspectorPanel.gorm: Set resize options correctly.
|
||||
* GormCore/GormConnectionInspector.m: [GormConnectionInspector init]
|
||||
modified size of ok/revert buttons.
|
||||
* GormCore/GormDocument.m: Pull the archive type in
|
||||
[GormDocument saveGormDocument:]
|
||||
* GormCore/GormInspectorsManager.m: in setCurrentInspector:
|
||||
corrected issues with inspector resizing.
|
||||
|
||||
2005-09-15 00:53 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormInspectorsManager.[mh]: Added origFrame to allow
|
||||
|
|
Binary file not shown.
|
@ -44,14 +44,14 @@
|
|||
|
||||
// Create the okay and revert buttons, programmatically, since we shouldn't
|
||||
// add them to the view. The wantsButtons handling code will do that.
|
||||
okButton = [[NSButton alloc] initWithFrame: NSMakeRect(0,0,70,20)];
|
||||
okButton = [[NSButton alloc] initWithFrame: NSMakeRect(0,0,80,20)];
|
||||
[okButton setAutoresizingMask: NSViewMaxYMargin | NSViewMinXMargin];
|
||||
[okButton setAction: @selector(ok:)];
|
||||
[okButton setTarget: self];
|
||||
[okButton setTitle: _(@"Connect")];
|
||||
[okButton setEnabled: NO];
|
||||
|
||||
revertButton = [[NSButton alloc] initWithFrame: NSMakeRect(0,0,60,20)];
|
||||
revertButton = [[NSButton alloc] initWithFrame: NSMakeRect(0,0,80,20)];
|
||||
[revertButton setAutoresizingMask: NSViewMaxYMargin | NSViewMinXMargin];
|
||||
[revertButton setAction: @selector(revert:)];
|
||||
[revertButton setTarget: self];
|
||||
|
|
|
@ -3190,7 +3190,9 @@ static NSImage *fileImage = nil;
|
|||
NSDictionary *substituteClasses = [palettesManager substituteClasses];
|
||||
NSEnumerator *en = [substituteClasses keyEnumerator];
|
||||
NSString *subClassName = nil;
|
||||
|
||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||
NSString *archiveType = [defaults stringForKey: @"ArchiveType"];
|
||||
|
||||
if (documentPath == nil)
|
||||
{
|
||||
// if no path has been defined... define one.
|
||||
|
|
|
@ -140,12 +140,12 @@
|
|||
if((self = [super init]) != nil)
|
||||
{
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
|
||||
if([NSBundle loadNibNamed: @"GormInspectorPanel" owner: self])
|
||||
{
|
||||
{
|
||||
// initialized the cache...
|
||||
cache = [[NSMutableDictionary alloc] init];
|
||||
|
||||
|
||||
// set the name under which this panel saves it's dimensions.
|
||||
[panel setFrameUsingName: @"Inspector"];
|
||||
[panel setFrameAutosaveName: @"Inspector"];
|
||||
|
@ -161,7 +161,7 @@
|
|||
DESTROY(inspector);
|
||||
|
||||
// get the original framesize.
|
||||
origFrame = [inspectorView frame];
|
||||
// origFrame = [inspectorView frame];
|
||||
|
||||
[self setCurrentInspector: 0];
|
||||
|
||||
|
@ -173,7 +173,7 @@
|
|||
selector: @selector(handleNotification:)
|
||||
name: IBWillEndTestingInterfaceNotification
|
||||
object: nil];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
|
@ -434,8 +434,8 @@
|
|||
rect.size.height -= (IVB + 3);
|
||||
|
||||
buttonView = [[NSView alloc] initWithFrame: buttonsRect];
|
||||
[buttonView setAutoresizingMask:
|
||||
NSViewHeightSizable | NSViewWidthSizable];
|
||||
// [buttonView setAutoresizingMask:
|
||||
// NSViewMaxYMargin | NSViewMinYMargin | NSViewMaxXMargin];
|
||||
[outer addSubview: buttonView];
|
||||
RELEASE(buttonView);
|
||||
|
||||
|
@ -461,7 +461,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
rect = origFrame;
|
||||
rect.size.height = [selectionView frame].origin.y - 3;
|
||||
[buttonView removeFromSuperview];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue