mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add new classes
This commit is contained in:
parent
3acf49a33d
commit
4800a950ef
5 changed files with 10 additions and 94 deletions
|
@ -243,6 +243,7 @@
|
|||
#import <AppKit/NSSwitch.h>
|
||||
#import <AppKit/NSSplitViewController.h>
|
||||
#import <AppKit/NSSplitViewItem.h>
|
||||
#import <AppKit/NSTableCellView.h>
|
||||
#import <AppKit/NSTableColumn.h>
|
||||
#import <AppKit/NSTableHeaderCell.h>
|
||||
#import <AppKit/NSTableHeaderView.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Copyright (C) 2022 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: 03-09-2022
|
||||
Date: 12-12-2022
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
|
@ -25,47 +25,18 @@
|
|||
#ifndef _NSTableCellView_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSTableCellView_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <AppKit/NSTableView.h>
|
||||
#import <AppKit/NSCell.h>
|
||||
#import <AppKit/NSNibDeclarations.h>
|
||||
#import <AppKit/NSView.h>
|
||||
#import <AppKit/AppKitDefines.h>
|
||||
|
||||
@class NSImageView;
|
||||
@class NSTextField;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
APPKIT_EXPORT_CLASS
|
||||
@interface NSTableCellView : NSView
|
||||
{
|
||||
id _objectValue;
|
||||
|
||||
IBOutlet NSImageView *_imageView;
|
||||
IBOutlet NSTextField *_textField;
|
||||
|
||||
NSBackgroundStyle _backgroundStyle;
|
||||
NSTableViewRowSizeStyle _rowSizeStyle;
|
||||
NSArray *_draggingImageComponents;
|
||||
}
|
||||
|
||||
- (void) setObjectValue: (id)value;
|
||||
- (id) objectValue;
|
||||
|
||||
- (void) setImageView: (NSImageView *)imageView;
|
||||
- (NSImageView *) imageView;
|
||||
|
||||
- (void) setTextField: (NSTextField *)textField;
|
||||
- (NSTextField *) textField;
|
||||
|
||||
- (void) setBackgroundStyle: (NSBackgroundStyle)style;
|
||||
- (NSBackgroundStyle) backgroundStyle;
|
||||
|
||||
- (void) setRowSizeStyle: (NSTableViewRowSizeStyle)style;
|
||||
- (NSTableViewRowSizeStyle) rowSizeStyle;
|
||||
|
||||
- (NSArray *) draggingImageComponents;
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#import <AppKit/NSView.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
|
|
@ -261,12 +261,12 @@ NSStatusItem.m \
|
|||
NSTabView.m \
|
||||
NSTabViewController.m \
|
||||
NSTabViewItem.m \
|
||||
NSTableCellView.m \
|
||||
NSTableColumn.m \
|
||||
NSTableHeaderView.m \
|
||||
NSTableHeaderCell.m \
|
||||
NSTableView.m \
|
||||
NSTableViewRowAction.m \
|
||||
NSTableCellView.m \
|
||||
NSTableRowView.m \
|
||||
NSText.m \
|
||||
NSTextAlternatives.m \
|
||||
|
@ -583,12 +583,12 @@ NSSwitch.h \
|
|||
NSTabView.h \
|
||||
NSTabViewController.h \
|
||||
NSTabViewItem.h \
|
||||
NSTableCellView.h \
|
||||
NSTableColumn.h \
|
||||
NSTableHeaderCell.h \
|
||||
NSTableHeaderView.h \
|
||||
NSTableView.h \
|
||||
NSTableViewRowAction.h \
|
||||
NSTableCellView.h \
|
||||
NSTableRowView.h \
|
||||
NSText.h \
|
||||
NSTextAlternatives.h \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Copyright (C) 2022 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory John Casamento
|
||||
Date: 03-09-2022
|
||||
Date: 12-12-2022
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
|
@ -26,61 +26,5 @@
|
|||
|
||||
@implementation NSTableCellView
|
||||
|
||||
- (void) setObjectValue: (id)value
|
||||
{
|
||||
ASSIGN(_objectValue, value);
|
||||
}
|
||||
|
||||
- (id) objectValue
|
||||
{
|
||||
return _objectValue;
|
||||
}
|
||||
|
||||
- (void) setImageView: (NSImageView *)imageView
|
||||
{
|
||||
ASSIGN(_imageView, imageView);
|
||||
}
|
||||
|
||||
- (NSImageView *) imageView
|
||||
{
|
||||
return _imageView;
|
||||
}
|
||||
|
||||
- (void) setTextField: (NSTextField *)textField
|
||||
{
|
||||
ASSIGN(_textField, textField);
|
||||
}
|
||||
|
||||
- (NSTextField *) textField
|
||||
{
|
||||
return _textField;
|
||||
}
|
||||
|
||||
- (void) setBackgroundStyle: (NSBackgroundStyle)style
|
||||
{
|
||||
_backgroundStyle = style;
|
||||
}
|
||||
|
||||
- (NSBackgroundStyle) backgroundStyle
|
||||
{
|
||||
return _backgroundStyle;
|
||||
}
|
||||
|
||||
- (void) setRowSizeStyle: (NSTableViewRowSizeStyle)style
|
||||
{
|
||||
_rowSizeStyle = style;
|
||||
}
|
||||
|
||||
- (NSTableViewRowSizeStyle) rowSizeStyle
|
||||
{
|
||||
return _rowSizeStyle;
|
||||
}
|
||||
|
||||
- (NSArray *) draggingImageComponents
|
||||
{
|
||||
return _draggingImageComponents;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue