Add a "view source" toolbar button, off by default

This commit is contained in:
pinkerton%netscape.com 2002-08-16 02:34:19 +00:00
Родитель 3b7325178d
Коммит b1b6081a82
8 изменённых файлов: 116 добавлений и 0 удалений

Просмотреть файл

@ -84,6 +84,7 @@ static NSString *SidebarToolbarItemIdentifier = @"Sidebar Toolbar Item";
static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
static NSString *ThrobberToolbarItemIdentifier = @"Throbber Toolbar Item";
static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
static NSString *ViewSourceToolbarItemIdentifier = @"View Source Toolbar Item";
static NSString *NavigatorWindowFrameSaveName = @"NavigatorWindow";
@ -469,6 +470,7 @@ static NSArray* sToolbarDefaults = nil;
ThrobberToolbarItemIdentifier,
SearchToolbarItemIdentifier,
PrintToolbarItemIdentifier,
ViewSourceToolbarItemIdentifier,
NSToolbarCustomizeToolbarItemIdentifier,
NSToolbarFlexibleSpaceItemIdentifier,
NSToolbarSpaceItemIdentifier,
@ -596,6 +598,13 @@ static NSArray* sToolbarDefaults = nil;
[toolbarItem setImage:[NSImage imageNamed:@"print"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(printDocument:)];
} else if ( [itemIdent isEqual:ViewSourceToolbarItemIdentifier] ) {
[toolbarItem setLabel:@"View Source"];
[toolbarItem setPaletteLabel:@"View Page Source"];
[toolbarItem setToolTip:@"Display the HTML source of this page"];
[toolbarItem setImage:[NSImage imageNamed:@"showsource"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(viewSource:)];
} else {
toolbarItem = nil;
}

Просмотреть файл

@ -555,6 +555,7 @@
F5F190BC02D1F81A01026D5D,
F5F190BF02D217C201026D5D,
F5CA1A1B02D3957001F34900,
F5EB9377030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -5570,6 +5571,7 @@
F5F190BD02D1F81A01026D5D,
F5F190C002D217C201026D5D,
F5CA1A1C02D3957001F34900,
F5EB9378030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -7628,6 +7630,7 @@
F53F5AE902448BC8010001CA,
F53F5AEA02448BC8010001CA,
F55CCFD2020E98EA010001CA,
F5EB9376030C92450100010C,
);
isa = PBXGroup;
name = "Purple Images";
@ -7771,6 +7774,23 @@
path = ../widget/src/cocoa/nsToolkit.mm;
refType = 2;
};
F5EB9376030C92450100010C = {
isa = PBXFileReference;
path = showsource.tif;
refType = 2;
};
F5EB9377030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5EB9378030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5F14E9602A5A43A01A967F3 = {
isa = PBXFileReference;
name = libwidget.rsrc;

Просмотреть файл

@ -555,6 +555,7 @@
F5F190BC02D1F81A01026D5D,
F5F190BF02D217C201026D5D,
F5CA1A1B02D3957001F34900,
F5EB9377030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -5570,6 +5571,7 @@
F5F190BD02D1F81A01026D5D,
F5F190C002D217C201026D5D,
F5CA1A1C02D3957001F34900,
F5EB9378030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -7628,6 +7630,7 @@
F53F5AE902448BC8010001CA,
F53F5AEA02448BC8010001CA,
F55CCFD2020E98EA010001CA,
F5EB9376030C92450100010C,
);
isa = PBXGroup;
name = "Purple Images";
@ -7771,6 +7774,23 @@
path = ../widget/src/cocoa/nsToolkit.mm;
refType = 2;
};
F5EB9376030C92450100010C = {
isa = PBXFileReference;
path = showsource.tif;
refType = 2;
};
F5EB9377030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5EB9378030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5F14E9602A5A43A01A967F3 = {
isa = PBXFileReference;
name = libwidget.rsrc;

Просмотреть файл

@ -84,6 +84,7 @@ static NSString *SidebarToolbarItemIdentifier = @"Sidebar Toolbar Item";
static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
static NSString *ThrobberToolbarItemIdentifier = @"Throbber Toolbar Item";
static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
static NSString *ViewSourceToolbarItemIdentifier = @"View Source Toolbar Item";
static NSString *NavigatorWindowFrameSaveName = @"NavigatorWindow";
@ -469,6 +470,7 @@ static NSArray* sToolbarDefaults = nil;
ThrobberToolbarItemIdentifier,
SearchToolbarItemIdentifier,
PrintToolbarItemIdentifier,
ViewSourceToolbarItemIdentifier,
NSToolbarCustomizeToolbarItemIdentifier,
NSToolbarFlexibleSpaceItemIdentifier,
NSToolbarSpaceItemIdentifier,
@ -596,6 +598,13 @@ static NSArray* sToolbarDefaults = nil;
[toolbarItem setImage:[NSImage imageNamed:@"print"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(printDocument:)];
} else if ( [itemIdent isEqual:ViewSourceToolbarItemIdentifier] ) {
[toolbarItem setLabel:@"View Source"];
[toolbarItem setPaletteLabel:@"View Page Source"];
[toolbarItem setToolTip:@"Display the HTML source of this page"];
[toolbarItem setImage:[NSImage imageNamed:@"showsource"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(viewSource:)];
} else {
toolbarItem = nil;
}

Просмотреть файл

@ -84,6 +84,7 @@ static NSString *SidebarToolbarItemIdentifier = @"Sidebar Toolbar Item";
static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
static NSString *ThrobberToolbarItemIdentifier = @"Throbber Toolbar Item";
static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
static NSString *ViewSourceToolbarItemIdentifier = @"View Source Toolbar Item";
static NSString *NavigatorWindowFrameSaveName = @"NavigatorWindow";
@ -469,6 +470,7 @@ static NSArray* sToolbarDefaults = nil;
ThrobberToolbarItemIdentifier,
SearchToolbarItemIdentifier,
PrintToolbarItemIdentifier,
ViewSourceToolbarItemIdentifier,
NSToolbarCustomizeToolbarItemIdentifier,
NSToolbarFlexibleSpaceItemIdentifier,
NSToolbarSpaceItemIdentifier,
@ -596,6 +598,13 @@ static NSArray* sToolbarDefaults = nil;
[toolbarItem setImage:[NSImage imageNamed:@"print"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(printDocument:)];
} else if ( [itemIdent isEqual:ViewSourceToolbarItemIdentifier] ) {
[toolbarItem setLabel:@"View Source"];
[toolbarItem setPaletteLabel:@"View Page Source"];
[toolbarItem setToolTip:@"Display the HTML source of this page"];
[toolbarItem setImage:[NSImage imageNamed:@"showsource"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(viewSource:)];
} else {
toolbarItem = nil;
}

Просмотреть файл

@ -555,6 +555,7 @@
F5F190BC02D1F81A01026D5D,
F5F190BF02D217C201026D5D,
F5CA1A1B02D3957001F34900,
F5EB9377030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -5570,6 +5571,7 @@
F5F190BD02D1F81A01026D5D,
F5F190C002D217C201026D5D,
F5CA1A1C02D3957001F34900,
F5EB9378030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -7628,6 +7630,7 @@
F53F5AE902448BC8010001CA,
F53F5AEA02448BC8010001CA,
F55CCFD2020E98EA010001CA,
F5EB9376030C92450100010C,
);
isa = PBXGroup;
name = "Purple Images";
@ -7771,6 +7774,23 @@
path = ../widget/src/cocoa/nsToolkit.mm;
refType = 2;
};
F5EB9376030C92450100010C = {
isa = PBXFileReference;
path = showsource.tif;
refType = 2;
};
F5EB9377030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5EB9378030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5F14E9602A5A43A01A967F3 = {
isa = PBXFileReference;
name = libwidget.rsrc;

Просмотреть файл

@ -555,6 +555,7 @@
F5F190BC02D1F81A01026D5D,
F5F190BF02D217C201026D5D,
F5CA1A1B02D3957001F34900,
F5EB9377030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -5570,6 +5571,7 @@
F5F190BD02D1F81A01026D5D,
F5F190C002D217C201026D5D,
F5CA1A1C02D3957001F34900,
F5EB9378030C92450100010C,
);
isa = PBXResourcesBuildPhase;
name = "Bundle Resources";
@ -7628,6 +7630,7 @@
F53F5AE902448BC8010001CA,
F53F5AEA02448BC8010001CA,
F55CCFD2020E98EA010001CA,
F5EB9376030C92450100010C,
);
isa = PBXGroup;
name = "Purple Images";
@ -7771,6 +7774,23 @@
path = ../widget/src/cocoa/nsToolkit.mm;
refType = 2;
};
F5EB9376030C92450100010C = {
isa = PBXFileReference;
path = showsource.tif;
refType = 2;
};
F5EB9377030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5EB9378030C92450100010C = {
fileRef = F5EB9376030C92450100010C;
isa = PBXBuildFile;
settings = {
};
};
F5F14E9602A5A43A01A967F3 = {
isa = PBXFileReference;
name = libwidget.rsrc;

Просмотреть файл

@ -84,6 +84,7 @@ static NSString *SidebarToolbarItemIdentifier = @"Sidebar Toolbar Item";
static NSString *PrintToolbarItemIdentifier = @"Print Toolbar Item";
static NSString *ThrobberToolbarItemIdentifier = @"Throbber Toolbar Item";
static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
static NSString *ViewSourceToolbarItemIdentifier = @"View Source Toolbar Item";
static NSString *NavigatorWindowFrameSaveName = @"NavigatorWindow";
@ -469,6 +470,7 @@ static NSArray* sToolbarDefaults = nil;
ThrobberToolbarItemIdentifier,
SearchToolbarItemIdentifier,
PrintToolbarItemIdentifier,
ViewSourceToolbarItemIdentifier,
NSToolbarCustomizeToolbarItemIdentifier,
NSToolbarFlexibleSpaceItemIdentifier,
NSToolbarSpaceItemIdentifier,
@ -596,6 +598,13 @@ static NSArray* sToolbarDefaults = nil;
[toolbarItem setImage:[NSImage imageNamed:@"print"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(printDocument:)];
} else if ( [itemIdent isEqual:ViewSourceToolbarItemIdentifier] ) {
[toolbarItem setLabel:@"View Source"];
[toolbarItem setPaletteLabel:@"View Page Source"];
[toolbarItem setToolTip:@"Display the HTML source of this page"];
[toolbarItem setImage:[NSImage imageNamed:@"showsource"]];
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(viewSource:)];
} else {
toolbarItem = nil;
}