2004-01-11 18:48:18 +00:00
|
|
|
/** <title>GSTitleView</title>
|
|
|
|
|
|
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Serg Stoyan <stoyan@on.com.ua>
|
2004-01-15 15:55:52 +00:00
|
|
|
Date: Mar 2003
|
2004-01-11 18:48:18 +00:00
|
|
|
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 21:16:17 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2004-01-11 18:48:18 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2007-10-29 21:16:17 +00:00
|
|
|
|
2004-01-11 18:48:18 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2004-01-11 18:48:18 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2004-01-11 18:48:18 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
2007-10-29 21:16:17 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2004-01-11 18:48:18 +00:00
|
|
|
*/
|
|
|
|
|
2004-01-15 15:55:52 +00:00
|
|
|
#ifndef _GNUstep_H_GSTitleView
|
|
|
|
#define _GNUstep_H_GSTitleView
|
|
|
|
|
2010-04-07 08:59:43 +00:00
|
|
|
#import <AppKit/NSView.h>
|
2004-02-11 16:34:17 +00:00
|
|
|
|
|
|
|
@class NSMutableDictionary;
|
2004-01-11 18:48:18 +00:00
|
|
|
@class NSButton;
|
|
|
|
@class NSImage;
|
|
|
|
|
|
|
|
@interface GSTitleView : NSView
|
|
|
|
{
|
|
|
|
NSButton *closeButton;
|
|
|
|
NSButton *miniaturizeButton;
|
|
|
|
NSMutableDictionary *textAttributes;
|
|
|
|
NSColor *titleColor;
|
|
|
|
|
|
|
|
@private
|
2004-01-15 15:55:52 +00:00
|
|
|
id _owner;
|
|
|
|
unsigned _ownedByMenu;
|
|
|
|
unsigned _isKeyWindow;
|
|
|
|
unsigned _isMainWindow;
|
|
|
|
unsigned _isActiveApplication;
|
2004-01-11 18:48:18 +00:00
|
|
|
}
|
2004-01-15 15:55:52 +00:00
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// ==== Initialization & deallocation
|
|
|
|
// ============================================================================
|
|
|
|
|
2004-01-11 18:48:18 +00:00
|
|
|
+ (float) height;
|
2004-01-15 15:55:52 +00:00
|
|
|
- (void) setOwner: (id)owner;
|
|
|
|
- (id) initWithOwner: (id)owner;
|
|
|
|
- (id) owner;
|
2004-01-11 18:48:18 +00:00
|
|
|
- (NSSize) titleSize;
|
|
|
|
|
2004-01-15 15:55:52 +00:00
|
|
|
// ============================================================================
|
|
|
|
// ==== Buttons
|
|
|
|
// ============================================================================
|
|
|
|
|
2004-01-11 18:48:18 +00:00
|
|
|
- (void) addCloseButtonWithAction: (SEL)closeAction;
|
2004-01-15 15:55:52 +00:00
|
|
|
- (NSButton *) closeButton;
|
2004-01-11 18:48:18 +00:00
|
|
|
- (void) removeCloseButton;
|
|
|
|
- (void) addMiniaturizeButtonWithAction: (SEL)miniaturizeAction;
|
2004-01-15 15:55:52 +00:00
|
|
|
- (NSButton *)miniaturizeButton;
|
2004-01-11 18:48:18 +00:00
|
|
|
- (void) removeMiniaturizeButton;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2004-01-15 15:55:52 +00:00
|
|
|
#endif
|