-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from gnustep/NSTableRowView_branch
NSTableRowView class implementation
- Loading branch information
Showing
8 changed files
with
916 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
2024-06-07 Gregory John Casamento <[email protected]> | ||
|
||
* Headers/Additions/GNUstepGUI/GSTheme.h: Add new methods | ||
for rendering view-based outline/table views. | ||
* Headers/AppKit/NSTableRowView.h: Add implementation | ||
* Headers/AppKit/NSTableView.h: Add references to | ||
NSTableRowView.h | ||
* Source/GSThemeDrawing.m: Factor out NSTableView and | ||
NSOutlineView rendering so that GSThemeDrawing methods | ||
are as minimal as possible. | ||
* Source/NSOutlineView.m: Refactor to use new methods | ||
to generate NSTableRowView when it is view-based. | ||
* Source/NSTableRowView.m: Add implementation of | ||
NSTableRowView implementation. | ||
* Source/NSTableView.m: Update to use NSTableRowView | ||
when it is view-based. | ||
|
||
2024-06-05 Richard Frith-Macdonald <[email protected]> | ||
|
||
* ChangeLog: Update for new release | ||
|
@@ -20,7 +37,7 @@ | |
|
||
2024-05-26 Fred Kiefer <[email protected]> | ||
|
||
* ChangeLog: Update for new release | ||
* ChangeLog: Update for new release | ||
* ANNOUNCE: | ||
* NEWS: | ||
* Documentation/news.texi: Update of release notes for 0.31.0. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
/* Definition of class NSTableRowView | ||
Copyright (C) 2022 Free Software Foundation, Inc. | ||
By: Gregory John Casamento <[email protected]> | ||
Date: 03-09-2022 | ||
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, | ||
|
@@ -25,7 +25,8 @@ | |
#ifndef _NSTableRowView_h_GNUSTEP_GUI_INCLUDE | ||
#define _NSTableRowView_h_GNUSTEP_GUI_INCLUDE | ||
|
||
#import <AppKit/NSView.h> | ||
#import <AppKit/NSTableView.h> | ||
#import <AppKit/NSCell.h> | ||
|
||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST) | ||
|
||
|
@@ -34,6 +35,78 @@ extern "C" { | |
#endif | ||
|
||
@interface NSTableRowView : NSView | ||
{ | ||
// Display style... | ||
BOOL _emphasized; | ||
NSBackgroundStyle _interiorBackgroundStyle; | ||
BOOL _floating; | ||
|
||
// Row selection... | ||
BOOL _selected; | ||
NSTableViewSelectionHighlightStyle _selectionHighlightStyle; | ||
|
||
// Drag and Drop... | ||
NSTableViewDraggingDestinationFeedbackStyle _draggingDestinationFeedbackStyle; | ||
CGFloat _indentationForDropOperation; | ||
BOOL _targetForDropOperation; | ||
|
||
// Row grouping... | ||
BOOL _groupRowStyle; | ||
NSInteger _numberOfColumns; | ||
|
||
// Overriding row view display characteristics... | ||
NSColor *_backgroundColor; | ||
|
||
BOOL _nextRowSelected; | ||
BOOL _previousRowSelected; | ||
} | ||
|
||
- (BOOL) isEmphasized; | ||
- (void) setEmphasized: (BOOL)flag; | ||
|
||
- (NSBackgroundStyle) interiorBackgroundStyle; | ||
|
||
- (BOOL) isFloating; | ||
- (void) setFloating: (BOOL)flag; | ||
|
||
- (BOOL) isSelected; | ||
- (void) setSelected: (BOOL)flag; | ||
|
||
- (NSTableViewSelectionHighlightStyle) selectionHighlightStyle; | ||
- (void) setSelectionHighlightStyle: (NSTableViewSelectionHighlightStyle) selectionHighlightStyle; | ||
|
||
- (NSTableViewDraggingDestinationFeedbackStyle) draggingDestinationFeedbackStyle; | ||
- (void) setTableViewDraggingDestinationFeedbackStyle: (NSTableViewDraggingDestinationFeedbackStyle) draggingDestinationFeedbackStyle; | ||
|
||
- (CGFloat) indentationForDropOperation; | ||
- (void) setIndentationForDropOperation: (CGFloat)indentationForDropOperation; | ||
|
||
- (BOOL) targetForDropOperation; | ||
- (void) setTargetForDropOperation: (BOOL)flag; | ||
|
||
- (BOOL) groupRowStyle; | ||
- (void) setGroupRowStyle: (BOOL)flag; | ||
|
||
- (NSInteger) numberOfColumns; | ||
|
||
- (NSColor *) backgroundColor; | ||
- (void) setBackgroundColor: (NSColor *)color; | ||
|
||
- (void) drawBackgroundInRect: (NSRect)dirtyRect; | ||
|
||
- (void) drawDraggingDestinationFeedbackInRect: (NSRect)dirtyRect; | ||
|
||
- (void) drawSelectionInRect: (NSRect)dirtyRect; | ||
|
||
- (void) drawSeparatorInRect: (NSRect)dirtyRect; | ||
|
||
- (id) viewAtColumn: (NSInteger)column; | ||
|
||
- (BOOL) isNextRowSelected; | ||
- (void) setNextRowSelected: (BOOL)flag; | ||
|
||
- (BOOL) isPreviousRowSelected; | ||
- (void) setPreviousRowSelected: (BOOL)flag; | ||
|
||
@end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.