Commit Graph

9017 Commits

Author SHA1 Message Date
paul
fbede377a2 lcl: ThemeServices.ColorToRGB returns default conversion when Details is nil (#0012167)
git-svn-id: trunk@16772 -
2008-09-27 17:16:26 +00:00
tombo
5d76ce8c9a LCL Carbon: applied slightly modified patch #0012212: Carbon: smooth button sizing from skalogryyz,
and used same approach for more controls

git-svn-id: trunk@16769 -
2008-09-27 12:40:19 +00:00
vincents
b1927940a7 LCL: FileSize function
fixed compilation for wince
fixed handle leak for all windows platforms

git-svn-id: trunk@16768 -
2008-09-27 12:29:45 +00:00
tombo
18c474eba2 LCL Carbon: set and kill focus of focused control, on form activation/deactivation
git-svn-id: trunk@16764 -
2008-09-27 10:04:03 +00:00
paul
7d24b089e5 carbon: retrieve more scrollbar related system metrics
git-svn-id: trunk@16759 -
2008-09-26 13:43:10 +00:00
paul
c355897e59 initial implementation of CreatePatternBrush
git-svn-id: trunk@16757 -
2008-09-26 13:15:22 +00:00
tombo
12dd2f0c1a LCL carbon: (can be merged) applied patch #0012235: Carbon: Fix for tab switching bug from skalogryyz
git-svn-id: trunk@16752 -
2008-09-26 10:47:55 +00:00
tombo
e4b2b66e7e LCL controls: fixed range error
git-svn-id: trunk@16750 -
2008-09-26 09:49:16 +00:00
mattias
a9226082e6 LCL: FileSize fixed when file not exists
git-svn-id: trunk@16748 -
2008-09-26 09:41:16 +00:00
mattias
c48ce44f60 LCL: FileSize fixed for files bigger than 2GB
git-svn-id: trunk@16747 -
2008-09-26 09:36:41 +00:00
jesus
83c80c6dae LCL, fix OnGetText for dbgrid
git-svn-id: trunk@16740 -
2008-09-26 05:24:18 +00:00
paul
fa7007bcbb gtk2 (can be merged):
- fix masking in ListView pixbuf creation code
  - fix memory leak in ListView pixbuf creation code

git-svn-id: trunk@16738 -
2008-09-26 02:32:42 +00:00
paul
c911e73e25 db (can be merged):
- move hints constants to resourcestrings
  - simplified default hints assigning
  - don't set enabled state of buttons directly, use a more correct way which depends on current DataLink state (as result in runtime only correct buttons are enabled, not every)

git-svn-id: trunk@16736 -
2008-09-26 01:27:04 +00:00
mattias
f838fba734 added comment
git-svn-id: trunk@16728 -
2008-09-25 10:23:22 +00:00
vincents
e9c936715b updated trunk version number to 0.9.27
git-svn-id: trunk@16725 -
2008-09-25 09:10:30 +00:00
vincents
176954354f updated version number to 0.9.26
git-svn-id: trunk@16723 -
2008-09-25 09:07:52 +00:00
zeljko
c61a173237 Qt: reverted patch for #12230 (introduced more size problems), bug reopened, will be fixed in 0.9.27 ...
git-svn-id: trunk@16722 -
2008-09-25 08:22:37 +00:00
zeljko
4f0d06645d Qt: fix for #12230. QTabWidget_contentsRect() always return rect without tabbar, so, no need to dec result of getClientBounds()
git-svn-id: trunk@16721 -
2008-09-25 08:10:53 +00:00
mattias
777521ffcb translations: lithuanian: from Valdas Jankūnas
git-svn-id: trunk@16718 -
2008-09-25 06:37:47 +00:00
paul
cdbcd54d0e qt: fix pen position after lineTo (fixes Jesus troubles with grid)
git-svn-id: trunk@16716 -
2008-09-25 06:25:02 +00:00
paul
562a275928 carbon: skip last point in polyline to be delphi/win32
git-svn-id: trunk@16714 -
2008-09-25 01:55:31 +00:00
jesus
96ec73b211 LCL, fix dbgrid indicator after fixes of LineTo/MoveTo
git-svn-id: trunk@16713 -
2008-09-25 00:26:47 +00:00
tombo
051af46383 LCL Carbon: fixed TSaveDialog.InitialDir - nil was passed instead of FileDialog to call back
git-svn-id: trunk@16711 -
2008-09-24 14:57:24 +00:00
tombo
564d824e9a LCL Carbon: disable showing debug info for application object
git-svn-id: trunk@16709 -
2008-09-24 14:27:53 +00:00
jesus
c2dffd1000 IDE, don't look for module changes when processing i18n option, issue #12187
git-svn-id: trunk@16707 -
2008-09-24 13:53:00 +00:00
paul
1b88decc3d lcl: allow to work with TTreeView.TopItem when handle is not allocated
git-svn-id: trunk@16691 -
2008-09-24 06:15:15 +00:00
paul
7f06e41a7c qt:
- improve LineTo
  - PolyLine must skip last pixel to be delphi/win32 compatible

git-svn-id: trunk@16690 -
2008-09-24 01:44:22 +00:00
paul
d0f9e88743 gtk, gtk2: PolyLine must skip last point draw to be delphi/win32 compatible
git-svn-id: trunk@16689 -
2008-09-23 23:29:10 +00:00
vincents
fa633cdfbc LCL: fixed setting TListBox.Items.Sorted for Listbox without handle, fixes #12216
git-svn-id: trunk@16688 -
2008-09-23 20:35:55 +00:00
paul
0c2102095d carbon: implement GetsysColor for clActivecaption, clInactiveCaption
git-svn-id: trunk@16676 -
2008-09-23 03:28:53 +00:00
paul
724d7b8199 carbon: focus rect must be drawn inside passed rect
git-svn-id: trunk@16675 -
2008-09-23 02:30:55 +00:00
paul
09983c4aa0 qt: clCaptionText color must be visible on clActiveCaption bg
git-svn-id: trunk@16666 -
2008-09-21 14:01:58 +00:00
paul
eee75551b6 gtk: don't try to draw Text if Rect is empty
git-svn-id: trunk@16665 -
2008-09-21 13:32:30 +00:00
tombo
e7e9a83d4a LCL Carbon: improved item index handling for TListBox
git-svn-id: trunk@16664 -
2008-09-21 12:29:49 +00:00
paul
d611ff1e39 qt: handle other toolbar parts the same way as a button in themeservices
git-svn-id: trunk@16663 -
2008-09-21 11:26:15 +00:00
paul
9cc9099e3f carbon:improve themed toolbar drawing
git-svn-id: trunk@16662 -
2008-09-20 16:51:19 +00:00
tombo
a83c1c5a70 LCL Carbon: better scrollbar handling, fixes bug #0012044: TListBox scrollbars on Carbon
git-svn-id: trunk@16660 -
2008-09-20 12:47:41 +00:00
zeljko
160b31e9dc Qt: qtthemes - when toolbar is flat, then make toolbar buttons also flat.
git-svn-id: trunk@16659 -
2008-09-19 21:31:42 +00:00
vincents
46f03b20ca LCL: added SysErrorMessageUTF8
git-svn-id: trunk@16657 -
2008-09-19 21:14:03 +00:00
zeljko
0f1e56d462 Qt: bugfix - cannot blindly convert shared image, must use new QImage for such ops.
git-svn-id: trunk@16656 -
2008-09-19 17:46:12 +00:00
tombo
ddeee54b5c LCL Carbon: implemented GetTextColor, fixes bug #0012166: TSpeedButton in carbon
git-svn-id: trunk@16655 -
2008-09-19 16:53:19 +00:00
tombo
b7bcb7ed2c LCL Carbon: TMemo hide selection when inactive, part of bug #0012042: TMemo selection
git-svn-id: trunk@16654 -
2008-09-19 16:45:55 +00:00
zeljko
6fd04c98b8 Qt: fixed crash with QLCLAbstractItemDelegate for win32 & macosx under some circumstances.
git-svn-id: trunk@16653 -
2008-09-19 16:27:55 +00:00
zeljko
f03215b59b Qt: Fixed regression in TQtDeviceContext.drawImage().
git-svn-id: trunk@16651 -
2008-09-19 16:01:42 +00:00
paul
fa7ae42825 lcl: add TCustomBitBtn.LoadGlyphFromLazarusResource
git-svn-id: trunk@16648 -
2008-09-19 14:18:30 +00:00
zeljko
eda775b4f0 Qt: added QtX11WaitForWindowManager() to all QWidget_showXX calls.Such call avoid unexpected behaviour under some X11 window managers.
Fixed AV with QLCLItemDelegate_destroy() which raises AV under linux in some circumstances.Added TODO for this case.

git-svn-id: trunk@16645 -
2008-09-19 11:18:43 +00:00
mattias
43de22896d translations: russian: updates from Maxim
git-svn-id: trunk@16638 -
2008-09-18 21:38:29 +00:00
jesus
5ff328f3f1 LCL, fixed postscriptcanvas AV issue #12173, and example
git-svn-id: trunk@16637 -
2008-09-18 21:24:09 +00:00
zeljko
7dcfdfde0f Qt: check enable state of TQtLineEdit & TQtComboBox when using AutoSelect property.
git-svn-id: trunk@16636 -
2008-09-18 20:29:47 +00:00
zeljko
2c9245741e Qt: removed IFDEF WINDOWSUNICODESUPPORT from TQtWidgetSet.FontCanUTF8()
git-svn-id: trunk@16631 -
2008-09-18 06:22:44 +00:00
zeljko
7be0d54a71 Qt: check grabWidget for nil before call to QWidget_releaseMouse().
git-svn-id: trunk@16629 -
2008-09-17 16:41:26 +00:00
zeljko
707ff6d34c Qt: all color conversions changed from QColor_setRgb() to QColor_fromRgb(), cause it can return unexpected result.
git-svn-id: trunk@16626 -
2008-09-17 14:49:58 +00:00
jesus
ed57405eeb LCL, don't paste to or cut from grid if it's not editable, issue #12163
git-svn-id: trunk@16625 -
2008-09-17 14:30:27 +00:00
zeljko
36729ad9c3 Qt: fix TQtAbstractItemView should use QPaletteBase; Convert colors using QColor_fromRGB() in qtobjects.ColorRefToQColor()
git-svn-id: trunk@16621 -
2008-09-17 13:29:26 +00:00
tombo
cc181b888f LCL carbon: set empty image, if bitbtn or menu item bitmap width or height is zero, fixes #0011710: Carbon: Small dot now on left side of menu items and button labels
git-svn-id: trunk@16619 -
2008-09-17 13:26:28 +00:00
zeljko
c3e3cf9a44 Qt: fixed #11602, problem was in TQtWidgetSet.DCSetPixel().
git-svn-id: trunk@16618 -
2008-09-17 12:11:09 +00:00
paul
20accebb61 lcl: if Bitmap is empty return clNone in RequestTransparentColor
git-svn-id: trunk@16617 -
2008-09-17 08:05:03 +00:00
sekelsenmat
3ebe772f22 Puts all new lowercase code inside ifdef NewLowerCase
git-svn-id: trunk@16612 -
2008-09-16 17:43:38 +00:00
zeljko
b0367ba1d7 Qt: fixed QPalette mess with TQtWidget, TQtComboBox, TQtAbstractScrollArea, TQtLineEdit, TQtTextEdit, TQtAbstractSpinBox, TQtAbstractButton.
git-svn-id: trunk@16610 -
2008-09-16 17:19:33 +00:00
vincents
8c49e607af win32 issues: fixed typos
git-svn-id: trunk@16606 -
2008-09-16 14:40:30 +00:00
paul
10cb184641 win32: fix range check error (by Martin Friebe, #0012157)
git-svn-id: trunk@16602 -
2008-09-16 02:44:11 +00:00
paul
f7c01f9fda gtk: revert part of 16324. use g_idle_add. gtk_timeout_add leads to crash (#0012114)
git-svn-id: trunk@16601 -
2008-09-15 22:34:04 +00:00
zeljko
6ce78376aa Qt: added comment about QFontMetrics::averageCharWidth() under MacOsX.
git-svn-id: trunk@16600 -
2008-09-15 21:19:29 +00:00
zeljko
ffec5a52a8 Qt: fix latest patch, only DT_NOCLIP should be changed ...
git-svn-id: trunk@16599 -
2008-09-15 17:17:07 +00:00
zeljko
b15a1073c9 Qt: bugfix in TQtWidgetSet.drawText()
git-svn-id: trunk@16598 -
2008-09-15 17:01:19 +00:00
jesus
427ef13a50 LCL, fix stringgrid removing of last custom column, issue #12152
git-svn-id: trunk@16596 -
2008-09-15 14:56:08 +00:00
tombo
d53f365f5e LCL carbon: fixed range error
git-svn-id: trunk@16595 -
2008-09-15 14:51:06 +00:00
mattias
f74132f80f LCL: CreateRelativePath not relative for complete paths
git-svn-id: trunk@16593 -
2008-09-15 12:35:27 +00:00
zeljko
e638219510 Qt: fix synedit AV under darwin.
git-svn-id: trunk@16591 -
2008-09-15 12:08:45 +00:00
mattias
7d321ea70b gtk2 intf: disabled gtk2 threading, bug #12145
git-svn-id: trunk@16590 -
2008-09-15 11:43:07 +00:00
zeljko
0152132972 Qt: fixed #11101, #11281 (dbgrid AV)
git-svn-id: trunk@16588 -
2008-09-14 13:04:18 +00:00
tombo
82d37a3e72 LCL carbon: fixed range check error
git-svn-id: trunk@16586 -
2008-09-14 09:38:10 +00:00
tombo
98670ae7f4 LCL Carbon: fixed range errors and warnings, fixes #0011704: Range checks when Carbon compiled with -Cr
git-svn-id: trunk@16585 -
2008-09-14 09:22:51 +00:00
jesus
a081ba2890 LCL, check that grid editors do show or hide on some special situations
git-svn-id: trunk@16584 -
2008-09-13 21:25:16 +00:00
tombo
56b2d3f9c3 LCL Carbon: finally find solution for #0011287: Mac OS X : Double Click when Showing forms does not work correctly... - postpone down message to start of mouse tracking
git-svn-id: trunk@16581 -
2008-09-13 12:43:18 +00:00
tombo
22aa8a9284 LCL carbon: commented debugln
git-svn-id: trunk@16580 -
2008-09-13 12:07:12 +00:00
tombo
0c3d73c74e LCL Carbon: improved menu item short cut setting - perhaps fixes #0011961: un-commanded Meta-A menu event
git-svn-id: trunk@16579 -
2008-09-13 11:03:14 +00:00
tombo
d35f4e8e83 LCL intfbasewinapi: DrawText - allow to draw only part of last botom line, fixes #0012045: TSpeedButton text
git-svn-id: trunk@16578 -
2008-09-13 10:17:59 +00:00
tombo
b333c7d0f5 LCL TImageList: ignore out of range index when drawing, fixes #0012130: Mac OS X : TreeView1CustomDrawItem AV
git-svn-id: trunk@16576 -
2008-09-13 09:34:42 +00:00
vincents
273220e891 fixed compilation after merging of the fpc Unicode branch to fpc 2.3.1
git-svn-id: trunk@16573 -
2008-09-12 21:24:45 +00:00
mattias
6d1a1f3f0a LCL: workaround for starnge bug
git-svn-id: trunk@16571 -
2008-09-12 19:54:47 +00:00
mattias
1ca043ca07 LCL: fixed utf8 lowercase init
git-svn-id: trunk@16570 -
2008-09-12 19:46:35 +00:00
mattias
cbc48ec1e5 LCL: optimiziation
git-svn-id: trunk@16569 -
2008-09-12 19:34:23 +00:00
mattias
58f798c8af LCL: added pascal version of UTF8LowerCase: UTF8LowerCaseNew
git-svn-id: trunk@16568 -
2008-09-12 19:11:53 +00:00
zeljko
de65490e4a Qt: added TQtFontMetrics.averageCharWidth(), we use this one instead of blind charWidth('x',0) in qtwinapi.
git-svn-id: trunk@16565 -
2008-09-12 14:02:41 +00:00
paul
4cd05af849 lcl: remove old custom drawn checkbox code.
git-svn-id: trunk@16563 -
2008-09-12 06:40:07 +00:00
paul
651e4d2051 lcl: typo
git-svn-id: trunk@16562 -
2008-09-12 06:10:24 +00:00
paul
7a25527898 qt: revert commit of debug code
git-svn-id: trunk@16561 -
2008-09-12 03:25:37 +00:00
paul
362c46dac6 lcl: use UTF8 versions of LowerCase, UpperCase internally
git-svn-id: trunk@16560 -
2008-09-12 03:24:27 +00:00
paul
61fee6535e qt: use correct widestring -> utf8 conversion in KeyPress handler
git-svn-id: trunk@16559 -
2008-09-12 02:25:34 +00:00
paul
895d06f6f9 lcl: use cwstrings on unix to perform widestring operations
git-svn-id: trunk@16558 -
2008-09-12 01:50:17 +00:00
paul
3191164086 win32, wince: revert previous cursor-related commit. It was wrong. Fix real problem. (#0012117)
git-svn-id: trunk@16557 -
2008-09-12 00:48:44 +00:00
zeljko
9832af3ae8 Qt: bugfix in TQtListWidget.signalSelectionChanged(), no more AV in some circumstances.
git-svn-id: trunk@16556 -
2008-09-11 21:24:43 +00:00
zeljko
1a4ebe205e Qt: fix mouseevents handling for TQtListWidget, added note about possible qt bug inside QListView class, removed workaround from TQtListWidget.signalItemClicked().
git-svn-id: trunk@16555 -
2008-09-11 21:00:56 +00:00
zeljko
bf2a387745 Qt: optimizations to TQtAbstractScrollArea painting. We must send update & repaint directly to viewport widget, not TQtAbstractScrollArea.Widget, as of Qt documentation.
git-svn-id: trunk@16554 -
2008-09-11 20:52:15 +00:00
sekelsenmat
ed41ec1299 Removes ambiguity in function call
git-svn-id: trunk@16551 -
2008-09-11 20:21:16 +00:00
zeljko
ec76a4c4ac Qt: bugfix - issue #12121
git-svn-id: trunk@16540 -
2008-09-11 07:16:17 +00:00
paul
bc98657cb3 carbon: dont convert 1 bit to 8 bit
git-svn-id: trunk@16539 -
2008-09-11 06:57:19 +00:00
paul
ea198f3972 formatting
git-svn-id: trunk@16538 -
2008-09-11 03:14:24 +00:00
paul
c20e56842f lcl: store Label color if it differs from clNone without regards to ParentColor
git-svn-id: trunk@16537 -
2008-09-11 02:57:11 +00:00
paul
1fa9302245 lcl: set ParentFont = True by default (delphi compatible and #0012046)
git-svn-id: trunk@16536 -
2008-09-11 02:55:31 +00:00
paul
d6593ebca1 gtk, gtk2: fix clipping rect of newly created bitmap (#0012026)
git-svn-id: trunk@16535 -
2008-09-11 01:17:14 +00:00
paul
730022505a wince: use the same as win32 fix for WM_SETCURSOR
git-svn-id: trunk@16534 -
2008-09-11 01:04:44 +00:00
paul
6c22b2ee3b win32: fix WM_SETCURSOR handling (#0012117)
git-svn-id: trunk@16533 -
2008-09-11 01:00:40 +00:00
paul
440cd971b6 lcl: better protect GradientFill from dummy rect
git-svn-id: trunk@16530 -
2008-09-10 23:18:19 +00:00
paul
5d8c7c393a win32: scroll fix from Martin Friebe (#0011768)
git-svn-id: trunk@16528 -
2008-09-10 22:26:13 +00:00
paul
593181822e lcl: protected GradientFill from dummy rect (by report from russian forum)
git-svn-id: trunk@16526 -
2008-09-10 11:35:28 +00:00
paul
3374c666b8 lcl: publish OnUTF8KeyPress
git-svn-id: trunk@16520 -
2008-09-10 09:22:59 +00:00
paul
44bad2e31d lcl: don't call abstract TDockTree.MouseMessage method (reported on russian forum)
git-svn-id: trunk@16519 -
2008-09-10 03:24:28 +00:00
paul
fb4e50d0fe grids: don't intersect with window messages which are > WM_USER (UDM_SETBUDDY, etc). fixes #0012112
git-svn-id: trunk@16518 -
2008-09-10 03:09:55 +00:00
paul
d49c89985a formatting
git-svn-id: trunk@16517 -
2008-09-10 03:00:04 +00:00
paul
c9143f45a9 win32: workaround WM_MOUSEWHEEL (#0011768)
git-svn-id: trunk@16515 -
2008-09-10 01:10:04 +00:00
mattias
595bc12c8c codetools: beautifiying end, bug #12078
git-svn-id: trunk@16509 -
2008-09-09 21:16:10 +00:00
jesus
bef0e71b34 LCL, fix resizing column issue #12098 (topleft calc failed because new columns have accumwidth=0)
git-svn-id: trunk@16505 -
2008-09-09 17:59:23 +00:00
paul
f67b637d75 cleanup
git-svn-id: trunk@16503 -
2008-09-09 14:10:56 +00:00
paul
b8949b9c21 lcl: fix TEdit, TCombobox SelText setter
git-svn-id: trunk@16502 -
2008-09-09 12:29:45 +00:00
paul
51a0e1dc2a extend comment
git-svn-id: trunk@16499 -
2008-09-09 09:16:43 +00:00
tombo
90a84d1a7a LCL carbon: fixed #0012061: TMemo does not delete lines - Carbon
- remove line end

git-svn-id: trunk@16497 -
2008-09-09 08:16:43 +00:00
paul
72d5cfba41 lcl: fix default widgetset imagelist implementation (#0012041)
git-svn-id: trunk@16496 -
2008-09-09 05:49:49 +00:00
sekelsenmat
c6a3b93b59 Implements TComboBox.OnChange firing on Carbon
git-svn-id: trunk@16495 -
2008-09-09 01:34:22 +00:00
paul
35e9017af7 qt:
- reimplement selection start/length for Qt widgets
  - add SelStart, SelLength support to Qt combobox

git-svn-id: trunk@16494 -
2008-09-09 01:12:30 +00:00
paul
1fe8eb7a33 qt: cleanup
git-svn-id: trunk@16493 -
2008-09-09 00:39:11 +00:00
paul
b5789f4598 lcl: change Height to AHeight in TMeasureItemEvent to resolve conflict with TForm.Height in mode objfpc
git-svn-id: trunk@16492 -
2008-09-09 00:29:55 +00:00
tombo
b3ad3511f0 LCL carbon: TSelectDirectoryDialog - fixed another range error
git-svn-id: trunk@16485 -
2008-09-08 12:34:45 +00:00
tombo
789224e558 LCL carbon: TSelectDirectoryDialog - fixed range error
git-svn-id: trunk@16484 -
2008-09-08 11:54:19 +00:00
tombo
05e22097a0 LCL carbon: revert changes to combobox auto-disclosure - it is unable to select item by keyboard
git-svn-id: trunk@16483 -
2008-09-08 11:44:25 +00:00
zeljko
ad067e953d Qt: fixed drawImage(), must call QImage_scaled() before QPainter_drawImage() if W&H diffs from original.
git-svn-id: trunk@16481 -
2008-09-08 08:26:04 +00:00
paul
0e46060ced lcl: more utf8 fixes
git-svn-id: trunk@16479 -
2008-09-08 07:34:25 +00:00
paul
8ae1d62bbe lcl:
- add more UTF8 string functions (Delete, Insert, LoweCase, UpperCase)
  - revert gtk SelStart, SelLength changes - they are and will return position in Characters
  - fix combobox completion code

git-svn-id: trunk@16478 -
2008-09-08 03:41:32 +00:00
paul
5f4857e470 gtk: don't request bitmap handle to check whether it empty - use Empty property instead
git-svn-id: trunk@16477 -
2008-09-08 03:09:15 +00:00
mattias
d8ca4194ff gtk2 intf: enabling gtk threading when thread manager is set
git-svn-id: trunk@16475 -
2008-09-07 23:16:18 +00:00
zeljko
c779f2c362 Qt: bugfix #12093 - TSplitter doesn't work anymore as expected.
git-svn-id: trunk@16472 -
2008-09-07 20:04:44 +00:00
tombo
dbad42af76 LCL Carbon: fixed bug #0011688: Comboboxes don't close when item was selected - force hide drop/down list when item selected
git-svn-id: trunk@16470 -
2008-09-07 13:58:56 +00:00
vincents
13edb8ff11 LCL: TAsyncProcess.NumBytesAvailable uses TAsyncProcess.Output.NumBytesAvailable and let the FCL handle the platform dependant details
git-svn-id: trunk@16469 -
2008-09-07 12:25:27 +00:00
mattias
2b3fb23528 LCL: TComboBox: clean up and added TCustomComboBox.UTF8KeyPress override for lower/uppercase, LCL: nicer parameter names
git-svn-id: trunk@16462 -
2008-09-07 11:09:00 +00:00
mattias
45780ee1aa gtk2 intf: TComboBox: fixed GetSetSelStart/GetSetSelLength to use byte positions instead of character positions
git-svn-id: trunk@16461 -
2008-09-07 11:07:24 +00:00
mattias
61bf784792 added comments
git-svn-id: trunk@16457 -
2008-09-06 17:10:44 +00:00
micha
4538645d35 * lcl/gtk2: only use X when HasX has been defined
git-svn-id: trunk@16453 -
2008-09-06 15:24:58 +00:00
zeljko
d70830e8d5 Qt: TQtCalendar fixes (mostly mouse problems), fixed #12080
git-svn-id: trunk@16452 -
2008-09-06 14:44:33 +00:00
marc
76a919e7d6 * Updated Russion translation by Maxim Ganetsky
git-svn-id: trunk@16451 -
2008-09-06 11:40:27 +00:00
zeljko
57446be86c Qt: win32 fix, ide editor sometimes freezes because VK_LWIN & VK_RWIN aren't assigned
git-svn-id: trunk@16450 -
2008-09-06 09:44:43 +00:00
mattias
5202c92a1a gtk1: fixed signal stop return values
git-svn-id: trunk@16449 -
2008-09-06 08:55:38 +00:00
jesus
0fd0d89882 LCL, fix page orientation on postscript output, issue #11944
git-svn-id: trunk@16443 -
2008-09-05 20:22:14 +00:00
zeljko
5a470061ce Qt: dont set autofillbackground for native widgets (HasPaint=False) during design time.
git-svn-id: trunk@16440 -
2008-09-05 17:15:23 +00:00
zeljko
44818bf3cb Qt: fix stalled writeln.
git-svn-id: trunk@16436 -
2008-09-05 13:45:02 +00:00
paul
4c1ca3a309 lcl: fix TCustomImageList.InsertMasked, TCustomImageList.ReplaceMasked (maybe fixes #0012041?)
git-svn-id: trunk@16435 -
2008-09-05 13:24:29 +00:00
paul
f75f743776 lcl: prevent division by 0 when updating progress during graphic loading/saving (#0012070)
git-svn-id: trunk@16434 -
2008-09-05 13:03:41 +00:00
zeljko
7927592d44 Qt: fixed #12072, cleanups.
git-svn-id: trunk@16432 -
2008-09-05 12:32:13 +00:00
mattias
95e9a9b545 LCL: fixed typo
git-svn-id: trunk@16423 -
2008-09-05 00:15:31 +00:00
mattias
b648a62c02 translations: german: updated translations
git-svn-id: trunk@16422 -
2008-09-05 00:14:10 +00:00
zeljko
08b2573645 Qt: faster Sort() routines in qtprivate.
git-svn-id: trunk@16417 -
2008-09-04 18:39:00 +00:00
zeljko
bdff789799 Qt: TQtComboBox, no more unnecessary removeItem() insertItem(), now we use setItemText() in qtprivate.TQtComboStrings.Put().
git-svn-id: trunk@16416 -
2008-09-04 18:18:48 +00:00
zeljko
9f570dee58 Qt: bugfix for #12060 - TListBox looses selection on item text change.
git-svn-id: trunk@16415 -
2008-09-04 18:02:36 +00:00
zeljko
d22024fb37 Qt: fix getAutoFillBackground() evaluation introduced by latest patch.
git-svn-id: trunk@16414 -
2008-09-04 17:25:38 +00:00
zeljko
83c9d3ccd2 Qt: bugfix - fixed child control selection/rubber paint inside TPanel during design time.
git-svn-id: trunk@16413 -
2008-09-04 16:53:11 +00:00
zeljko
90d81449be Qt: bugfix - create proper widget for our TQtComboBox->FDropList, default QComboBox_view() is QAbstractItemViewH not QListWidgetH.
git-svn-id: trunk@16412 -
2008-09-04 14:26:43 +00:00
zeljko
44c94bd08b Qt: fix TQtComboBox.EventFilter() result.
git-svn-id: trunk@16411 -
2008-09-04 14:08:37 +00:00
paul
5f76c9b083 win32: TCustomListBox: don't recreateWnd if we are destroying handle
git-svn-id: trunk@16410 -
2008-09-04 12:15:08 +00:00
mattias
3083aece74 LCL: clean up
git-svn-id: trunk@16409 -
2008-09-04 11:21:48 +00:00
mattias
32e073f898 LCL: TListBox: fixed Sorted
git-svn-id: trunk@16406 -
2008-09-04 09:43:34 +00:00
laurent
a39f46e131 Update french languages
git-svn-id: trunk@16405 -
2008-09-04 09:39:45 +00:00
zeljko
d183b9c039 Qt: bugfix TMemo doesn't fire OnClick() OnDoubleClick()
git-svn-id: trunk@16403 -
2008-09-04 08:53:42 +00:00
zeljko
5c07183e9b Qt: removed contextmenu hack.Behaviour is: if PopupMenu isn't assigned -> show system menu (if widget supports it).
git-svn-id: trunk@16401 -
2008-09-04 08:08:49 +00:00
paul
9c95d9870b qt: use message dispatching when menu item was triggered (#0012053)
git-svn-id: trunk@16398 -
2008-09-04 07:02:41 +00:00
paul
196b1d0098 lcl: graphic changes
- don't create dummy mask for icon if image.MaskBitsPerPixel = 0
  - win32: create dummy mask for icon if no mask is present since windows cannot live without any mask
  - force Change at correct place of TIcon.AssignImage
  - clear not only saved stream on TRasterImage.LoadFromStream but all handles too since they are not valid after loading another data to an image

git-svn-id: trunk@16397 -
2008-09-04 01:39:26 +00:00
marc
848eeac586 * When saving icon, use maskhandle when set
* Update custombitmap pixelformat when rawimage is changed

git-svn-id: trunk@16395 -
2008-09-04 00:09:45 +00:00
paul
68a2e1b6d1 lcl: improve Tomas change to CopyPixels, fixes #0012023
git-svn-id: trunk@16394 -
2008-09-03 22:23:30 +00:00
zeljko
5b4d18d1f6 Qt: Fixed problems with context menus, TQtTextEdit is not TQtAbstractScrollArea anymore.
git-svn-id: trunk@16393 -
2008-09-03 19:13:16 +00:00
tombo
d32bb80d0a LCL Carbon: added GetSystemMetrics for SM_CXICON, SM_CYICON
git-svn-id: trunk@16390 -
2008-09-03 14:29:39 +00:00
paul
67ef0cd399 lcl: TImage: check Picture.Graphic existence before setting it Transparency
git-svn-id: trunk@16389 -
2008-09-03 13:46:55 +00:00
tombo
87854c957c LCL Carbon: fixed crSQLWait cursors
git-svn-id: trunk@16388 -
2008-09-03 13:34:39 +00:00
tombo
d84640530a LCL Carbon: finally fixed #0012033: Mac OS X : LoadCursorFromLazarusResource throws Division by Zero Exception! - mask data was not copied to alpha channel, only crSQLWait needs some repair
git-svn-id: trunk@16386 -
2008-09-03 11:17:26 +00:00
paul
35596739bf win32: TSavePictureDialog shows now Save Dialog instead of Open Dialog (partially fixes #0010287)
git-svn-id: trunk@16383 -
2008-09-03 08:10:32 +00:00
paul
03fcee900c lcl: add TCustomImageList.GetFullRawImage, TCustomImageList.GetFullBitmap to retrieve one image/bitmap with all icons placed in the imagelist
git-svn-id: trunk@16381 -
2008-09-03 07:43:54 +00:00
paul
af3f2ad36b lcl: initialize maskhandle to 0
git-svn-id: trunk@16378 -
2008-09-03 07:06:36 +00:00
paul
9de410f82a lcl:
- increase visibility of CreateCompatibleBitmaps
  - decrease TCustomImageList.GetBitmap argument type from TBitmap to TCustomBitmap

git-svn-id: trunk@16377 -
2008-09-03 06:32:12 +00:00
paul
f5d4255ad3 wince: use another way of fixing menu disabling on ShowModal call. not for wm2006 too. (#0011913)
git-svn-id: trunk@16376 -
2008-09-03 05:46:02 +00:00
paul
50f81163db lcl:
- cleanup
  - fix TPicture.ForceType. It now copies an old image to the newly created. (fixes #0011674)

git-svn-id: trunk@16375 -
2008-09-03 03:32:50 +00:00
paul
c8f918e694 lcl: don't draw background on TImage with TransparentColor.
Reasons: Transparent property controls only Graphic.Transparent and nothing more. If an image is always transparent (icon, png with alpha, etc) this property controls nothing. This is also delphi compatible behavior (fixes #0011646).

git-svn-id: trunk@16374 -
2008-09-03 03:00:41 +00:00
mattias
60daf2ddd1 fixed comparing filenames under darwin
git-svn-id: trunk@16373 -
2008-09-03 01:08:09 +00:00
marc
301ebd9881 * Implemented .ico + .cur writing
git-svn-id: trunk@16372 -
2008-09-02 23:00:19 +00:00
marc
98c9fb0791 * Don't copy mask when MaskBitsPerPixel = 0
git-svn-id: trunk@16371 -
2008-09-02 22:59:01 +00:00
marc
5d9091197c * fixed FP exception when clearing min/max of spinbutton
git-svn-id: trunk@16370 -
2008-09-02 22:54:59 +00:00
tombo
9368b8537a LCL Carbon: fixed #0012033: Mac OS X : LoadCursorFromLazarusResource throws Division by Zero Exception! with great help from Paul, need to fix custom cursor masking problem
git-svn-id: trunk@16368 -
2008-09-02 18:01:36 +00:00
zeljko
6bb5bb81e9 Qt: bugfix for latest mdichild move propagation patch.
git-svn-id: trunk@16366 -
2008-09-02 08:50:23 +00:00
zeljko
32d0384e63 Qt: propagate move events from mdichild forms, mdichild code simplification.
git-svn-id: trunk@16365 -
2008-09-02 08:03:03 +00:00
zeljko
3a19754455 Qt: Fix problem with mousewheel in lazreport, now it can scroll inside report, added shiftstate into mousewheel message.
git-svn-id: trunk@16364 -
2008-09-02 06:20:57 +00:00
paul
16b040bd65 lcl: don't create a mask directly on adding an imagelist bitmap from the resource (#0012017)
git-svn-id: trunk@16363 -
2008-09-02 01:54:31 +00:00
paul
7712fe3795 wince: fix CreateDIBSectionFromDescription for mono bitmaps (#0011911)
git-svn-id: trunk@16362 -
2008-09-02 01:21:55 +00:00
zeljko
5b295c681a Qt: bugfix, must check is paintdevice active before destroying printer object.
git-svn-id: trunk@16356 -
2008-09-01 18:40:51 +00:00
paul
626b5f317d fix compilation
git-svn-id: trunk@16349 -
2008-09-01 12:15:43 +00:00
mattias
a00dac7763 added TProcessUTF8
git-svn-id: trunk@16346 -
2008-09-01 10:24:04 +00:00
paul
ebcef32df2 win32: fix SpinEdit (#0011817)
git-svn-id: trunk@16345 -
2008-09-01 10:01:13 +00:00
paul
0231a67f14 lcl, win32: formatting + misc
git-svn-id: trunk@16344 -
2008-09-01 10:00:29 +00:00
mattias
2b8043dbe0 translations: russian: updates from Maxim Ganetsky
git-svn-id: trunk@16343 -
2008-09-01 06:55:54 +00:00
paul
d0e2626172 wince: don't disable self MenuBar window on ShowModal (#0011913)
git-svn-id: trunk@16342 -
2008-09-01 05:27:42 +00:00
paul
81a450222b wince:
- port some win32 graphic fixes
  - add CreateDIBSectionFromDDB since GetDIBits is not exits on wince
  - fix GetBitmapBytes - now it can retrieve bytes from the DDB
(#0011911)
  

git-svn-id: trunk@16341 -
2008-09-01 03:35:15 +00:00
paul
e67d502aa5 lcl: fix TCustomImageList.AddLazarusResource (#0012017)
git-svn-id: trunk@16340 -
2008-09-01 01:27:12 +00:00
vincents
5c848be4cb LCL: fixed compilation with fpc 2.2.0 (issue #12003)
git-svn-id: trunk@16335 -
2008-08-31 17:23:19 +00:00
paul
efbdaeaf0e lcl: add basic support for Progress during reading/writing of TCustomBitmap (tested with bpm,xpm). Based on patch of Laurent Jacques (#0008893)
git-svn-id: trunk@16334 -
2008-08-31 15:09:46 +00:00