/*
* File Name: FlatButton.h
* Bundle Name: FlatButton.framework
* Description: Push, Toggle Button and Drop-down Menu Cocoa-based Controls.
* Format: Mach-O binary, Objective-C language, application bundle-embedded framework.
* Author: ExitToShell() Collective <http://www.ExitToShell.com/>
* Copyright: © 2004-2005 by Tim Mityok dba ExitToShell() Collective, all rights reserved.
* Version: 1.1.0b6
* Released: 2005-12-02
*
* Changes: Change: Controls will now momentarily darken when "clicked" via Accessibility/UI Scripting as with manual clicks.
* Fixed: Rewrote notification code to support Flat Button views that are moved into windows dynamically.
*
* Previously: 2005-11-15 Fixed: The push button was accidentally made a child of an "AXUnknown" object breaking UI scripting.
* Fixed: Disabled controls now report their actual state via Accessibility/UI scripting.
* Fixed: Toggle and Tab-emulation buttons report a number value instead of their title in the "value" attribute.
*
* 2005-11-08 Fixed "hidden" mode to work properly in both controls (set, saving in NIB)
* Fixed crashing of Interface Builder because of new message-based activation/dimming.
* Changed the IB Inspector to more closely match Apple-designed inspectors.
* Internal code cleanup (again) and synchronization between both control variants (internally).
*
* 2005-11-04 Changed control active/inactive states to use messaging; NSMatrix-based controls will now dim properly.
*
* 2005-10-28 Button controls with an icon and no title now use the icon file name for the title for Accessibility/UI scripting (e.g. text to speech).
*
* 2005-10-26 Implemented some Accessibility/UI Scripting support to the button control only (for now).
*
* 2004-08-19 Added text alignment support to both the regular button and drop-down menu button variant. This includes IB inspector support.
*
* 2004-12-07 The Flat Button IB inspector properly clears the icon name field so that it no longer displays the name of an icon
* that was added to a Flat Button other than the currently edited control.
*
* 2004-11-12 Changed the header file to allow for proper compiling.
* Compiled without debugging info to considerably reduce the size of the framework.
*
* 2004-11-12 Cleaned up a few remaining issues from beta; Icon-only option in IB Inspector works, general icon fixes.
* Some IB Inspector options are not implemented right now, specifically "hidden" and text alignment.
*
* 2004-11-12 Minor tweaks to button behaviors e.g. clicking in a drop-down Flat Button and then in a regular Flat Button
* works as expected now (button no longer stays "on").
* Moved the drop-down's menu location to match Flat Button for Carbon (this may eventually match Apple's controls)
*
* 2004-11-08 API changed back to target/setTarget because that is apparently correct (I give up reading Cocoa headers).
* Drop-down menu available.
* Settings should be properly saved into a nib. Some options are not fully enabled in the IB Inspector (Hidden).
*
* 2004-10-25 API change! (id)target and setTarget(id) was changed to (id)delegate and setDelegate(id) to
* properly match other Cocoa controls.
* Fixed 'Icon only' to properly clear and reset the control's title when used.
*
* 2004-10-21 Supports push button, Tabs mode & toggle button (via method or Interface Builder) only at this time.
* Very basic support for Set/Get options. No drop-down menu - yet.
* Redrawing is a little sluggish with lots of controls and dynamic resizing (needs optimizing).
*
*/
#import <Cocoa/Cocoa.h>
/* Do NOT change anything below or you may break the framework and/or crash! */
/*
*
* Flat Button control
*
* Implement these methods in your app/object to manipulate
* an existing Flat Button control.
*
*/
@interface FlatButtonControl : NSControl {
/* Use the public methods to get/set instance variables */
}
/* Standard Control Public Methods */
- (BOOL)isEnabled;
- (void)setEnabled:(BOOL)flag;
- (SEL)action;
- (void)setAction:(SEL)aSelector;
/* When using Tabs emulation mode, to turn "off" a Flat Button use [control setIntValue:0] */
- (int)intValue;
- (void)setIntValue:(int)anInt;
/* Text positioning using standard NSTextAlignment constants */
- (NSTextAlignment)alignment;
- (void)setAlignment:(NSTextAlignment)mode;
- (int)tag;
- (void)setTag:(int)anInt;
- (BOOL)sendAction;
- (id)target;
- (void)setTarget:(id)anObject;
- (NSString *)stringValue;
- (void)setStringValue:(NSString *)value;
- (BOOL)isContinuous;
- (void)setContinuous:(BOOL)flag;
/* Flat Button-specfic Public Methods */
/* Turn on/off Toggle Emulation mode from code */
- (BOOL)getToggleMode;
- (void)setToggleMode:(BOOL)value;
/* Turn on/off Tabs Emulation mode from code */
- (BOOL)getTabMode;
- (void)setTabMode:(BOOL)value;
/* Turn on/off a "Metal" color scheme from code */
- (BOOL)getMetalMode;
- (void)setMetalMode:(BOOL)value;
- (NSString *)getIconFileString;
- (void)setIconFileString:(NSString *)value;
- (void)setBlankIconFileString;
@end
/*
*
* Flat Button Drop down/Pop-up control
*
* Implement these methods in your app/object to manipulate
* an existing Flat Button pop-up control.
*
* You must define a menu in a nib or in code, see above.
*
*/
@interface FlatButtonPopupControl : NSControl {
/* Use the public methods to get/set instance variables */
}
/* Standard Control Public Methods */
- (BOOL)isEnabled;
- (void)setEnabled:(BOOL)flag;
- (SEL)action;
- (void)setAction:(SEL)aSelector;
/* Under Tabs emulation mode to turn "off" a button use [control setIntValue:0] */
- (int)intValue;
- (void)setIntValue:(int)anInt;
- (int)tag;
- (void)setTag:(int)anInt;
- (BOOL)sendAction;
- (id)target;
- (void)setTarget:(id)anObject;
- (NSString *)stringValue;
- (void)setStringValue:(NSString *)value;
- (BOOL)isContinuous;
- (void)setContinuous:(BOOL)flag;
/* Flat Button Pop-up-specfic Public Methods */
/* Turn on/off Toggle Emulation mode from code */
- (BOOL)getToggleMode;
- (void)setToggleMode:(BOOL)value;
/* Turn on/off Tabs Emulation mode from code */
- (BOOL)getTabMode;
- (void)setTabMode:(BOOL)value;
/* Turn on/off a "Metal" color scheme from code */
- (BOOL)getMetalMode;
- (void)setMetalMode:(BOOL)value;
- (NSString *)getIconFileString;
- (void)setIconFileString:(NSString *)value;
- (void)setBlankIconFileString; // clears the Icon file name field
@end
/*
*
* Drop-down menu handling
*
* Implement these methods in your app/object to provide
* an existing menu/view to the Flat Button pop-up control.
*
* You can define a menu in a nib or in code, it won't matter.
*
*/
@interface NSObject (FlatButtonPopupControlDelegate)
- (NSMenu *)menuForContextButton:(FlatButtonPopupControl *)contextButton;
- (NSView *)targetViewForContextButton:(FlatButtonPopupControl *)contextButton;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Pixen mac下的动画编辑工具 (497个子文件)
A 1B
COPYING 1KB
task_style.css 3KB
index.css 2KB
accessTiger.css 1KB
genlist_style.css 1KB
Current 1B
Current 1B
FlatButton 142KB
FlatButton 66KB
FlatButton 27B
orngbullet.gif 60B
FlatButton.h 7KB
FlatButton.h 7KB
RSS.h 3KB
SUUpdater.h 2KB
NSString+extras.h 2KB
SUAppcastItem.h 1KB
SUStatusController.h 996B
SUUpdateAlert.h 888B
SUConstants.h 587B
SUUtilities.h 534B
SUUnarchiver.h 529B
Sparkle.h 485B
SUAppcast.h 479B
NSFileManager+Verification.h 412B
SUAutomaticUpdateAlert.h 402B
NSFileManager+Authentication.h 287B
NSApplication+AppCopies.h 241B
Headers 24B
Headers 24B
Headers 24B
PixenHelp.helpindex 61KB
discoverpixen.html 8KB
whatsnew.html 6KB
xall.html 3KB
eyedroppertool.html 3KB
workingwithlayers.html 3KB
manualmode.html 3KB
workingwithbackgrounds.html 3KB
workingwithpreview.html 3KB
scale.html 3KB
workingwithpalettes.html 3KB
rectangletool.html 2KB
ellipsetool.html 2KB
makepalette.html 2KB
changezoomfactor.html 2KB
resize.html 2KB
workingwithselection.html 2KB
changingtoolproperties.html 2KB
infopanel.html 2KB
previewsizetoactual.html 2KB
alternatebackgrounds.html 2KB
linetool.html 2KB
setbackground.html 2KB
sharepalette.html 2KB
penciltool.html 2KB
assignrighttool.html 2KB
promoteselection.html 2KB
previewbackground.html 2KB
multipleselection.html 2KB
erasertool.html 2KB
settoolpattern.html 2KB
gettingstarted.html 2KB
cleartoolpattern.html 2KB
usesavedpattern.html 2KB
savebackgroundtemplate.html 2KB
sharepattern.html 2KB
magicwandtool.html 2KB
lassotool.html 2KB
Credits.html 2KB
addlayer.html 2KB
importbackgroundtemplate.html 2KB
mergelayer.html 2KB
setdefaultbackground.html 2KB
sizepreviewwindow.html 2KB
pixelsappear.html 2KB
infopanelindexempty.html 2KB
makeanimation.html 2KB
rotatelayer.html 2KB
savepattern.html 2KB
fliplayer.html 2KB
rectselecttool.html 2KB
deletepattern.html 2KB
sharebackgroundtemplate.html 2KB
grid.html 2KB
importpattern.html 2KB
tile.html 2KB
deletebackgroundtemplate.html 2KB
deletelayer.html 2KB
PixenHelp.html 2KB
filltool.html 2KB
alignment.html 2KB
zoomtool.html 1KB
Credits.html 1KB
flip.html 1KB
rotate.html 1KB
genlist.html 727B
Pixen.icns 49KB
PixenDoc.icns 49KB
共 497 条
- 1
- 2
- 3
- 4
- 5
资源评论
- shy8182012-09-1610.7 有点问题
- TooT2012-06-10好东西,只是没有调色板
- kingwow7232013-06-25不好用 在10.8上也有问题
- bswbiao2012-03-19mac os 10.7上有点问题,看不见主窗口,不知道为什么
cjopengler
- 粉丝: 42
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 历届(第1-21届)希望杯数学竞赛初一试题及答案(最新整理).doc全国数学邀请赛(264页资料)
- 水滴.psd
- TokenPocket_V2.1.2_release.apk
- Apache-druid-kafka-rce.yaml
- 基于C#的ASP.NET数据库原理及应用技术课程指导平台的开发
- 基于ROS的智能车轨迹跟踪算法的仿真与设计源码运用PID跟踪算法.zip.zip
- Bug Bounty Tip - i春秋Self-XSS变废为宝的奇思妙想
- 1991-2015年全国初中化学竞赛复赛试题汇编(212页)(24年竞赛复赛真题).docx天原杯
- Apache Flink 未授权访问+远程代码执行.pdf
- hadoop-基于hive的聊天数据分析报表可视化案例数据源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功