mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
0f4badf295
commit
2d859c1d21
6 changed files with 43 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue