Commit graph

6922 commits

Author SHA1 Message Date
Gregory John Casamento
41460c80c5 Fix issues with controller instantiation 2020-07-04 14:55:08 -04:00
Gregory John Casamento
7d92caca6f Segue partially working. Commit existing changes 2020-07-04 13:01:26 -04:00
Gregory John Casamento
486ab5bd5b Merge changes made by Fred to fix NSTabView. 2020-07-03 15:42:38 -04:00
fredkiefer
c66019024f * Source/GSXib5KeyedUnarchiver.m (alternateName:): Be more careful
when chopping of part of the name.
2020-07-03 19:37:45 +02:00
fredkiefer
56047d27e6 Add missing MacOSX methods. 2020-07-03 16:50:20 +02:00
Gregory John Casamento
d4cc1745d4 Relationship segue implemented. 2020-07-02 16:39:40 -04:00
Gregory John Casamento
11b5b4d2d6 Add proxy objects to perform segue 2020-07-02 13:24:48 -04:00
Gregory John Casamento
df3eaafdf3 Fix issue mentioned by fred. 2020-06-28 08:05:07 -04:00
Gregory John Casamento
a1776f21da Merge branch 'master' into NSStoryboard_branch2 2020-06-24 12:37:07 -04:00
Gregory John Casamento
562e1868b3 Add setIsVisible method. It is 10.0 and was missing for some reason. 2020-06-24 11:13:38 -04:00
Gregory John Casamento
a1e470341c Hot fixes: Failure to close extern 'c' section in NSPathControlItem.h corrected. Replace 'or' with 'orientation' as some compilers will reject this as a reserved word. 2020-06-24 10:28:49 -04:00
Gregory John Casamento
a405498686 Fixes for XIB file loading and Storyboards. 2020-06-24 10:14:34 -04:00
Gregory John Casamento
c6aa964149 Eliminate NSApplication from being added to topLevelObjects 2020-06-23 15:22:00 -04:00
Gregory John Casamento
d0c1d7f403 This should fix old xibs and correct new ones as well 2020-06-23 15:15:09 -04:00
Gregory John Casamento
b03bcf7e4a Fix for xib loading (NSOwner wasn't being set properly) as well as some advances for storyboard loading. 2020-06-23 09:10:08 -04:00
Gregory John Casamento
34cd60e043 Remove storyboard specific modifications 2020-06-22 07:50:17 -04:00
Gregory John Casamento
155662d442 Remove detritus. Correct spelling of NSSeguePerforming. 2020-06-22 07:09:39 -04:00
Gregory John Casamento
7a907bea5e Fix issue with crashing when NSStoryboard loads. Change customObjects to proper values for XIB files during transformation. 2020-06-22 07:01:49 -04:00
Gregory John Casamento
4f88808a10 Initial signs of life with Storyboard loading. Able to get menu to load and initial application node. 2020-06-22 02:56:15 -04:00
Gregory John Casamento
ea1667dbe2 Initialize storyboard with document, break it down into scenes. Each scene is, basically, a xib. 2020-06-20 06:58:11 -04:00
Gregory John Casamento
5456b9b5a6 Set main storyboard 2020-06-19 08:53:09 -04:00
Gregory John Casamento
70a3baa428 Load data into NSData for processing in NSStoryboard 2020-06-19 07:45:10 -04:00
Gregory John Casamento
04d131fb44 Remove loader 2020-06-19 07:04:37 -04:00
Gregory John Casamento
d19d780a90 Add skeleton implementation of storyboard. 2020-06-19 05:15:37 -04:00
Gregory John Casamento
9e80fbebbe Add all empty classes make them compile. 2020-06-18 05:42:11 -04:00
Gregory John Casamento
178a2cabf5 Remove uneeded classes 2020-06-16 03:45:33 -04:00
Gregory John Casamento
f48dcc0869 Merge changes 2020-06-15 10:00:46 -04:00
Gregory John Casamento
ac207e296d Change name of the handler 2020-06-15 06:07:59 -04:00
Gregory John Casamento
d8ca67cb8c Merge branch 'master' into NSLayoutConstraint_branch 2020-06-15 05:56:41 -04:00
Gregory John Casamento
e91e5d820b Flesh out skeleton of NSAccessibility* classes. 2020-06-15 05:24:53 -04:00
Gregory John Casamento
9b7a64a3c4 Initial commit for NSAccessibilityCustom*.[hm] classes. 2020-06-15 04:12:35 -04:00
Gregory John Casamento
9bc2b0b5d2 Complete NSCoding implementation 2020-06-14 19:13:17 -04:00
Gregory John Casamento
799ac3b89c Remove logging 2020-06-14 12:39:19 -04:00
Gregory John Casamento
59b7d8cfca Use enum value NSLayoutPriorityRequired instead of literal 2020-06-14 10:55:05 -04:00
Gregory John Casamento
58b82dc39a decode NSRelation to it's numerical equivalent. 2020-06-14 10:34:10 -04:00
Gregory John Casamento
f7b731a75e Decode NSFirst/SecondAttribute properly. Implemented method which decodes the text in the XIB to the correct enumerated value 2020-06-14 09:18:52 -04:00
Gregory John Casamento
1f20485073 Add changes suggested by Fred. Do not expose init method, add defaults for NSConstant and NSMultiplier 2020-06-14 06:57:26 -04:00
Gregory John Casamento
5c920907d7 Remove 'removeObserver' call 2020-06-14 06:22:57 -04:00
Gregory John Casamento
32716a1216 Only apply to the window changing size. Other notifications will be added as needed. 2020-06-14 06:02:19 -04:00
Gregory John Casamento
215842efcc Streamlined isEqual: per discussion with Fred 2020-06-14 05:00:50 -04:00
Gregory John Casamento
d3dc69d805 Removed NSPriority from containsValueForKey:, the method checks for the name with the NS prefix as well as it is not needed 2020-06-14 04:46:52 -04:00
Gregory John Casamento
4e868a374f Make sure applyConstraint is called only once for each constraint. 2020-06-14 04:23:13 -04:00
Gregory John Casamento
aaaf420c78 Streamline notification and add/remove of constraints 2020-06-14 03:29:39 -04:00
Gregory John Casamento
df9109f040 Remove debug stuff 2020-06-14 02:33:13 -04:00
Gregory John Casamento
027cb95650 Implement isEqual: so that we don't have any repeat constraints in the array 2020-06-14 02:31:18 -04:00
Gregory John Casamento
474e87d2ad Changes in GSXib5KeyedUnarchiver to decode constraints. 2020-06-13 23:45:08 -04:00
Gregory John Casamento
fb3f9f5fe3 Add priority to copy, correct encoding and decoding. 2020-06-09 07:34:40 -04:00
Gregory John Casamento
bf3bc1668e Add NSPriority, default priority to 100 if not present 2020-06-09 07:27:06 -04:00
Gregory John Casamento
8508f9f98f Merge branch 'master' into NSLayoutConstraint_branch 2020-06-08 04:02:30 -04:00
Gregory John Casamento
9f74b1b915 Quick fix mispelled method name. 2020-06-08 04:01:28 -04:00
Gregory John Casamento
4c6548511f Quick fix for issue with initialization of NSPDFImageRep. Change arrayWithObjects to arrayWithObject. It was causing a SIGSEGV. 2020-06-08 04:00:32 -04:00
Gregory John Casamento
a4a30889f7 Start adding logic to process constraints 2020-06-03 07:12:31 -04:00
Gregory John Casamento
af2319d26e Add constraints when they are created 2020-06-02 04:58:13 -04:00
Gregory John Casamento
2c8692c379 Add dealloc 2020-06-01 02:27:49 -04:00
Gregory John Casamento
bb4d2b1284 Implement parsing methods. 2020-05-30 06:40:16 -04:00
Gregory John Casamento
33e39b1d93 Add methods to translate from relation and attribute to string. 2020-05-27 19:04:42 -04:00
Gregory John Casamento
44a3512ae2 Make changes to correctly decode firstItem and secondItem. 2020-05-26 23:59:00 -04:00
Gregory John Casamento
7faefbb0dd Improve NSLayoutConstraint description 2020-05-26 15:06:28 -04:00
Gregory John Casamento
74afc3d88c Merge conflicts 2020-05-26 02:07:51 -04:00
Gregory John Casamento
ca2a8fa6b0 Latest changes 2020-05-26 02:05:50 -04:00
fredkiefer
385fb7d204 * Headers/AppKit/NSColor.h,
* Source/NSColor.m: Add newer Cocoa methods.
2020-05-18 22:55:59 +02:00
fredkiefer
db28f7b420 Small formatting changes, but plenty of these. 2020-05-16 00:15:38 +02:00
Gregory John Casamento
1539213eeb Resolve conflict 2020-05-15 10:10:19 -04:00
fredkiefer
be12d7bd1e * Source/NSWindow.m (-makeFirstResponder, -sendEvent:): Correct
handling of new first responder not becoming first responder.
Patch suggested by Josh Freeman <pikopixel@twilightedge.com>.
2020-05-14 23:10:43 +02:00
Gregory John Casamento
2372be54a7 Update changelog 2020-05-12 12:27:20 -04:00
Gregory John Casamento
be214374ab Implement skeletons 2020-05-11 07:23:04 -04:00
Gregory John Casamento
e2752e1bc4 Add skeleton implementation of NSLayoutGuide 2020-05-11 07:08:01 -04:00
Gregory John Casamento
75bfedc564 Eliminate warnings. 2020-05-10 16:44:48 -04:00
Gregory John Casamento
a115217ec3 Skeleton version 2020-05-10 16:38:52 -04:00
fredkiefer
981227145e * Source/GSXib5KeyedUnarchiver.m: Clean up NSPathCell decoding. 2020-05-10 21:52:13 +02:00
Gregory John Casamento
e723d6914b Encoding and decoding implementation 2020-05-10 15:03:31 -04:00
Gregory John Casamento
2d3587a4cc Implement decoding 2020-05-10 14:49:06 -04:00
Gregory John Casamento
0a2f4e90e5 Implement methods in NSLayoutConstraint 2020-05-10 08:41:10 -04:00
Gregory John Casamento
a9a025ddf6 Implement methods in NSLayoutConstraint 2020-05-10 08:40:15 -04:00
Gregory John Casamento
c99d9f68d7 Implement methods in NSLayoutConstraint 2020-05-10 08:35:49 -04:00
Gregory John Casamento
86e4e58df3 Skeleton of NSLayoutConstraint 2020-05-10 08:22:12 -04:00
Gregory John Casamento
9c5143f1ce Add NSLayout* classes. Correct API version and email. 2020-05-10 06:38:06 -04:00
Gregory John Casamento
b1980268e2 Initial skeletons for layout constraints 2020-05-10 02:26:06 -04:00
fredkiefer
8162d07536 * Source/NSStringDrawing.m: Initialize all the cache entries as
not used.
2020-05-09 21:22:41 +02:00
fredkiefer
ec0e80eaee Remove unused variable. 2020-05-09 21:11:01 +02:00
Gregory Casamento
7fbf0bb067
Merge pull request #63 from gnustep/NSPersistentDocument_branch
NSPersistentDocument branch
2020-05-09 14:40:31 -04:00
Gregory John Casamento
cd44b3d036 Allocate concrete class 2020-05-09 14:27:49 -04:00
fredkiefer
66ca536acc * Source/GSHorizontalTypesetter.m (_addExtraLineFragment): Make
sure curParagraphStyle and line_height always have useful values.
2020-05-09 17:16:47 +02:00
fredkiefer
cad8383e62 * Source/NSWindow.m (-initWithContentRect:...defer:): Call
setFrame:display: to ensure the minium and maximum size gets enforced.
* Source/NSFont.m (-description): Add this method.
2020-05-08 22:41:09 +02:00
Gregory John Casamento
17c39bf98a Fix compilation error under gcc 2020-05-08 05:37:39 -04:00
Gregory John Casamento
9c9e520b6c Get rid of unused 'err' variable. 2020-05-08 05:23:47 -04:00
Gregory John Casamento
da3ad926f9 Merge from master 2020-05-08 05:00:04 -04:00
Gregory John Casamento
e92930756b Resolve conflict after merge from master 2020-05-08 04:50:39 -04:00
Gregory John Casamento
14131287b3 Correct frame 2020-05-08 01:33:19 -04:00
Gregory John Casamento
6df9f5466b Add space 2020-05-08 01:29:59 -04:00
Gregory John Casamento
44cacc7766 Keep pathComponentCell and pathItems in sync 2020-05-07 20:10:54 -04:00
Gregory John Casamento
093844bb9a Don't count 0 as a special case 2020-05-07 19:03:46 -04:00
Gregory John Casamento
5b8191556a Don't count 0 as a special case 2020-05-07 19:00:07 -04:00
Gregory John Casamento
58e50ff079 Change do..while to while 2020-05-07 18:57:02 -04:00
Gregory John Casamento
3d711b5672 add release implmentation 2020-05-07 18:53:15 -04:00
Gregory John Casamento
13ae5fdb54 Eliminate include 2020-05-07 18:30:23 -04:00
Gregory John Casamento
e4b3a412c1 Include NSAttributedString from foundation. 2020-05-07 18:29:35 -04:00
Gregory John Casamento
485f9f4617 Internationalize 2020-05-07 17:56:02 -04:00
Gregory John Casamento
c81e67aeaa Remove commented out code 2020-05-07 17:54:42 -04:00
Gregory John Casamento
d1803df5a7 Moved defaults to else branches 2020-05-07 17:53:57 -04:00
Gregory John Casamento
5fcbc9e46c Moved defaults to else branches 2020-05-07 17:53:40 -04:00
Gregory John Casamento
dd80a3d890 Modify positions 2020-05-07 05:33:34 -04:00
Gregory John Casamento
e0357ebffe Refactor drawPathComponentCellWithFrame:... 2020-05-07 05:29:47 -04:00
Gregory John Casamento
d1be7c89cb includes 2020-05-07 03:11:14 -04:00
Gregory John Casamento
f9c2f3b864 Clean .m skeleton. 2020-05-07 01:08:05 -04:00
Gregory John Casamento
c0b812c73c Add skeletons 2020-05-07 00:10:43 -04:00
Gregory John Casamento
9c84decf5f minor fixes 2020-05-06 23:52:06 -04:00
Gregory John Casamento
d3e628fec5 minor fixes 2020-05-06 23:51:15 -04:00
Gregory John Casamento
8a5f5b180a minor fixes 2020-05-06 23:50:37 -04:00
Gregory John Casamento
c636211e0e minor fixes 2020-05-06 23:46:09 -04:00
Gregory John Casamento
63c02bed44 minor fixes 2020-05-06 23:45:25 -04:00
Gregory John Casamento
b982a2029e minor fixes 2020-05-06 23:44:03 -04:00
Gregory John Casamento
9ddd7b3ae6 Use string instead of [url path] 2020-05-06 23:42:49 -04:00
Gregory John Casamento
225e24909f Fix formatting 2020-05-06 23:34:09 -04:00
Gregory John Casamento
08f80ed5b5 Remove unneeded methods 2020-05-06 17:02:39 -04:00
Gregory John Casamento
5d74923ac3 Remove commented out code 2020-05-06 16:36:53 -04:00
Gregory John Casamento
fb280df615 Use URL to generate all of the path component cells 2020-05-06 16:18:53 -04:00
Gregory John Casamento
0e61c251bf Use resetCursorRects 2020-05-06 14:02:41 -04:00
Gregory John Casamento
c84fa5a10f Remove decoding of NSContents 2020-05-06 11:50:03 -04:00
Gregory John Casamento
deaae76366 Fix pathItems 2020-05-06 11:44:54 -04:00
Gregory John Casamento
3b7be08ade Using current url in open panel. 2020-05-06 11:14:31 -04:00
Gregory John Casamento
1f74bec01c Add setCellClass: / cellClass 2020-05-06 10:52:40 -04:00
Gregory John Casamento
1e1e1043f8 Add point values 2020-05-06 10:45:07 -04:00
Gregory John Casamento
0e7f729f1f Use represented object 2020-05-06 10:38:24 -04:00
Gregory John Casamento
7764903d6d Make drawing use the component cell to render 2020-05-06 08:38:31 -04:00
Gregory John Casamento
c67ca273a9 Added performDragOperation: 2020-05-06 08:18:32 -04:00
Gregory John Casamento
1725e272c6 Delegate uncommented, removed setObjectValue and use super version. 2020-05-06 08:11:28 -04:00
Gregory John Casamento
5cb4e41d17 Use rectOfPathComponentCell: to determine the frames of cells to be drawn. 2020-05-06 07:56:37 -04:00
Gregory John Casamento
d3322b62f2 Add tracking 2020-05-06 04:55:10 -04:00
Gregory John Casamento
925b6f8e1b Add method to get rects of clicked items. 2020-05-06 04:39:39 -04:00
Gregory John Casamento
96b094be5c Implement encoding 2020-05-06 02:56:01 -04:00
Gregory John Casamento
d7e1e06809 Set clicked path component cell 2020-05-06 02:38:01 -04:00
Gregory John Casamento
9dd7b6d56d Make category unique 2020-05-05 15:35:35 -04:00
Gregory John Casamento
482b78d1ea Fix select option 2020-05-05 15:24:00 -04:00
Gregory John Casamento
dd62ab2d2c Correct encoding issue 2020-05-05 11:03:48 -04:00
Gregory John Casamento
9abc40727b Path Cell encoding/decoding 2020-05-05 08:26:13 -04:00
Gregory John Casamento
22c1897eee Fix popup positioning. 2020-05-05 02:14:46 -04:00
Gregory John Casamento
266ec7e430 Implement popUpMenuPositonItem:... dragging, dropdown implementation, menu changes 2020-05-04 09:50:22 -04:00
Gregory John Casamento
8222de40c6 Implement dragging handling and delegate interaction 2020-05-04 05:47:00 -04:00
Gregory John Casamento
636ebfcf0a Complete rendering for all types. 2020-05-03 23:20:42 -04:00
Gregory John Casamento
7dd732f9de Move to GSTheme. 2020-05-03 20:51:51 -04:00
Gregory John Casamento
a27119c56d PathStyle changes 2020-05-03 13:07:53 -04:00
Gregory John Casamento
9a70a452b5 Add cell generation and images 2020-05-03 04:17:00 -04:00
Gregory John Casamento
0c05c151a8 Move decoding of style to the correct place. 2020-05-02 13:48:12 -04:00
Gregory John Casamento
7b0bbdc26a Add to AppKit.h, implement URL and image lookup in NSPathComponentCell 2020-05-02 13:45:49 -04:00
Gregory John Casamento
12d6da05c0 Decode NSCell in the proper place. Fix metafont issue with toolTips 2020-05-02 08:12:23 -04:00
Gregory John Casamento
f597a389de Decoding of NSPathCell objects is working. 2020-05-02 05:12:54 -04:00
Gregory John Casamento
4591d8b60b Implement decoding 2020-04-28 12:07:34 -04:00
Gregory John Casamento
9dfe412e8e Implement decoding 2020-04-28 11:59:38 -04:00
Gregory John Casamento
a4e5ea39d7 Implement encoding 2020-04-27 14:37:22 -04:00
Gregory John Casamento
60e395f4d1 Delegate to cell 2020-04-27 05:34:02 -04:00
Gregory John Casamento
5811355c00 Add NSPathControlItem 2020-04-27 03:25:19 -04:00
Gregory John Casamento
3dc3feda41 Add NSPathComponentCell 2020-04-27 01:55:31 -04:00
Gregory John Casamento
699bffe59c Add skeleton code for NSPathCell 2020-04-27 01:33:49 -04:00
Gregory John Casamento
f07ed1351d Add path component cells 2020-04-26 23:42:44 -04:00
Gregory John Casamento
c49fcc0e0b Initial skeletal implementation of NSPathControl 2020-04-26 20:57:16 -04:00
Gregory John Casamento
a0aa55e1f1 Initial skeletons for Path objects 2020-04-26 17:15:06 -04:00
Gregory John Casamento
a390accec4 Merge branch 'master' into NSPathControl_branch 2020-04-26 15:30:05 -04:00
Gregory John Casamento
c8c312351a Fix spelling and extra include. 2020-04-26 15:04:25 -04:00
Gregory John Casamento
456fe72ab9 Fix formatting issues. 2020-04-26 10:53:48 -04:00
Gregory John Casamento
760b14a2cc Update pixel offset 2020-04-26 10:30:36 -04:00
Gregory John Casamento
54983cef50 Add NSEnabled decoding. it is encoded in NSControl, but is NOT used when it is decoded, so we have to retrieve the value here in NSSwitch. 2020-04-26 04:47:25 -04:00
Gregory John Casamento
0c1ab6c756 Remove pragmas to remove warnings. It was causing EXTRA warnings when building with gcc. 2020-04-24 07:05:06 -04:00
Gregory John Casamento
b0ead22814 revert GSThemeTools.m 2020-04-24 06:57:22 -04:00
Gregory John Casamento
d16e9769b0 Update display when setEnabled is called 2020-04-24 06:52:12 -04:00
Gregory John Casamento
6c690312e9 Correct formatting of code. 2020-04-24 06:36:14 -04:00
Gregory John Casamento
627a4894cc Use fred's calculation for moving the knob 2020-04-24 06:34:43 -04:00
Gregory John Casamento
be756441aa Use fred's approach for the colors 2020-04-24 06:25:06 -04:00
Gregory John Casamento
39601c0960 initialize colors as Fred suggested 2020-04-24 06:20:19 -04:00
Gregory John Casamento
d1beeaa0b7 remove uneeded function 2020-04-24 05:43:39 -04:00
Gregory John Casamento
2fb06e0e7b remove uneeded comment 2020-04-24 05:43:12 -04:00
Gregory John Casamento
6c8691a082 Remove some warnings and unused functions, finish implementation of encoding. 2020-04-24 04:29:15 -04:00
Gregory John Casamento
bd2372230f Undo removal of space. 2020-04-24 03:39:28 -04:00
Gregory John Casamento
33e2bbd1f0 Add setObject: 2020-04-24 03:32:57 -04:00
Gregory John Casamento
6e3d3a87d8 The warning generated by the code in this method -establishConnection is unavoidable. Disable the warning. 2020-04-24 03:27:34 -04:00
Gregory John Casamento
1a2ff4a40c Add code to decode enabled state for switch 2020-04-24 02:47:17 -04:00
Gregory John Casamento
fdd51ae2df Add color for disabled state 2020-04-24 02:34:59 -04:00
Gregory John Casamento
b32eb4d37d Add initial versions of files. 2020-04-23 00:43:15 -04:00
Gregory John Casamento
ab83e1ef81 Fix issue with calling setState: on classes which aren't NSSwitch when it's not needed 2020-04-22 17:50:46 -04:00
Gregory John Casamento
5d1ec31ef2 Move color selection into the theme 2020-04-22 17:44:04 -04:00
Gregory John Casamento
57a8720cd8 Reduce repetition of code 2020-04-22 17:39:10 -04:00
Gregory John Casamento
f57e5184c3 Resolve theme issues, change size of knob 2020-04-22 17:34:14 -04:00
Gregory John Casamento
d4b7a0c76d Attempt to fix issue with setState: on NSSwitch. 2020-04-22 17:02:53 -04:00
Gregory John Casamento
23ad6ba6c8 Add initWithCoder: / encodeWithCoder: 2020-04-22 05:20:04 -04:00
Gregory John Casamento
b3ac2b292b Fix issue with mouseDown: 2020-04-21 23:41:13 -04:00
Gregory John Casamento
ec3227d132 Implement setXXXValue methods and getters 2020-04-21 23:36:11 -04:00
Gregory John Casamento
0df7e5f7d7 Improve colors 2020-04-20 15:13:28 -04:00
Gregory John Casamento
8fd9db5130 Improve position of knob 2020-04-18 16:31:05 -04:00
Gregory John Casamento
6bf8d790ef Improve position of knob 2020-04-18 14:36:26 -04:00
Gregory John Casamento
d083bc061d Improve calculation for knob position when in On state 2020-04-18 11:46:34 -04:00
Gregory John Casamento
da0f7ded36 Better colors 2020-04-17 18:03:26 -04:00
Gregory John Casamento
dae6b91c99 Add target/action 2020-04-17 07:40:40 -04:00
Gregory John Casamento
bfa9f0c1c2 Add mouseDown: implementation call to super 2020-04-17 07:24:34 -04:00
Gregory John Casamento
4d7bc4435b Add mouseDown: implementation 2020-04-17 07:22:24 -04:00
Gregory John Casamento
aa9344c78b Draw elements. 2020-04-17 06:32:05 -04:00
Gregory John Casamento
ecc9791ecf Draw elements. 2020-04-17 06:10:04 -04:00
Gregory John Casamento
a1672a4605 Add skeleton drawing method for switch to GSThemeDrawing. 2020-04-16 12:16:30 -04:00
Gregory John Casamento
8785a1307b More initial work. 2020-04-16 11:42:21 -04:00
Gregory John Casamento
ea5dbc2236 Merge branch 'master' into NSSwitch_branch 2020-04-16 06:33:36 -04:00
Gregory John Casamento
789e89f0a2 Fix all of the issues mentioned by Fred. 2020-04-15 18:34:04 -04:00
Gregory John Casamento
f1ab633b2f Merge branch 'master' into NSSwitch_branch 2020-04-15 17:21:46 -04:00
Gregory John Casamento
64a33a3f45 Fix issue with NSSet and NSString. 2020-04-14 14:07:23 -04:00
Gregory John Casamento
8bdb4ffe16 Add methods for NSFontAssetRequest. 2020-04-14 13:41:27 -04:00
Gregory John Casamento
a761a01eb5 Add NSUserInterfaceItemSearching code. 2020-04-14 13:23:25 -04:00
Gregory John Casamento
e4fb12cae5 Add user interface compression 2020-04-14 11:54:02 -04:00
Gregory John Casamento
3d1da7a0b3 Skeleton for NSMediaLibraryBrowserController 2020-04-14 09:58:45 -04:00
Gregory John Casamento
63baff0b6a Skeleton out scrubber layout 2020-04-14 09:38:09 -04:00
Gregory John Casamento
1479a4fa88 Fix issues with license and import statements 2020-04-13 15:04:12 -04:00
Gregory John Casamento
f989474735 Add NSwitch initial changes 2020-04-13 14:15:07 -04:00
Gregory John Casamento
66ea79f256 Fix issues pointed out by Fred. More fixes to come. 2020-04-13 14:14:14 -04:00
Gregory John Casamento
4d87b8e97a Merge branch 'master' into mac_specific 2020-04-12 19:15:29 -04:00
Gregory John Casamento
9833ef333a Add scrubber classes 2020-04-08 17:17:41 -04:00
Gregory John Casamento
b4676fa0b3 Add AppKitErrors 2020-04-07 19:23:53 -04:00
Gregory John Casamento
813aa7eefd Add NSWindowRestoration protocol 2020-04-07 15:15:31 -04:00
Gregory John Casamento
3d8c8cf01c Add some mac specific classes. 2020-04-07 08:31:18 -04:00
Wolfgang Lux
9afab3aaf8 Change arguments names to reduce confusion about their intended use 2020-04-01 13:15:48 +02:00
Wolfgang Lux
b42691c160 Remove redundant calls to close method. 2020-04-01 12:57:37 +02:00
Wolfgang Lux
88e318e5e8 Restore call to delegate method which was lost a while ago. 2020-04-01 12:55:53 +02:00
Gregory John Casamento
3ee2a1e85c Merge branch 'master' of github.com:gnustep/libs-gui 2020-03-26 10:20:55 -04:00
Gregory John Casamento
15889eb8b1 Change declarations to NSExceptionName 2020-03-26 10:19:32 -04:00
Gregory John Casamento
bf90621300 Merge branch 'master' of github.com:gnustep/libs-gui into NSStoryboard_branch2 2020-03-25 02:32:11 -04:00
Fred Kiefer
ba165e185b
Merge pull request #51 from gnustep/NSFontCollection_branch
Merge NSFontCollection branch as nobody replied to my last comment.
2020-03-24 08:42:32 +01:00
Gregory John Casamento
d90821dc8e Debug changes 2020-03-24 00:03:58 -04:00
Gregory John Casamento
b88bff5ddb Change 'NSApplicationMain' to load storyboard if it is present. 2020-03-23 05:41:30 -04:00
Gregory John Casamento
dc8b036378 Add storyboard loader code. Storyboards are basically just xib files, so much of it is the same. 2020-03-22 22:16:48 -04:00
fredkiefer
6d5cbe977b Add missing import.
Add author section.
2020-03-21 15:48:25 +01:00
fredkiefer
76f84654c2 Implement font collection matching code in GSFontEnumerator.
Remove trailing white space.
2020-03-21 15:33:41 +01:00
fredkiefer
8d56f280f8 Use NSDebugLLog to reduce amount of output.
Small clean ups.
2020-03-21 14:32:43 +01:00
fredkiefer
4a56f9c742 Reduce data size to a usefull amount. 2020-03-21 14:25:30 +01:00
fredkiefer
4715703a20 Clean up file handling code.
Remove trailing white space.
Correct exclusion processing.
2020-03-20 19:33:14 +01:00
Gregory John Casamento
2584386fbc Add storyboard classes. 2020-03-20 05:50:56 -04:00
Gregory John Casamento
d6d1f2e658 use AUTORELEASE 2020-03-20 04:54:02 -04:00
Gregory John Casamento
6f7293d21e Fix indentation 2020-03-20 04:53:20 -04:00
Gregory John Casamento
34cfca2d06 Minor fix. Move panel instantiation to after lock. 2020-03-20 04:52:18 -04:00
Gregory John Casamento
54fc199d73 Additional fix for color selection issue. 2020-03-20 04:35:13 -04:00
Gregory John Casamento
ab5a52b59e Fix issue where color sampler only gets color from app windows. Now can get color from the entire screen. 2020-03-20 04:25:42 -04:00
Gregory John Casamento
bc47973133 Merge branch 'master' of github.com:gnustep/libs-gui into NSColorSampler_branch 2020-03-19 16:43:05 -04:00
Gregory John Casamento
53f211fdda Correct license on NSSegmentedControl to reflect the LGPL as it should. 2020-03-17 00:23:04 -04:00
Gregory John Casamento
03191c3756 Minor changes for NSColorSampler 2020-03-17 00:11:40 -04:00
Gregory John Casamento
26fdf7e10b Fix RELEASE statement 2020-03-15 19:44:11 -04:00
Gregory John Casamento
6b086ca150 Fix issue where color was being continuously updated. 2020-03-15 19:14:15 -04:00
Gregory John Casamento
c34e5688a1 NSColorSampler implementation 2020-03-15 18:39:22 -04:00
Gregory John Casamento
319c3677ff Remove code per fred's suggestion 2020-03-15 04:36:29 -04:00
fredkiefer
c15ff512c7 Add proper initializer and try to get retain counts correct. 2020-03-13 17:57:49 +01:00
Gregory John Casamento
8f5e702766 Remove uneeded code 2020-03-13 05:19:07 -04:00
Gregory John Casamento
369e45ebe2 Add/Remove descriptors when appropriate 2020-03-13 03:14:42 -04:00
Gregory John Casamento
1f04167c7d Autorelease NSFontCollection when created by _writeToFile 2020-03-12 16:03:39 -04:00
Gregory John Casamento
3a027a7eba Remove errant comment 2020-03-12 15:46:52 -04:00
Gregory John Casamento
22fa2f21ea Remove redundant check 2020-03-12 15:45:55 -04:00
Gregory John Casamento
28ff42fa4b Correct indentation 2020-03-12 15:43:57 -04:00
fredkiefer
5680d2e0fd Correct the implementation of some simple methods on NSFileCollection. 2020-03-12 16:40:04 +01:00
Gregory John Casamento
d9d5f60835 NSColorSampler initial commit 2020-03-12 04:14:09 -04:00
Gregory John Casamento
d8a43c580c Add NSColorSampler class. 2020-03-12 03:22:12 -04:00
Gregory John Casamento
3194948df4 minor improvements. 2020-03-11 23:39:39 -04:00
Gregory John Casamento
4b72608c35 Fix storage of font collection files 2020-03-11 23:36:22 -04:00
Gregory John Casamento
38f4292989 Fix encoding 2020-03-11 19:00:52 -04:00
Gregory John Casamento
ddce45a6a2 Release memory from archiving and unarchiving. 2020-03-11 01:17:51 -04:00
Gregory John Casamento
2760d90061 Rewrite the reading and writing portions of NSFontCollection so that we can output the root object as NSFontCollectionDictionary 2020-03-11 01:06:29 -04:00
Gregory John Casamento
681e5c9ed9 Correct issue with encoding, use a dictionary to store everything. Create collections when initializing when appropriate 2020-03-09 04:11:56 -04:00
Gregory John Casamento
fb7bdc70a0 Merge branch 'master' of github.com:gnustep/libs-gui into NSFontCollection_branch 2020-03-08 20:50:59 -04:00
Sergii Stoian
a61aa9f68f * Source/NSWindow.m (_applyFrame:): new helper method to do actual
resizing and repositionning.
  (setFrame:display:): use _applyFrame method.
  (applicationDidChangeScreenParameters:): use _applyFrame: method.
2020-03-05 23:27:31 +02:00
Sergii Stoian
3f85f86f3b * Source/NSScreen.m: remove +screen comment - not ready yet. 2020-03-05 12:25:56 +02:00
Sergii Stoian
96a3579e98 * Source/NSWindow.m (applicationDidChangeScreenParameters:):
Call backend's `placewindow::` directly because our origin in OpenStep
  coordinates might left unchanged and `setFrame:display:` has check
  for it.
2020-03-05 02:21:26 +02:00
Sergii Stoian
6d4afe9678 Merge branch 'master' into randr
Conflicts:
	ChangeLog
2020-03-05 02:19:23 +02:00
Gregory John Casamento
bf5d40ea58 Merge branch 'master' of github.com:gnustep/libs-gui into NSFontCollection_branch 2020-03-02 15:11:34 -05:00
Sergii Stoian
fcbb4d704b * Source/NSWindow.m (center): always center window on main screen -
monitor where user expects to see window.
2020-02-28 02:18:20 +02:00
Gregory John Casamento
f54d47667b Add implementations or mutable font dcollectioin 2020-02-26 07:36:45 -05:00
Gregory John Casamento
80bab3fa5a Implement encoding 2020-02-25 21:25:55 -05:00
Sergii Stoian
f460e3f875 * Source/NSWindow.m (sendEvent:): removed usage of extra local variables
in GSAppKitWindowMoved code block.
2020-02-26 02:05:34 +02:00
Gregory John Casamento
a06dc3bef4 Add implementation for a few more methods 2020-02-25 18:15:02 -05:00
Gregory John Casamento
46d2636b36 Update _removeFile method. Correct minor comments 2020-02-25 11:02:39 -05:00
Gregory John Casamento
bd1a349c0a Merge branch 'master' into NSFontCollection_branch 2020-02-25 09:00:17 -05:00
Gregory John Casamento
70bc1153de Font collection constants 2020-02-25 08:58:44 -05:00
Sergii Stoian
b3e099f4ab * Source/NSScreen.m (screens): add initial description of new logic
around screens (back, windows and menus) as comment.
2020-02-25 02:28:02 +02:00
Sergii Stoian
216d1f086f Merge branch 'master' into randr
Conflicts:
	ChangeLog
2020-02-23 23:38:36 +02:00
Sergii Stoian
fe5616f5e1 * Source/NSWindow.m
(applicationDidChangeScreenParameters:): quit while loop after
  screen was found.
  (sendEvent:): use `_screen` ivar to get screen befor frame change.
2020-02-23 23:26:18 +02:00
fredkiefer
3db981a95d Move more behaviour from the IBActionConnection5 and IBOutletConnection5
classes to the original ones.
2020-02-23 18:22:21 +01:00
Sergii Stoian
c0c5cad292 Merge branch 'master' into randr
Conflicts:
	ChangeLog
2020-02-23 03:04:19 +02:00
Sergii Stoian
99e0f4ddda * Source/NSMenu.m (windowDidChangeScreen:): join two if statements. 2020-02-23 01:56:33 +02:00
Sergii Stoian
11ff1789e8 * Source/NSMenu.m (_setGeometry): take into account main screen
origin when calculating horizontal menu postion.
2020-02-20 01:11:33 +02:00
Sergii Stoian
fe1cf36de0 * Source/NSApplication.m (_appIconInit): take into account main screen
origin when placing application icon.
2020-02-20 00:53:44 +02:00
Gregory John Casamento
344a4bbaf8 Eliminate duplicate entries in GNUmakefile, remove 'blocking' capability in speech recognizer code for now. 2020-02-17 01:35:57 -05:00
Sergii Stoian
557486906a * Source/NSMenu.m (initWithTitle:): moved observer setup for
window notification to applicationDidFinishLaunching: method.
  (setTornOff:): setup oberver for window notifications if menu is
  torn off, uset observer otherwise.
  (applicationDidFinishLaunching:): setup oberver only for main menu.
  (windowDidChangeScreen:): do not process notifications from menu
  windows. Use -netstedSetFrameOrigin for frame change to take care
  of submenus repositioning.
2020-02-14 14:14:05 +02:00
Sergii Stoian
c1c77cc7c0 * Source/NSMenu.m (windowDidChangeScreen:): simplify calculation of
frame X position.
2020-02-14 12:34:20 +02:00
Sergii Stoian
533be55806 * Source/NSWindow.m (setFrame:display:): use _screeForFrame: here
to prevent `_screen` reassign -  it will be reassigned in
  sendEvent: (GSAppKitWindowMoved event) after call to [self screen].
  (setFrameFromString:): removed unused code because _screenForFrame:
  never returns `nil`. Do not reassign `_screen` here.
2020-02-13 18:30:04 +02:00
Sergii Stoian
381c24cdf4 * Source/NSWindow.m (processEvent:): notification moved back here from
`screen` method. Placing posting notification into `screen` method
  is unreliable/dangerous - notification observer may call [NSWindow screen]
  which results in notification posting loop.
2020-02-12 13:55:15 +02:00
Sergii Stoian
4c531f04bc * Source/NSWindow.m (processEvent:): posting notification
NSWindowDidChangeScreenNotification moved into `screen`
  method.
2020-02-12 13:08:58 +02:00
Sergii Stoian
77778fb2bc * Source/NSMenu.m (windowDidChangeScreen:): fixed formatting. 2020-02-12 12:10:14 +02:00
Sergii Stoian
2a1b9d4d54 * Source/NSWindow.m (sendEvent:): set current screen to ivar and
send WindowDidChangeScreen notification if window was moved to other
  screen.

* Source/NSScreen.m (mainScreen): returns screen of main menu if no
  key window exists. With this implementation default screen (screen at
  index 0 in screens array) should never be returned.

* Source/NSMenu.m (initWithTitle:): observe WindowDidBecomeKey and
  WindowDidChangeScreen notifications.
  (windowDidChangeScreen:): new method to handle observed notification
  added above. Moves menu to screen of key window for both cases: when
  key window moved to or activated on different screen.
2020-02-12 01:46:17 +02:00
Gregory John Casamento
bacceb1a46 Prevent logging of content into public log. Only log server events 2020-02-11 06:37:49 -05:00
Gregory John Casamento
d0e05bfc3f Add restart logic 2020-02-11 06:33:42 -05:00
Gregory John Casamento
9953d7d132 Correct issue with detecting if app is in foreground 2020-02-11 06:11:43 -05:00
Gregory John Casamento
5b96ad6692 Merge branch 'master' of github.com:gnustep/libs-gui into NSSpeechRecognizer_branch 2020-02-10 03:03:20 -05:00
Gregory John Casamento
1b2c0aad96 Correct some indentation 2020-02-10 02:31:39 -05:00
Gregory John Casamento
a9eb7c92e2 Minor changes 2020-02-09 23:00:26 -05:00
Gregory John Casamento
97a7bc738e Move reconnection logic to one method 2020-02-09 21:26:01 -05:00
Gregory John Casamento
4ab70420a8 Add exception handling logic. I did this without using performSelector since it only occurs in a couple of places (it didn't seem worth the effort). 2020-02-09 19:55:46 -05:00
Gregory John Casamento
7ff1e9be8c FontCollection changes 2020-02-09 17:45:44 -05:00
fredkiefer
b4ca06582e * Source/NSFontDescriptor.m: Correct key for encoding and decoding. 2020-02-09 20:19:51 +01:00
Gregory John Casamento
33a8a8c28e Some refactoring and cleanup 2020-02-09 07:11:25 -05:00
Gregory John Casamento
031868f73e Changes to support multiple connections. 2020-02-09 05:30:35 -05:00
Gregory John Casamento
4b1d3c679f Implement both ignoring all recognizers, but the ones specified and ignoring when app is not active. 2020-02-08 15:01:31 -05:00
Gregory John Casamento
6539ed8913 Final cleanup of debug output 2020-02-08 06:44:43 -05:00
Gregory John Casamento
f05702d450 Stop thread properly and close utterance. 2020-02-08 06:22:14 -05:00
Gregory John Casamento
07bf3d32e4 Shut down server when all connections are dead 2020-02-08 06:08:27 -05:00
Gregory John Casamento
60cf308471 Collapse server into normal instance 2020-02-08 02:45:40 -05:00
Gregory John Casamento
3468a92539 Cleanup. Fix issues pointed out in review. 2020-02-07 04:50:40 -05:00
Gregory John Casamento
4ebc932cb3 Fix issues pointed out by fred 2020-02-07 04:25:39 -05:00
Gregory John Casamento
8320300fdd Cleanup speech synth implementation. Correct recognizer. 2020-02-06 03:15:18 -05:00
Gregory John Casamento
a9bc3fe5d9 Cleanup and some minor changes 2020-02-06 02:35:53 -05:00
Gregory John Casamento
92e00382c0 Make changes suggested by fred 2020-02-05 22:56:16 -05:00
Gregory John Casamento
ebefe3805b Merge branch 'master' into NSSpeechRecognizer_branch 2020-02-04 06:03:47 -05:00
Gregory John Casamento
72697f699c Complete initial implementation of speech recognizer 2020-02-04 05:26:52 -05:00
Sergii Stoian
d1466b23ef
Merge pull request #52 from gnustep/randr
Keep menu inside visible screen frame.
2020-02-03 02:24:47 +02:00
Sergii Stoian
deec9c5932 * Source/GSTitleView.m (mouseDown:): add additional sanity checks
for NSScreen, NSWindow values.
2020-02-03 02:22:27 +02:00
Sergii Stoian
75cbfce281 * Source/GSTitleView.m (mouseDown): use [_window screen] instead
of [NSScreen mainScreen].
2020-02-02 22:40:43 +02:00
Gregory John Casamento
b1f9f1fd78 Fix speech recognizer compilation 2020-02-01 04:41:52 -05:00
Gregory John Casamento
75122ac78e Server name to #define 2020-02-01 04:33:25 -05:00
Gregory John Casamento
f891819498 Add code to connect with server 2020-02-01 04:30:36 -05:00
Gregory John Casamento
9ee975860a Clean build for NSSpeechRecognizer 2020-02-01 04:16:48 -05:00
Sergii Stoian
a7aa7d014d * Source/GSTitleView.m (mouseDown:): limit menu movement to screen
frame for top/left/right edges. Menu can be moved to the bottom until
  title is completely visible.
2020-01-31 02:31:19 +02:00
Gregory John Casamento
2756be99e5 Merge branch 'master' into NSFontCollection_branch 2020-01-30 07:48:16 -05:00
Gregory John Casamento
2b388c6a88 Finish initialization method 2020-01-30 07:47:10 -05:00
Gregory John Casamento
772e4242a1 Finish initialization method 2020-01-30 07:46:41 -05:00
Gregory John Casamento
fac43795d6 Implement methods to modify font collections 2020-01-30 07:13:08 -05:00
Gregory John Casamento
f6555d14b0 Updates 2020-01-30 06:23:35 -05:00
Richard Frith-Macdonald
36343b81b1 Fix error in format string 2020-01-30 09:29:55 +00:00
Sergii Stoian
71056e625a
Merge branch 'master' into master 2020-01-28 14:46:26 +02:00
Sergii Stoian
1146f35276 * Source/NSWindow.m (applicationDidChangeScreenParameters:): use enumerator
to go through the list of screens. Removed commented out debug output.
2020-01-28 12:15:39 +02:00
Gregory John Casamento
697f6ba699 Add NSCTFontCollection so we can decode NSFontCollection 2020-01-27 02:31:11 -05:00
Gregory John Casamento
57d6be305b Implement copyWithZone and mutableCopyWithZone 2020-01-26 21:53:28 -05:00
Sergii Stoian
a4174f2838 * Source/NSWindow.m (applicationDidChangeScreenParameters): take into
account screen origin change during window position recalculation.

* Source/NSScreen.m (dealloc): debug output was removed.
2020-01-27 00:47:08 +02:00
Gregory John Casamento
b41444e4c4 Correct errors and begin implementation of copy methods 2020-01-26 16:26:47 -05:00
Gregory John Casamento
15a2b03eab Add setters and getters in NSMutableFontCollection 2020-01-26 14:42:25 -05:00
Sergii Stoian
d4ea1a490f * Source/NSWindow.m (initWithContentRect:styleMask:backing:defer:):
added observer of NSApplicationDidChangeScreenParametersNotification.
  (applicationDidChangeScreenParameters:): callback for added notification -
  updates window position, set new screen object and saves frame if
  autosave name exists.

* Source/NSScreen.m (initialize): remove observer of
  NSApplicationDidChangeScreenParametersNotification - NSScreen shouldn't
  do it. Backend explicitely calls -resetScreens before posting notification.
  (_initWithScreenNumber:): ditto.
  (_resetScreens): removed.
  (deviceDescription): removed duplicated addition of NSDeviceSize object.

* Source/NSApplication.m (finishLaunching): remove observer of
  NSApplicationDidChangeScreenParametersNotification.
2020-01-26 03:13:16 +02:00
Gregory John Casamento
73bbad4059 Initial implementation of NSFontCollection methods. 2020-01-25 19:14:17 -05:00
Gregory John Casamento
479dca0b6d Remove from NSFontCollection.m 2020-01-25 17:49:42 -05:00
Gregory John Casamento
607861def6 Move constants to extern.m 2020-01-25 17:25:55 -05:00
Gregory John Casamento
2f50bad42f Update gitignore 2020-01-25 13:19:33 -05:00
fredkiefer
8a000a6ce2 Remove useless code as the real object is at that time nil. 2020-01-24 22:59:41 +01:00
fredkiefer
db57ab7885 Replace the NSWindowTemplate5 by the runtime attribute @"NSWindowTemplate.visibleAtLaunch" 2020-01-24 21:47:49 +01:00
Sergii Stoian
731abde796 * Source/NSScreen.m (_initWithScreenNumber:): add self as observer to
NSApplicationDidChangeScreenParametersNotification.
(frame): use `_frame` ivar since libs-back recreates screens list.
(dealloc): remove observer.
(applicationDidChangeScreenParameters:): update _frame and _depth
ivars for bad behaving objects which retain NSScreen and not observing
screen parameters changes.
2020-01-24 19:48:28 +02:00
fredkiefer
8c08f0c4b3 Move XIB type detection from GSXibLoader to GSXIBKeyedUnarchiver. 2020-01-24 17:30:28 +01:00
fredkiefer
3541c564e6 Fix typo spotted by Greg. 2020-01-24 16:51:36 +01:00
fredkiefer
978c58bcde HACK to get KVO to work on the array controller class. 2020-01-24 16:50:47 +01:00
Sergii Stoian
41dc7fa9cd Fixed permissions. 2020-01-23 13:57:42 +02:00
Sergii Stoian
232b70967a * Source/NSScreen.m (dealloc): removed unneeded -removeObserver call. 2020-01-23 12:51:51 +02:00
Sergii Stoian
50b7d772c2 * Source/NSScreen.m: retrun back accedentially removed comment. 2020-01-23 12:49:25 +02:00
Sergii Stoian
211d9bcc46 * Source/NSScreen.m (frame): removed extra semicolon. 2020-01-23 12:47:17 +02:00
Sergii Stoian
e0af3bd8c9 * Source/NSMenu.m (_screenChanged): removed.
(initWithTitle:): remove observer for
  NSApplicationDidChangeScreenNotification.
2020-01-23 12:46:03 +02:00
Sergii Stoian
f322393161 * Source/NSApplication.m (finishLaunching): oberver for
NSApplicationDidChangeScreenParametersNotification was added.
2020-01-23 02:10:27 +02:00
Sergii Stoian
fbc08684f4 * Source/NSMenu.m (_initWithScreenNumber:): removed observer for
NSApplicationDidChangeScreenParametersNotification.
  (_updateScreenInfo:): removed obsever action.
  (frame): get screen diension from display server (-boundsForScreen)
  to get actual numbers.
2020-01-23 02:08:55 +02:00
Sergii Stoian
dcec52e7be * Source/NSMenu.m: fixed typo in comment. 2020-01-23 02:05:07 +02:00
fredkiefer
3ac76af826 Move toolbar ivar from NSWindowTemplate5 to NSWindowTemplate. 2020-01-22 20:29:19 +01:00
Sergii Stoian
b3113cd66f * Source/NSScreen.m: (_initWithScreenNumber): observe notification from
baackend on screen changes (display resolution).
* Source/NSScreen.m: (_updateScreenInfo): initial implementation.
2020-01-22 19:15:57 +02:00
Gregory Casamento
22612a641c
Merge pull request #47 from gnustep/NSTouchBar_branch
NSTouchBar branch
2020-01-20 16:47:17 -05:00
Gregory John Casamento
2c3e755825 Move storyboard stuff to storyboard branch 2020-01-20 15:59:25 -05:00
Gregory John Casamento
1e2d243735 Start on storyboard 2020-01-20 15:52:31 -05:00
Gregory John Casamento
d507e88dec Add skeletons 2020-01-20 15:48:02 -05:00
fredkiefer
60fc987fb7 Fix compiler warnings 2020-01-20 20:57:32 +01:00
fredkiefer
e2c59a7bee Merge branch 'master' into xib_document 2020-01-20 19:12:15 +01:00
fredkiefer
09853bffc8 Fix indentation 2020-01-20 19:10:15 +01:00
Gregory Casamento
08c7bbdeaf
Merge pull request #46 from gnustep/NSDataAsset_branch
NSDataAsset branch
2020-01-19 20:44:18 -05:00
Gregory John Casamento
08cf9c3545 fix years 2020-01-19 20:43:49 -05:00
Gregory John Casamento
765e9bfecd Change NSString to NSDataAssetName. 2020-01-19 20:42:40 -05:00
Gregory Casamento
25bdc6e89c
Merge pull request #45 from gnustep/NSAppearance_branch
NSAppearance branch
2020-01-19 20:19:28 -05:00
Gregory John Casamento
9919d63d29 Add dealloc 2020-01-19 16:11:06 -05:00
fredkiefer
bc7c0262c5 Clean up the old XIB loading code. 2020-01-19 18:52:36 +01:00
fredkiefer
46ea0fb36d Merge branch 'master' into xib_document
# Conflicts:
#	ChangeLog
2020-01-19 17:24:04 +01:00
fredkiefer
42d771d589 Get master to guild again after breakage of last commit. 2020-01-19 17:21:51 +01:00
fredkiefer
50bc834ddc Add decoding of binding options and handle bindings to arrays
with transformations correctly.
2020-01-19 13:08:58 +01:00
Gregory John Casamento
c31ec536a2 NSNibOutletConnector and NSNibControlConnector classes added 2020-01-18 19:24:41 -05:00
fredkiefer
00bb2396a6 Diverse imporvements to get my XIB5 test application running. 2020-01-18 16:03:24 +01:00
Gregory John Casamento
7ba1d5f570 ASSIGN in initWithCoder: 2020-01-17 17:45:41 -05:00
Gregory John Casamento
a6c7d1d8fc Add NSDataAsset 2020-01-17 17:34:43 -05:00
Gregory John Casamento
0b23edea63 Add dealloc 2020-01-17 17:29:58 -05:00
Gregory John Casamento
810232cdad Correct some additional issues 2020-01-17 10:06:00 -05:00
Gregory John Casamento
9f2869bc82 Fix a couple of Fred's concerns. 2020-01-17 08:20:33 -05:00
Gregory John Casamento
e17c1287b3 Encoding 2020-01-15 10:39:44 -05:00
Gregory John Casamento
0a402df303 Implement copy 2020-01-15 10:02:58 -05:00
Gregory John Casamento
d9c42f8cc8 Clean compilation 2020-01-15 08:19:59 -05:00
fredkiefer
aeafa9578e Add generic mechanism to decode keys that include the class name.
Also add header clip view to subviews of scroller.
2020-01-12 21:10:54 +01:00
fredkiefer
3a6176b0cf Add observable array and use it for arrangeObjects. 2020-01-12 21:02:16 +01:00
fredkiefer
d7676fb7c2 Use decodeSizeForKey:. 2020-01-12 21:00:00 +01:00
fredkiefer
eb9fd58dce Merge branch 'master' into xib_document
# Conflicts:
#	.gitignore
#	ChangeLog
2020-01-11 19:47:13 +01:00
fredkiefer
5f147345fc Improve predicate editor decoding. 2020-01-11 19:33:24 +01:00
fredkiefer
97cb13a5ff Add some more bindings 2020-01-10 20:53:53 +01:00
Sergii Stoian
9a58a93ee5 * Images/common_StepperDown.tiff,
* Images/common_StepperDownHighlighted.tiff,
* Images/common_StepperUp.tiff,
* Images/common_StepperUpHighlighted.tiff: new images with arrows
similar to scroll view buttons'.

* Source/GSThemeDrawing.m (stepperUpButtonRectWithFrame:),
(stepperDownButtonRectWithFrame:): center buttons horizontally; simplify
and cleanup.

* Source/NSStepper.m (acceptsFirstResponder): return NO. Returning
YES makes sense only if `keyDown:` is implemented.
(acceptsFirstMouse:): return YES.

* Source/NSStepperCell.m (cellSize): initial implementation. Retruns
minimum size based on up and button sizes.
2020-01-10 15:46:22 +02:00
fredkiefer
668ae592f5 Remove unneeded class mappings. 2020-01-07 21:38:07 +01:00
fredkiefer
14f88edfe8 Merge branch 'master' into xib_document
# Conflicts:
#	ChangeLog
2020-01-07 21:27:20 +01:00
fredkiefer
c0714b0de1 Add minimal version of predicate editor copied over from mySTEP. 2020-01-07 21:25:21 +01:00
fredkiefer
9a9f32d1b5 Use a formatter in the NSDatePickerCell. 2020-01-07 17:38:03 +01:00
fredkiefer
dc955b1ce4 Add minimal version of date picker copied over from mySTEP. 2020-01-06 22:25:54 +01:00
fredkiefer
f6ce68d177 Add decoding for object controller and subclasses. 2020-01-06 20:17:23 +01:00
fredkiefer
210ce65e17 Correct handling of NSSelectedIndex and other references.
Add celltitle as a meta font name.
2020-01-06 14:30:04 +01:00
fredkiefer
05b35bd8a6 Small clean up. 2020-01-03 22:15:40 +01:00
fredkiefer
e868f47488 Add changelog entry. 2020-01-03 21:58:32 +01:00
fredkiefer
d45ce451f9 Move XIB type detection into GSXibLoader.m 2020-01-03 18:21:28 +01:00
fredkiefer
97891ed2bb Add definition of NSWindowStyleMask.
Fix some indentation.
Remove commented out code.
2020-01-03 17:49:47 +01:00
fredkiefer
0792f3080d Handle "message" as a font value and adjust the other values to
match the current GNUstep defaults.
2020-01-02 18:16:16 +01:00
fredkiefer
d810eb6945 Work on indentation. 2020-01-01 22:51:40 +01:00
fredkiefer
fd3c43c00d Merge branch 'master' into xib_document 2020-01-01 22:29:05 +01:00
fredkiefer
378bb98c12 Remove more commented out code.
Extract search button method.
2020-01-01 22:28:40 +01:00
fredkiefer
2f5e2b3c84 More renaming. 2020-01-01 16:46:18 +01:00
fredkiefer
f0b36d6ee8 Removed commented out elements from XmlTagToDecoderSelectorMap 2020-01-01 16:36:15 +01:00
fredkiefer
40a9e5f7b2 Fix description methods. 2020-01-01 16:23:03 +01:00
fredkiefer
9ba7063a45 Better handling of state attribute. 2020-01-01 16:10:36 +01:00
fredkiefer
3ce90ffd8a Minor spelling corrections 2020-01-01 14:13:59 +01:00
fredkiefer
0420155566 Clean up code for class NSCustomObject5. 2020-01-01 13:46:53 +01:00
fredkiefer
8b506e12b7 Better handling for DEBUG_XIB5 2020-01-01 13:39:38 +01:00
fredkiefer
250be5c957 Correct indentation. 2020-01-01 13:32:54 +01:00
fredkiefer
b6b28cc41c Better warning text for missing root obejects in XIB. 2020-01-01 13:32:10 +01:00
fredkiefer
d14a7d4ae8 Remove confusing comments. 2020-01-01 13:28:51 +01:00
fredkiefer
65445f6e4f Spelling correction and removal of a newline. 2020-01-01 13:24:39 +01:00
fredkiefer
cc8f4e6137 Document purpose and origin of coding flags. 2019-12-31 18:33:50 +01:00
fredkiefer
560f68323b * Source/NSBundleAdditions.m (-pathForNibResource:): Report type
not filename while iterating.
2019-12-29 22:19:24 +01:00
fredkiefer
d25610bf6a Merge branch 'master' into xib_document 2019-12-24 13:15:38 +01:00
fredkiefer
13c87bc9d0 "pullsDown" should not default to true. 2019-12-24 11:36:56 +01:00
Gregory John Casamento
a8360c0de4 Add string constants 2019-12-22 21:38:14 -05:00
fredkiefer
5c9c641113 Reenable userDefinedRuntimeAttribute handling that got lost.
Correct releasing of reference elements.
Add more font attributes and get the values from NSFont.
2019-12-22 13:46:50 +01:00
Sergii Stoian
1d0d5595a0 * Source/NSBrowser.m (frameOfColumn:): shift up column only for browser
with separated sparated columns layout.
(tile): fix column height calculation; moved sanity check of column
height closer to calculation; removed code that duplicates code below.
2019-12-18 17:35:59 +02:00
Sergii Stoian
3086184b2b * Source/GSThemeDrawing.m (drawScrollViewRect:inView:): minor variables fixes for
variables usage.
2019-12-17 19:50:45 +02:00
Sergii Stoian
7c6a22d174 * Source/NSScrollView.m (tile): tweak location and height of vertical
scroller if header or corner view available.

* Source/GSThemeDrawing.m: (drawTableCornerView:withClip:): do not draw
black rectangle because -drawDarkButton:withClip: draws all necessary
elements.

* Source/GSThemeDrawing.m (drawScrollViewRect:inView:): further cleanup
of method implementation. Removed all tweaks of scroller length - all
required calculations must be done in NSScrollView's -tile method. Simplified
caluclations of X and Y positions of scroller.
2019-12-17 17:30:51 +02:00
Sergii Stoian
20db33e008 * Source/GSThemeDrawing.m (drawScrollViewRect:inView:):
Use [self sizeForBorderType: borderType] to determine border width.
2019-12-17 13:29:30 +02:00
Sergii Stoian
5c96e8ba02 * Source/GSThemeDrawing.m (drawScrollViewRect:inView:): fixed scroller
border positionning and length - do not overlap border if any.
2019-12-17 02:16:05 +02:00
fredkiefer
cbda1229ed Improve string shortening for display. 2019-12-14 18:22:03 +01:00
fredkiefer
d6cfd60462 Add handling for resources. Currently only works for images. 2019-12-14 17:46:29 +01:00
fredkiefer
c542f5df99 Fix accicental copy 2019-12-14 16:35:37 +01:00
fredkiefer
6483cf5037 Handle boolean values with a default of YES once.
Remove duplicated code to decode specific types.
Correct handling of NSNoAutoenable.
2019-12-14 14:23:43 +01:00
fredkiefer
9977b1a921 Imporve toolbar loading.
Build toolbar after NIB loading it.
2019-12-13 23:58:14 +01:00
fredkiefer
bb22c61d3b Simplifiy special code for connections.
Use helper method to create references.
Add toolbar support for windows template.
2019-12-13 18:21:49 +01:00
fredkiefer
e3c9e91ec1 Merge branch 'master' into xib_document 2019-12-13 16:56:09 +01:00
fredkiefer
2b701f8ba3 Add entries for toolbar item 2019-12-13 16:53:56 +01:00
Sergii Stoian
5884e55419 * Source/NSFont.m (smallSystemFontSize): return 10 as default value.
Update documention comment regarding default values for NSMiniFontSize
ans NSSmallFontSize.
2019-12-12 23:20:12 +02:00
fredkiefer
cffa72f107 Add first keys for toolbar decoding 2019-12-12 21:18:45 +01:00
fredkiefer
d5b913c53b Move string UTF8 handling code to super class, where there is similar code. 2019-12-12 17:18:35 +01:00
fredkiefer
83963f9d2a More code simplifications. 2019-12-11 23:46:44 +01:00
Sergii Stoian
e5a7cba164 * Source/NSWindow.m
(initialize): use MiniWindowTile image for miniwindow tile.
(drawRect:): adjusted position of title cell to fit tile image.
(setTitle:): disable drawing of title cell background;
use NSMiniControlSize font size for miniwindow title cell.

* Source/NSFont.m (systemFontSizeForControlSize:): increased default font
size for NSMiniControlSize.
2019-12-11 14:30:44 +02:00
Sergii Stoian
063e5708e7
Merge pull request #37 from trunkmaster/master
Insertion point height fix for NSText* objects
2019-12-11 12:23:06 +02:00
Sergii Stoian
1d19c11923 * Source/GSHorizontalTypesetter.m: removed extra imports left from
last 2 commits.
2019-12-11 12:13:09 +02:00
fredkiefer
3b48bd6277 Simplify alternate name generation 2019-12-11 10:20:48 +01:00
Gregory John Casamento
5f66cf232c Compiling skeleton 2019-12-11 01:17:44 -05:00
Gregory John Casamento
2c883a428b Implement skeleton 2019-12-11 01:09:41 -05:00
Gregory John Casamento
9769e652cd Header skeleton builds 2019-12-11 00:52:27 -05:00
Gregory John Casamento
eb2815acf3 Initial add of NSFontCollection files 2019-12-10 21:18:24 -05:00
fredkiefer
ed79392a09 Four outlet use source instead of target. 2019-12-10 23:38:35 +01:00
fredkiefer
4b8a25072c Add code from Eggplant to shorten strings when displaying in a rect.
This code has been partially rewritten.
2019-12-10 22:23:51 +01:00
Sergii Stoian
fcee2e2c63 * Headers/Additions/GNUstepGUI/GSLayoutManager.h,
Source/GSLayoutManager.m: new method -typingAttributes returns default typing
  attributes of NSTextView.
* Source/NSLayoutManager.m: override GSLayoutManager's -typingAttributes - primitive
  method - provides access to _typingAttributes ivar.
* Source/GSHorizontalTypesetter.m: use new GSLayoutManager's -typingAttributes method
  to get paragraph style and font of new empty text container. Normally `curLayoutManager`
  is a NSLayoutManager object so actually we get NSLayoutManager's _typingAttributes.
2019-12-10 19:23:04 +02:00
fredkiefer
f30ec504a4 Merge branch 'master' into xib_document
# Conflicts:
#	Source/GSXibParser.m
2019-12-10 17:14:25 +01:00
fredkiefer
519d00ea99 Handle menu items with the standard mechanism. 2019-12-10 16:59:08 +01:00
Sergii Stoian
5415783c56 * Source/GSHorizontalTypesetter.m: (_addExtraLineFragment) get paragraph style and
font from NSLayoutManager's typing attributes. Fixes insertion point height for empty
        text objects (NSTextView, NSTexField etc.).
2019-12-10 02:09:13 +02:00
Gregory John Casamento
defbd3889f Merge branch 'master' of github.com:gnustep/libs-gui 2019-12-09 18:45:23 -05:00
Gregory John Casamento
32a5712945 Fix address and license name in all files. 2019-12-09 18:45:15 -05:00
fredkiefer
a69826e40a Started small cleanups. 2019-12-09 16:35:29 +01:00
fredkiefer
244e7a48d7 Remove now obsolete GSXibParser.
Move over more Eggplant changes.
Add basic decoding for bindings.
2019-12-09 14:22:33 +01:00
fredkiefer
9032de5842 Merge branch 'master' into xib_document 2019-12-09 11:16:39 +01:00
Sergii Stoian
01ccd98752 * NSStringDrawing: fixed incorrect string drawing (shortened, misplaced)
in ART backend. It seems that third parameter to `cache_lookup` function
(useScreenFonts) is valuable for ART but not for Cairo backend.
2019-12-09 01:18:53 +02:00
fredkiefer
378c1c4077 Take over the Eggplant code for XIB document decoding,
with slight cleanups to get it working with gcc.
2019-12-08 23:47:53 +01:00
fredkiefer
451afde6a7 * Headers/AppKit/NSGestureRecognizer.h
* Source/NSGestureRecognizer.m: Restore code by Daniel Ferreira
* Headers/AppKit/NSButtonTouchBarItem.h
* Headers/AppKit/NSCandidateListTouchBarItem.h
* Headers/AppKit/NSClickGestureRecognizer.h
* Headers/AppKit/NSColorPickerTouchBarItem.h
* Headers/AppKit/NSCustomTouchBarItem.h
* Headers/AppKit/NSGroupTouchBarItem.h
* Headers/AppKit/NSMagnificationGestureRecognizer.h
* Headers/AppKit/NSPanGestureRecognizer.h
* Headers/AppKit/NSPickerTouchBarItem.h
* Headers/AppKit/NSPopoverTouchBarItem.h
* Headers/AppKit/NSPressGestureRecognizer.h
* Headers/AppKit/NSRotationGestureRecognizer.h
* Headers/AppKit/NSSharingServicePickerTouchBarItem.h
* Headers/AppKit/NSSliderTouchBarItem.h
* Headers/AppKit/NSStepperTouchBarItem.h
* Headers/AppKit/NSTouchBarItem.h
Clean up after Greg's commit.
2019-12-06 22:50:13 +01:00
Gregory John Casamento
bdadefeebd Add all files and fix compilation 2019-12-06 05:01:51 -05:00
Gregory John Casamento
b0b20cd32e Add macOS specific class skeletons 2019-12-05 12:57:38 -05:00
Gregory John Casamento
7e81e90e02 Removed all instances of include in new files. 2019-12-04 12:02:49 -05:00
Gregory John Casamento
f5026dfa97 include -> import 2019-12-04 08:40:35 -05:00
Gregory John Casamento
5b8db43dd2 Delegate to the rep instead of using the lower level function 2019-12-04 08:22:43 -05:00
Gregory John Casamento
676066b94d Fix issue with formatting 2019-12-04 08:16:26 -05:00
Gregory John Casamento
335e529cd5 Add NSCIImageRep added in 2019-12-03 18:47:36 -05:00
Gregory John Casamento
4c56da1c57 Remove 'heron' from headers 2019-12-03 17:26:19 -05:00
Gregory John Casamento
782a8efcbe Remove GSSVG* files since they are not needed 2019-12-03 17:19:18 -05:00
Gregory John Casamento
95dbcd2b40 Merge branch 'master' into NSImageReps_branch 2019-12-03 13:11:21 -05:00
Gregory John Casamento
6adaf911b5 Complete NSPICTImageRep implementation 2019-12-03 08:30:17 -05:00
fredkiefer
7f07e4dd43 * Source/NSBitmapImageRep.m (-_convertToFormatBitsPerSample:...):
+	Correct division by zero bug in image conversion.
2019-12-02 22:46:44 +01:00
Gregory John Casamento
325dbe5ac6 Working implementation of NSEPSImageRep 2019-12-02 14:23:08 -05:00
Gregory John Casamento
208116ad08 Working NSPDFImageRep 2019-12-02 10:53:08 -05:00
Gregory John Casamento
eda8ed07eb Export GSImageMagickImageRep.h so that it can to used externally 2019-11-30 06:21:51 -05:00
Gregory John Casamento
b13662baac remove method 2019-11-29 13:12:25 -05:00
Gregory John Casamento
22170a73b3 Add name to headers 2019-11-29 13:01:42 -05:00
Gregory John Casamento
2050631ca6 Base the new image reps off of GSImageMagickImageRep since both formats are supported by that image rep. The subclasses will access specific features not exposed in the GSImageMagickImageRep for those formats 2019-11-29 11:04:03 -05:00
Gregory John Casamento
4afa52fb1e Add PICT structure 2019-11-26 19:15:12 -05:00
Gregory John Casamento
a2b196b422 Spelling correction 2019-11-24 06:03:07 -05:00
Gregory John Casamento
dd2851da69 Add instance vars 2019-11-24 00:35:04 -05:00
Gregory John Casamento
fd19580d71 NSPDFInfo and NSPDFPanel skeletons 2019-11-22 07:06:39 -05:00
Gregory John Casamento
943a323002 Commit skeleton 2019-11-22 05:07:45 -05:00
Gregory John Casamento
c3bd876fa5 Add PICT skeleton 2019-11-22 02:52:31 -05:00
Gregory John Casamento
10a81f89f3 Clean build 2019-11-22 02:16:05 -05:00
Gregory John Casamento
bd8d45d9ff NSDockTile implemented 2019-11-21 01:17:14 -05:00
Gregory John Casamento
efa86f1d11 Add new files 2019-11-18 05:23:30 -05:00
Gregory John Casamento
8977cd7a76 Add missing file. 2019-09-14 09:31:22 -04:00
Gregory John Casamento
95736faf13 Remove uneeded file. 2019-09-11 20:17:32 -04:00
Gregory John Casamento
b69ffad1f9 Fix minor issues with move of NSFileWrapper 2019-09-11 12:31:38 -04:00
Gregory John Casamento
ecea8da743 Migrate NSFileWraper to base. 2019-09-10 09:55:07 -04:00
Gregory John Casamento
311b338248 Move NSFileWrapper to Foundation. 2019-09-08 17:32:05 -04:00
fredkiefer
5756e5f396 * Source/NSSliderCell.m: Fix encoding/decoding as the types don't match.
* Source/NSApplication.m (-targetForAction:to:from:): Warn only in
debug mode about the target not responding to the action.
2019-07-28 20:12:26 +02:00
fredkiefer
1e05899a0f * Header* Headers/AppKit/NSColor.h,
+	* Source/NSColor.m: Add tool tip named colours.
+	* Source/GSToolTips.m (+initialize, -_timedOut:): Get colours from NSColor.
2019-07-07 21:39:25 +02:00
Sergii
5cd059d40c
Merge pull request #1 from gnustep/master 2019-04-22 12:12:50 +03:00
Gregory John Casamento
f6f36041b3 Initial implementations 2019-04-20 08:00:23 -04:00
Gregory John Casamento
fdbda917bd Initial implementations 2019-04-20 07:42:12 -04:00
Gregory John Casamento
20650d869c Add methods for scriptability for completeness 2019-04-20 06:37:08 -04:00
Sergii Stoian
bdd241a52d * Headers/AppKit/NSCursor.h:
* Source/NSCursor.m (greenArrowCursor):
Use getStandardCursor() to get GSGreenArrowCursor. New cursor type
GSGreeanArrowCursor was added.
2019-04-17 17:46:16 +03:00
Sergii Stoian
73d3aec68f * Source/GSDragView.m (_setCursor): Do not hold cursors array -
use NSCursor's methods. Do not recolor cursor and just use
[NSCursor greenArrowCursor].
2019-04-17 17:44:54 +03:00
Gregory John Casamento
dd8a79f0df Add code to trim newlines if cell is in single line mode. Add code to encode single line mode 2019-04-13 23:43:27 -04:00
Gregory John Casamento
20b9c44626 Add code to read flag from nib file for usesSingleLineMode 2019-04-13 21:29:29 -04:00
Gregory John Casamento
9b248d7b64 Merge branch 'master' of github.com:gnustep/libs-gui into bug33395_uses_single_line_mode 2019-04-12 08:21:37 -04:00
Sergii Stoian
4da4aa142b (drawKeyEquivalentWithFrame:inView:): use NCell's textColor instead of check
if we're disabled/enabled.
2019-04-10 12:08:33 +03:00
Gregory John Casamento
ae49b8374a Merge branch 'master' of github.com:gnustep/libs-gui into bug33395_uses_single_line_mode 2019-04-10 00:31:57 -04:00
Sergii Stoian
1b0e90686a (drawKeyEquivalentWithFrame:inView:): check if item is disabled/enabled and set
color attribute for attributed key equivalent string.
2019-04-10 00:40:20 +03:00
Sergii Stoian
9295b2311b (_keyEquivalentString): if modifier key string is not defined - set key
equivalent font trait: Italic for Alternate modifier Bold - for Control.
(_sizeKeyEquivalentText:): new method to calculate string size wrt font
set in `_keyEquivalentString:`.
(drawKeyEquivalentWithFrame:inView:): draw key equivalent as attributed
string.
2019-04-09 18:51:23 +03:00
Sergii Stoian
7e2ce21a24 * Source/NSApplication.m: (needsPanelToBecomeKey): removed superfluous
override - superclass (NSView) already returns `NO`.
2019-04-08 12:57:43 +03:00
Sergii Stoian
e27ffe6330 * Source/NSApplication.m (becomesKeyOnlyIfNeeded),
(needsPanelToBecomeKey): override NSWindow and NSView methods
in appicon to reduce number of order front calls. The source
of the calls is NSWindow's sendEvent:.
2019-04-08 02:54:35 +03:00
Sergii Stoian
b5e65175a3 hidewindow methods was renamed to hideApplication. 2019-04-06 22:36:56 +03:00
Sergii Stoian
f5bcf3019b Change comments upon request of @fredkiefer. 2019-04-06 01:23:17 +03:00
Sergii Stoian
07dcc41ad0 (hidewindow:): fixes to return value and type. 2019-04-06 00:25:09 +03:00
Sergii Stoian
f018c2087b Added support for WindowMaker's WMFHideApplication action. 2019-04-05 14:07:33 +03:00
Sergii Stoian
f8c955acf4 Optimize -autolaunch YES checking code. 2019-04-03 02:10:37 +03:00
Sergii Stoian
df5a79d769 Removed temporary debug output. 2019-04-03 00:53:08 +03:00
Sergii Stoian
2071f6acdd Do not activate application on first run of -activateIgnoringOtherApps: if commandline argument -autolaunch YES was specified. 2019-04-02 19:45:14 +03:00
Gregory John Casamento
9fba22c582 Fix issue with new attribute 2019-03-27 00:53:43 -04:00
Gregory John Casamento
4406c7de45 Changes for bug33395: Adds missing setter implementation. Changes to follow for behavioral and archival changes. 2019-03-09 09:47:23 -05:00
Gregory John Casamento
e833084f6d Add method setUsesSingleLineMode: and usesSingleLineMode 2019-03-09 05:43:38 -05:00
fredkiefer
a7d572f744 * Source/NSBitmapImageRep+ICNS.m (_imageRepsWithICNSData:): Try to
put the best suited image first.
2019-02-26 21:31:11 +01:00
fredkiefer
d9c033d464 * Headers/Additions/GNUstepGUI/GSHorizontalTypesetter.h: Add
comment to describe cache variables.
* Source/GSHorizontalTypesetter.m: Restructure glyph attribute
cache filling and make _addExtraLineFragment saver by providing a
default for curParagraphStyle.
2019-02-10 22:17:36 +01:00
Riccardo Mottola
682aa3ccdc Do guard includes for getmntinfo and mntent separately, should help building on Debian/kFreeBSD and fix 55526, but could need more work. 2019-01-21 23:23:16 +01:00
fredkiefer
8e57d2a127 * Documentation/news.texi: Fill in some details for pending release.
* Source/NSTableView.m (encodeWithCoder:,initWithCoder:): Use
unsigned int instead of unsigned long for flags.
2019-01-04 17:01:57 +01:00
Riccardo Mottola
b8e6de05a3 On linux, try to read /sys/block/xxx/removable information to get information about removable volumes, while continue honoring preferences. This can be a little inefficient if called for each volume. Furthermore in mountedLocalVolumePaths, enhance skipping reserved mount names by using filesystem type also if getmmntent is available. 2018-11-19 01:49:02 +01:00
fredkiefer
b90d3a341e * Source/NSGraphicsContext.m (+graphicsContextWithGraphicsPort:flipped:):
Rewrite using an init method.
2018-09-14 22:18:16 +02:00
Wolfgang Lux
397a4116cc Avoid calling iconSize method on a null pointer. 2018-08-05 11:18:32 +02:00
fredkiefer
0e1c392ff0 * Source/NSApplication.m (-applicationIconImage): Lazy load the app icon. 2018-08-03 19:37:29 +02:00
fredkiefer
9d8dc3ba55 * Source/NSView.m (-beginPageInRect:atPlacement): Remove check for
empty rect. This will now use the placement translation all the time.
2018-07-27 10:09:44 +02:00
Gregory John Casamento
d4bfdd5580 Fix issue with app icon. 2018-07-20 09:15:26 -04:00
Gregory John Casamento
c9ae46c7ce Fix app icon in dock 2018-07-20 04:08:26 -04:00
fredkiefer
4b04426c06 * Source/NSPrinter.m (-addPPDKeyword:withScanner:withPPDPath:):
Protect against value being nil.
* Source/NSPageLayout.m (-tableView:objectValueForTableColumn:row:):
With standard papers, calculate margins taking into account factorValue.
* Source/NSPrintInfo.m (-initWithDictionary): Fix border calculation.
Idea by Yavor Doganov <yavor@gnu.org>
2018-07-14 20:21:32 +02:00
Ivan Vučica
44f8a4dccb NSOpenGLView.m: Fix docstring for -[NSOpenGLView initWithFrame:pixelFormat:].
There is no such thing as +[NSOpenGLContext defaultPixelFormat].
2018-07-08 12:43:29 +00:00
Riccardo Mottola
96fbdaa81f Check for floorf() and provide simple replacement 2018-06-11 23:46:06 +02:00
Fred Kiefer
584adbd401
Merge branch 'master' into document-nswindowcontroller 2018-05-28 02:56:25 -04:00
fredkiefer
2f9c16ad81 * Source/NSDocument.m (-revertToContentsOfURL:ofType:error:): Add
override calls for deprecated methods.
2018-03-30 17:01:12 +02:00
Graham Lee
436f5efb8f Document methods I have recently used in NSWindowController 2018-03-29 19:38:54 +01:00
fredkiefer
760cfa6d62 * Headers/AppKit/NSSliderCell.h,
* Source/NSSliderCell.m: Rewrite this class to store and access
the value directly. This brings the behaviour closer to Apple's
horrible implementation.
2018-03-11 19:09:08 +01:00
fredkiefer
5735e0775d * Source/NSSegmentedCell.m (-startTrackingAt:inView:,
-continueTracking:at:inView:): Add this methods to enable
tracking for this class.
Patch suggested by Josh Freeman <pikopixel@twilightedge.com>.
2018-02-27 23:32:11 +01:00
fredkiefer
3ad98f9474 * Headers/Additions/GNUstepGUI/GSTheme.h,
* Source/GSThemeDrawing.m: Correct int/NSInteger mismatch detected
by Josh Freeman <pikopixel@twilightedge.com>.
2018-02-27 22:02:54 +01:00
fredkiefer
f2ebe775d9 * Headers/AppKit/NSKeyValueBinding.h,
* Source/NSKeyValueBinding.m: Add helper function NSIsControllerMarker.
2018-02-26 00:13:15 +01:00
fredkiefer
41e02a5ed5 * Source/GSDisplayServer.m: Store the current display server in a
static variable and not in a thread variable.
Idea by Yavor Doganov  <yavor@gnu.org>
2018-02-09 21:31:03 +01:00
fredkiefer
caa58cf72b Tiny fix for bug found by valgrind.
Make sure nominal gets always set for a glyph.
2018-02-05 23:25:36 +01:00
fredkiefer
712e7a4e15 Close sheet before removing from parent.
* Source/NSAlert.m (NSBeginAlertSheet): Move closing the sheet from
here...
* Source/NSApplication.m (-beginSheet:...:contextInfo:): ...to here.
2018-02-04 21:18:43 +01:00
fredkiefer
9451330883 * Source/NSApplication.m (-targetForAction:to:from:): Warn about
the target not responding to the action.
* Source/NSSavePanel.m (_initWithoutGModel): Don't set the OK
button as the target of the browser. Use helper method instead.
2018-01-23 20:56:52 +01:00
fredkiefer
618e31ff42 * Source/NSMenu.m (-update): Restructure by splitting up into two
helper methods.
* Source/NSMenu.m (-performKeyEquivalent:): Use new helper method
to only autoenable menu item with matching key equivalent.
2018-01-14 18:41:23 +01:00
fredkiefer
d31ae5f49b * Source/GSLayoutManager.m
(-glyphRangeForCharacterRange:actualCharacterRange:): Try to
handle attachments at the end of the file more graceful.
2018-01-14 18:17:05 +01:00
fredkiefer
85ba90244b * Source/NSView.m (-_rebuildCoordinates): Use simple path only
when both window and superview are nil. Set the visibleRect in
this case to bounds.
2018-01-07 16:47:36 +01:00
fredkiefer
0c46bc4380 * Source/NSApplication.m (-targetForAction:to:from:): Return nil
if the target is non-nil but does not respond to the action.
2018-01-07 15:09:57 +01:00
Richard Frith-Macdonald
ec19a2de9a Workaround for apparent clang bug calculating ivar offset into NSThread object. 2017-12-27 12:15:31 +00:00
Ivan Vučica
280c3e0095 Clean up -[NSImage initWithCoder:], reduce amount of releases of self.
Some context available in PR #12 and  PR #13.
2017-12-07 19:07:43 +00:00
fredkiefer
7270f8efc7 Add new backingScaleFactor method on NSScreen. 2017-12-03 22:02:06 +01:00
Ivan Vučica
350ba62d7d
Cleanup: Replace tabs with spaces in NSImage.m. 2017-10-29 14:25:47 +00:00
Graham Lee
aff13d41bb correct decoding of named images from keyed archivers
As @tedge noted on the original pull request for this work, I didn't return the correct object in the keyed archiver case.
2017-10-29 14:23:35 +00:00
Graham Lee
2c34ae8fe5 revert spurious whitespace change 2017-10-28 08:48:36 +01:00
Graham Lee
5e3ed6dff7 If an unknown named image is unarchived, keep the name 2017-10-28 08:45:05 +01:00
fredkiefer
e3d51643ca Protect against [window screen] returning nil. 2017-10-05 23:05:28 +02:00
fredkiefer
3ac7a369c5 * Source/NSStepperCell.m (-trackMouse:...untilMouseUp:): Adjust
to changes in super class.
2017-08-31 23:57:41 +02:00
fredkiefer
c72d2df3ff * Source/NSButtonCell.m (-setButtonType:): Warn about unsupported
button types.
* Source/NSCell.m (-performClickWithFrame:inView:): Highlight the
cell only if drawing is possible.
2017-08-27 11:23:43 +02:00
fredkiefer
e853f4fdbf Rewrote mouse tracking logic to be closer to the Cocoa definition. 2017-08-27 11:13:17 +02:00
Daniel Ferreira
3a1bec5d1f Externs: add private string attribute definitions
Define some private NSAttributedString attribute name definitions. Their
functionality is not yet implemented.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
471a81ddb8 NSSpellChecker: implement stub for +isAutomaticQuoteSubstitutionEnabled
Implement stub for +[NSSpellChecker isAutomaticQuoteSubstitutionEnabled]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
39d9105d35 NSSpellChecker: implement stub for +isAutomaticDashSubstitutionEnabled
Implement stub for +[NSSpellChecker isAutomaticDashSubstitutionEnabled]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
9e8ef84b54 NSGestureRecognizer: implement stub for -locationInView:
Implement stub for -[NSGestureRecognizer locationInView:] for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
3e9cdce801 NSWindow: add stub for +windowNumberAtPoint:belowWindowWithWindowNumber:
Add stub for +[NSWindow windowNumberAtPoint:belowWindowWithWindowNumber:]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
10d0dce115 NSSpellChecker: add stub for -checkGrammarOfString:...
Add a stub for the -checkGrammarOfString:... method for compatibility
purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
677572bef1 NSSpellChecker: add stub for +isAutomaticTextReplacementEnabled
Add stub for +[NSSpellChecker isAutomaticTextReplacementEnabled] for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
9ce55e08ca NSSpellChecker: add missing definitions
Add definitions for the NSCorrectionResponse enum for increased
compatibility, as well as some spell checking notification constants.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
4f4db46c87 NSWindow: add stub for -backingScaleFactor
Add stub for -[NSWindow backingScaleFactor] for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
07d0f2002f NS{Application,Window}: define modal constants
Define constants and stubs related to modal sheets in GUI for increased
compatibility.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5e8b278e93 NSFont: define font weight constants
Define font weight constants introduced in macOS 10.11.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5a66de7139 Externs: export the _NXSmartPaste constant
Export the private _NXSmartPaste constant for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
1560978a60 NSAttributedString: add private attribute stub
Add a stub for NSTextInsertionUndoableAttributeName, a private
NSAttributedString attribute.
2017-08-27 01:42:00 +01:00
Riccardo Mottola
78be5ef0ea Initialize density to 0, so that in case it is unset (72dpi) it is not a random value in case the struct is not zeroed 2017-08-25 14:20:58 +02:00
fredkiefer
b713d0c023 Clean up NSPasteboardItem files. 2017-07-31 23:21:59 +02:00
Daniel Ferreira
257017c65f NSGraphicsContext: create -CGContext methods
Create methods which allow a graphics context to be created with a
CGContext as an equivalent to a graphics port. The context set through
this property will be used in gnustep-back.
2017-07-31 11:41:11 +01:00
Ivan Vučica
1cb15c2735 Remove RETAIN() when returning -[NSPasteboardItem types].
Objective-C memory management policy specifies that methods named with
alloc, new, copy and mutableCopy are the ones that return objects with
refcount 1.

Additionally, `@property (..., copy, ...)` only modifies the setter; the getter
still returns the object as-is. While it should be correct to create
a new immutable object every time, we should not create an object
with refcount 1, but an autoreleased object.
2017-07-31 11:36:15 +01:00
Ivan Vučica
4026fbc2be Add _startingItemNumber-related TODOs to NSTextList. 2017-07-31 11:26:43 +01:00
Daniel Ferreira
6d4302cd97 NSTextList: create startingItemNumber property
Add the `startingItemNumber` property to NSTextList introduced in macOS
10.6.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
5403e47b60 NSPasteboardItem: create base implementation
Implement the NSPasteboardItem class. For now, it remains relatively
useless since NSPasteboard does not yet know how to use it. However, it
should be pluggable into NSPasteboard once NSPasteboard learns about
NSPasteboardReading and NSPasteboardWriting.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
ac26b6725b NSTextAlternatives: implement text alternatives class
Implement NSTextAlternatives, a class usually used for choosing
alternatives from a basic string usually for dictation purposes.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
fcb11edca8 NSScroller: define scroller styles
As of macOS 10.7, scrollers gained two types: Legacy and Overlay. Here,
we define these styles as well as a method to determine which is the
"default" style to be used.
2017-07-31 11:22:59 +01:00
fredkiefer
e85a1a0664 * Source/NSMenuView.m (-attachSubmenuForItemAtIndex:): We should
not use [NSMenu display] for NSWindows95InterfaceStyle as there we
	have two NSMenuViews for the NSMenu.
2017-07-28 19:24:45 +02:00
Riccardo Mottola
5627b69f1a Do not initialize a string constant with another string constant or it breaks GCC build as is. Better proposals to ensure the exact same string pointer is used welcome. 2017-07-26 14:23:00 +02:00
Daniel Ferreira
fbdea829c0 NSAttributedString: define writing direction attribute
Define an (unimplemented) NSAttributedString attribute for Unicode
writing direction.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
b29d85f451 NSAttributedString: define NSTextAlternatives attribute
Define an (unimplemented) NSAttributedString attribute for an
NSTextAlternatives object.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
758d524547 NS{Cell,View}: implement stubs for layout direction handling
Implement stubs for the layout direction properties in NSCell and
NSView. Currently, they default to left-to-right layouting.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
05c58fe023 NSAccessibility: declare base Accessibility APIs
Declare base NSAccessibility functions and constants, which have been
implemented as stubs.

In the near future, we could begin supporting some NSAccessibility
informal protocol features (for instance, elements ignored in the
accessible view hierarchy). However, for even considering thorough
accessibility support we would require, at least:

* A proper implementation of the AX* API in gnustep-boron;
* Design integration with screen reading software and other components
for an accessible graphic environment.

which are most certainly long-term tasks.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
e9b0367207 NSControl: create stub for -sizeThatFits:
Create a stub for the -[NSControl sizeThatFits:] function.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
16b0299916 NSVisualEffectView: create class stub
Create stub for the NSVisualEffectView class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
62ec654335 NSScrollView: create stubs for inset properties
Create stubs for the content/scroller inset properties in NSScrollView.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
ecb4178417 NSGestureRecognizer: create stub for class
Create stub for the NSGestureRecognizer class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f1abcb313a NSSpeechSynthesizer: define new constants
Define new constants in NSSpeechSynthesizer. These are not yet handled
by the implementation.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
75dd71b149 NSRunningApplication: create stub for class
Create a stub for the NSRunningApplication class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
819c459f6f NSUserInterfaceLayout: create interface layout constants
Define interface layout enums to be used by AppKit. This improves
compatibility with the reference platform.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
3d88922f45 NSUserInterfaceItemIdentification: introduce protocol
Introduce the NSUserInterfaceItemIdentification protocol, which required
an user interface class provide an unique identifier.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
4769fc8edd NSSharingService: define class
Define the NSSharingService class as an unimplemented stub for
compatibility purposes.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
bb6805742d NSView: define layer-related properties
Define layer-related properties in NSView for compatibility purposes,
and keep their getters and setters as stubs, since they will not have
any effect before NSView-CALayer integration is implemented.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
9e80b07531 NSPasteboard: define new constants
Define new constants for NSPasteboard type identifiers. Most of them are
aliases to the old "Pboard"-style types, although some new ones are not
fully implemented:

* NSPasteboardTypePNG
* NSPasteboardTypeSound
* NSPasteboardTypeMultipleTextSelection
* NSPasteboardTypeTextFinderOptions
2017-07-25 22:33:12 +01:00
fredkiefer
fd6e7f2e42 Fix small bug found by compiler. 2017-07-22 20:44:45 +02:00
fredkiefer
6f22d6429e Add phase method forgotten in last commit. 2017-07-22 20:38:39 +02:00
fredkiefer
a02b40a9dd Add some enums and the method -momentumPhase to NSEvent. 2017-07-22 20:17:00 +02:00
fredkiefer
025b73ce6d Add some newer Cocoa methods for NSEvent. 2017-07-09 22:02:40 +02:00
Riccardo Mottola
4ba0fa25cc Save resolution information if it is different from 72 dpi 2017-06-20 20:14:50 +00:00
fredkiefer
fc8c034aca * Source/externs.m: Added semicolons missing in last commit.
* Source/NSSavePanel.m: Fix return type of sorting function.
2017-06-20 20:14:40 +00:00
TheDharc
2f4343438a Update externs.m
adding what lacks
2017-06-20 20:13:36 +00:00
Riccardo Mottola
9c7eeb9c20 Support for writing resolution
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40491 72102866-910b-0410-8b05-ffd578937521
2017-04-24 10:42:32 +00:00
Fred Kiefer
099257dac9 Fix some clang static analyser warnings reported by
Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40484 72102866-910b-0410-8b05-ffd578937521
2017-04-16 11:54:21 +00:00
Fred Kiefer
521fd071b4 Make the class GSXibKeyedUnarchiver public again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40449 72102866-910b-0410-8b05-ffd578937521
2017-04-05 21:51:43 +00:00
Fred Kiefer
753415895b 2017-04-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenu.m (-displayTransient): Update menu before displaying.
	* Source/NSMenuView.m (-attachSubmenuForItemAtIndex:): Use NSMenu
	display method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40431 72102866-910b-0410-8b05-ffd578937521
2017-03-31 22:14:50 +00:00
Fred Kiefer
34bbb5e95d 2017-03-31 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAttributedString.m: Check for surrogate UTF16
	characters to prevent nil strings when trying to attempt fonst
	substitution.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40430 72102866-910b-0410-8b05-ffd578937521
2017-03-31 21:49:09 +00:00
Riccardo Mottola
90d793695b Ignore density if unit is 0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40429 72102866-910b-0410-8b05-ffd578937521
2017-03-31 15:35:46 +00:00
Riccardo Mottola
c774fd75c3 use double and better math to avoid rounding errors especially with cm->inch conversion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40427 72102866-910b-0410-8b05-ffd578937521
2017-03-28 15:35:38 +00:00
Riccardo Mottola
28b15bce9f Parse density data and set size accordingly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40425 72102866-910b-0410-8b05-ffd578937521
2017-03-28 13:51:12 +00:00
Fred Kiefer
083b34fe1c * Source/NSBitmapImageRep+JPEG.m(-_JPEGRepresentationWithProperties:errorMessage:):
Correct JPEG export which was using size instead of pixelsWide and pixelsHigh.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40415 72102866-910b-0410-8b05-ffd578937521
2017-03-24 23:06:31 +00:00
Fred Kiefer
19dc4dbb94 * Source/GSXibKeyedUnarchiver.m:
Merge some of the changes from the testplant branch.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40406 72102866-910b-0410-8b05-ffd578937521
2017-03-20 23:04:27 +00:00
Fred Kiefer
db123bcd81 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40403 72102866-910b-0410-8b05-ffd578937521
2017-03-19 19:26:04 +00:00
Riccardo Mottola
3d777c81fe log the event itself (by Fred)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40365 72102866-910b-0410-8b05-ffd578937521
2017-03-06 09:40:01 +00:00
Fred Kiefer
2efe9de227 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40362 72102866-910b-0410-8b05-ffd578937521
2017-03-05 22:12:15 +00:00
Fred Kiefer
1323c50d6e * Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:): Add
extra line fragment for empty string here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40350 72102866-910b-0410-8b05-ffd578937521
2017-02-20 22:32:13 +00:00
Fred Kiefer
a33b4c5073 * Source/GSLayoutManager.m (-usedRectForTextContainer:): Add extra
line rect when needed.
	* Source/NSTextView.m (sizeToFit): Don't add extra line rect, as
	it is now already included.
	* Source/NSStringDrawing.m (cache_lookup): Remove hack for empty string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40346 72102866-910b-0410-8b05-ffd578937521
2017-02-17 19:44:25 +00:00
Fred Kiefer
f5ce3badde * Source/NSStringDrawing.m: Use shared drawing code.
* Source/NSStringDrawing.m (cache_lookup): Try to handle case of
	empty string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40342 72102866-910b-0410-8b05-ffd578937521
2017-02-12 21:08:51 +00:00
Fred Kiefer
31cb9914d1 * Source/NSStringDrawing.m: Clean up string drawing cache code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40334 72102866-910b-0410-8b05-ffd578937521
2017-02-12 15:47:17 +00:00
Fred Kiefer
3a89e9e7c5 * Source/NSMenu.m (-_isVisible, -_isMain): Add two helper
methods. And make sure we update the menu items before display and
	keyEquivalent processing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40285 72102866-910b-0410-8b05-ffd578937521
2017-01-08 19:33:32 +00:00
Fred Kiefer
baee6ec03b * Source/NSMenu.m (-update): Update only visible submenus.
* Source/NSMenu.m: Complete switch to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40283 72102866-910b-0410-8b05-ffd578937521
2016-12-31 16:03:01 +00:00
Fred Kiefer
2b401268fc Don't try to get the advancement for GSAttachmentGlyph.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40272 72102866-910b-0410-8b05-ffd578937521
2016-12-18 11:58:31 +00:00
Fred Kiefer
ca8abf4c27 * Headers/Additions/GNUstepGUI/GSToolbarView.h
* Source/GSToolbarView.m
	Change draggedItemIndex to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40270 72102866-910b-0410-8b05-ffd578937521
2016-12-17 00:00:19 +00:00
Wolfgang Lux
bc9b909528 Change mlock in NSWorkspace into a private variable to avoid name
conflict with a libc function on Linux.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40264 72102866-910b-0410-8b05-ffd578937521
2016-12-15 10:59:09 +00:00
Fred Kiefer
0e6e771ba9 * Headers/AppKit/NSColorPanel.h: Change -alpha to CGFloat.
* Source/NSColorPanel.m: Remove left over GModel loading code.
	Set default mode to colour wheel.
	Small cleanups mostly in comments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40229 72102866-910b-0410-8b05-ffd578937521
2016-11-21 22:33:53 +00:00
Fred Kiefer
0772d452fb * Source/NSColorPanel.m (-_initWithoutGModel): Correct target for
bottom wells.
	* Source/NSColorWell.m (-performClick:): Add this method and use
	it in -mouseUp:.
	Patch by Josh Freeman <pikopixel@twilightedge.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40228 72102866-910b-0410-8b05-ffd578937521
2016-11-21 20:54:13 +00:00
Riccardo Mottola
a944200159 minor type fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40191 72102866-910b-0410-8b05-ffd578937521
2016-11-03 16:04:34 +00:00
Fred Kiefer
a3d9637182 2016-10-29 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep.m: Set the TIFF subfield type to 0
	instead of 255.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40185 72102866-910b-0410-8b05-ffd578937521
2016-10-29 12:29:26 +00:00
Fred Kiefer
83c7444c8a * Source/NSBitmapImageRep+JPEG.m: Try to handle images with alpha
or planar images correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40175 72102866-910b-0410-8b05-ffd578937521
2016-10-24 21:06:23 +00:00
Richard Frith-MacDonald
b8d286ba7e Create lock in +initialize so it can safely be used to prevent threads in the
same process from trying to obtain the distributed lock concurrently.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40174 72102866-910b-0410-8b05-ffd578937521
2016-10-24 13:45:56 +00:00
Gregory John Casamento
7ea5efb7eb Fix for lock issue in gui when starting applications on some platforms. Please try and give feedback as this issue is not consistent. Tested by myself and rmottola.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40170 72102866-910b-0410-8b05-ffd578937521
2016-10-24 08:07:49 +00:00
Fred Kiefer
2f2bda5aa4 * Source/NSWindow.m (NSMiniWindowView -setImage:): Try to handle
an image value of nil. This is needed for Emacs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40168 72102866-910b-0410-8b05-ffd578937521
2016-10-23 20:36:14 +00:00
Fred Kiefer
2572daeff4 * Source/GSLayoutManager.m (-advancementForGlyphAtIndex:):
Simplify this method and move it in the file.
	* Source/NSLayoutManager.m: Use the pre-computed advancement
	instead of calculating it every time.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40167 72102866-910b-0410-8b05-ffd578937521
2016-10-23 20:13:37 +00:00
Fred Kiefer
d0d119d365 * Source/GSLayoutManager.m: Don't try to get the advancement for NSControlGlyph.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40166 72102866-910b-0410-8b05-ffd578937521
2016-10-21 22:42:38 +00:00
Fred Kiefer
6974bf8a4f Some int -> NSInteger and float -> CGFloat transitions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40138 72102866-910b-0410-8b05-ffd578937521
2016-10-08 21:17:53 +00:00
Fred Kiefer
20feeb7212 * Source/GSFontInfo.m (-fontDescriptor): Simplify creation of font
descriptor. Use only the minimal attributes.
	* Source/NSFontDescriptor.m (-postscriptName): Generate PS name
	from font name itself.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40092 72102866-910b-0410-8b05-ffd578937521
2016-09-19 20:53:34 +00:00
Fred Kiefer
bee385f514 * Source/NSDocumentController.m: Add missing semicolon.
Patch by Galen Rhodes <galenrhodes@me.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40048 72102866-910b-0410-8b05-ffd578937521
2016-08-02 20:53:55 +00:00
Riccardo Mottola
c3ab82b30e If we have no face set, don't append null
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40028 72102866-910b-0410-8b05-ffd578937521
2016-07-19 23:03:08 +00:00
Gregory John Casamento
564ea8d330 Revert change to NSView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40017 72102866-910b-0410-8b05-ffd578937521
2016-07-19 14:48:12 +00:00
Riccardo Mottola
c990c0152e fix again\!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40012 72102866-910b-0410-8b05-ffd578937521
2016-07-19 10:43:12 +00:00
Gregory John Casamento
6541c05a04 Move changes to new branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40011 72102866-910b-0410-8b05-ffd578937521
2016-07-18 15:59:44 +00:00
Gregory John Casamento
cd216f8e32 Reverted previous changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40009 72102866-910b-0410-8b05-ffd578937521
2016-07-18 15:47:56 +00:00
Riccardo Mottola
dae84d53ea Use CGFloat as original structures do and double for scale instead of CGFloat -> double -> float
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40006 72102866-910b-0410-8b05-ffd578937521
2016-07-18 09:01:51 +00:00
Riccardo Mottola
d0a064e93c use classic syntax
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40005 72102866-910b-0410-8b05-ffd578937521
2016-07-18 08:56:15 +00:00
Gregory John Casamento
15763766e5 Minor change. Properly initialize float xoff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40004 72102866-910b-0410-8b05-ffd578937521
2016-07-16 22:47:35 +00:00
Gregory John Casamento
d391a290ff Remove 'margin'
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40003 72102866-910b-0410-8b05-ffd578937521
2016-07-16 22:22:32 +00:00
Gregory John Casamento
dd398ac140 2016-07-16 18:12-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSPrintInfo.m: Add a comment so it's clear what
	this method is meant for.
	* Source/NSView.m: In beginPage🏷️bBox:fonts: align top level
	view with current page dimensions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40002 72102866-910b-0410-8b05-ffd578937521
2016-07-16 22:18:43 +00:00
Riccardo Mottola
4d9feda044 Check explicitely for f_owner and use f_owner and f_flag if checked
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39991 72102866-910b-0410-8b05-ffd578937521
2016-07-12 23:27:31 +00:00