Commit Graph

139 Commits

Author SHA1 Message Date
freq
acfee8fe08 Fix list out of bounds exception if TabOrderList is empty
git-svn-id: trunk@47213 -
2014-12-17 12:10:17 +00:00
dmitry
77a8f82264 cocoa: fix for TCocoaComboBox not getting LCL object target (was there a reason?). added a note about incorrect implementation of GetPreferredSize - to be resolved
git-svn-id: trunk@47178 -
2014-12-12 03:39:24 +00:00
mattias
a087d98729 lcl: cocoa: fixed some compilation issue
git-svn-id: trunk@46781 -
2014-11-07 16:32:16 +00:00
sekelsenmat
a0642273b5 lcl-cocoa: Further implements SpinEdit, now clicking changes the value
git-svn-id: trunk@46628 -
2014-10-20 20:35:42 +00:00
sekelsenmat
f1c6358aeb lcl-cocoa: Fixes TBitBtn.Glyph, the image data was being freed together with the glyph TBitmap
git-svn-id: trunk@46620 -
2014-10-20 06:01:39 +00:00
sekelsenmat
0c23fdc9d4 lcl-cocoa: Fixes regression introduced in 46166: tab in TEdit was inputting char instead of switching to next control; Implements support for TabOrder; Starts fixings TBitBtn.Glyph but this isnt working yet
git-svn-id: trunk@46594 -
2014-10-18 17:50:33 +00:00
sekelsenmat
8d1660b99e lcl-cocoa: Fixes compilation errors in last cocoa commit
git-svn-id: trunk@46423 -
2014-10-04 09:45:03 +00:00
sekelsenmat
2ce331b46a cocoa: Fixes crashes in TTreeView related to events being sent to destroyed objects, fixes TEdit focus lost event it was being sent on focus gain
git-svn-id: trunk@46166 -
2014-09-09 16:40:29 +00:00
dmitry
108f83e4ef cocoa: retaining object before the removingFromSuperview, since the object is released again afterwards. unclear the purpose of autorelease pool that could be part of the problem
git-svn-id: trunk@46088 -
2014-08-29 05:45:17 +00:00
sekelsenmat
90d7c92c6b cocoa: Support for TLabel and other graphic controls inside TPageControl tab views; Implements many properties and methods from TListView
git-svn-id: trunk@44877 -
2014-05-01 22:45:25 +00:00
sekelsenmat
594e1f2069 cocoa: Fixes the display of controls in tabs
git-svn-id: trunk@44864 -
2014-04-30 21:57:35 +00:00
sekelsenmat
633131dd11 lcl-cocoa: Minor improvements in debug info for the tab control problem, implements correct height calculation for tabviewitem children
git-svn-id: trunk@44849 -
2014-04-30 10:55:00 +00:00
sekelsenmat
194ab88119 lcl-cocoa: Converts NSView casting to GetNSObjectView and NSWindow casting to GetNSObjectWindow, moves TPageControl objc class to CocoaPrivate and extends it
git-svn-id: trunk@44793 -
2014-04-23 10:39:40 +00:00
sekelsenmat
be57a75758 lcl-cocoa: Moves the TListView objc class to CocoaPrivate and greatly extends it, fixes memleak, implements a callback for it, etc
git-svn-id: trunk@44785 -
2014-04-22 11:58:17 +00:00
sekelsenmat
b50fcc983d lcl-cocoa: Various fixes and improvements related to TPageControl, it can already show all tabs and the contents of the initially selected tab
git-svn-id: trunk@44774 -
2014-04-21 10:56:41 +00:00
freq
0a82041306 Cocoa: Remove unused NSApp delegate that created memory leaks and crashes with libraries.
git-svn-id: trunk@44371 -
2014-03-07 19:59:05 +00:00
freq
f2556a023a Cocoa: Clean up memory leaks and make autorelease pool only local to shrink down memory footprint
git-svn-id: trunk@44352 -
2014-03-05 11:23:47 +00:00
freq
66611411f0 Cocoa: Add Form Activation/Deactivation functionality
git-svn-id: trunk@43981 -
2014-02-09 16:08:54 +00:00
freq
7d53b0d01b Cocoa: Fix painting refresh bug
git-svn-id: trunk@43957 -
2014-02-08 17:52:34 +00:00
freq
b90ff1c48b Cocoa: Enable MouseCapture
git-svn-id: trunk@43939 -
2014-02-07 13:16:50 +00:00
freq
d954549d06 Cocoa: Make MouseMove message distribution independent from focused control (mouse move events on lcl classes now works like in Carbon). Make cursor change on mouse move working.
git-svn-id: trunk@43919 -
2014-02-06 17:00:27 +00:00
freq
3d2d8a6e4d Cocoa: Add MouseWheel support
git-svn-id: trunk@43854 -
2014-01-30 17:53:16 +00:00
freq
9643a777c7 Cocoa: Exlude clDefault from background painting
git-svn-id: trunk@43853 -
2014-01-30 16:48:31 +00:00
freq
50408a84b9 Cocoa: Add background color feature for TWinControls
git-svn-id: trunk@43840 -
2014-01-29 20:05:30 +00:00
freq
4bddd1118e Cocoa: Fix context menu mouse position bug
git-svn-id: trunk@43839 -
2014-01-29 16:24:53 +00:00
freq
48512f24b2 Cocoa: Fix refresh bug
git-svn-id: trunk@43794 -
2014-01-25 16:41:40 +00:00
paul
6617df26ff cocoa: fix formatting
git-svn-id: trunk@43667 -
2014-01-07 04:25:04 +00:00
freq
cc30f43ab4 Fix Cocoa window move and resize update and control anchor align problems
git-svn-id: trunk@43662 -
2014-01-06 17:35:10 +00:00
freq
3fed2c1e38 Remove layout flickering on resizing Cocoa window
git-svn-id: trunk@43603 -
2013-12-27 19:11:41 +00:00
freq
22f271c161 Make Cocoa NSButton text changeable
git-svn-id: trunk@43602 -
2013-12-27 16:49:43 +00:00
paul
2868e7ee39 cocoa: formatting after freq commit
git-svn-id: trunk@43569 -
2013-12-19 01:46:36 +00:00
freq
60b3cbce65 Cocoa popup menu rework with IMenuItemCallback and TLCLMenuItemCallback
git-svn-id: trunk@43565 -
2013-12-18 16:44:54 +00:00
paul
125883d7bf cocoa: fix formatting and add several todo items for freq
git-svn-id: trunk@43539 -
2013-12-14 00:52:07 +00:00
freq
2a38757de3 fix #0025393 Popup Menu doen't work with Cocoa widgetset
fix #0025390 Hint window doesn't work with Cocoa Widgetset

