Commit graph

9262 commits

Author SHA1 Message Date
Gregory John Casamento
00ac1adf7f Implement collapse section 2023-01-30 10:48:02 -05:00
Gregory John Casamento
83e8cf6a15 Add non-keyed decoding 2023-01-30 10:48:02 -05:00
Gregory John Casamento
fdf39cf110 Add non-keyed encoding 2023-01-30 10:48:02 -05:00
Gregory John Casamento
64a5d19b19 Update encoding/decoding 2023-01-30 10:48:02 -05:00
Gregory John Casamento
d6b78ff06e Change encode/init to use encode/decode functions to handle integers 2023-01-30 10:48:02 -05:00
Gregory John Casamento
f7730c97d3 Encode all information for the grid layout 2023-01-30 10:48:02 -05:00
Gregory John Casamento
dade8c4068 Decode all information for the grid layout 2023-01-30 10:48:02 -05:00
Gregory John Casamento
35e0e62144 Add implementation of setters and getters in NSCollectionViewGridLayout 2023-01-30 10:48:02 -05:00
Gregory John Casamento
7d46f9f69a Update to the correct size when laying out the collection view. 2023-01-30 10:48:02 -05:00
Gregory John Casamento
9c0f4ed731 Update visibleItems when arranging items 2023-01-30 10:48:02 -05:00
Gregory John Casamento
04b0a15526 Implement makeItemWithIdentifier:atIndexPath: 2023-01-30 10:48:02 -05:00
Gregory John Casamento
8948aecae5 Update implementation to calculate position of items for the flow layout. implementation of copyWithZone. Implementation of initWithCoder for flow layout 2023-01-30 10:48:02 -05:00
Gregory John Casamento
7fe30c6db2 Update flow layout. Fix decoding issue with Xib interpretation for NSCollectionViewLayout. 2023-01-30 10:48:02 -05:00
Gregory John Casamento
fc56a78840 Add implementation of new methods 2023-01-30 10:48:02 -05:00
Gregory John Casamento
f8e99166e2 Add documentation to methods in NSCollectionView and remove initWithCoder call from NSCollectionViewLayout 2023-01-30 10:48:02 -05:00
Gregory John Casamento
b65c5bca9d Add implementation of reloadSections and reloadItemsAtIndexPaths 2023-01-30 10:48:02 -05:00
Gregory John Casamento
b7eb68b67c Fix warnings and errors, apply attributes from NSCollectionViewLayoutAttributes to view 2023-01-30 10:48:02 -05:00
Gregory John Casamento
68f1444de3 Add all overriden methods in flow layout. In NSCollectionView set collectionView in layout. Minor code cleanup. 2023-01-30 10:48:02 -05:00
Gregory John Casamento
42a5f34095 Add code to correctly read information for NSCollectiViewLayout from xib file 2023-01-30 10:48:02 -05:00
Gregory John Casamento
a90ddfc9c5 Add changes for Xib reading and some minor cleanup for NSCollectionView 2023-01-30 10:48:02 -05:00
Gregory John Casamento
8572458a5d Add methods and actions for layout classes as well as the abstract classes for NSCollectionViewLayout.
Declarations added to collectionview layout header.

Clean compile for NSCollectionViewLayout abstract class

Add header for NSCollectionViewFlowLayout.h

Add skeleton implementation of NSCollectionViewFlowLayout

Add implementation for simple setter/getter methods.

Correct compilation error with non-clang compilers

Fix compilation issues

Add getter/setter for collectionViewLayout

Skeleton of NSCollectionViewTransitionLayout implementation

Add encoding/decoding for collectionViewLayout key

Make NSCollectionViewGridLayout default if the NSCollectionViewLayoutKey is not set

Add protocols for DataSource and Prefetching for NSCollectionView

Add 10.11 methods to delegate declaration

remove templating from NSCollectionViewDelegate that gcc can't handle.

New delegate methods for NSCollectionViewDelegate to support NSSets of NSIndexPaths and multiple selection.

Reset .travis.yml to the proper version and modify NSCollectionView.h to use forward declarations for both NSPasteboard and NSPasteboardWriting so that we don't explicitly import.

Add declarations for missing methods from 10.11 version of NSCollectionView

Add new methods for 10.11 for moving, deleting and collapsing sections.

Add new methods from 10.11

Add the remaining missing methods as well as delcarations for blocks needed for batch handler and completion handler.

Add skeleton implementations for all new methods

Changes to add new methods to collection view for delegate

Consolidate the registeredClass and registeredNib maps.

Implementation of dataSource related methods

Implment nib loading for NSCollectionViewItem subclasses

Remove uneeded ivars, add categories for override and layout

Minor formatting change

Update categories and organization of code

Add init method to NSCollectionViewFlowLayoutInvalidationContext

Add collectionview layout subclasses

Declarations added to collectionview layout header.

Clean compile for NSCollectionViewLayout abstract class

Add skeleton implementation of NSCollectionViewFlowLayout

Add implementation for simple setter/getter methods.

Correct compilation error with non-clang compilers

Fix compilation issues

Add getter/setter for collectionViewLayout

Add encoding/decoding for collectionViewLayout key

Make NSCollectionViewGridLayout default if the NSCollectionViewLayoutKey is not set

Add protocols for DataSource and Prefetching for NSCollectionView

New delegate methods for NSCollectionViewDelegate to support NSSets of NSIndexPaths and multiple selection.

