From 1682f0e74c044cc233aeb55c39a40a2534b19c68 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Sat, 20 Apr 2002 02:38:31 +0000 Subject: [PATCH] Initial commit of iconic tab items. NPOB. --- camino/CHIconTabViewItem.h | 31 ++++++++++++++++++++++++ camino/CHIconTabViewItem.m | 0 camino/src/extensions/IconTabViewItem.h | 31 ++++++++++++++++++++++++ chimera/CHIconTabViewItem.h | 31 ++++++++++++++++++++++++ chimera/CHIconTabViewItem.m | 0 chimera/src/extensions/IconTabViewItem.h | 31 ++++++++++++++++++++++++ 6 files changed, 124 insertions(+) create mode 100644 camino/CHIconTabViewItem.h create mode 100644 camino/CHIconTabViewItem.m create mode 100644 camino/src/extensions/IconTabViewItem.h create mode 100644 chimera/CHIconTabViewItem.h create mode 100644 chimera/CHIconTabViewItem.m create mode 100644 chimera/src/extensions/IconTabViewItem.h diff --git a/camino/CHIconTabViewItem.h b/camino/CHIconTabViewItem.h new file mode 100644 index 00000000000..797c163ef26 --- /dev/null +++ b/camino/CHIconTabViewItem.h @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- +* +* The contents of this file are subject to the Mozilla Public +* License Version 1.1 (the "License"); you may not use this file +* except in compliance with the License. You may obtain a copy of +* the License at http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS +* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +* implied. See the License for the specific language governing +* rights and limitations under the License. +* +* The Original Code is the Mozilla browser. +* +* The Initial Developer of the Original Code is Matt Judy. Portions +* of code @2002 nibfile.com. +*/ + +#import + +@interface CHIconTabViewItem : NSTabViewItem { + NSImage *_tabIcon; +} + +// The designated initializer +-(id)initWithIdentifier:(id)identifier withTabIcon:(NSImage *)tabIcon; + +-(NSImage *)tabIcon; +-(void)setTabIcon:(NSImage *)newIcon; + +@end diff --git a/camino/CHIconTabViewItem.m b/camino/CHIconTabViewItem.m new file mode 100644 index 00000000000..e69de29bb2d diff --git a/camino/src/extensions/IconTabViewItem.h b/camino/src/extensions/IconTabViewItem.h new file mode 100644 index 00000000000..797c163ef26 --- /dev/null +++ b/camino/src/extensions/IconTabViewItem.h @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- +* +* The contents of this file are subject to the Mozilla Public +* License Version 1.1 (the "License"); you may not use this file +* except in compliance with the License. You may obtain a copy of +* the License at http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS +* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +* implied. See the License for the specific language governing +* rights and limitations under the License. +* +* The Original Code is the Mozilla browser. +* +* The Initial Developer of the Original Code is Matt Judy. Portions +* of code @2002 nibfile.com. +*/ + +#import + +@interface CHIconTabViewItem : NSTabViewItem { + NSImage *_tabIcon; +} + +// The designated initializer +-(id)initWithIdentifier:(id)identifier withTabIcon:(NSImage *)tabIcon; + +-(NSImage *)tabIcon; +-(void)setTabIcon:(NSImage *)newIcon; + +@end diff --git a/chimera/CHIconTabViewItem.h b/chimera/CHIconTabViewItem.h new file mode 100644 index 00000000000..797c163ef26 --- /dev/null +++ b/chimera/CHIconTabViewItem.h @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- +* +* The contents of this file are subject to the Mozilla Public +* License Version 1.1 (the "License"); you may not use this file +* except in compliance with the License. You may obtain a copy of +* the License at http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS +* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +* implied. See the License for the specific language governing +* rights and limitations under the License. +* +* The Original Code is the Mozilla browser. +* +* The Initial Developer of the Original Code is Matt Judy. Portions +* of code @2002 nibfile.com. +*/ + +#import + +@interface CHIconTabViewItem : NSTabViewItem { + NSImage *_tabIcon; +} + +// The designated initializer +-(id)initWithIdentifier:(id)identifier withTabIcon:(NSImage *)tabIcon; + +-(NSImage *)tabIcon; +-(void)setTabIcon:(NSImage *)newIcon; + +@end diff --git a/chimera/CHIconTabViewItem.m b/chimera/CHIconTabViewItem.m new file mode 100644 index 00000000000..e69de29bb2d diff --git a/chimera/src/extensions/IconTabViewItem.h b/chimera/src/extensions/IconTabViewItem.h new file mode 100644 index 00000000000..797c163ef26 --- /dev/null +++ b/chimera/src/extensions/IconTabViewItem.h @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- +* +* The contents of this file are subject to the Mozilla Public +* License Version 1.1 (the "License"); you may not use this file +* except in compliance with the License. You may obtain a copy of +* the License at http://www.mozilla.org/MPL/ +* +* Software distributed under the License is distributed on an "AS +* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +* implied. See the License for the specific language governing +* rights and limitations under the License. +* +* The Original Code is the Mozilla browser. +* +* The Initial Developer of the Original Code is Matt Judy. Portions +* of code @2002 nibfile.com. +*/ + +#import + +@interface CHIconTabViewItem : NSTabViewItem { + NSImage *_tabIcon; +} + +// The designated initializer +-(id)initWithIdentifier:(id)identifier withTabIcon:(NSImage *)tabIcon; + +-(NSImage *)tabIcon; +-(void)setTabIcon:(NSImage *)newIcon; + +@end