Palette Panel: set window title from original window title of selected palette; window titles were added/fixed for palettes.

This commit is contained in:
Sergii Stoian 2019-12-23 01:46:59 +02:00
parent 55c2c8dfbc
commit 017bead07a
6 changed files with 7 additions and 4 deletions

View file

@ -418,7 +418,7 @@ static NSImage *dragImage = nil;
NSArray *exportImages;
NSDictionary *subClasses;
IBPalette *palette;
NSImageCell *cell;
NSButtonCell *cell;
int col;
if([self bundlePathIsLoaded: path])
@ -650,8 +650,7 @@ static NSImage *dragImage = nil;
/*
* Set the window title to reflect the palette selection.
*/
[panel setTitle: [NSString stringWithFormat: @"Palettes (%@)",
[palette className]]];
[panel setTitle: [[palette originalWindow] title]];
/*
* Move the views from their original window into our drag view.

View file

@ -82,6 +82,7 @@
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreRetained
defer: NO];
[originalWindow setTitle: @"Menus"];
contents = [originalWindow contentView];

View file

@ -118,6 +118,7 @@
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreRetained
defer: NO];
[originalWindow setTitle: @"Windows"];
contents = [originalWindow contentView];
w = [[GormWindowMaker alloc] init];

View file

@ -46,7 +46,7 @@
@implementation ContainersPalette
- (void) finishInstantiate
{
{
NSView *contents;
NSTableView *tv;
@ -60,6 +60,7 @@
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreRetained
defer: NO];
[originalWindow setTitle: @"Conatiners"];
contents = [originalWindow contentView];
/*******************/

View file

@ -235,6 +235,7 @@ int defaultDateFormatIndex = 3;
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreRetained
defer: NO];
[originalWindow setTitle: @"Data Views"];
contents = [originalWindow contentView];
/*******************/