Browse Subversion Repository
Contents of /trunk/Classes/MyPopUpButton.h
Parent Directory
| Revision Log
Revision 198 -
( show annotations)
( download)
( as text)
Wed Aug 11 06:02:56 2021 UTC
(2 years, 9 months ago)
by toshinagata1964
File MIME type: text/x-chdr
File size: 1146 byte(s)
In the strip chart view, the popup of the control number was not working correctly. Fixed.
| 1 |
// |
| 2 |
// MyPopUpButton.h |
| 3 |
// Alchemusica |
| 4 |
// |
| 5 |
// Created by Toshi Nagata on Sun Jan 1 2006. |
| 6 |
/* |
| 7 |
Copyright (c) 2006-2011 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 |
/* MyPopUpButton: A compact popup button which shows an image and a small disclosure |
| 20 |
triangle */ |
| 21 |
|
| 22 |
#import <Cocoa/Cocoa.h> |
| 23 |
|
| 24 |
@interface MyPopUpButton : NSPopUpButton |
| 25 |
{ |
| 26 |
NSColor *textColor; |
| 27 |
NSColor *backgroundColor; |
| 28 |
NSMenuItem *selectedItem; /* non-nil if an item in the submenu is selected */ |
| 29 |
} |
| 30 |
+ (NSImage *)triangleImage; |
| 31 |
+ (NSImage *)doubleTriangleImage; |
| 32 |
- (void)drawRect: (NSRect)aRect; |
| 33 |
- (void)setTextColor: (NSColor *)color; |
| 34 |
- (void)setBackgroundColor:(NSColor *)color; |
| 35 |
- (NSColor *)textColor; |
| 36 |
- (NSColor *)backgroundColor; |
| 37 |
@end |
|