git-svn-id: trunk@43537 -
2013-12-13 13:59:24 +00:00
dmitry
a137955dff cocoa: fix the visibility of ListBox #25362, based on patch provided by accSone
git-svn-id: trunk@43494 -
2013-11-28 04:40:50 +00:00
paul
0e25da3437 cocoa: destroy callback on window destruction, close NSWindow on destruction
git-svn-id: trunk@38961 -
2012-10-03 13:32:38 +00:00
paul
8929340e01 cocoa: don't pass Draw event outside the main thread
git-svn-id: trunk@38954 -
2012-10-03 01:38:03 +00:00
paul
cbfa6091d1 cocoa: (de)allocate PaintStruct dinamically, cleanup
git-svn-id: trunk@38933 -
2012-10-01 08:17:52 +00:00
paul
9a097510c9 cocoa: initialize NSView before other operations with it, simplify NSRect to rect conversions
git-svn-id: trunk@38881 -
2012-09-28 08:35:18 +00:00
paul
ad804864bd cocoa: move ScreenContext to CocoaGDIObjects, always create it since it is used by any LCL application
git-svn-id: trunk@38880 -
2012-09-28 08:32:38 +00:00
paul
5b803eebe0 cocoa: start implementation of DestroyHandle
git-svn-id: trunk@36442 -
2012-03-30 07:59:58 +00:00
paul
bbb4a0f776 lcl: add Target: TControl argument to NotifyApplicationUserInput(), pass this target to event handlers instead of TApplication
git-svn-id: trunk@35500 -
2012-02-20 06:20:01 +00:00
paul
105f704391 cocoa: remove TLastMouseInfo, it is not needed in cocoa
git-svn-id: trunk@34914 -
2012-01-25 01:39:34 +00:00
sekelsenmat
84940a762a Fixes LCL-Cocoa compilation in FPC 2.6
git-svn-id: trunk@34845 -
2012-01-21 16:56:11 +00:00
paul
7b147d1d99 cocoa: redo LM_MOUSEMOVE message
git-svn-id: trunk@34626 -
2012-01-06 16:43:07 +00:00
paul
6ffa774f3f cocoa: cleanup and reorganizing some code
git-svn-id: trunk@34609 -
2012-01-06 03:31:14 +00:00
paul
c403c02f92 cocoa: formatting, cleanup, correctly initialize controls with initial visible state using WS_VISIBLE flag, implement ShowHide for controls and forms
git-svn-id: trunk@34600 -
2012-01-05 17:23:51 +00:00
paul
5a73f54727 cocoa: cleanup
git-svn-id: trunk@34591 -
2012-01-05 04:08:57 +00:00
paul
be8ca4f2c3 cocoa: initial implementation of key handling based on carbon code
git-svn-id: trunk@34510 -
2011-12-30 01:32:09 +00:00
paul
19e37fd59e cocoa: apply font color to NSControl and NSText objects
git-svn-id: trunk@34489 -
2011-12-29 03:44:43 +00:00
paul
1ac5f81918 implement WinControl.SetFont
git-svn-id: trunk@34463 -
2011-12-28 08:06:33 +00:00
paul
30056f1dc2 do not propagate mouse events of custom control to the next responder
git-svn-id: trunk@34462 -
2011-12-28 07:21:59 +00:00
paul
f14309acc4 fix MouseUpDownEvent result
git-svn-id: trunk@34461 -
2011-12-28 07:07:30 +00:00
paul
101308219b cocoa: handle right and other mouse buttons
git-svn-id: trunk@34460 -
2011-12-28 06:48:10 +00:00
paul
d2f6f1cb1b cocoa: fix isEnabled, setEnabled for NSWindow
git-svn-id: trunk@34459 -
2011-12-28 05:49:29 +00:00
paul
e4a811c552 cocoa: fix multy-clicks
git-svn-id: trunk@34458 -
2011-12-28 05:39:27 +00:00
paul
001ddf6bc9 cocoa: reimplement mouse up/down messages
git-svn-id: trunk@34457 -
2011-12-28 05:31:55 +00:00
paul
5aa7fcbf48 cocoa: send focus messages
git-svn-id: trunk@34456 -
2011-12-28 02:49:08 +00:00
paul
d2a0cd5d20 cocoa: add implementation for winapi caret functions
git-svn-id: trunk@34446 -
2011-12-27 07:19:09 +00:00
paul
548a38c43c cocoa: prepare infrastructure for Caret support
git-svn-id: trunk@34445 -
2011-12-27 06:55:27 +00:00
paul
47ac6db82c cocoa: port StretchMaskBlt from carbon, fix context destruction, misc
git-svn-id: trunk@34341 -
2011-12-21 08:30:02 +00:00
paul
494b78cea1 cocoa: implement SendMessage, PostMessage
git-svn-id: trunk@34336 -
2011-12-21 06:05:11 +00:00
paul
808daec901 cocoa: add ROP2 to CocoaContext
git-svn-id: trunk@34265 -
2011-12-19 06:27:02 +00:00
paul
81f9739b39 cocoa: implement SetProp, GetProp, FillRgn
git-svn-id: trunk@34264 -
2011-12-19 05:24:43 +00:00
paul
e162c3f604 cocoa: implement ScreenToClient and ClientToScren + various cleanup and formatting
git-svn-id: trunk@34199 -
2011-12-15 07:22:12 +00:00
paul
a206f65bcd cocoa: fix some sizing/positioning code like GetClientRect
git-svn-id: trunk@34149 -
2011-12-13 09:19:06 +00:00
paul
f2b683630b cocoa: port carbon clipping code, port carbon SaveDC, RestoreDC
git-svn-id: trunk@34148 -
2011-12-13 07:51:39 +00:00
paul
edffab4454 cocoa: continue work on moze/sizing
git-svn-id: trunk@34142 -
2011-12-13 02:17:06 +00:00
paul
61a5e41099 cocoa: start work on sizing/positioning
git-svn-id: trunk@34128 -
2011-12-12 07:52:53 +00:00
paul
66e6e42951 cocoa: send LM_CLICKED for button clicks and LM_CHANGED for checkbox change
git-svn-id: trunk@34125 -
2011-12-12 06:14:44 +00:00
paul
4f99496446 cocoa: redo private classes - use corba interfaces instead for simplification of implementation and better inheritance, implement few combobox events, redo gdi object handling and implement most of brush properties
git-svn-id: trunk@33689 -
2011-11-22 10:52:25 +00:00
paul
af9d15b12b cocoa: update all controls when screen.cursor is set to new value
git-svn-id: trunk@33613 -
2011-11-18 14:37:59 +00:00
paul
da92ed2789 cocoa: request cursor update on form cursor change too
git-svn-id: trunk@33605 -
2011-11-18 06:11:47 +00:00
paul
931337302f cocoa: request cursor update on control cursor change
git-svn-id: trunk@33604 -
2011-11-18 06:06:02 +00:00
paul
a8fc0fa459 cocoa: implement setting cursor to control
git-svn-id: trunk@33603 -
2011-11-18 05:56:42 +00:00
sekelsenmat
2e674fc5f5 cocoa: Improves the debug information
git-svn-id: trunk@30312 -
2011-04-16 11:32:59 +00:00
dmitry
959ce2b93d cocoa: initial implementation of WSScrollbar and WSToggleBox
git-svn-id: trunk@27275 -
2010-09-05 16:47:07 +00:00
dmitry
9343928763 cocoa: initial implementation of TMemo control, improved WScontrols handle creation, initial CocoaScrollView implementation
git-svn-id: trunk@27274 -
2010-09-05 13:47:24 +00:00
dmitry
3cd980b72a cocoa:
* changed bounds setting/getting mechanism using objccategory.
* removed bounds setting/getting functions from CocoaUtils
* implemented DC origin changing getting functions
* fix CriticalSection compilation problem (related bug #17341)
* added stubs for Scroll-related winapi function

git-svn-id: trunk@27273 -
2010-09-05 09:57:31 +00:00
dmitry
dfad230000 cocoa: partialy implemented EnumFontFamiliesEx
git-svn-id: trunk@27258 -
2010-09-03 09:56:48 +00:00
dmitry
4adbe49f92 cocoa: implemented GDI region functions
git-svn-id: trunk@27245 -
2010-09-01 13:31:20 +00:00
dmitry
d92436b1e6 cocoa: initial support for controls painting
git-svn-id: trunk@27243 -
2010-09-01 09:07:14 +00:00
dmitry
51501edffa cocoa: fix forms MouseMove sending event. Started CocoaCustomControl
git-svn-id: trunk@23914 -
2010-03-10 11:00:27 +00:00
dmitry
77b4e22f3c cocoa: implemented: form resize event, WinAPI.GetWindowRect
git-svn-id: trunk@22870 -
2009-11-30 09:30:19 +00:00
dmitry
133e54ac19 cocoa: Refactoring callback name. Added window LCL messages for window Close, CloseQuery, Activate, Deactive
git-svn-id: trunk@22848 -
2009-11-28 12:26:04 +00:00
dmitry
eba9f81e8c cocoa: fix for CocoaEdit get/setting text
git-svn-id: trunk@22784 -
2009-11-26 05:38:19 +00:00
dmitry
2ae5fa225b cocoa: started TEdit implementation and TCocoaWSWinControl
git-svn-id: trunk@22767 -
2009-11-25 13:32:30 +00:00
dmitry
d1e28d8d37 cocoa: added buttons click event processing
git-svn-id: trunk@22760 -
2009-11-25 09:42:01 +00:00
dmitry
128956c8a7 cocoa: rewriting the widgetset to obj-p
git-svn-id: trunk@22733 -
2009-11-24 08:09:57 +00:00