2010-07-14 09:47:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scintilla source code edit control
|
2021-02-21 04:53:09 +00:00
|
|
|
* @file InfoBar.h - Implements special info bar with zoom info, caret position etc. to be used with
|
2010-07-14 09:47:17 +00:00
|
|
|
* ScintillaView.
|
|
|
|
*
|
|
|
|
* Mike Lischke <mlischke@sun.com>
|
|
|
|
*
|
|
|
|
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
|
|
* This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "InfoBarCommunicator.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extended text cell for vertically aligned text.
|
|
|
|
*/
|
2019-05-04 18:14:48 +00:00
|
|
|
@interface VerticallyCenteredTextFieldCell : NSTextFieldCell {
|
2010-07-14 09:47:17 +00:00
|
|
|
BOOL mIsEditingOrSelecting;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2019-05-04 18:14:48 +00:00
|
|
|
@interface InfoBar : NSView <InfoBarCommunicator> {
|
2010-07-14 09:47:17 +00:00
|
|
|
@private
|
2019-05-04 18:14:48 +00:00
|
|
|
NSImage *mBackground;
|
|
|
|
IBDisplay mDisplayMask;
|
2015-06-07 21:19:26 +00:00
|
|
|
|
2019-05-04 18:14:48 +00:00
|
|
|
float mScaleFactor;
|
|
|
|
NSPopUpButton *mZoomPopup;
|
2015-06-07 21:19:26 +00:00
|
|
|
|
2019-05-04 18:14:48 +00:00
|
|
|
int mCurrentCaretX;
|
|
|
|
int mCurrentCaretY;
|
|
|
|
NSTextField *mCaretPositionLabel;
|
|
|
|
NSTextField *mStatusTextLabel;
|
2015-06-07 21:19:26 +00:00
|
|
|
|
2019-05-04 18:14:48 +00:00
|
|
|
id <InfoBarCommunicator> mCallback;
|
2010-07-14 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
2019-05-04 18:14:48 +00:00
|
|
|
- (void) notify: (NotificationType) type message: (NSString *) message location: (NSPoint) location
|
|
|
|
value: (float) value;
|
2010-07-14 09:47:17 +00:00
|
|
|
- (void) setCallback: (id <InfoBarCommunicator>) callback;
|
|
|
|
|
|
|
|
- (void) createItems;
|
2013-08-28 00:44:27 +00:00
|
|
|
- (void) positionSubViews;
|
2010-07-14 09:47:17 +00:00
|
|
|
- (void) setDisplay: (IBDisplay) display;
|
|
|
|
- (void) zoomItemAction: (id) sender;
|
|
|
|
- (void) setScaleFactor: (float) newScaleFactor adjustPopup: (BOOL) flag;
|
|
|
|
- (void) setCaretPosition: (NSPoint) position;
|
|
|
|
- (void) sizeToFit;
|
|
|
|
|
|
|
|
@end
|