Reset .travis.yml to the proper version and modify NSCollectionView.h to use forward declarations for both NSPasteboard and NSPasteboardWriting so that we don't explicitly import.

Add declarations for missing methods from 10.11 version of NSCollectionView

Add new methods for 10.11 for moving, deleting and collapsing sections.

Add new methods from 10.11

Changes to add new methods to collection view for delegate

Consolidate the registeredClass and registeredNib maps.

Add init method to NSCollectionViewFlowLayoutInvalidationContext

Fix issues with rebase
2023-01-30 10:48:02 -05:00
Gregory John Casamento
aee03ee7c4 Add collectionview layout subclasses 2023-01-30 10:48:02 -05:00
Gregory Casamento
4b13050e70
Merge pull request #164 from gnustep/NSDrawer_position_bug54715
Please let me know if any additional suggestions or issues.  GC
2023-01-14 03:56:49 -05:00
Gregory John Casamento
b803d348fb Set size to size of the view that was added as the content view 2023-01-14 03:34:04 -05:00
Gregory John Casamento
e87e48a4b2 Add spaces 2023-01-12 18:40:27 -05:00
Gregory John Casamento
0f650158a8 Attempt to capture what @fredkiefer had suggested and fix issue mentioned by @rmotolla 2023-01-12 18:40:27 -05:00
Gregory John Casamento
b12d151163 Implement it the way @fredkiefer suggested. Check which side has more room. 2023-01-12 18:40:27 -05:00
Gregory John Casamento
d649b99418 Minor positional adjustment 2023-01-12 18:40:27 -05:00
Gregory John Casamento
5a71c1c944 Fix issues raised by fred's comments 2023-01-12 18:40:27 -05:00
Gregory John Casamento
4d477f4e34 Update changelog 2023-01-12 18:40:27 -05:00
Gregory John Casamento
b434708d5e Fix issue where drawer opens for a moment on the preferredEdge instead of the computed one 2023-01-12 18:40:27 -05:00
Gregory John Casamento
3f1e8af9c4 Open on side away from the edge of the screen if there is not enough room 2023-01-12 18:40:27 -05:00
Fred Kiefer
e573b5ce09
Merge pull request #165 from gnustep/ci-improvements
CI: update scripts to mirror libs-base setup
2023-01-06 20:57:39 +01:00
Frederik Seiffert
d6c106845b CI: add libs-back
This is required by some tests, but currenetly disabled because some of these tests are failing.
2023-01-06 11:41:51 -06:00
Frederik Seiffert
f3e64f6541 CI: update scripts to mirror libs-base setup 2023-01-06 11:22:06 -06:00
Richard Frith-Macdonald
fc1f4387ff Update for bersion 0.30.0 2022-12-29 09:05:31 +00:00
Richard Frith-Macdonald
3477b3f1d9 Fix potential call of null block 2022-12-29 09:01:33 +00:00
Gregory John Casamento
67d27cd453 Fix build error with libobjc-8-dev 2022-11-28 00:30:24 -05:00
Fred Kiefer
8ccc89b83d
Merge pull request #161 from BennyKJohnson/constraint-vfl-support
Implement constraintsWithVisualFormat method on NSLayoutConstraint
2022-11-24 22:52:34 +01:00
Benjamin Johnson
a1c2115bc3 Fix GCC compiler warnings for GSAutoLayoutVFLParser.m 2022-11-22 08:21:05 +11:00
Benjamin Johnson
44f8950e3b Address for feedback for GSAutoLayoutVFLParser
- Move assertion for empty string to parse method
- Add missing spaces between colon and parameter
- Use GSFastEnumeration macro
- Modify parseObjectOfPredicate to use in out parameter of struct and remove heap allocation
2022-11-13 06:15:02 +11:00
Benjamin Johnson
609d03ac41 Address feedback on GSAutoLayoutVFLParser
- Add space between parameter name and parameter
- Use release macro in constraintsWithVisualFormat
2022-11-12 12:09:29 +11:00
Benjamin Johnson
13123a054e Fix formatting of GSAutoLayoutVFLParser and add copyright notice 2022-11-11 05:55:02 +11:00
Fred Kiefer
e4ecfb0801 * Headers/Additions/GNUstepGUI/GSLayoutManager.h,
* Source/GSLayoutManager.m: Add new methods
-defaultLineHeightForFont: and -defaultBaselineOffsetForFont:.
2022-11-05 21:01:53 +01:00
Benjamin Johnson
1aff56cb9b Implement constraintsWithVisualFormat method on NSLayoutConstraint 2022-11-05 20:33:23 +11:00
Gregory John Casamento
30d0dc66ee Quick fix adding export to GSMemoryPanel class 2022-11-03 20:56:48 -04:00
Fred Kiefer
59558a519d
Merge pull request #160 from gnustep/AttachmentIndexFix
Fix click on TextAttachmentCells, where the left side was not respected.
2022-10-25 23:06:47 +02:00
Riccardo Mottola
c1b914fe29 add AppKitDefines or header usage will fail later 2022-10-13 23:44:19 +02:00
Riccardo Mottola
85155fd64f Fix click on TextAttachmentCells, where the left side was not respected.
This was because index was respecting fraction and thus loosing the attachment when clicking on the right part, only for this case, recalculate character index without respectFraction.
2022-10-11 23:26:51 +02:00
Gregory John Casamento
0558e6a756 Fix compilation error, include AppKitDefines.h 2022-10-10 09:18:34 -04:00