Commit Graph

40 Commits

Author SHA1 Message Date
mattias
c82588a5ce SpartaDockedFormEditor: Less warnings and cleanup
git-svn-id: branches/fixes_1_8@55372 -
2017-06-17 07:57:47 +00:00
maxim
213dc57b27 Merged revision(s) 54953-54955 #fa6f0296b6-#fa6f0296b6, 54981 #bf3e483768, 55015 #61beca02f9, 55038-55039 #5daa890980-#5daa890980 from trunk:
IdeIntf: OI: always write values to objects if explicitely wanted.
........
IdeIntf: propedits: always write property values to objects. The property setter method has to decide about the need of update, not the propedit code.
........
IdeIntf: propedits: fix highlighting default (=not stored) properties.
........
ideintf: fix regression in image scaling code.
........
IDEIntf: Restore the backwards compatible event TPropHookModified. Add a new event TPropHookModifiedWithName.
........
ExternHelp: fix uses clause after r55035 #5d03c243b5
........
IdeIntf: TIDEImages: switch parameters for CreateImage, LoadImage and GetImageIndex methods.
........

git-svn-id: branches/fixes_1_8@55049 -
2017-05-22 22:52:38 +00:00
juha
221dce6d01 Sparta docked form editor: Tweak code that gets OI to make it more readable.
git-svn-id: trunk@53818 -
2016-12-31 13:11:54 +00:00
juha
8c4a0ba005 Sparta docked form designer: fix few warnings. Issue #31130, patch from AlexeyT.
git-svn-id: trunk@53709 -
2016-12-17 22:57:58 +00:00
juha
356b2589e7 Sparta docked form editor: Show the designer also when initially pressing F12. Issue #31096, patch from AlexeyT.
git-svn-id: trunk@53636 -
2016-12-11 16:10:07 +00:00
hnb
d53cfa9c28 Merged revision(s) 51414, 51448-51450, 51468, 51473, 51477, 51480, 51483, 51486, 51511, 51543-51544, 51638, 52714, 52725-52727 from branches/free-sparta:
sparta: initial commit of "compilable" new sparta package - smart form editor. !NOTE: not for daily usage.
........
sparta: Initial conception for package for MDI: sparta_MDI. Base for sparta_DockedFormEditor package.
........
sparta: Generics.Collections library ( sync with https://github.com/dathox/generics.collections SHA fda586932bd80ef58c08f8ebf5a24316ca4ccca5)
........
sparta: smart form editor adjustment for new sparta_MDI
........
sparta: new class "TFormImpl" for MDI solution (created from TDesignedFormImpl). 
........
sparta: 
-MDI form container "TFormContainer"
-New IResizeFrame interface to handle MDI form moving
-New frame TfrFormBackgroundForMDI
........
sparta: sparta_MDI package modifications:
-new class TMultiplyResizer to menage MDI desktop
-more generic resizer: TAbstractResizer. Base for IDE resizer and TMultiplyResizer
-more advanced IResizeFrame interface


........
sparta: 
-DockedFormEditor adjustment for latest changes in mdi package
-small changes in mdi (visibility of methods).
-OnModified method for IResizeFrame

........
sparta: MDI
-simulate MDI forms order for TMultiplyResizer
-property DesignedForm: IDesignedForm for IResizeFrame
........
sparta:
-IMPORTANT! pixel perfect form resizing (fix for problems for controls with align alLeft, alRight etc on design form).
-Fix problem for windows: wrong design design window width (a little bigger than designed size) TFormImpl.SetRealBounds -> AdjustSize
........
sparta: mdi bug fix for AV in TMultiplyResizer
........
Fix compilation for FPC 3.0 (TRect changes in FPC 3.1 trunk)
........
sparta: Cannot resize the docked form designer, issue #29380 patch from Anthony Walter. Thanks!
........
sparta ToolsAPI: Delphi compatible ToolsAPI/DesignIDE interface at XE2 level (proxy for IDEIntf). Initial commit (no functionality yet), just interfaces and classes without implementation:

designeditors.pas:
-TComponentEditor

designintf.pas:
-Interfaces: IEventInfo, IClass, IActivatable, IDesignObject, IDesignPersistent, IDesignerSelections, IDesigner60, IDesigner70, IDesigner80, IDesigner100, IDesigner, IComponentEditor
-TBaseComponentEditor
-RegisterComponentEditor

designmenus.pas:
-Interfaces: IMenuItems, IMenu, IMainMenu, IPopupMenu, IMenuItem

 
 


........
when form is removed we need to remove all handlers located in collections FFormsStack and FForms. Necessary to avoid AV.
........
sparta: more correct and simpler calculation of form border for Windows
........
sparta: 
  * Fix for loop error for resize. Highly visible problem for docked forms/frames with Align=alClient. 
  * New THookFrame class as new meta class for Frames.
........
updated lpl
........

git-svn-id: trunk@52728 -
2016-07-20 10:40:03 +00:00
juha
1a2f15c5a4 Fix compilation in Sparta docked form designer. Broken by r52209 #bb389f40bf.
git-svn-id: trunk@52287 -
2016-05-07 22:57:54 +00:00
ondrej
35f6ae024f sparta: forward unhandled keys from designer to OI. Issue #29488
git-svn-id: trunk@51399 -
2016-01-24 10:59:23 +00:00
ondrej
394804dd32 sparta: fix for r51343 #7967d77c82 non-Windows platforms.
git-svn-id: trunk@51344 -
2016-01-19 19:38:31 +00:00
ondrej
7967d77c82 sparta: partially revert r51141 #3a6b0c9da3: when undocking source editor, the designer form got visible windows border (on windows/win32).
git-svn-id: trunk@51343 -
2016-01-19 19:30:26 +00:00
ondrej
de6099cca2 sparta: fix AV.
git-svn-id: trunk@51341 -
2016-01-19 17:59:34 +00:00
ondrej
30204b58e5 sparta: invalidate fake menu only if visible
git-svn-id: trunk@51296 -
2016-01-15 09:04:48 +00:00
ondrej
476ee9dad4 sparta: update fake menu on modification
git-svn-id: trunk@51295 -
2016-01-15 08:59:21 +00:00
ondrej
cb213d94ed sparta: force repaint on hide/show main menu. Issue #29370
git-svn-id: trunk@51291 -
2016-01-14 22:11:56 +00:00
ondrej
c5c6957733 sparta: correctly hide/show main menu. Issue #29370
git-svn-id: trunk@51289 -
2016-01-14 21:24:12 +00:00
ondrej
0321aeb764 sparta: fix AV in pFakeMenuPaint
git-svn-id: trunk@51242 -
2016-01-10 21:26:07 +00:00
hnb
9072a13913 merge r51237 sparta: bug fix for nil reference for fake menu
git-svn-id: trunk@51238 -
2016-01-10 16:22:15 +00:00
hnb
cf0f53eb93 merge r51214,r51225: sparta:
sparta: Patch for Ondrej patch :) (r51145) fix designer not receiving key events for DataModule and Frame. Issue #29044 
sparta: improve fake menu for further usage (delegate it to dedicated pFakeMenu panel)

