Commit Graph

2865 Commits

Author SHA1 Message Date
paul
fd061442cc gtk: fix SaveDC
git-svn-id: trunk@21611 -
2009-09-08 08:34:15 +00:00
paul
e91e5145cb gtk: formatting
git-svn-id: trunk@21610 -
2009-09-08 08:26:51 +00:00
paul
d43964d5f1 gtk: take care of LastWPResult when we are disconnecting all widget signal handlers (must fix bug #0014512)
git-svn-id: trunk@21608 -
2009-09-08 06:58:44 +00:00
paul
91915ea85b gtk: simplify DestroyWindowFromPointCB and other minor corrections to WindowFromPoint
git-svn-id: trunk@21598 -
2009-09-07 09:45:07 +00:00
paul
bbba97d4a7 gtk: improve TGtkWidgetset.WindowFromPoint (fixes issue #0014511)
git-svn-id: trunk@21590 -
2009-09-06 13:38:03 +00:00
paul
907df92e81 gtk: more safer code in WindowFromPoint (fixes #0014497)
git-svn-id: trunk@21569 -
2009-09-04 13:49:41 +00:00
paul
fa1b49813e gtk2: don't emulate eaten keys if key handler was stopped (fixes issue #0014481)
git-svn-id: trunk@21545 -
2009-09-03 01:27:07 +00:00
paul
040131af50 gtk: hide some warnings when HideKeyTableWarnings is defined
git-svn-id: trunk@21519 -
2009-09-01 14:01:10 +00:00
mattias
56223815cd gtk1+2 intf: SetScrollInfo: 0 <= nPage <= nMax-nMin+1, nMin <= nPos <= nMax - Max(nPage-1,0)
git-svn-id: trunk@21504 -
2009-08-31 19:49:31 +00:00
paul
e7abeb60a0 gtk2: better fix CharToKeyVal
git-svn-id: trunk@21457 -
2009-08-26 17:52:01 +00:00
paul
cd516210d7 gtk2: fix typo in CharToKeyVal logic
git-svn-id: trunk@21456 -
2009-08-26 17:47:14 +00:00
mattias
4bd95ef5b3 gtk intf: comments
git-svn-id: trunk@21402 -
2009-08-22 19:44:59 +00:00
mattias
e0c57af916 undo
git-svn-id: trunk@21399 -
2009-08-22 19:40:53 +00:00
mattias
b03dbf338e synedit: added checks if handle is allocated
git-svn-id: trunk@21398 -
2009-08-22 19:33:35 +00:00
paul
5ebfb46064 gtk: hide internal tooltip window or it shows on the screen as small artefact
git-svn-id: trunk@21386 -
2009-08-21 16:54:39 +00:00
paul
10aa429021 gtk, gtk2: fix memory leak on destruction of some widgets by cobines (issue #0014090) + formatting of surrounding code
git-svn-id: trunk@21380 -
2009-08-21 09:34:54 +00:00
mattias
5a2c69fa37 gtk1 intf: fixed compilation
git-svn-id: trunk@21220 -
2009-08-14 09:21:16 +00:00
mattias
7dbec45e6d gtk2 intf: fixed slow down when mouse outside bug #11740, fixed crash when WindowFromPoint widget destroyed
git-svn-id: trunk@21213 -
2009-08-13 06:53:35 +00:00
marc
6185c6ab60 * reverted r21200 #16af7e11b4, the removed functionality is essential when running lcl apps remote
git-svn-id: trunk@21207 -
2009-08-12 21:43:56 +00:00
mattias
4e41553208 gtk2 intf: calendar: implemented GetPreferredSize
git-svn-id: trunk@21202 -
2009-08-12 15:43:30 +00:00
mattias
365837b53b gtk2 intf: clean up
git-svn-id: trunk@21201 -
2009-08-12 15:24:07 +00:00
mattias
16af7e11b4 gtk intf: removed cache for windowfrompoint, it crashes if widget was destroyed
git-svn-id: trunk@21200 -
2009-08-12 15:10:44 +00:00
mattias
1c5875ccfe gtk2 intf: removed auto mouse capture on mouse btn press fixing X locks with modal forms, LCL: fixed some typos
git-svn-id: trunk@21198 -
2009-08-12 14:04:52 +00:00
mattias
e23b9f69c4 gtk1: clean up
git-svn-id: trunk@21152 -
2009-08-10 12:01:22 +00:00
mattias
2f8de86823 codetools: added -dVerboseCTSave
git-svn-id: trunk@21093 -
2009-08-03 21:28:27 +00:00
paul
e97576c1c7 gtk2: fix PaintTo (bug #0014201)
git-svn-id: trunk@20984 -
2009-07-28 04:02:20 +00:00
paul
c907579c4c lcl: fix compilation under windows
git-svn-id: trunk@20934 -
2009-07-24 13:42:38 +00:00
marc
42c8e0fbea * Removed own shiftstate tracking since it doesn't work when the app looses focus.
Either X or windows is queried now. Fixes issue #14102
  Also removed the EnableGtkShiftState conditional (r20870), since it is not an ubunto only problem, the concept was faulty itself

git-svn-id: trunk@20888 -
2009-07-18 16:10:55 +00:00
paul
73afc18adf gtk, gtk2: destroy internal labelWidget of TBitBtn if Caption is empty for better layouting
git-svn-id: trunk@20876 -
2009-07-17 14:36:46 +00:00
mattias
69d68a7b86 gtk intf: added flag EnableGtkShiftState to use gtk key shift state, needed on ubuntu
git-svn-id: trunk@20870 -
2009-07-16 12:28:03 +00:00
paul
a4a1469e9d gtk: don't raise an exception if we are creating DC and can't get drawable (fixes issue #14035)
git-svn-id: trunk@20869 -
2009-07-16 02:00:13 +00:00
paul
6e06aafd15 gtk: fix compilation
git-svn-id: trunk@20863 -
2009-07-15 07:41:14 +00:00
paul
405bc268f5 gtk, gtk2: handle situations when popup menu has been inserted into main menu submenu (remaining part of issue #0014144)
git-svn-id: trunk@20862 -
2009-07-15 07:31:18 +00:00
paul
78d39caf04 lcl: cleanup
git-svn-id: trunk@20860 -
2009-07-15 06:41:09 +00:00
paul
5119208a5d gtk, gtk2: fix popup menu popup - set activation time as gtk docs require to resove mouse capture conflicts (resolves issue #0009435)
git-svn-id: trunk@20847 -
2009-07-13 03:34:51 +00:00
paul
1062d0b0aa gtk: gtkWSPopupMenuDeactivate must be procedure instead of function according to gtk sources and docs
git-svn-id: trunk@20846 -
2009-07-13 02:42:05 +00:00
paul
4c87be780e gtk: move TGtkWSWinControl.SetCallbacks implementation to the new virtual TGtkWidgetset.SetCommonCallbacks method to allow gtk2 override
git-svn-id: trunk@20831 -
2009-07-11 10:29:13 +00:00
paul
06e833370b gtk2: turn gtk thread support on (issue #0012007)
git-svn-id: trunk@20818 -
2009-07-10 15:28:26 +00:00
jesus
f6920f782e Printers, added TPrinter.FileName property, based on patch from mtournay, issue #13718
git-svn-id: trunk@20805 -
2009-07-07 05:09:52 +00:00
marc
1ceccdc82c * Partly reverted r20771 #3f9fe8af18, the intrepretation of ssAlt and ssAltGr was wrong
git-svn-id: trunk@20773 -
2009-07-01 07:18:15 +00:00
marc
3f9fe8af18 * Improvement of r20767 #7077d774a2. Don't use AltGr KCInfo flag when using own shiftstate. This flag might have been set wrong when altkey isn't detected/recognized
git-svn-id: trunk@20771 -
2009-06-30 23:57:02 +00:00
marc
7077d774a2 * Implemented own way of tracking shiftstate, solves issues with reporting ssAlt or ssAltGr being pressed. Solves issue #009394 too
git-svn-id: trunk@20767 -
2009-06-29 22:53:31 +00:00
marc
a5456020b1 * Fixed compilation for verbose modifiermap
git-svn-id: trunk@20766 -
2009-06-29 21:01:12 +00:00
paul
794025a9af gtk2: fix EnabledGtkThreading for win32
git-svn-id: trunk@20719 -
2009-06-23 06:43:58 +00:00
paul
11d686ee19 gtk2: improve EnableGtkThreading code
git-svn-id: trunk@20717 -
2009-06-23 03:45:06 +00:00
paul
0a4a8d01f4 gtk: formatting
git-svn-id: trunk@20659 -
2009-06-18 01:35:06 +00:00
paul
0de0f63bc5 gtk2: don't propagate mouse after events to parent (by cobines, issue #0014001)
git-svn-id: trunk@20658 -
2009-06-18 01:11:57 +00:00
vincents
dfd8ef509d gtk interface: fixed setting mouse buttons in mouse event, patch from cobines (issue #13946)
git-svn-id: trunk@20571 -
2009-06-10 13:01:32 +00:00
paul
8140fd8755 lcl: add more extra mouse buttons support
git-svn-id: trunk@20536 -
2009-06-09 04:25:32 +00:00
jesus
5a971c0e06 LCL, added option nboHidePageListPopup to Notebook so default right click popup list can be disabled (gtk1&2), enable multiline tab control under windows
git-svn-id: trunk@20500 -
2009-06-07 19:13:17 +00:00
paul
1ccbb42de7 gtk: fix wrong UTF8KeyPress calls
git-svn-id: trunk@20478 -
2009-06-06 15:49:42 +00:00
paul
f7066cf839 gtk: reset special colors if we are setting clDefault
git-svn-id: trunk@20448 -
2009-06-05 16:38:44 +00:00
paul
b92167f4b3 gtk: treat clBtnFace as default bg color as it was before (temporary solution)
git-svn-id: trunk@20446 -
2009-06-05 16:24:35 +00:00
paul
cbea652f5f gtk: fix resetting color property of some controls (issue #0007555, using Zeljan patch but with many modifications)
git-svn-id: trunk@20441 -
2009-06-05 15:39:52 +00:00
paul
0006ba061f gtk: more support for extra mouse buttons
git-svn-id: trunk@20429 -
2009-06-05 09:22:21 +00:00
paul
3c4f8ff042 gtk: don't apply SubstractScroll for gtk1 widgetset
git-svn-id: trunk@20428 -
2009-06-05 09:20:11 +00:00
paul
6bd157f740 gtk: improve SubtractScoll
git-svn-id: trunk@20427 -
2009-06-05 08:42:58 +00:00
paul
0c1cf37ea2 gtk2: don't add adjustment value to the DC origin, it is applied by gtk
git-svn-id: trunk@20426 -
2009-06-05 08:42:33 +00:00
paul
393c3eea5f gtk: formatting
git-svn-id: trunk@20425 -
2009-06-05 08:40:43 +00:00
paul
3656a56670 gtk: use gtkglobals in gtkdef instead of vice-versa
git-svn-id: trunk@20424 -
2009-06-05 08:39:34 +00:00
paul
859e98e674 lcl: formatting
git-svn-id: trunk@20422 -
2009-06-05 08:13:38 +00:00
jesus
62117dc779 LCL: GTK1, enable notebook user popupmenu on right click
git-svn-id: trunk@20420 -
2009-06-05 04:37:46 +00:00
paul
fdd47f0673 gtk: fill modifiers for 2 mouse extra butttons
git-svn-id: trunk@20419 -
2009-06-05 03:12:54 +00:00
paul
114803be07 gtk: pass special keys to keypress (issue #0011591)
git-svn-id: trunk@20418 -
2009-06-05 02:33:57 +00:00
paul
6b4d24ec67 gtk: fix drop down button drawing
git-svn-id: trunk@20395 -
2009-06-04 07:35:35 +00:00
paul
da300289b7 gtk: protect themeservices from empty rect
git-svn-id: trunk@20391 -
2009-06-04 02:10:23 +00:00
paul
72c3e1a908 gtk2: don't use GtkFrame for TScrollingWinControl since GtkScrolledWindow can draw shadow itself (fixes also #0013892)
git-svn-id: trunk@20365 -
2009-06-03 01:45:21 +00:00
paul
c8d72d2c31 gtk: don't use GtkFrame for TFrame (maybe fixes #0013892)
git-svn-id: trunk@20348 -
2009-06-02 13:04:31 +00:00
marc
7a89e03af5 * fixed compilation on gtk1
git-svn-id: trunk@20325 -
2009-05-31 18:30:57 +00:00
paul
50ad4d8937 gtk: split gtk1 and gtk2 groupbox code
git-svn-id: trunk@20288 -
2009-05-29 02:27:30 +00:00
paul
07ef806b61 gtk: TBitBtn: improve layout if label is empty (fixes issue #0013852)
git-svn-id: trunk@20271 -
2009-05-28 01:33:16 +00:00
paul
fcb511eedb gtk2: repair special keys for TMemo, TEdit, etc (bug #0013853)
git-svn-id: trunk@20270 -
2009-05-28 00:48:39 +00:00
paul
8f6e69d146 gtk2: pass KeyPress events for some special keys like Esc, BackSpace, Return, etc (fixes issue #0013283)
git-svn-id: trunk@20256 -
2009-05-27 07:59:46 +00:00
paul
597eb84d8c lcl: Themes
- redo TThemeServices.GetDetailSize to return TSize instead of Integer
  - improve toolbutton drawing

git-svn-id: trunk@20213 -
2009-05-26 01:32:38 +00:00
paul
ba4df81b22 gtk2: implement TGtk2ThemeServices.GetOption
git-svn-id: trunk@20190 -
2009-05-25 07:53:33 +00:00
paul
20199f3f18 gtk: apply scroll subtraction only for widgets with embedded scroll area like TCustomForm
git-svn-id: trunk@20181 -
2009-05-25 03:15:00 +00:00
paul
9eaaa681d2 gtk, gtk2: subtract scroll offset when we report mouse event to LCL (bug #0013744)
git-svn-id: trunk@20180 -
2009-05-25 02:44:55 +00:00
paul
b8d1a1adec lcl: formatting
git-svn-id: trunk@20179 -
2009-05-25 02:10:05 +00:00
paul
c43a1a19c5 gtk: don't change selected state of TEdit or text become invisible on selection (by Daniel Simões de Almeida, bug #0013794)
git-svn-id: trunk@20127 -
2009-05-22 15:29:53 +00:00
paul
fac984e78f gtk: formatting
git-svn-id: trunk@20126 -
2009-05-22 15:27:06 +00:00
paul
7b940b78ca gtk: draw Frame3d in a compatible with other widgetsets way (fixes bug #0013776)
git-svn-id: trunk@20110 -
2009-05-22 01:28:25 +00:00
paul
d9c7fdad82 gtk: fix setting readonly for TCustomEdit (bug #0013773)
git-svn-id: trunk@20106 -
2009-05-21 13:01:22 +00:00
paul
d066b57145 gtk: fix Frame3D painting
git-svn-id: trunk@20105 -
2009-05-21 12:42:07 +00:00
paul
a3283dde56 gtk: cleanup, formatting
git-svn-id: trunk@20098 -
2009-05-21 09:01:38 +00:00
paul
a8ae3b4f66 lcl: TPageControl: set dock site rectangle in DockOver and not in PositionDockRect since PositionDockRect used in other unrelated to dock over cases
git-svn-id: trunk@20092 -
2009-05-21 07:58:18 +00:00
paul
7526bb803e gtk: report LCL page index instead of gtk page index on notebook page change
git-svn-id: trunk@20087 -
2009-05-21 06:31:13 +00:00
paul
7d94012801 gtk2: improve TGtk2ThemeServices.GetStockImage
git-svn-id: trunk@20078 -
2009-05-20 12:50:37 +00:00
paul
69d96a1d70 gtk: formatting
git-svn-id: trunk@20076 -
2009-05-20 11:56:07 +00:00
paul
05ad1a9631 gtk: use GTK_WINDOW_POPUP for dock rect drawing
git-svn-id: trunk@20072 -
2009-05-20 09:00:30 +00:00
paul
b5ff63c845 gtk: improve DrawDefaultDockImage
git-svn-id: trunk@20071 -
2009-05-20 08:25:21 +00:00
paul
a533bd1614 gtk: rearrange TGtkDeviceContext members
git-svn-id: trunk@20057 -
2009-05-20 02:04:38 +00:00
paul
1eb5c2a539 gtk: fix copying one DC into another with SRCCOPY rop (fixes issue #0013746)
git-svn-id: trunk@20056 -
2009-05-20 01:59:15 +00:00
paul
a2c07aa8cf gtk: use generic SetLabelCaption method to set TabControl tabs captions
git-svn-id: trunk@20044 -
2009-05-19 08:12:04 +00:00
paul
9cd36bc5d4 gtk: fix compilation
git-svn-id: trunk@20043 -
2009-05-19 08:10:34 +00:00
paul
9067fc5cdb gtk: move FillRect to TGtkDeviceContext, add argument SkipRop. Use SkipRop = True for winapi FillRect, use SkipRop = False for Polygon (fixes the last problem in issue #0013746)
git-svn-id: trunk@20034 -
2009-05-19 03:30:21 +00:00
paul
75c498b121 gtk: store selected ROP2 mode in the GCValues just after setting it (fixes another part of issue #0013746)
git-svn-id: trunk@20033 -
2009-05-19 03:16:41 +00:00
paul
5951b71b2a gtk: formatting
git-svn-id: trunk@20032 -
2009-05-19 03:15:21 +00:00
paul
ef226daf23 gtk: skip ROP2 for FillRect (partly fixes issue #0013746)
git-svn-id: trunk@20031 -
2009-05-19 01:57:18 +00:00
paul
7dcf00f903 gtk: formatting
git-svn-id: trunk@20030 -
2009-05-19 01:54:41 +00:00
paul
8ed7281c00 gtk: use more generic code to set menuitem shortcuts and caption, redo SetLabelCaption for gtk2
git-svn-id: trunk@20027 -
2009-05-18 13:04:06 +00:00
paul
447f5d8a3c gtk: fix copying a rect from drawable to bitmap (issue #0012131)
git-svn-id: trunk@20024 -
2009-05-18 07:11:28 +00:00
paul
095f1262a5 gtk2: use LCL popupmenu for controls instead of native if available (fixes issue #0013730)
git-svn-id: trunk@20022 -
2009-05-18 03:46:00 +00:00
paul
d154466c76 gtk2: handle LM_CONTEXTMENU message triggered by "menu key" press
git-svn-id: trunk@20020 -
2009-05-18 02:56:42 +00:00
paul
f84bbc8909 gtk: fix compilation
git-svn-id: trunk@20019 -
2009-05-18 01:48:56 +00:00
paul
63ffd97a43 gtk: fix menu shortcuts
git-svn-id: trunk@20018 -
2009-05-18 01:44:14 +00:00
paul
98bb8821bd gtk: cleanup
git-svn-id: trunk@20017 -
2009-05-18 01:30:00 +00:00
mattias
1c38cac962 clean up
git-svn-id: trunk@20016 -
2009-05-17 20:41:02 +00:00
jesus
84cead9009 LCL, custom handling of checkbox states (windows, this enables the use of allowgrayed without cbGrayed state, specially useful for dbcheckbox), fix cbGrayed state under gtk2
git-svn-id: trunk@20012 -
2009-05-17 17:00:47 +00:00
martin
fd3a03f494 Gtk widget => changed from ifdef gtk2 => ifNdef gtk1
git-svn-id: trunk@20007 -
2009-05-17 11:29:53 +00:00
martin
9a731134fb Gtk2: improving ScrollWindowEx (for SynEdit / issue #7717 )
git-svn-id: trunk@19999 -
2009-05-17 01:34:00 +00:00
paul
cf9bf7c039 gtk: improve MouseFromPoint return in case of using cache
git-svn-id: trunk@19973 -
2009-05-15 13:43:37 +00:00
paul
d6ebb0255e gtk: cache WindowFromPoint results to reduce slowleness (fixes issue #0013698)
git-svn-id: trunk@19967 -
2009-05-15 02:09:22 +00:00
paul
3cd340fe31 lcl: formatting
git-svn-id: trunk@19966 -
2009-05-15 01:57:42 +00:00
paul
d03621adc4 gtk2: stop motion-notify-event propagation (fixes bug #0013708)
git-svn-id: trunk@19959 -
2009-05-14 07:44:26 +00:00
paul
1e115b492c gtk2: request redraw after api widget resize (fixes issue #0013290)
git-svn-id: trunk@19935 -
2009-05-12 03:27:13 +00:00
paul
f3dfb636c4 lcl: add new property TBitBtn.GlyphShowMode and new function TBitBtn.CanShowGlyph
git-svn-id: trunk@19909 -
2009-05-10 15:52:24 +00:00
paul
b28c3ccb18 gtk2: leave a note regards inability to change StatusBar panel bevel
git-svn-id: trunk@19847 -
2009-05-08 07:36:17 +00:00
paul
2f5d552f54 gtk2: some trials to use correct shadow-type for statusbar panels
git-svn-id: trunk@19846 -
2009-05-08 06:23:11 +00:00
paul
895290e613 gtk: formatting
git-svn-id: trunk@19844 -
2009-05-08 01:54:07 +00:00
paul
b07d481b8d gtk: calculate width and height the same way for Ellipse as for Rectangle (fixes bug #0013666)
git-svn-id: trunk@19838 -
2009-05-07 09:08:07 +00:00
vincents
df85c2d5c1 gtk interface: improved rounding of floatspinedit value, fixes issue #12006
git-svn-id: trunk@19826 -
2009-05-06 14:17:30 +00:00
paul
31e1214cec gtk: redo TPanel implementation, add new flag to skip LCL LM_ERASEBKGND
git-svn-id: trunk@19718 -
2009-05-01 04:54:19 +00:00
paul
e43c119502 gtk: use GtkFrame isntead of GtkViewPort for gtk1 TPanel implementation widget
git-svn-id: trunk@19715 -
2009-04-30 18:29:17 +00:00
paul
cc1aa6345c gtk: fix compilation
git-svn-id: trunk@19713 -
2009-04-30 16:19:32 +00:00
paul
020618fa6c gtk, gtk2: more fixes for default font assignment
git-svn-id: trunk@19712 -
2009-04-30 16:17:16 +00:00
paul
c2871390b9 gtk, gtk2: don't skip default font when we assign it to widget or it is imposible to reset font back to default in other case
git-svn-id: trunk@19711 -
2009-04-30 16:04:38 +00:00
paul
15f2bd17ec gtk: revert r17114 #acfab690ae for gtk1 only (fixes bug #0013337 needs testing)
git-svn-id: trunk@19685 -
2009-04-29 08:24:18 +00:00
paul
5948534916 gtk2: fix drawing of tooltips after gtk tooltip color change or theme change (issue #0013600)
git-svn-id: trunk@19683 -
2009-04-29 07:21:28 +00:00
paul
8103033b44 gtk2: use better system color map from http://www.endolith.com/wordpress/2008/08/03/wine-colors/, fix some issues with menu styles in GetStyle()
git-svn-id: trunk@19658 -
2009-04-28 07:08:50 +00:00
paul
de39b16ffd gtk: don't allow image and label to be drawn outside button (issue #0011120)
git-svn-id: trunk@19646 -
2009-04-27 09:26:58 +00:00
paul
459c87b06b gtk: trial to find better matches for titlebar colors
git-svn-id: trunk@19635 -
2009-04-26 14:49:06 +00:00
paul
cd1570a15d gtk2: improve notebook close button (it looks natively in gnome now)
- make it theme dependent
  - fix size

git-svn-id: trunk@19634 -
2009-04-26 14:14:31 +00:00
paul
eccf58fefc gtk: implement teToolTip drawing in gtk theme services
git-svn-id: trunk@19617 -
2009-04-25 13:29:18 +00:00
mattias
1f588db5ff gtk intf: using gptBox instead of gptBoxGap for TTabControl content
git-svn-id: trunk@19591 -
2009-04-23 11:46:29 +00:00
paul
5cac8c511d gtk: formatting
git-svn-id: trunk@19583 -
2009-04-23 06:18:53 +00:00
paul
66a22b1146 gtk: fix some constants which makes bsDialog forms sizable
git-svn-id: trunk@19582 -
2009-04-23 05:09:24 +00:00
paul
e444e5e200 gtk: teach lisview to work with new alpha bitmap storage (pixbuf)
git-svn-id: trunk@19519 -
2009-04-20 01:01:52 +00:00
paul
ae200cf7bc gtk: fix compilation
git-svn-id: trunk@19509 -
2009-04-19 11:02:21 +00:00
paul
b149223f11 gtk: fix BitBtn after native alpha support commit
git-svn-id: trunk@19507 -
2009-04-19 11:00:13 +00:00
paul
a6bc789bed gtk: fix compilation and some crashes after recent alpha support
git-svn-id: trunk@19506 -
2009-04-19 10:52:12 +00:00
paul
f1645590fd gtk: cleanup
git-svn-id: trunk@19504 -
2009-04-19 09:52:43 +00:00
paul
49a493794c gtk, gtk2: initial support for native alpha bitmaps (using pixbuf as storage) tested on windows only
git-svn-id: trunk@19503 -
2009-04-19 09:46:08 +00:00
paul
c42b65b456 gtk: fix memory leak (internal mask was never freed), cleanup
git-svn-id: trunk@19488 -
2009-04-18 16:16:06 +00:00
paul
f02c53c71c merge lcl-smartlink branch:
------------------------------------------------------------------------
r19294 | paul | 2009-04-10 11:17:35 +0800 (Птн, 10 Апр 2009) | 1 line

lcl, win32: start optimizations: imglist (all), controls (all), combtrls (statubar)
------------------------------------------------------------------------
r19305 | martin | 2009-04-10 21:53:27 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL
------------------------------------------------------------------------
r19306 | martin | 2009-04-10 22:14:57 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL (more)
------------------------------------------------------------------------
r19307 | martin | 2009-04-10 22:22:44 +0800 (Птн, 10 Апр 2009) | 1 line

changed case true => True
------------------------------------------------------------------------
r19308 | paul | 2009-04-10 22:28:28 +0800 (Птн, 10 Апр 2009) | 1 line

fix file case
------------------------------------------------------------------------
r19311 | martin | 2009-04-10 23:09:16 +0800 (Птн, 10 Апр 2009) | 1 line

Moved Registration of TCustomCalendar
------------------------------------------------------------------------
r19312 | martin | 2009-04-10 23:28:03 +0800 (Птн, 10 Апр 2009) | 1 line

Moved PropertyToSkip for TCalender
------------------------------------------------------------------------
r19314 | paul | 2009-04-10 23:50:30 +0800 (Птн, 10 Апр 2009) | 1 line

merge r13913 #999e8b059d
------------------------------------------------------------------------
r19315 | paul | 2009-04-10 23:53:07 +0800 (Птн, 10 Апр 2009) | 1 line

cleanup WSCalendar
------------------------------------------------------------------------
r19316 | paul | 2009-04-11 00:37:44 +0800 (Сбт, 11 Апр 2009) | 1 line

finish with ComCtrls
------------------------------------------------------------------------
r19318 | martin | 2009-04-11 01:37:40 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19319 | martin | 2009-04-11 01:47:30 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19320 | martin | 2009-04-11 02:47:52 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved ExtCtrls, ExtDlgs
------------------------------------------------------------------------
r19321 | martin | 2009-04-11 03:23:32 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved PropertyToSkip
------------------------------------------------------------------------
r19322 | martin | 2009-04-11 03:37:39 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved StdCtrls
------------------------------------------------------------------------
r19323 | martin | 2009-04-11 04:05:50 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved Buttons
------------------------------------------------------------------------
r19325 | paul | 2009-04-11 11:02:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove DirSel
------------------------------------------------------------------------
r19326 | paul | 2009-04-11 11:11:37 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterArrow
------------------------------------------------------------------------
r19327 | paul | 2009-04-11 11:32:09 +0800 (Сбт, 11 Апр 2009) | 1 line

register WS classes only for TCustomXXX classes if they are available (like TCustomScrollBar instead of TScrollBar) and only for those descendants which really differ (like TRadioButton, TToggleButton)
------------------------------------------------------------------------
r19328 | paul | 2009-04-11 11:40:00 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomCheckBox
------------------------------------------------------------------------
r19329 | paul | 2009-04-11 11:57:22 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Forms
------------------------------------------------------------------------
r19330 | paul | 2009-04-11 12:13:05 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomGrid + move of RegisterPropertyToSkip
------------------------------------------------------------------------
r19331 | paul | 2009-04-11 12:24:29 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Menus
------------------------------------------------------------------------
r19332 | paul | 2009-04-11 12:35:16 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for PairSplitter
------------------------------------------------------------------------
r19333 | paul | 2009-04-11 12:47:39 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Spin
------------------------------------------------------------------------
r19334 | paul | 2009-04-11 12:58:55 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomRubberBand
------------------------------------------------------------------------
r19335 | paul | 2009-04-11 13:31:43 +0800 (Сбт, 11 Апр 2009) | 1 line

remove 2 initialization sections
------------------------------------------------------------------------
r19336 | paul | 2009-04-11 13:46:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove TPopupNotifier.png from LCL
------------------------------------------------------------------------
r19338 | paul | 2009-04-11 13:54:03 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19341 | paul | 2009-04-11 14:59:27 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19343 | martin | 2009-04-11 19:59:18 +0800 (Сбт, 11 Апр 2009) | 1 line

Reduced Unit-Circles, by moving Register* into WS* units
------------------------------------------------------------------------
r19344 | martin | 2009-04-11 20:22:49 +0800 (Сбт, 11 Апр 2009) | 1 line

Dummy file for gtk
------------------------------------------------------------------------
r19345 | martin | 2009-04-11 21:06:55 +0800 (Сбт, 11 Апр 2009) | 1 line

Initial move of gtk1 register
------------------------------------------------------------------------
r19346 | martin | 2009-04-11 21:19:48 +0800 (Сбт, 11 Апр 2009) | 1 line

Missing dependencies in gtk1 wsfactory
------------------------------------------------------------------------
r19347 | martin | 2009-04-11 22:36:42 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy
------------------------------------------------------------------------
r19348 | martin | 2009-04-11 23:34:16 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy 
------------------------------------------------------------------------
r19349 | martin | 2009-04-11 23:39:20 +0800 (Сбт, 11 Апр 2009) | 1 line

moved uses for factory
------------------------------------------------------------------------
r19350 | martin | 2009-04-11 23:41:57 +0800 (Сбт, 11 Апр 2009) | 1 line

corrected a few accidental "Result := False"
------------------------------------------------------------------------
r19351 | paul | 2009-04-12 00:04:15 +0800 (Вск, 12 Апр 2009) | 1 line

removed unused units
------------------------------------------------------------------------
r19352 | paul | 2009-04-12 00:05:26 +0800 (Вск, 12 Апр 2009) | 1 line

qt: move RegisterWS calls to qtwsfactory
------------------------------------------------------------------------
r19354 | paul | 2009-04-12 01:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

wince: move RegisterWS calls to WinCEWSFactory
------------------------------------------------------------------------
r19356 | martin | 2009-04-12 01:39:56 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2
------------------------------------------------------------------------
r19357 | martin | 2009-04-12 01:45:31 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2 / missing units
------------------------------------------------------------------------
r19358 | martin | 2009-04-12 01:57:43 +0800 (Вск, 12 Апр 2009) | 1 line

Fixed one return value from register
------------------------------------------------------------------------
r19360 | martin | 2009-04-12 02:47:42 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2 registrations for WinControl
------------------------------------------------------------------------
r19361 | martin | 2009-04-12 02:57:58 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2nd registrations
------------------------------------------------------------------------
r19368 | paul | 2009-04-12 13:09:59 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19373 | paul | 2009-04-12 13:45:17 +0800 (Вск, 12 Апр 2009) | 1 line

wince: forgotten file
------------------------------------------------------------------------
r19374 | paul | 2009-04-12 14:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

carbon: move RegisterWSComponent to CarbonWSFactory
------------------------------------------------------------------------
r19375 | paul | 2009-04-12 14:27:47 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------

git-svn-id: trunk@19376 -
2009-04-12 08:46:31 +00:00
paul
263fa6c078 gtk, gtk2: return workarea for monitor under X
git-svn-id: trunk@19266 -
2009-04-07 06:33:27 +00:00
paul
a75bb49700 lcl: make sure HMONITOR <> 0 for valid monitors
git-svn-id: trunk@19263 -
2009-04-07 04:58:55 +00:00
paul
ddf2b15e66 gtk: implement TMonitor support
git-svn-id: trunk@19260 -
2009-04-07 01:37:50 +00:00
paul
44fa480f4a gtk2: implement image flipping in StretchMaskBlt (part of issue #0013059)
git-svn-id: trunk@19215 -
2009-04-04 12:52:39 +00:00
paul
ce9780a7a4 gtk: fix crNo cursor, fix setting cursor to button/bitbtn
git-svn-id: trunk@19161 -
2009-03-31 02:50:34 +00:00
paul
ac0184724f gtk, gtk2, win32: don't call OnChange twice when we change TEdit text (bug #0013102)
gtk2: don't call OnChange more than one time when we change TMemo text

git-svn-id: trunk@19151 -
2009-03-29 09:06:48 +00:00
paul
3b0c402312 lcl: remove TCalendar.ReadOnly property, add HitTest function
git-svn-id: trunk@19111 -
2009-03-26 07:59:44 +00:00
jesus
0eeca5946c LCL, fix GTK1 finding default font, based on patch from Fabrizio Fellini, issue #13230
git-svn-id: trunk@19013 -
2009-03-17 20:22:26 +00:00
paul
a9fae0848f gtk: fix pen properties for pens created by CreatePenIndirect (fixes issue #0013312)
git-svn-id: trunk@18974 -
2009-03-13 03:30:31 +00:00
paul
16cb6b19f6 gtk: restore implementation of listview images
git-svn-id: trunk@18966 -
2009-03-12 09:37:58 +00:00
paul
dd1e90c57b lcl: handle SpinEdit.MinValue = SpinEdit.MaxValue properly (based on patch of Bart Broersma, fixes bug #0013273)
git-svn-id: trunk@18913 -
2009-03-07 18:28:28 +00:00
paul
d95ab32577 gtk, qt: don't draw a Ellipse if Width or Height = 0
git-svn-id: trunk@18866 -
2009-03-02 03:44:16 +00:00
paul
980be4b83e gtk, qt: don't draw a rectangle if Width or Height = 0 (bug #0010980)
git-svn-id: trunk@18864 -
2009-03-02 03:19:19 +00:00
paul
2580f132b8 correct few asterisk position in the header
git-svn-id: trunk@18850 -
2009-03-01 05:15:17 +00:00
jesus
af721847eb LCL, fixed TabIndexAtClientPos for win32 and gtk2
git-svn-id: trunk@18831 -
2009-02-27 03:23:46 +00:00
paul
9d9c9448c5 gtk: all custom controls need EraseBackground (not only those who don't have csOpaque) (fixes #0013224)
git-svn-id: trunk@18825 -
2009-02-26 02:07:07 +00:00
paul
8c52991db1 formatting
git-svn-id: trunk@18824 -
2009-02-26 02:04:33 +00:00
paul
eeb0f872f1 gtk1: Memo.SelStart does not change, when adding new lines with Memo.Lines.Add (bug #0008360)
git-svn-id: trunk@18821 -
2009-02-25 02:58:44 +00:00
paul
aa768c5872 gtk: simplify Frame3D
git-svn-id: trunk@18817 -
2009-02-24 06:41:38 +00:00
paul
dfc003e02b formatting
git-svn-id: trunk@18804 -
2009-02-23 08:33:27 +00:00
marc
d445d07ffe * Moved visual check forward, so we have always a visual when creating a pixmap. This might solve some object is NULL gdk warnings
git-svn-id: trunk@18786 -
2009-02-21 18:44:25 +00:00
paul
31c01a588a gtk: don't move invisible windows to foreground (fixed bug #0013188)
git-svn-id: trunk@18745 -
2009-02-18 10:18:14 +00:00
paul
fbfc224459 lcl: Color property storing (fixes bug #0012322)
- change default ColorIsStored method. It was written probably to override old fpc streaming bug. Now it only checks for ParentColor property. If control want to skip some color storing then simple Default value need to be filled.
- remove TButtonControl.ColorIsStored, TStatusBar.ColorIsStored. Default value for color property do this job
- introduce new function IsColorDefault(AControl: TControl): Boolean; which checks both ParentColor and default color value
- gtk: use IsColorDefault instead of IsColorStored

git-svn-id: trunk@18744 -
2009-02-18 08:40:13 +00:00
paul
4a235bd95f gtk: implement DT_VCENTER, DT_BOTTOM flags for DrawText. Based on patch of Luiz Americo (issue #0008565)
git-svn-id: trunk@18702 -
2009-02-16 02:20:39 +00:00
paul
54f86158d0 apply Zeljan patch to fix issue at startup the first tab´s text isn´t painted (bug #0011306)
git-svn-id: trunk@18651 -
2009-02-13 02:14:13 +00:00
paul
cef5fc775d gtk, gtk2: port menu item fix to the gtks
git-svn-id: trunk@18583 -
2009-02-05 15:09:11 +00:00
paul
565ee9773a widgetsets: use cLineCaption instead of '-' for menus
wince: port the same fix as for win32 (not tested)

git-svn-id: trunk@18582 -
2009-02-05 15:05:19 +00:00
mattias
26b2693ef7 gtk1+2 intf: key handling: fixed handling result of DeliverMessage, bug #9638
git-svn-id: trunk@18577 -
2009-02-05 10:30:42 +00:00
paul
80e3207944 fix gtk autosize loop
git-svn-id: trunk@18574 -
2009-02-05 02:55:49 +00:00
martin
bc26d214a2 GTK1: Include "chr-cell" Fonts, into search for fixed pitch (Bug #12482)
git-svn-id: trunk@18536 -
2009-02-02 18:44:04 +00:00
mattias
204d1aa9b5 LCL: not focusing THintWindow on show
git-svn-id: trunk@18474 -
2009-01-28 15:39:55 +00:00
paul
7f8bec55bf gtk: another attempt to fix focus of controls on another forms (bug #0013004). Now without endless flickering.
git-svn-id: trunk@18455 -
2009-01-27 03:29:02 +00:00
mattias
777ba7c055 gtk2 intf: fixed stopping mouse up event
git-svn-id: trunk@18454 -
2009-01-27 00:55:54 +00:00
paul
5dd6a577d0 gtk: temporary disable solution for SetFocus because of problems with IDE
git-svn-id: trunk@18453 -
2009-01-26 23:04:16 +00:00
paul
2518505d5a gtk: fix focus of controls on another forms based on patch of Fabrizio Fellini (bug #0013004)
git-svn-id: trunk@18449 -
2009-01-26 10:02:58 +00:00
jesus
eca1af77c7 LCL, fix mem leak when a checklistbox item has changed state (gtk)
git-svn-id: trunk@18428 -
2009-01-24 20:54:54 +00:00
paul
899cb35691 gtk: fix GtkNotebook tabs visibility after hide/show (bug #0013006)
git-svn-id: trunk@18370 -
2009-01-21 06:39:47 +00:00
paul
a15dd3c0ef gtk: replace TGtkWidgetSet.ShowHide(AWinControl) with TGtkWidgetSet.SetVisible(AWinControl, const Bollean)
git-svn-id: trunk@18369 -
2009-01-21 06:38:48 +00:00
paul
e24b1cdfc5 lcl: a bit of formatting
git-svn-id: trunk@18368 -
2009-01-21 06:31:19 +00:00
mattias
9624b4108c gtk2: TSpinEdit: fixed deprecated page size
git-svn-id: trunk@18314 -
2009-01-16 19:58:31 +00:00
paul
fc2bfdcd38 dont call combobox onChange event when popup window is visible (bug #0012831)
git-svn-id: trunk@18297 -
2009-01-15 10:31:55 +00:00
mattias
3e47231699 gtk2: auto disconnecting some handlers, bug #12929
git-svn-id: trunk@18174 -
2009-01-06 17:04:22 +00:00
paul
274cb5df0a gtk: fix code which set scrollbar visible if bRedraw = True in the SetScrollInfo
git-svn-id: trunk@18103 -
2009-01-04 16:44:56 +00:00
paul
3569305392 gtk: fix SetSelStart for TEdit from Valdas Jankunas (bug #0011800)
git-svn-id: trunk@17987 -
2008-12-30 08:22:37 +00:00
paul
3659841c55 lcl: disable docking at the design time (#0012772)
git-svn-id: trunk@17776 -
2008-12-10 01:56:37 +00:00
paul
a3e167cc37 gtk: don't crash on polygon when pen is clear, brush is not clear and winding fill mode is used (#0012759)
git-svn-id: trunk@17721 -
2008-12-08 07:23:13 +00:00
marc
7728e82c3e * added todo for SB_THUMBPOSITION when tracking is finished
git-svn-id: trunk@17637 -
2008-11-30 23:35:12 +00:00
paul
1394f53c75 gtk, gtk2: fix visibility warnings and some other
git-svn-id: trunk@17620 -
2008-11-28 04:08:16 +00:00
mattias
7ed7f3098d gtk intf: fixed Application.Deactivate
git-svn-id: trunk@17589 -
2008-11-25 20:07:16 +00:00
paul
6e2e2c1ff2 lcl: update visibility of methods to prevent compiler warnings
- move KeyDown, KeyUp, DoMouseWheelDown, DoMouseWheelUp, ColorIsStored, Paint, and other misc methods from public to protected
  - move some descendants methods from lower visibility to higher
  - fix use of protected KeyDown, Paint inside few ide units

git-svn-id: trunk@17564 -
2008-11-24 08:15:23 +00:00
paul
9e0691d323 lcl: fix OnExit event from Zeljan
git-svn-id: trunk@17473 -
2008-11-20 13:13:17 +00:00
paul
ffa494672e lcl: remove CLX colors. They are nowhere defined, nowhere used and nobody wants to support them for years
git-svn-id: trunk@17458 -
2008-11-20 01:53:23 +00:00
mattias
d778c5fb8e gtk2: fixed reading gtk width/height by manually updating allocation.width/height
git-svn-id: trunk@17449 -
2008-11-19 17:12:26 +00:00
paul
37e5b6a1b4 gtk: fix compilation after color updates
git-svn-id: trunk@17446 -
2008-11-19 14:31:04 +00:00
paul
15a32b5102 gtk2: use less hackish clipboard fix based on patch of Brad Campbell (#0012653)
git-svn-id: trunk@17417 -
2008-11-18 02:31:29 +00:00
paul
94cc569029 gtk: use patterns that correspond windows patterns for geometric pens (todo: calc patterns for cosmetic pen later)
git-svn-id: trunk@17384 -
2008-11-14 08:21:34 +00:00