mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 15:20:59 +00:00
Indentation tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11113 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
77009329ba
commit
ee2ecb2b8a
1 changed files with 23 additions and 15 deletions
|
@ -235,35 +235,37 @@
|
||||||
{
|
{
|
||||||
NSString *filename = [_document fileName];
|
NSString *filename = [_document fileName];
|
||||||
NSString *displayName = [_document displayName];
|
NSString *displayName = [_document displayName];
|
||||||
NSString *title = [self windowTitleForDocumentDisplayName:displayName];
|
NSString *title = [self windowTitleForDocumentDisplayName: displayName];
|
||||||
|
|
||||||
/* If they just want to display the filename, use the fancy method */
|
/* If they just want to display the filename, use the fancy method */
|
||||||
if (filename != nil && [title isEqualToString:filename])
|
if (filename != nil && [title isEqualToString: filename])
|
||||||
{
|
{
|
||||||
[_window setTitleWithRepresentedFilename:filename];
|
[_window setTitleWithRepresentedFilename: filename];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (filename) [_window setRepresentedFilename:filename];
|
if (filename) [_window setRepresentedFilename:filename];
|
||||||
|
{
|
||||||
[_window setTitle:title];
|
[_window setTitle:title];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)isWindowLoaded
|
- (BOOL) isWindowLoaded
|
||||||
{
|
{
|
||||||
return _wcFlags.nibIsLoaded;
|
return _wcFlags.nibIsLoaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowDidLoad
|
- (void) windowDidLoad
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowWillLoad
|
- (void) windowWillLoad
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_windowDidLoad
|
- (void) _windowDidLoad
|
||||||
{
|
{
|
||||||
_wcFlags.nibIsLoaded = YES;
|
_wcFlags.nibIsLoaded = YES;
|
||||||
|
|
||||||
|
@ -307,28 +309,34 @@
|
||||||
* extreme top of the screen, and offset only a small amount
|
* extreme top of the screen, and offset only a small amount
|
||||||
* from the left.
|
* from the left.
|
||||||
*/
|
*/
|
||||||
nextWindowLocation = [_window
|
nextWindowLocation
|
||||||
cascadeTopLeftFromPoint: nextWindowLocation];
|
= [_window cascadeTopLeftFromPoint: nextWindowLocation];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[self windowDidLoad];
|
[self windowDidLoad];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)loadWindow
|
- (void) loadWindow
|
||||||
{
|
{
|
||||||
if ([self isWindowLoaded]) return;
|
if ([self isWindowLoaded])
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ([NSBundle loadNibNamed:_windowNibName owner:_owner])
|
if ([NSBundle loadNibNamed: _windowNibName owner: _owner])
|
||||||
{
|
{
|
||||||
_wcFlags.nibIsLoaded = YES;
|
_wcFlags.nibIsLoaded = YES;
|
||||||
|
|
||||||
if (_window == nil && _document && _owner == _document)
|
if (_window == nil && _document != nil && _owner == _document)
|
||||||
[self setWindow:[_document _transferWindowOwnership]];
|
{
|
||||||
|
[self setWindow: [_document _transferWindowOwnership]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NSLog(@"%@: could not load nib named %@.nib", [self class], _windowNibName);
|
NSLog (@"%@: could not load nib named %@.nib",
|
||||||
|
[self class], _windowNibName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue