Commit Graph

63 Commits

Author SHA1 Message Date
zeljko
9d8486877a Qt: show icons on menus if menuitem.bitmap is assigned and there's no imagelist.issue #24770
git-svn-id: trunk@42630 -
2013-09-06 06:32:20 +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
c92c11608b Qt: update bitmap if TMenuItem has associated ImageList and ImageIndex. issue #22896
git-svn-id: trunk@38679 -
2012-09-16 09:00:01 +00:00
zeljko
5e68dd0ae6 Qt: correct debug info when checking handles
git-svn-id: trunk@36500 -
2012-04-01 10:59:13 +00:00
juha
c4bc1cac01 Revert QT top-level menu changes. Will be discussed with Zeljan
git-svn-id: trunk@33430 -
2011-11-09 10:57:26 +00:00
juha
ff5ca61bdb LCL: Try to show both icons and text on QT top-level menus
git-svn-id: trunk@33428 -
2011-11-09 10:21:31 +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
paul
5bb62f9253 qt: use QMenu->exec instead of QMenu->popup to simulate win32 behavior
git-svn-id: trunk@29781 -
2011-03-10 06:47:44 +00:00
zeljko
e489b279cb Qt: set empty text for menuitem which is separator. fixes #16871
git-svn-id: trunk@26536 -
2010-07-08 20:35:48 +00:00
zeljko
4b3c327bae Qt: fix segfault with TQtWsMenuItem.DestroyHandle() when our form contains main menu but it's destroyed via SlotDestroy(LM_DESTROY), since TCustomForm.DestroyWnd isn't called in this case.
git-svn-id: trunk@24250 -
2010-03-27 17:15:31 +00:00
zeljko
224df20d00 Qt: fixed AutoCheck behaviour with exclusive menus (radio buttons)
git-svn-id: trunk@24181 -
2010-03-23 13:25:15 +00:00
zeljko
a266017f26 Qt: menus rework, added actiongroups. fixes #15885
git-svn-id: trunk@23861 -
2010-03-07 10:46:50 +00:00
zeljko
3b893a0a99 Qt: fire OnClose() after OnClick() event. fixes #15465
git-svn-id: trunk@23386 -
2010-01-05 13:35:12 +00:00
zeljko
9cf4e736f0 Qt: fix TPopupMenu.Alignment when we use RightToLeft.
git-svn-id: trunk@22740 -
2009-11-24 09:10:57 +00:00
zeljko
756c8f3da5 Qt: implemented TPopupMenu.Alignment
git-svn-id: trunk@22739 -
2009-11-24 09:04:35 +00:00
zeljko
d3fde8e1b7 Qt: implemented TPopupMenu.TrackButton
git-svn-id: trunk@22735 -
2009-11-24 08:29:58 +00:00
zeljko
666fea3cc7 Qt: *ATTENTION* qt45 is default from now on (no more USE_QT_XX defines, qt43 and qt44 are not supported anymore)
default bindings version is 1.72.

git-svn-id: trunk@21913 -
2009-09-29 11:24:31 +00:00
zeljko
23d06b6db8 Qt: bugfix for #14271 (menu items doubling)
git-svn-id: trunk@21539 -
2009-09-02 14:49:12 +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
016698fba4 qt: set separator flag when we change menu item caption
git-svn-id: trunk@18584 -
2009-02-05 15:12:57 +00:00
zeljko
c2c0334f9f Qt: TQtMenu should be always deleted later.Now ide doesn't crash under X11 (note on #12978), tested on win32 & MacOsX also.
git-svn-id: trunk@18315 -
2009-01-16 20:21:17 +00:00
zeljko
26bf487d9a Qt: removed deffered deletion from qt44.
git-svn-id: trunk@18285 -
2009-01-14 07:46:21 +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
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
sekelsenmat
e8a01d9dc1 Improves fpgui menus
git-svn-id: trunk@15161 -
2008-05-16 02:41:14 +00:00
sekelsenmat
a27667cba5 improves fpgui menus
git-svn-id: trunk@15073 -
2008-05-07 23:03:47 +00:00
paul
dbddffe2cb lcl: bidi mode patch from Ido with modifications
git-svn-id: trunk@14991 -
2008-04-27 14:24:22 +00:00
paul
c2db5ffa0f qt: bidimode depends on TControl.UseRightToLeftAlignment, TControl.UseRightToLeftReading,
TContorl.UseRightToLeftScrollBar more than on BidiMode property since that methods are virtual

