mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-30 18:32:03 +00:00
more preproc. fixes
This commit is contained in:
1 parent
f9f5656218
commit
46989b1ea2
3 files changed
+39
-40
No files matched your search
+33
-38
@@ -64,8 +64,6 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
|
||||
@implementation CPButtonBar : CPView
|
||||
{
|
||||
CPArray _buttons;
|
||||
@@ -103,8 +101,7 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
BOOL _resizeControlIsLeftAligned;
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Class methods
|
||||
// Class methods
|
||||
|
||||
+ (CPString)defaultThemeClass
|
||||
{
|
||||
@@ -165,8 +162,7 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
return [[CPButtonBar _sharedDummyButtonBar] actionPopupButton];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Buttons constructors
|
||||
// Buttons constructors
|
||||
|
||||
- (id)buttonWithImage:(CPImage)image alternateImage:(CPImage)alternateImage
|
||||
{
|
||||
@@ -263,8 +259,8 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
return [[_CPButtonBarAdaptativeLabel alloc] initWithTitle:aTitle];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Backward compatibility
|
||||
// -
|
||||
// Backward compatibility
|
||||
|
||||
- (id)plusButton
|
||||
{
|
||||
@@ -281,8 +277,8 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
return [self pulldownButtonWithTemplateImage:CPActionTemplateImage];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Initialization
|
||||
// -
|
||||
// Initialization
|
||||
|
||||
- (id)initWithFrame:(CGRect)aFrame
|
||||
{
|
||||
@@ -449,8 +445,8 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Properties
|
||||
// -
|
||||
// Properties
|
||||
|
||||
- (void)setStyle:(CPButtonBarStyle)style
|
||||
{
|
||||
@@ -738,8 +734,8 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
return _hasRightResizeControl;
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Layout
|
||||
// -
|
||||
// Layout
|
||||
|
||||
- (CGRect)leftResizeControlFrame
|
||||
{
|
||||
@@ -1006,8 +1002,8 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
[self setNeedsRelayout:YES];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Delegate
|
||||
// -
|
||||
// Delegate
|
||||
|
||||
- (id)delegate
|
||||
{
|
||||
@@ -1040,8 +1036,8 @@ var CPButtonBarPopulateButtonBarSelector = 1 << 1;
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark CPCoding
|
||||
// -
|
||||
// CPCoding
|
||||
|
||||
var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControlKey",
|
||||
CPButtonBarHasRightResizeControlKey = @"CPButtonBarHasRightResizeControlKey",
|
||||
@@ -1108,8 +1104,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Adaptative Popup button
|
||||
// -
|
||||
// Adaptative Popup button
|
||||
|
||||
@implementation _CPButtonBarAdaptativePopUpButton : CPPopUpButton
|
||||
{
|
||||
@@ -1205,8 +1201,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Adaptative PullDown button
|
||||
// -
|
||||
// Adaptative PullDown button
|
||||
|
||||
@implementation _CPButtonBarAdaptativePullDownButton : CPPopUpButton
|
||||
{
|
||||
@@ -1318,8 +1314,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Menu item
|
||||
// -
|
||||
// Menu item
|
||||
|
||||
@implementation _CPAdaptativeMenuItem : CPMenuItem
|
||||
{
|
||||
@@ -1338,8 +1334,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Separator
|
||||
// -
|
||||
// Separator
|
||||
|
||||
@implementation _CPButtonBarSeparator : _CPImageAndTextView
|
||||
|
||||
@@ -1409,8 +1405,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Flexible space
|
||||
// -
|
||||
// Flexible space
|
||||
|
||||
@implementation _CPButtonBarFlexibleSpace : CPView
|
||||
|
||||
@@ -1464,8 +1460,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Search field
|
||||
// -
|
||||
// Search field
|
||||
|
||||
@implementation _CPButtonBarSearchField : CPSearchField
|
||||
{
|
||||
@@ -1552,8 +1548,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Button
|
||||
// -
|
||||
// Button
|
||||
|
||||
@implementation _CPButtonBarButton : CPButton
|
||||
{
|
||||
@@ -1619,8 +1615,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Popup
|
||||
// -
|
||||
// Popup
|
||||
|
||||
@implementation _CPButtonBarPopUpButton : CPPopUpButton
|
||||
{
|
||||
@@ -1771,8 +1767,8 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Adaptative Label
|
||||
// -
|
||||
// Adaptative Label
|
||||
|
||||
@implementation _CPButtonBarAdaptativeLabel : CPTextField
|
||||
{
|
||||
@@ -1840,8 +1836,7 @@ var CPButtonBarHasLeftResizeControlKey = @"CPButtonBarHasLeftResizeControl
|
||||
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Label
|
||||
// Label
|
||||
|
||||
@implementation _CPButtonBarLabel : CPTextField
|
||||
{
|
||||
|
||||
@@ -103,6 +103,10 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay,
|
||||
|
||||
var CPScrollViewBorderSuffixes = @[@"no-border", @"line-border", @"bezel-border", @"groove-border"];
|
||||
|
||||
// _CPScrollViews will hold all created CPScrollView's in order to propagate changes
|
||||
// of scroller global style
|
||||
var _CPScrollViews;
|
||||
|
||||
/*
|
||||
The default smallest and largest magnifications. These are not arbitrary: they are the
|
||||
defaults that Apple documents for NSScrollView's minMagnification and maxMagnification, so a
|
||||
|
||||
@@ -599,8 +599,8 @@ var _CPStandardWindowViewDividerViewHeight = 1.0;
|
||||
return [_bodyView frame].origin.y;
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Hover management for buttons
|
||||
// pragma mark -
|
||||
// pragma mark Hover management for buttons
|
||||
|
||||
- (void)updateTrackingAreas
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user