2011-01-12 23:21:17 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2011 Sven Weidauer <sven.weidauer@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2011-01-31 22:12:00 +03:00
|
|
|
#import "cocoa/ScrollableView.h"
|
2011-02-17 15:12:51 +03:00
|
|
|
|
|
|
|
@class LocalHistoryController;
|
2011-01-12 23:21:17 +03:00
|
|
|
|
2011-01-19 23:19:43 +03:00
|
|
|
@interface BrowserView : ScrollableView {
|
2011-01-12 23:21:17 +03:00
|
|
|
struct browser_window *browser;
|
|
|
|
|
|
|
|
NSPoint caretPoint;
|
|
|
|
CGFloat caretHeight;
|
|
|
|
BOOL caretVisible;
|
|
|
|
BOOL hasCaret;
|
|
|
|
NSTimer *caretTimer;
|
2011-01-14 19:54:39 +03:00
|
|
|
|
|
|
|
BOOL isDragging;
|
|
|
|
NSPoint dragStart;
|
2011-01-19 23:19:43 +03:00
|
|
|
|
2011-01-24 18:01:34 +03:00
|
|
|
BOOL historyVisible;
|
2011-02-17 15:12:51 +03:00
|
|
|
LocalHistoryController *history;
|
2011-01-12 23:21:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@property (readwrite, assign, nonatomic) struct browser_window *browser;
|
|
|
|
@property (readwrite, retain, nonatomic) NSTimer *caretTimer;
|
2011-01-25 12:53:39 +03:00
|
|
|
@property (readwrite, assign, nonatomic, getter=isHistoryVisible) BOOL historyVisible;
|
2011-01-12 23:21:17 +03:00
|
|
|
|
|
|
|
- (void) removeCaret;
|
|
|
|
- (void) addCaretAt: (NSPoint) point height: (CGFloat) height;
|
|
|
|
|
2011-01-28 17:08:42 +03:00
|
|
|
- (void) reformat;
|
2011-01-24 18:01:34 +03:00
|
|
|
|
2011-01-12 23:21:17 +03:00
|
|
|
@end
|