Commit Graph

143 Commits

Author SHA1 Message Date
zeljko
97a112746c Qt: implemented TCustomEdit.NumbersOnly property by using QIntValidator
git-svn-id: trunk@43711 -
2014-01-12 10:13:36 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
zeljko
7a161299ec Qt: allow edit of combobox with style csSimple. issue #22528
git-svn-id: trunk@38149 -
2012-08-04 10:55:45 +00:00
zeljko
c5accacd74 Qt: enable wordwrap on TQtStaticText. issue #21697
git-svn-id: trunk@36711 -
2012-04-10 13:26:16 +00:00
zeljko
86a85a3be4 Qt: do not accept rich text in any case in TCustomMemo (eg. paste html mime data).
git-svn-id: trunk@36171 -
2012-03-19 19:17:45 +00:00
zeljko
6758bba5e0 Qt: fixed inconsistency with win32,gtk2 and Delphi when setting SelStart.It shouldn't keep sellength. issue #11802
git-svn-id: trunk@35265 -
2012-02-09 12:10:24 +00:00
zeljko
cac40f27dc Qt: simplified getting style pixel metrics by using GetPixelMetric() instead QStyle_pixelMetric()
git-svn-id: trunk@34512 -
2011-12-30 08:53:11 +00:00
zeljko
33c4eb1f2f Qt: workaround for Qt-4.5 bug. issue #20863
git-svn-id: trunk@34126 -
2011-12-12 07:12:28 +00:00
zeljko
43874efc17 Qt: fixed combobox itemindex when list contain duplicates. issue #20863
git-svn-id: trunk@34079 -
2011-12-10 08:22:53 +00:00
zeljko
efd91117a1 Qt: set tristate handling (allowgrayed) on TQtCheckBox. part of #20740
git-svn-id: trunk@33751 -
2011-11-24 08:59:12 +00:00
zeljko
ce82b57b84 Qt: simplified selection code for TQtWSCustomListBox by using Selected[] property
git-svn-id: trunk@33174 -
2011-10-30 12:40:34 +00:00
zeljko
7ae07551f8 Qt: check for handle in TQtWSCustomListBox.
git-svn-id: trunk@32228 -
2011-09-08 12:35:31 +00:00
zeljko
01f454abce LCL: introduced TWSScrollBar.SetKind() to avoid usage of RecreateWnd when changing kind of TScrollBar, because it crashes on 64bit installations.Fixed AV with qt and gtk2 under 64bit
git-svn-id: trunk@30853 -
2011-05-22 09:53:34 +00:00
paul
aecfd2f738 lcl: implement TListBox.ScrollWidth:
- win32, wince: set/get scrollwidth using LB_SETHORIZONTALEXTENT/LB_GETHORIZONTALEXTENT (issue #0018912)
  - qt, gtk2: don't show listbox horizontal scrollbar by default. show it only when scrollwidth > content area

git-svn-id: trunk@30138 -
2011-04-02 17:30:44 +00:00
juha
5d796b9cbb LCL: Remove OldShortCut from SetShortCut parameters and add the real shortcut keys there.
git-svn-id: trunk@29872 -
2011-03-16 16:53:36 +00:00
juha
4e95f6a390 LCL: Show menu shortcuts also when they are sequencial keys combinations (like Ctrl+Q, B)
git-svn-id: trunk@29853 -
2011-03-15 14:05:55 +00:00
zeljko
f73311c159 Qt: introduced TQtToolBox class, fixed problem with messages delivery to LCL. issue #18757
git-svn-id: trunk@29569 -
2011-02-15 21:54:45 +00:00
zeljko
28822fe6e8 Qt: rewritten most of TQtMemoStrings, simplified TQtWSCustomMemo.Fixes issues #17933,#18063,#18067
git-svn-id: trunk@28509 -
2010-11-27 15:27:40 +00:00
zeljko
ea4be3fe87 Qt: moved setCursorPosition & getCursorPosition to IQtEdit, fixed crashes with setCursorPosition
git-svn-id: trunk@27228 -
2010-08-29 09:58:20 +00:00
zeljko
549e73a73f Qt: TQtWSCustomEdit: implemented getCaretPos() & setCaretPos()
git-svn-id: trunk@27226 -
2010-08-28 19:09:15 +00:00
blikblum
e50914e4bf qt: don't send LM_CHANGE messages when changing State of TRadioButton and TCheckBox programatically. Use Toggled signal instead of Clicked to notify of changes in TRadioButton. Part of 0017139 and 0017104
git-svn-id: trunk@27054 -
2010-08-10 17:49:43 +00:00
paul
c371775065 qt: implement native cut, copy, paste for edit and descendants
git-svn-id: trunk@26481 -
2010-07-06 11:53:10 +00:00
zeljko
d74087e32a Qt: load TCustomComboBox data and params inside CreateHandle, so avoid qt to set itemindex on it's own. fixes #16727
git-svn-id: trunk@26389 -
2010-07-01 13:46:43 +00:00
zeljko
58f4c0e49f Qt: reverted last TQtComboBox.setEditable() patch
git-svn-id: trunk@26385 -
2010-07-01 11:34:32 +00:00
zeljko
6340023f32 Qt: set editable for TQtComboBox while creating handle. fixes #16727
git-svn-id: trunk@26384 -
2010-07-01 11:24:55 +00:00
zeljko
da1e9bc37c Qt: use another approach to get combo itemindex, also permit qt to change itemindex when inserting new items. fixes #16727
git-svn-id: trunk@26144 -
2010-06-16 07:54:32 +00:00
blikblum
adbaa85ed7 qt: use AParams info to set TCustomListBox BorderStyle at handle creation
git-svn-id: trunk@25392 -
2010-05-14 03:50:01 +00:00
zeljko
ddc9b45a3a Qt: TQtScrollbar - reduce amount of calls from LCL by checking current ws values if scrollbar is standalone control.
git-svn-id: trunk@25169 -
2010-05-04 07:08:33 +00:00
paul
ecccf982ed qt: initial implementation for GetSysColorBrush + various cleanup and bug fixes
git-svn-id: trunk@25131 -
2010-05-02 11:26:52 +00:00
zeljko
ac6443ca7f Qt: qtwsstdctrls - removed unused units
git-svn-id: trunk@24245 -
2010-03-27 12:01:03 +00:00
zeljko
18b2bcb1d9 Qt: qtwsstdctrls cleanup and reorganisation.
git-svn-id: trunk@24244 -
2010-03-27 11:58:33 +00:00
zeljko
84357bd226 Qt: reorganized TQtListWidget code a bit.
git-svn-id: trunk@24241 -
2010-03-27 11:17:16 +00:00
zeljko
a5ba77a96e Qt: small optimization - do not send LM_SHOWWINDOW msg when LCL setted up visibility via ShowHide
git-svn-id: trunk@24208 -
2010-03-25 09:30:27 +00:00
zeljko
e9bc740b16 Qt: fixed bug when TScrollbar slider size (visual on screen) changed when clicked first time by mouse.
git-svn-id: trunk@24153 -
2010-03-21 19:42:15 +00:00
zeljko
4f98042b2f Qt: better checks for owner handle in TQtComboStrings, TQtListStrings - fixes corner case segfaults if programmer called eg. TListBox.Clear while handle is being released via QEventDestroy.
git-svn-id: trunk@24109 -
2010-03-20 10:14:02 +00:00
zeljko
096352ee6e Qt: fixed scrollbar bug when tracking is off (cannot move scrollbar by mouse) - noted in #15622.
removed message sending from TQtAbstractScrollbar.slotSliderMoved()

git-svn-id: trunk@24060 -
2010-03-17 11:37:06 +00:00
mattias
703970233e qt intf: clean up
git-svn-id: trunk@23368 -
2010-01-04 18:18:31 +00:00
paul
b89b28de7c lcl: remove lclintf ComboBoxDropDown, create 2 methods instead in TWSCustomCombobox: one to get DroppedDown status, another to set it. + implementation for all widgetsets except carbon
git-svn-id: trunk@22285 -
2009-10-26 10:21:56 +00:00
zeljko
75d50cf723 Qt: complete qwidget palette rework.Introduced new class TQtWidgetPalette.Colors are consistent now across all qtlcl supported platforms during design time and runtime.
git-svn-id: trunk@20431 -
2009-06-05 10:24:47 +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
zeljko
02c50e3d3e Qt: implemented setBorderStyle for IQtEdit interface
git-svn-id: trunk@19020 -
2009-03-18 09:38:19 +00:00
zeljko
411f7b7960 Qt: bugfix - alignment of TQtTextEdit in design time
git-svn-id: trunk@18170 -
2009-01-06 15:38:19 +00:00
paul
aa6305c562 lcl: implement TEdit.Alignment (patch of Zeljan with small mine modifications)
git-svn-id: trunk@18139 -
2009-01-05 18:22:41 +00:00
zeljko
17982b9c1a Qt: fix WS classes, move methods from public to published sections.
git-svn-id: trunk@17597 -
2008-11-26 07:44:16 +00:00
paul
04ac30b1eb license: fix asterisk position in the license block
git-svn-id: trunk@17372 -
2008-11-13 15:06:20 +00:00
paul
25e9426c10 lcl: MaxLength redo:
- MaxLength = 0 => no limit, MaxLength > 0 => limit. Default = 0 for memo, combo and edit
  - fix gtk, gtk2 code where MaxLength = -1 was used for unlimited length in Memo (why? combo and edit used 0)
  - fix qt combobox SetLength (was occasional forgotten?)
  - cleanup

git-svn-id: trunk@17365 -
2008-11-13 06:42:37 +00:00
paul
438886ae49 qt:
- update bindings version to 1.68
 - apply Den's patch to fix incompatibilities between versions
  - use Qt 4.4 on window by default

git-svn-id: trunk@17259 -
2008-11-07 01:53:28 +00:00
zeljko
5ca161df3b Qt: reverted scrollbar changes from r.16835.Such patch makes worse things to qt.Scrollbar dissapears sometimes.
git-svn-id: trunk@17118 -
2008-10-24 08:49:35 +00:00
paul
c9899ebca4 lcl, widgetsets: hope fix misuse of TScrollBar.PageSize (#0011788 based on ideas of Sergey Bulba)
git-svn-id: trunk@16835 -
2008-10-02 01:47:29 +00:00
paul
898d951e30 lcl: introduce TListBox.GetItemAtXY, TListBox.GetItemAtY exists for compatibility with existing projects
interfaces: replace TWSCustomListBox.GetIndexAtY by TWSCustomListBox.GetIndexAtXY
win32, wince, qt, carbon: use X coord too
(based on patch of Yuriy Yeroshkin, #0011923)

git-svn-id: trunk@16801 -
2008-09-30 02:15:17 +00:00