Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Classes/ContextMenuTextFieldCell.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (show annotations) (download) (as text)
Sun Oct 22 14:54:36 2017 UTC (6 years, 7 months ago) by toshinagata1964
File MIME type: text/x-chdr
File size: 1212 byte(s)
Many problems in scaling selected time are fixed. 'Show editing range' is implemented.
1 //
2 // ContextMenuTextFieldCell.h
3 // Alchemusica
4 //
5 // Created by Toshi Nagata on 2017/09/24.
6 /*
7 Copyright (c) 2008-2017 Toshi Nagata. All rights reserved.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation version 2 of the License.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 */
18
19 #import <Cocoa/Cocoa.h>
20
21
22 @interface ContextMenuTextFieldCell : NSTextFieldCell {
23 // Implements a text field cell for which the content can be input via a context menu
24 NSPoint lastMenuPoint;
25 BOOL drawsUnderline; // Draw underline inside the cell
26 }
27 - (IBAction)contextMenuSelected:(id)sender;
28 - (void)setDrawsUnderline:(BOOL)underline;
29 - (BOOL)drawsUnderline;
30 @end
31
32 @interface NSObject(ContextMenuTextFieldCell)
33 - (id)willUseMenu:(id)menu ofCell:(ContextMenuTextFieldCell *)cell inRow:(int)row;
34 - (NSString *)stringValueForMenuItem:(id)item ofCell:(ContextMenuTextFieldCell *)cell inRow:(int)row;
35 @end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26