Commit Graph

212 Commits

Author SHA1 Message Date
juha
1efe3b0e31 Simplify the component palette update system after packages are loaded.
git-svn-id: trunk@48310 -
2015-03-12 23:01:55 +00:00
juha
0fc74606c5 IdeIntf: Move also CreatePagesFromUserOrder from ComponentPalette to ComponentReg.
git-svn-id: trunk@48309 -
2015-03-12 23:01:53 +00:00
juha
c0b38940f9 IdeIntf: Move non-GUI related code from ComponentPalette to ComponentReg.
git-svn-id: trunk@48308 -
2015-03-12 23:01:52 +00:00
juha
2f283d0521 IDE: Move TRegisteredComponent.Button from ComponentReg interface to ComponentPalette. Use a map container.
git-svn-id: trunk@48307 -
2015-03-12 23:01:50 +00:00
juha
246d23e207 IDE: Fix compilation of componentpalette with VerboseComponentPalette flag. Cleanup.
git-svn-id: trunk@48306 -
2015-03-12 23:01:49 +00:00
juha
443c7df5a4 IDE: Move SelectButton from ComponentReg interface to TComponentPage.
git-svn-id: trunk@48305 -
2015-03-12 23:01:48 +00:00
juha
159ba4fccf IDE: Move reference of TCustomPage and TScrollBox from ComponentReg interface to ComponentPalette.
git-svn-id: trunk@48304 -
2015-03-12 23:01:42 +00:00
mattias
21cfb7317b IDE: checked compiler warnings, clean up
git-svn-id: trunk@48222 -
2015-03-10 15:04:30 +00:00
mattias
b80958200b IDE: checked compiler warnings, clean up
git-svn-id: trunk@48219 -
2015-03-10 14:58:34 +00:00
mattias
f3f0866921 IDE: checked compiler warnings, clean up
git-svn-id: trunk@48218 -
2015-03-10 14:51:21 +00:00
juha
125625ee6a IDE: Take care of component palette page names that differ only by character case. Issue #27516.
git-svn-id: trunk@47979 -
2015-02-24 11:35:56 +00:00
juha
c7510d07b7 IDE: ComponentPalette cleanup. Move MainBase reference from implementation to interface.
git-svn-id: trunk@47274 -
2014-12-31 20:36:26 +00:00
juha
9e3b5ca504 IDE: Use truely original pages and comps as reference when saving palette configuration.
git-svn-id: trunk@47261 -
2014-12-28 13:50:35 +00:00
juha
bd2c2fa3c4 IDE: Cleanup
git-svn-id: trunk@47257 -
2014-12-28 09:28:50 +00:00
giuliano
21c320f037 IDE: componentpalette.pas - workaround for Qt + minor fixes
git-svn-id: trunk@47255 -
2014-12-27 17:36:07 +00:00
juha
f32fbcaf5d IDE: Check for non-existent components when filling component palette. Prevents crash when a package has been uninstalled.
git-svn-id: trunk@47242 -
2014-12-24 22:02:01 +00:00
juha
2c2157ca92 IDE: minor tweak in component palette code.
git-svn-id: trunk@47232 -
2014-12-21 13:44:37 +00:00
juha
eac1654958 IDE: Improve component palette update calls on Windows.
git-svn-id: trunk@47220 -
2014-12-18 07:52:20 +00:00
juha
2186ba086d IDE: Force update for all component palette pages after changing configuration.
git-svn-id: trunk@47218 -
2014-12-17 23:27:25 +00:00
juha
651c16ed62 IDE: Explode a with-block in code creating component palette buttons. Revealed a bug with PopupMenu.
git-svn-id: trunk@47217 -
2014-12-17 23:27:23 +00:00
juha
6d84d67bba IDE: Fix crash in Component List when selecting a component from an uninitialized page. Issue #27174.
git-svn-id: trunk@47215 -
2014-12-17 23:27:14 +00:00
mattias
c66cfdb9b2 IDE: less hints
git-svn-id: trunk@47143 -
2014-12-08 21:45:05 +00:00
juha
cfdbbbb410 IDE: Do not trigger palette update with OnComponentVisibleChanged and OnPageVisibleChanged events. Will be triggered by other means.
git-svn-id: trunk@47140 -
2014-12-08 20:22:31 +00:00
juha
136a5214a6 IDE: Delay creation of palette component buttons until a page is selected.
git-svn-id: trunk@47130 -
2014-12-07 17:29:54 +00:00
juha
ae16efe8ac IDE: Store Index of a page in Pages into ComponentPage itself.
git-svn-id: trunk@47129 -
2014-12-07 17:29:53 +00:00
juha
f5a445a699 IDE: Remove an exception from TComponentPalette.AssignOrigCompsForPage. Can be triggered in some strange cases.
git-svn-id: trunk@47128 -
2014-12-07 17:29:51 +00:00
juha
df3f0370d6 IDE: Move ReAlignButtons logic to TComponentPage class.
git-svn-id: trunk@47127 -
2014-12-07 17:29:50 +00:00
juha
8deedb773e IDE: New TComponentPage class. Move some methods from TComponentPalette to it.
git-svn-id: trunk@47126 -
2014-12-07 17:29:49 +00:00
juha
35c07f3d3c IDE: Minor refactoring in TComponentPalette.OnScrollBoxResize.
git-svn-id: trunk@47125 -
2014-12-07 17:29:48 +00:00
juha
483871416f IDE: Call ReAlignButtons only for the active page at the end of UpdateNoteBookButtons.
git-svn-id: trunk@47115 -
2014-12-05 07:19:18 +00:00
juha
2c6049da98 IDE: Call ReAlignButtons in OnScrollBoxResize also during startup. Needed on Windows.
git-svn-id: trunk@47114 -
2014-12-05 07:19:07 +00:00
juha
d798261135 IDE: Align the buttons of current page again after palette configuration changed.
git-svn-id: trunk@47112 -
2014-12-04 23:29:05 +00:00
juha
96987c1d32 IDE: Less updates for the component palette during startup.
git-svn-id: trunk@47111 -
2014-12-04 23:29:03 +00:00
juha
149ad1651b IDE: More debug messages for component palette ReAlignButtons.
git-svn-id: trunk@47110 -
2014-12-04 23:29:01 +00:00
juha
be294a7bed IDE: fix a bug in component palette configuration.
git-svn-id: trunk@47109 -
2014-12-04 23:28:54 +00:00
juha
9f65b18ff8 IDE: Use a unique name for a method, SelectButton -> SelectAButton.
git-svn-id: trunk@47101 -
2014-12-04 17:12:19 +00:00
juha
69a98b68c7 IDE: Call ReAlignButtons in TComponentPalette.ActivePageChanged only when needed.
git-svn-id: trunk@47100 -
2014-12-04 17:12:10 +00:00
juha
4de7814bed IDE: remove a call to Application.ProcessMessages in TComponentPalette.CreateButtons. Not needed any more.
git-svn-id: trunk@47083 -
2014-12-04 10:18:42 +00:00
mattias
00ec38b2e0 IDE: component palette: fixed realign
git-svn-id: trunk@47079 -
2014-12-03 23:31:41 +00:00
mattias
3f081fac2d IDE: simplified
git-svn-id: trunk@47078 -
2014-12-03 23:06:39 +00:00
mattias
59f4935c70 IDE: clean up
git-svn-id: trunk@47077 -
2014-12-03 22:23:59 +00:00
juha
58df23696a IDE: Prevent adding a page with a name that already exists in component palette options.
git-svn-id: trunk@47076 -
2014-12-03 21:25:46 +00:00
juha
51cdfe8e79 IDE: Save component palette options correctly when palette is filtered by DataModule.
git-svn-id: trunk@47074 -
2014-12-03 17:57:02 +00:00
juha
cfcbe4b9c7 IDE: Update component palette correctly when icons are filtered by DataModule.
git-svn-id: trunk@47073 -
2014-12-03 17:57:00 +00:00
juha
1892eb35a8 IDE: refactoring, move local functions from UpdateNoteBookButtons to private methods.
git-svn-id: trunk@47072 -
2014-12-03 17:56:58 +00:00
juha
c0564de3f2 Debug messages for ComponentPalette.ActivePageChanged etc.
git-svn-id: trunk@47023 -
2014-11-28 15:04:19 +00:00
juha
a5164be292 Component palette: revert to a working TBaseComponentPage.UpdateVisible; There is still another problem when components are filtered.
git-svn-id: trunk@47012 -
2014-11-28 09:41:19 +00:00
mattias
bc0015e054 IDE: fixed hints
git-svn-id: trunk@47011 -
2014-11-27 21:41:53 +00:00
juha
c6ec72dd8a IDE: Store component objects to palette page cache lists for the sake of symmetry and possible future needs.
git-svn-id: trunk@47007 -
2014-11-27 20:31:39 +00:00
juha
76602fb2f4 IDE: Cache also user ordered pages in component palette, use it in UpdateVisible method.
git-svn-id: trunk@47005 -
2014-11-27 20:31:36 +00:00
juha
c7486b1bf9 IDE: Simplify component palette code, ComponentPage.Priority is not used. Rename a method.
git-svn-id: trunk@47004 -
2014-11-27 20:31:34 +00:00
juha
75c4a0f8df IDE: Change names of component palette cache methods.
git-svn-id: trunk@47003 -
2014-11-27 20:31:33 +00:00
juha
8b4eac20a9 IDE: Use the cache when writing component palette configuration.
git-svn-id: trunk@47001 -
2014-11-27 20:31:30 +00:00
juha
4ccb281acd IDE: In component palette, cache original component names by page name.
git-svn-id: trunk@47000 -
2014-11-27 20:31:28 +00:00
juha
ca628990f5 IDE, Component Palette options: Refactoring. Implement "Restore defaults". Don't change settings when user clicks Cancel.
git-svn-id: trunk@46871 -
2014-11-18 00:01:51 +00:00
mattias
1021bbb19a IDE: docking: restore: keep autosizing disabled during restore
git-svn-id: trunk@46859 -
2014-11-15 12:39:26 +00:00
juha
0f7c742f16 IDE: Return an accidentally removed assignment in component palette. Patch from Sandro Cumerlato.
git-svn-id: trunk@46844 -
2014-11-14 01:40:23 +00:00
juha
ffa4d82af8 IDE: Fix loading user configuration for component palette.
git-svn-id: trunk@46843 -
2014-11-14 01:40:21 +00:00
juha
084dd37ed0 IDE: Prevent a crash when adding a component palette tab with an existing name.
git-svn-id: trunk@46840 -
2014-11-14 01:40:07 +00:00
juha
57840d4dcb IDE: Properly implement component palette reordering. Loading the user defined order does not work yet.
git-svn-id: trunk@46829 -
2014-11-12 20:35:24 +00:00
juha
b2834f51cc IDE: Partly implement component palette reordering.
git-svn-id: trunk@46828 -
2014-11-12 20:35:22 +00:00
juha
2bffa65585 IDE: Fix ActivePageIndex range check error in ComponentPalette. Issue #26887, patch from Sandro Cumerlato.
git-svn-id: trunk@46652 -
2014-10-23 16:34:43 +00:00
juha
9501ec563c IDE: Make mouse wheel change tabs in Component Palette. Issue #26887, patch from Sandro Cumerlato.
git-svn-id: trunk@46597 -
2014-10-18 20:59:40 +00:00
mattias
305b621aa8 IDE: component palette: disabled scrollbars for LCL carbon widgetset
git-svn-id: trunk@45192 -
2014-05-27 07:52:12 +00:00
mattias
d641fda803 IDE: debug for component palette, carbon needs implementation of ShowScrollInfo
git-svn-id: trunk@45094 -
2014-05-19 13:55:18 +00:00
mattias
98ff9b979e IDE: removed gtk2 workaround
git-svn-id: trunk@45084 -
2014-05-18 17:04:48 +00:00
zeljko
5983ef2173 IDE: removed LCLQt from define, resize of components scrollbox is correct now.
git-svn-id: trunk@45073 -
2014-05-18 11:16:44 +00:00
mattias
889c3dc94a IDE: componentpalette: less resizes
git-svn-id: trunk@45070 -
2014-05-18 09:17:43 +00:00
zeljko
ec6c085242 IDE: do friendly calculation for lclqt as it's already for lclgtk2.Removed hardcoded 30 px, use ScrollBox.VerticalScrollBar.Size instead.
git-svn-id: trunk@44965 -
2014-05-07 15:07:52 +00:00
martin
a8209f74ec LCL: TScrollBox, workaround for bug in gtk2 WS
git-svn-id: trunk@44846 -
2014-04-29 12:18:03 +00:00
martin
c9f12054e9 IDE: Component-palette, when wrapping lines order right first, then down / fix calculating buttons per Row. Patch by x2nie / See forum topic=24387
git-svn-id: trunk@44828 -
2014-04-27 20:35:04 +00:00
mattias
d841be9240 IDE: less hints, initialize vars, use unused parameters
git-svn-id: trunk@44457 -
2014-03-17 11:25:57 +00:00
mattias
5a07230297 IDE: clean up
git-svn-id: trunk@44146 -
2014-02-18 18:47:15 +00:00
paul
7f4caeb374 ide, components: move images related code to use FPC resource instead of Lazarus resources
git-svn-id: trunk@42984 -
2013-09-27 12:27:04 +00:00
paul
347238c5e8 ide: start to use component images as FPC resources with ability to load them from Lazarus resource too
git-svn-id: trunk@42973 -
2013-09-27 08:46:08 +00:00
martin
0f05bac744 IDE: Move the "all component tabs" speedbutton into tabsheet
git-svn-id: trunk@42795 -
2013-09-14 13:22:10 +00:00
martin
40664e7c02 IDE: Move the "all component tabs" speedbutton into tabsheet
git-svn-id: trunk@42793 -
2013-09-14 13:12:50 +00:00
juha
3405cd2a57 IDE: implement storage for component palette options. Read and write it in GUI frame.
git-svn-id: trunk@42732 -
2013-09-11 06:21:29 +00:00
juha
e9417175c1 IDE: change PageComponent type from TComponent to TCustomPage. Eliminate type-casts etc.
git-svn-id: trunk@42731 -
2013-09-11 06:21:22 +00:00
martin
d60351775b IDE: Prepare using new LazControl Tabs (IFDEF'ed), and move icon to tabs
git-svn-id: trunk@42610 -
2013-09-05 12:02:41 +00:00
juha
ec2423a8e1 IDE: Refactor TComponentPalette.UpdateNoteBookButtons, split the code to sub-procedures.
git-svn-id: trunk@42572 -
2013-09-03 12:03:01 +00:00
juha
31b1199fa8 Formatting
git-svn-id: trunk@42570 -
2013-09-03 12:02:02 +00:00
mattias
d3184470ed IDE: component palette: right click does not select component and bring form to front
git-svn-id: trunk@41820 -
2013-06-23 12:57:58 +00:00
mattias
d602e69411 IDE: fixed crash when releasing non existing component palette select button
git-svn-id: trunk@38444 -
2012-08-31 01:53:32 +00:00
juha
98d07d051d IDE: Remove FindPaletteComp from Component Palette's popup menu. Was earlier replaced with Component List.
git-svn-id: trunk@36429 -
2012-03-29 11:04:21 +00:00
mattias
b80f4dd6e2 IDE: component palette: fixed option to hide hints for palette
git-svn-id: trunk@35723 -
2012-03-05 09:46:21 +00:00
juha
5084b5f3d5 IDE: show Component List from Component Palette's popup menu.
git-svn-id: trunk@35053 -
2012-01-31 11:00:45 +00:00
juha
48abc1c4c7 IDE: Show also unit name in the component hint in component palette. Issue #20723, patch from Anton
git-svn-id: trunk@33677 -
2011-11-21 20:49:24 +00:00
juha
86b4b1d1b0 IDE: Scroll components inside the component palette page. Issue #20410, patch from Alexander S. Klenin
git-svn-id: trunk@32677 -
2011-10-04 22:37:55 +00:00
sekelsenmat
a7bfcf6c9b Removes TPageControl.OnPageChanged to fix bug #19903 double OnChange calls
git-svn-id: trunk@32622 -
2011-10-02 18:03:18 +00:00
juha
035314b632 IDE: Bring form designer to front when selecting a component in ComponentPallete. Issue #19727, patch from Flávio Etrusco
git-svn-id: trunk@32065 -
2011-08-26 21:09:10 +00:00
sekelsenmat
73542b658a Renames TCustomNotebook to TCustomTabControl, a major breakthrough into fixing the tab-controls
git-svn-id: trunk@31767 -
2011-07-20 14:39:50 +00:00
juha
a3f3aa5439 IDE: unselect all component palette buttons in mouse up handler. Patch from Max Vlasov, issue #19657
git-svn-id: trunk@31688 -
2011-07-13 17:00:18 +00:00
juha
ff13ce1edd IDE: Replace BtnClick with BtnMouseDown in Component Palette. Fixes PATRLY issue #19657. Button still visually looks selected.
git-svn-id: trunk@31681 -
2011-07-12 17:51:01 +00:00
mattias
f2fdce8015 IDE: component palette: release buttons instead of free
git-svn-id: trunk@31602 -
2011-07-08 18:22:59 +00:00
mattias
51e1742910 IDE: clean up
git-svn-id: trunk@31329 -
2011-06-22 07:52:10 +00:00
juha
f38190794b Formatting: joined lines where only ');' was split to its own line, in procedure defs.
git-svn-id: trunk@29871 -
2011-03-16 16:52:28 +00:00
juha
fdaf6cdf13 IDE: formatting
git-svn-id: trunk@29812 -
2011-03-13 15:26:38 +00:00
mattias
a28c311a69 IDEIntf: added TComponentPalette.DoAfterComponentAdded
git-svn-id: trunk@29599 -
2011-02-18 18:15:06 +00:00
mattias
6b6ad2d929 IDE+LCL: made LCL a normal package
git-svn-id: trunk@29210 -
2011-01-27 12:56:07 +00:00