Revision 2, 0.8 KB
(checked in by jon, 16 years ago)
|
Initial commit of skeletal project.
|
Line | |
---|
1 | // |
---|
2 | // AIDockingWindow.h |
---|
3 | // Adium |
---|
4 | // |
---|
5 | // Created by Adam Iser on Sun May 02 2004. |
---|
6 | // Copyright (c) 2004-2005 The Adium Team. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | /*! |
---|
10 | * @class AIDockingWindow |
---|
11 | * @brief An NSWindow subclass which docks to screen edges |
---|
12 | * |
---|
13 | * An NSWindow subclass which docks to screen edges. It also posts AIWindowToolbarDidToggleVisibility to the default notification center |
---|
14 | * when its toolbar visibility is toggled with an object of the window. |
---|
15 | * |
---|
16 | * Docking is temporarily disabled if the shift key is held. |
---|
17 | */ |
---|
18 | |
---|
19 | #define AIWindowToolbarDidToggleVisibility @"AIWindowToolbarDidToggleVisibility" |
---|
20 | |
---|
21 | #import <Cocoa/Cocoa.h> |
---|
22 | |
---|
23 | @interface AIDockingWindow : NSWindow { |
---|
24 | NSRect oldWindowFrame; |
---|
25 | unsigned int resisted_XMotion; |
---|
26 | unsigned int resisted_YMotion; |
---|
27 | BOOL alreadyMoving; |
---|
28 | |
---|
29 | BOOL dockingEnabled; |
---|
30 | } |
---|
31 | |
---|
32 | - (void)setDockingEnabled:(BOOL)inEnabled; |
---|
33 | |
---|
34 | @end |
---|