mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add scrubber classes
This commit is contained in:
parent
406c1d314b
commit
9833ef333a
10 changed files with 318 additions and 3 deletions
|
@ -118,6 +118,9 @@
|
|||
#import <AppKit/NSScreen.h>
|
||||
#import <AppKit/NSScroller.h>
|
||||
#import <AppKit/NSScrollView.h>
|
||||
#import <AppKit/NSScrubber.h>
|
||||
#import <AppKit/NSScrubberItemView.h>
|
||||
#import <AppKit/NSScrubberLayout.h>
|
||||
#import <AppKit/NSSelection.h>
|
||||
#import <AppKit/NSSharingService.h>
|
||||
#import <AppKit/NSSlider.h>
|
||||
|
|
70
Headers/AppKit/AppKitErrors.h
Normal file
70
Headers/AppKit/AppKitErrors.h
Normal file
|
@ -0,0 +1,70 @@
|
|||
/* Definition of the AppKitErrors header
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Tues Apr 7 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, see <http://www.gnu.org/licenses/> or write to the
|
||||
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _AppKitErrors_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _AppKitErrors_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// All of the AppKit errors in the NSCocoaErrorDomain.
|
||||
|
||||
enum
|
||||
{
|
||||
NSFontAssetDownloadError = 66304,
|
||||
NSFontErrorMinimum = 66304,
|
||||
NSFontErrorMaximum = 66335,
|
||||
NSServiceApplicationNotFoundError = 66560,
|
||||
NSServiceApplicationLaunchFailedError = 66561,
|
||||
NSServiceRequestTimedOutError = 66562,
|
||||
NSServiceInvalidPasteboardDataError = 66563,
|
||||
NSServiceMalformedServiceDictionaryError = 66564,
|
||||
NSServiceMiscellaneousError = 66800,
|
||||
NSServiceErrorMinimum = 66560,
|
||||
NSServiceErrorMaximum = 66817,
|
||||
NSSharingServiceNotConfiguredError = 67072,
|
||||
NSSharingServiceErrorMinimum = 67072,
|
||||
NSSharingServiceErrorMaximum = 67327,
|
||||
NSTextReadInapplicableDocumentTypeError = 65806,
|
||||
NSTextWriteInapplicableDocumentTypeError = 66062,
|
||||
NSTextReadWriteErrorMinimum = 65792,
|
||||
NSTextReadWriteErrorMaximum = 66303,
|
||||
NSWorkspaceAuthorizationInvalidError = 67328,
|
||||
NSWorkspaceErrorMinimum = 67328,
|
||||
NSWorkspaceErrorMaximum = 67455,
|
||||
};
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GS_API_MACOSX */
|
||||
|
||||
#endif /* _AppKitErrors_h_GNUSTEP_GUI_INCLUDE */
|
47
Headers/AppKit/NSScrubber.h
Normal file
47
Headers/AppKit/NSScrubber.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
/* Definition of class NSScrubber
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Wed Apr 8 09:16:14 EDT 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#ifndef _NSScrubber_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSScrubber_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <AppKit/NSView.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_12, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@interface NSScrubber : NSView
|
||||
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GS_API_MACOSX */
|
||||
|
||||
#endif /* _NSScrubber_h_GNUSTEP_GUI_INCLUDE */
|
||||
|
51
Headers/AppKit/NSScrubberItemView.h
Normal file
51
Headers/AppKit/NSScrubberItemView.h
Normal file
|
@ -0,0 +1,51 @@
|
|||
/* Definition of class NSScrubberItemView
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Wed Apr 8 09:17:27 EDT 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#ifndef _NSScrubberItemView_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSScrubberItemView_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <AppKit/NSView.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_12, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@interface NSScrubberArrangedView : NSView
|
||||
|
||||
@end
|
||||
|
||||
@interface NSScrubberItemView : NSScrubberArrangedView
|
||||
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GS_API_MACOSX */
|
||||
|
||||
#endif /* _NSScrubberItemView_h_GNUSTEP_GUI_INCLUDE */
|
||||
|
47
Headers/AppKit/NSScrubberLayout.h
Normal file
47
Headers/AppKit/NSScrubberLayout.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
/* Definition of class NSScrubberLayout
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Wed Apr 8 09:20:18 EDT 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#ifndef _NSScrubberLayout_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSScrubberLayout_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_12, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@interface NSScrubberLayout : NSObject
|
||||
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GS_API_MACOSX */
|
||||
|
||||
#endif /* _NSScrubberLayout_h_GNUSTEP_GUI_INCLUDE */
|
||||
|
3
MISSING
3
MISSING
|
@ -31,9 +31,6 @@ MISSING HEADERS
|
|||
> NSPathControlItem.h
|
||||
> NSPersistentDocument.h
|
||||
> NSRuleEditor.h
|
||||
> NSScrubber.h
|
||||
> NSScrubberItemView.h
|
||||
> NSScrubberLayout.h
|
||||
> NSSliderAccessory.h
|
||||
> NSSplitViewController.h
|
||||
> NSSplitViewItem.h
|
||||
|
|
|
@ -211,6 +211,9 @@ NSSegmentedControl.m \
|
|||
NSScreen.m \
|
||||
NSScroller.m \
|
||||
NSScrollView.m \
|
||||
NSScrubber.m \
|
||||
NSScrubberItemView.m \
|
||||
NSScrubberLayout.m \
|
||||
NSSecureTextField.m \
|
||||
NSSelection.m \
|
||||
NSShadow.m \
|
||||
|
@ -473,6 +476,9 @@ NSSavePanel.h \
|
|||
NSScreen.h \
|
||||
NSScrollView.h \
|
||||
NSScroller.h \
|
||||
NSScrubber.h \
|
||||
NSScrubberItemView.h \
|
||||
NSScrubberLayout.h \
|
||||
NSSearchField.h \
|
||||
NSSearchFieldCell.h \
|
||||
NSSecureTextField.h \
|
||||
|
|
30
Source/NSScrubber.m
Normal file
30
Source/NSScrubber.m
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* Implementation of class NSScrubber
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Wed Apr 8 09:16:14 EDT 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#import <AppKit/NSScrubber.h>
|
||||
|
||||
@implementation NSScrubber
|
||||
|
||||
@end
|
||||
|
34
Source/NSScrubberItemView.m
Normal file
34
Source/NSScrubberItemView.m
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* Implementation of class NSScrubberItemView
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Wed Apr 8 09:17:27 EDT 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#import <AppKit/NSScrubberItemView.h>
|
||||
|
||||
@implementation NSScrubberArrangedView
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSScrubberItemView
|
||||
|
||||
@end
|
||||
|
30
Source/NSScrubberLayout.m
Normal file
30
Source/NSScrubberLayout.m
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* Implementation of class NSScrubberLayout
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: Wed Apr 8 09:20:18 EDT 2020
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110 USA.
|
||||
*/
|
||||
|
||||
#import <AppKit/NSScrubberLayout.h>
|
||||
|
||||
@implementation NSScrubberLayout
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in a new issue