Debian Codegraph @

src/af/xap/cocoa/xap_CocoaToolbarWindow.h

raw
1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2
3 /* AbiSource Program Utilities
4 * Copyright (C) 2002 Hubert Figuiere
5 * Copyright (C) 2004 Francis James Franklin
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301 USA.
21 */
22
23 #ifndef XAP_COCOATOOLBARWINDOW_H
24 #define XAP_COCOATOOLBARWINDOW_H
25
26 /* XAP_CocoaToolbarWindow */
27
28 #import <Cocoa/Cocoa.h>
29
30 @class XAP_CocoaFrameController;
31
32 @interface XAP_CocoaToolbarWindow_Controller : NSWindowController
33 {
34 XAP_CocoaFrameController * m_current;
35 NSMutableArray * m_windows;
36 NSString * m_SummaryID;
37 NSRect m_bounds;
38
39 BOOL m_lock;
40 }
41 + (XAP_CocoaToolbarWindow_Controller *)sharedToolbar;
42
43 - (id)initWithWindow:(NSWindow *)window;
44 - (void)dealloc;
45
46 - (void)removeAllToolbars;
47 - (void)redisplayToolbars:(XAP_CocoaFrameController *)frame;
48 - (void)autoResize;
49
50 /* lock and unlock redraw for batch toolbar changes, at initialization
51 */
52 - (void)lock;
53 - (void)unlock;
54
55 - (void)_showAllToolbars:(XAP_CocoaFrameController *)frame;
56
57 - (float)height;
58
59 - (void)showToolbarNotification:(NSNotification *)notif;
60 - (void)hideToolbarNotification:(NSNotification *)notif;
61 @end
62
63 #endif /* ! XAP_COCOATOOLBARWINDOW_H */