Add MacOSX methods to NSComboBox and constants to NSColorPanel.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25366 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-07-31 21:42:30 +00:00
parent 0f4badf295
commit 2d859c1d21
6 changed files with 43 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2007-07-31 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSColorPanel.h: Add constant for
NSCrayonModeColorPanel.
* Headers/AppKit/NSComboBox.h,
* Source/NSComboBox.m: Add MacOSX 10.3 methods.
* Headers/AppKit/NSComboBoxCell.h,
* Source/NSComboBoxCell.m: Add MacOSX 10.3 methods.
2007-07-31 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSColorSpace.h,

View file

@ -53,7 +53,8 @@ enum {
NSHSBModeColorPanel,
NSCustomPaletteModeColorPanel,
NSColorListModeColorPanel,
NSWheelModeColorPanel
NSWheelModeColorPanel,
NSCrayonModeColorPanel
};
enum {
@ -64,7 +65,8 @@ enum {
NSColorPanelCustomPaletteModeMask = 16,
NSColorPanelColorListModeMask = 32,
NSColorPanelWheelModeMask = 64,
NSColorPanelAllModesMask = 127
NSColorPanelCrayonModeMask = 128,
NSColorPanelAllModesMask = 255
};
@interface NSApplication (NSColorPanel)

View file

@ -86,6 +86,11 @@
- (void) setCompletes: (BOOL)completes;
- (BOOL) completes;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
- (BOOL) isButtonBordered;
- (void) setButtonBordered:(BOOL)flag;
#endif
@end
@interface NSObject (NSComboBoxDataSource)

View file

@ -110,6 +110,11 @@
- (void)setCompletes:(BOOL)completes;
- (BOOL)completes;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
- (BOOL) isButtonBordered;
- (void) setButtonBordered:(BOOL)flag;
#endif
@end
@interface NSObject (NSComboBoxCellDataSource)

View file

@ -436,6 +436,16 @@ static NSNotificationCenter *nc;
[_cell setCompletes: completes];
}
- (BOOL) isButtonBordered
{
return [_cell isButtonBordered];
}
- (void) setButtonBordered:(BOOL)flag
{
[_cell setButtonBordered: flag];
}
- (void) setDelegate: (id)anObject
{
[super setDelegate: anObject];

View file

@ -1447,6 +1447,16 @@ static GSComboWindow *gsWindow = nil;
_completes = completes;
}
- (BOOL) isButtonBordered
{
return [_buttonCell isBordered];
}
- (void) setButtonBordered:(BOOL)flag
{
[_buttonCell setBordered: flag];
}
#define ComboBoxHeight 21 // FIX ME: All this stuff shouldn't be hardcoded
#define ButtonWidth 17
#define ButtonHeight 17