Commit Graph

711 Commits

Author SHA1 Message Date
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
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
mattias
4e41553208 gtk2 intf: calendar: implemented GetPreferredSize
git-svn-id: trunk@21202 -
2009-08-12 15:43:30 +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
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
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
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
1ccbb42de7 gtk: fix wrong UTF8KeyPress calls
git-svn-id: trunk@20478 -
2009-06-06 15:49:42 +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
6bd157f740 gtk: improve SubtractScoll
git-svn-id: trunk@20427 -
2009-06-05 08:42:58 +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
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
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
a3283dde56 gtk: cleanup, formatting
git-svn-id: trunk@20098 -
2009-05-21 09:01:38 +00:00
paul
7d94012801 gtk2: improve TGtk2ThemeServices.GetStockImage
git-svn-id: trunk@20078 -
2009-05-20 12:50:37 +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
5951b71b2a gtk: formatting
git-svn-id: trunk@20032 -
2009-05-19 03:15:21 +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
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
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
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
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
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
66a22b1146 gtk: fix some constants which makes bsDialog forms sizable
git-svn-id: trunk@19582 -
2009-04-23 05:09:24 +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
44fa480f4a gtk2: implement image flipping in StretchMaskBlt (part of issue #0013059)
git-svn-id: trunk@19215 -
2009-04-04 12:52:39 +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
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
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
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
paul
1394f53c75 gtk, gtk2: fix visibility warnings and some other
git-svn-id: trunk@17620 -
2008-11-28 04:08: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
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
f9249c9272 gtk2: use gtk_widget_set_size_request instead of gtk_widget_set_usize since last is deprecated in gtk2
git-svn-id: trunk@16783 -
2008-09-29 05:39:50 +00:00
mattias
69cfe88898 using UTF-8 for file operations and environment variables
git-svn-id: trunk@16236 -
2008-08-25 22:32:23 +00:00
marc
ce312d71a9 * Introduced Rasterimage.Masked property to distinguish between Alpha transparency and Masked transparency (fixes #0011850)
git-svn-id: trunk@16216 -
2008-08-24 22:56:56 +00:00
mattias
c81aab571f fixed uninitialized function results
git-svn-id: trunk@16088 -
2008-08-16 20:51:45 +00:00
mattias
75d4901a35 added lazdbexport-0.lpl
git-svn-id: trunk@16035 -
2008-08-12 13:11:31 +00:00
mattias
b5c52f240b gtk1+2: fixed reference count for style widget tooltip
git-svn-id: trunk@16002 -
2008-08-08 14:45:23 +00:00
paul
9a68acdbec - gtk1: dont realize GtkTooltip window
git-svn-id: trunk@15986 -
2008-08-07 15:52:53 +00:00
paul
988a36252e gtk: return drawing of clInfoBk with styled box
git-svn-id: trunk@15985 -
2008-08-07 15:42:08 +00:00
paul
d15814e550 gtk2: further fix filling with clInfoBk
git-svn-id: trunk@15984 -
2008-08-07 14:47:31 +00:00
paul
aaa5a7a953 - gtk: fix few errors related to brush fill with system color
- formating

git-svn-id: trunk@15909 -
2008-07-29 11:22:27 +00:00
mattias
6e27134bc2 gtk intf: enabled updating syscolormap
git-svn-id: trunk@15895 -
2008-07-27 21:21:11 +00:00
mattias
64237acc87 IDE+codetools: moved code browser parts to codetools
git-svn-id: trunk@15871 -
2008-07-25 23:01:08 +00:00
mattias
5f699ac8b2 gtk2: implemented TCanvas.ClipRect during paint, improved hiding/drawing caret with double buffer
git-svn-id: trunk@15865 -
2008-07-25 14:42:09 +00:00
mattias
e5805aab68 gtk/gtk2 intf: combobox: toggle selection mode to support ItemIndex=-1, fixed ReadOnly, updating intf ItemIndex cache on Delete/Insert/Change, refactoring for WS classes, from Luiz
git-svn-id: trunk@15842 -
2008-07-23 08:17:39 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
mattias
b26fda5243 gtk+gtk2+win32 intf: TComboBox: fixed LM_CHANGED, LM_SELCHANGED events, now LM_CHANGED are sent, whenever the text changes, from Luiz
git-svn-id: trunk@15831 -
2008-07-21 21:29:07 +00:00
paul
dabde77f8b lcl (from me and Marc):
- create bitmaps for icon in with icon description instead of alpha bitmaps (fixes #0011514, #0011539)
- add support for gtk mono cursors
- fix gtk2 shifts on pixbufs (gtk2 bug)
- misc graphic fixes

git-svn-id: trunk@15557 -
2008-06-24 03:45:36 +00:00
paul
db26dddf06 gtk1, gtk2: Add CreateIconIndirect implementation which returns pixbuf. Move CreateCursor code there and remove its declaration.
git-svn-id: trunk@15457 -
2008-06-18 09:14:27 +00:00
mattias
63efcb6dec gtk1 intf: workaround for popupmenu of TEdit/TComboBox mouse capture release bug #9452
git-svn-id: trunk@15423 -
2008-06-14 13:20:10 +00:00
mattias
e3520a6d50 gtk intf: reduced warnings/notes - use -dVerboseLCLTodos and -dVerboseGtkTodos to see them
git-svn-id: trunk@15422 -
2008-06-14 12:04:46 +00:00
paul
2c757eff9a lcl: make TToolButton TGraphicControl instead of TCustomControl. This is: a) delphi compatible b) eats less system resources
git-svn-id: trunk@15091 -
2008-05-11 06:57:49 +00:00
mattias
961e74cd37 gtk2 intf: fixed mem leak OpenDialog filter list
git-svn-id: trunk@14978 -
2008-04-25 22:09:23 +00:00
sekelsenmat
7d21f43d3b Fixes crash in PageControls in invisible pages. Fixes #9343.
git-svn-id: trunk@14902 -
2008-04-19 20:52:48 +00:00
sekelsenmat
87798ed1c2 Improves the window border and decoration code on gtk.
git-svn-id: trunk@14809 -
2008-04-12 18:13:02 +00:00
vincents
f769821d63 gtk interface: fixed compilation with fpc 2.3.1 (bug #11091)
git-svn-id: trunk@14738 -
2008-04-02 21:19:34 +00:00
paul
360224df38 small typo
git-svn-id: trunk@14594 -
2008-03-20 07:54:33 +00:00
paul
845a1c761d statusbar: implement SizeGrip for gtk2
git-svn-id: trunk@14593 -
2008-03-20 07:47:20 +00:00
paul
11de6af8b9 decapitalize all procedure and function keywords to make all looks the same
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
mattias
e4cad5b120 gtk intf: fixed RealizeAccelerate
git-svn-id: trunk@14300 -
2008-02-28 13:05:18 +00:00
mattias
d992ea6cf8 gtk intf: cleanup
git-svn-id: trunk@14188 -
2008-02-19 08:43:28 +00:00
mattias
a7e5a68b2c gtk2 intf: fixed checking accelerator vs 0 not vs obsolete GDK_VOIDSYMBOL
git-svn-id: trunk@14184 -
2008-02-18 15:51:55 +00:00
paul
4725a4fdfe more formatting
git-svn-id: trunk@13989 -
2008-02-06 06:51:46 +00:00
paul
df37b768a1 formatting
git-svn-id: trunk@13988 -
2008-02-06 06:36:10 +00:00
paul
dff1565eb1 gtk2:
- enable GetObject for HFont
- use MulDiv in font size calculation instead of *, div (as in font.inc) (Grzegorz Zakrzewski)
- use PixelsPerInchY instead of PixelsPerInchX (Grzegorz Zakrzewski)
- minor formatting

git-svn-id: trunk@13985 -
2008-02-06 04:37:06 +00:00
paul
b66fdb0bab gtk: remove LM_INTERNALPAINT and related things
git-svn-id: trunk@13848 -
2008-01-24 01:37:40 +00:00
paul
e48133ad74 gtk: perform erasing background on non opaque controls
git-svn-id: trunk@13842 -
2008-01-23 10:21:20 +00:00
paul
c60d5a52dd minor formatting
git-svn-id: trunk@13814 -
2008-01-21 01:39:54 +00:00
mattias
d49945c877 gtk intf: using translated strings for menu item short cuts
git-svn-id: trunk@13770 -
2008-01-15 21:59:26 +00:00
mattias
4f6a0dcd48 gtk2 intf: shrink close buttons of TNoteBook tabs, bug #9856
git-svn-id: trunk@13699 -
2008-01-09 21:13:01 +00:00
paul
c8d52d15d6 gtk:
- remove FinishComponentCreate: code moved to appropriate ws classes
- remove HookSignals (same reason)

git-svn-id: trunk@13537 -
2007-12-30 18:15:53 +00:00
paul
6c90924c4c gtk:
- remove obsoleted code
- fix mem leak in TGtkWSCustomControl.CreateHandle

git-svn-id: trunk@13494 -
2007-12-28 04:18:53 +00:00
paul
2f0de90ec1 gtk: move CreateComponent code for TPairSplitter, TScrollBox, TScrollBar to CreateHandle and FinishComponentCreate to SetCallbacks
git-svn-id: trunk@13467 -
2007-12-26 08:52:02 +00:00
mattias
1816c3aa0a gtk intf: improved debugging
git-svn-id: trunk@13432 -
2007-12-23 10:25:21 +00:00
paul
5f4c1f9e2c gtk: offset should be added only if fixed widget also have no window (fixes something in lazreport)
git-svn-id: trunk@13366 -
2007-12-18 06:06:57 +00:00
jesus
58ba924d19 LCL, fix gtk intf compile with fpc r9485 #cb1741aade or later
git-svn-id: trunk@13359 -
2007-12-18 00:04:10 +00:00
paul
2611c3b386 lcl: reduce amount of hints and warnings from fpc
git-svn-id: trunk@13335 -
2007-12-15 06:39:19 +00:00
paul
b53639f2f0 fix problems after r13327 #7fe9f6360b with menu images
git-svn-id: trunk@13334 -
2007-12-15 05:42:39 +00:00
paul
7fe9f6360b gtk:
- ask TCustomPage imageindex through TCustomNotebook.GetImageIndex(..)
- fix imagelist drawing on widgets that are placed on fixed without window (issue #0010243)

git-svn-id: trunk@13327 -
2007-12-14 09:02:21 +00:00