git-svn-id: trunk@14847 -
2008-04-16 05:51:23 +00:00
paul
371075ffd8 qt: add bidimode support
git-svn-id: trunk@14846 -
2008-04-16 02:02:27 +00:00
paul
df83fa1a25 qt: insert menu items to proper position (tracker issue: #0010842)
git-svn-id: trunk@14412 -
2008-03-05 02:02:04 +00:00
paul
fe81e69498 qt: change {$mode delphi} to {$mode objfpc}
git-svn-id: trunk@14236 -
2008-02-24 04:44:28 +00:00
sekelsenmat
fa14be1de9 Removed the USE_QT_4_3 define. Now only Qt 4.3 or superior is supported.
git-svn-id: trunk@14057 -
2008-02-09 20:32:37 +00:00
paul
4dfe601068 qt:
- add qtdefines.inc (place for global qt defines)
- force qt 4.3 under windows

git-svn-id: trunk@12630 -
2007-10-29 15:11:49 +00:00
paul
a22f679f0d Qt:
- minor changes for menu
- cleanup

git-svn-id: trunk@12156 -
2007-09-24 07:49:58 +00:00
zeljko
0bc9d93106 (Qt): Fixed typos in qtwsmenus
git-svn-id: trunk@12154 -
2007-09-24 06:35:43 +00:00
paul
763779959f Qt: menu rework (also fixed issue with destroying menu items - they had not destroyed their handles)
git-svn-id: trunk@12153 -
2007-09-24 06:03:19 +00:00
paul
293d27c168 Qt: Use GetUtf8String instead of utf8Decode. GetUtf8String tries to decode string at first and it is failed it uses raw string as result (so non unicode coded strings are also handled by this function).
git-svn-id: trunk@12047 -
2007-09-16 15:51:19 +00:00
paul
bede463f83 Qt:
- reimplement getText and setText for TQtWsWinControl
- cleanup

git-svn-id: trunk@12016 -
2007-09-13 05:37:38 +00:00
paul
3d77f2e0a2 Qt:
- postoned Destroying of widgets in case of destroy during event processing (introduced Release method)
- safer DeliverMessage
- cleanup

git-svn-id: trunk@11933 -
2007-09-04 02:28:26 +00:00
paul
45cafe9489 (Qt): fix TPopupMenu mem leak
git-svn-id: trunk@11886 -
2007-08-30 16:28:13 +00:00
paul
0dae7e211d (Qt): error while creating popup menu
git-svn-id: trunk@11664 -
2007-07-29 08:32:40 +00:00
paul
c9eb25bab6 (Qt)
- bug in popup menu creation

git-svn-id: trunk@11598 -
2007-07-23 05:44:00 +00:00
paul
a3155d60b5 (QT):
- introduced LCLKeyToQtKey (VK key code map to QtKey)
- extended QtKeyToLCLKey
- implemented menu shortcuts

git-svn-id: trunk@11574 -
2007-07-19 03:08:31 +00:00
paul
636ce5c979 fixed typo
git-svn-id: trunk@11570 -
2007-07-18 14:09:42 +00:00
paul
c084be8bc7 (QT):
- implemented TQtWSMenuItem.SetCaption

git-svn-id: trunk@11569 -
2007-07-18 12:56:38 +00:00
paul
e720286a68 - all event attaching code moved to TQtWidget.AttachEvents, TQtWidget.DetachEvents and descendants
- initial implementation of Qt Caret by *Andreas Hausladen* with changes. Compile with -dShowQtCaret to test
- fixed bug caused memory corruption
- other minor fixes

git-svn-id: trunk@11465 -
2007-07-12 05:47:15 +00:00
paul
212f9b4855 QT:
- fix destroying of PopupMenu
- implemented setShowInTaskBar
- better handling of BorderStyle = bsNone
- hide menuBar if there is no MainMenu
- allow creating of MDIForm and MDIChild form (qt has implementation)
- fix problem with overlaying menubar by other widgets

git-svn-id: trunk@11452 -
2007-07-10 03:01:25 +00:00
paul
abc335dd5a - fixing "point" issues (change from PPoint to PQtPoint)
- fixing lazarus splash screen launch (there was assumption in the code that application already has MainForm, so all calls like Application.MainForm.Visible causes AV)
- fixing issues with Menu

git-svn-id: trunk@11448 -
2007-07-09 05:56:24 +00:00