git-svn-id: trunk@51235 -
2016-01-10 14:22:19 +00:00
hnb
fa145e2772 sparta: localization support, patch from Péter Gábor #29257 thanks!
git-svn-id: trunk@51207 -
2016-01-05 15:11:41 +00:00
hnb
57d0cf30bb sparta: prevent SIGSEGV caused by fpc_intf_decr_ref and fix for memory corruption for Design Time Utils. Preparation for new Sparta package "FormsSmartEditor".
git-svn-id: trunk@51206 -
2016-01-05 15:07:11 +00:00
ondrej
cd9428cf47 sparta: fix form resize flicker under win32. Issue #29331, patch from Balázs Székely
git-svn-id: trunk@51183 -
2016-01-04 12:00:59 +00:00
ondrej
f90e434afc sparta: add FillChars to initialize message records
git-svn-id: trunk@51180 -
2016-01-03 23:51:30 +00:00
hnb
0015151c63 Bug fix for memory leak for USE_GENERICS_COLLECTIONS version.
git-svn-id: trunk@51179 -
2016-01-03 23:40:03 +00:00
ondrej
11c388e6d2 sparta: revert r51170 & partly r51171 #e7106a0fa8: remove USE_GENERICS_COLLECTIONS ifdefs
git-svn-id: trunk@51178 -
2016-01-03 23:30:42 +00:00
ondrej
7bb3279fb8 sparta: fix fake menu height for WS other than win32
git-svn-id: trunk@51177 -
2016-01-03 23:27:04 +00:00
ondrej
57d803fc79 sparta: disable (unneeded) form show code
git-svn-id: trunk@51175 -
2016-01-03 20:51:01 +00:00
ondrej
8ec151fc73 sparta: removed POPUP_WINDOWS ifdefs
git-svn-id: trunk@51174 -
2016-01-03 20:43:35 +00:00
ondrej
e7106a0fa8 sparta: remove USE_POPUP_PARENT_DESIGNER ifdefs
git-svn-id: trunk@51171 -
2016-01-03 20:05:40 +00:00
ondrej
3849445a19 sparta: remove USE_GENERICS_COLLECTIONS ifdefs
git-svn-id: trunk@51170 -
2016-01-03 20:00:41 +00:00
ondrej
b2c2565415 sparta: fix endless TMainMenu refresh. Issue #29318
git-svn-id: trunk@51164 -
2016-01-03 15:32:40 +00:00
ondrej
98fb07f943 sparta: focus designer on show
git-svn-id: trunk@51160 -
2016-01-03 14:21:07 +00:00
ondrej
6a114503f7 sparta: rename TPropHookType htMouse* to htDesignerMouse*
git-svn-id: trunk@51157 -
2016-01-03 13:40:51 +00:00
ondrej
44161ce987 sparta: fix designer not receiving key events. Issue #29044
git-svn-id: trunk@51145 -
2016-01-03 12:07:22 +00:00
ondrej
3a6b0c9da3 sparta: paint fake mainmenu
git-svn-id: trunk@51141 -
2016-01-03 10:24:20 +00:00
ondrej
41e85d83a6 sparta: set focus to form so that it receives key messages. Issue #29044
git-svn-id: trunk@51137 -
2016-01-02 20:32:51 +00:00
ondrej
25ae0bc62e sparta: fix docked form preventing IDE from activating. Issue #29042
git-svn-id: trunk@51134 -
2016-01-02 18:22:39 +00:00
ondrej
c57471ea31 sparta: fix USE_POPUP_PARENT_DESIGNER compilation
git-svn-id: trunk@51130 -
2016-01-02 15:43:49 +00:00
ondrej
f3e9a5ddce sparta: fix USE_POPUP_PARENT_DESIGNER compilation
git-svn-id: trunk@51127 -
2016-01-02 15:15:18 +00:00
hnb
25a0220972 DockedFormEditor: bugfix for "divide by zero" exception for decked design forms created for TComponent descendants used as root.
git-svn-id: trunk@50440 -
2015-11-20 13:43:15 +00:00
juha
951fac1216 Move Sparta DockedFormEditor package from freesparta branch to trunk.
git-svn-id: trunk@50411 -
2015-11-19 00:19:56 +00:00