Commit graph

29 commits

Author SHA1 Message Date
dfighter1985
490dcc951c Unselect selection when clicking 'nothing'. 2014-10-10 17:33:57 +02:00
dfighter1985
bb309e0299 A little crash fix. 2014-10-08 21:28:20 +02:00
dfighter1985
fcf3482b02 Sizes should remain the same when ungrouping. 2014-10-08 21:00:56 +02:00
dfighter1985
f48c247e2b Added support for ungrouping. 2014-10-08 20:36:16 +02:00
dfighter1985
6737dfb1b6 Make group selection optional. 2014-10-08 18:45:17 +02:00
dfighter1985
3a21ff1fdf Only select a group first in editor mode. 2014-10-08 18:00:54 +02:00
dfighter1985
9d8a8b7fe4 Don't try to handle the right mouse button actions in editor mode. 2014-10-08 17:59:39 +02:00
dfighter1985
27c6894514 When moving a group draw it's children too. 2014-10-08 17:52:56 +02:00
dfighter1985
844fe6af78 Reparent items in widget hierarchy instead of deleting and creating a new item... 2014-10-08 17:42:18 +02:00
dfighter1985
cdbafdcf97 Select groups first. 2014-10-08 17:37:05 +02:00
dfighter1985
153730379e From now on dragged widgets will be re-aligned on drop. They will find the nearest hotspot of the group they are dropped into, and calculate an offset so they will align to the hotspot and yet remain where they were dropped. 2014-09-29 20:29:04 +02:00
dfighter1985
8decbc9eaf Update CCtrlTextButton's CViewText's coords after updating it's own coords. 2014-09-29 17:38:24 +02:00
dfighter1985
13ce42c75b Posref changes in the editor should apply... 2014-09-29 17:23:22 +02:00
dfighter1985
c017de0212 Refactoring. Added CInterfaceFactory. 2014-09-27 21:48:51 +02:00
dfighter1985
e3327c854b When moving a widget, save the reference to the hierarchy lookup map... 2014-09-27 20:54:44 +02:00
dfighter1985
89e86d2c7b A little refactoring. 2014-09-27 20:15:46 +02:00
dfighter1985
297d287f39 Move the text too with the text button. 2014-09-27 19:54:19 +02:00
dfighter1985
a32ce96dde Merged develop 2014-09-27 18:22:44 +02:00
dfighter1985
4cec04d80d A little bit of refactoring. 2014-09-27 01:04:49 +02:00
dfighter1985
ade36f7852 Update coords when changing something. 2014-09-27 01:00:52 +02:00
dfighter1985
2a7452d2da Merged develop. 2014-09-27 00:08:06 +02:00
dfighter1985
dabbfc0f31 Collapse the tree, and only expand the items that are needed to get to the selected items. 2014-09-25 00:37:25 +02:00
dfighter1985
9f0d4c00ea When repareting a widget, remove the old item from the hierarchy and add a new one at the right place. 2014-09-24 23:56:11 +02:00
dfighter1985
c0c5315e57 Refactored IWidgetAdditionWatcher, now it's called IWidgetWatcher and it also reports widget moves. 2014-09-24 23:32:24 +02:00
dfighter1985
627184184c No need for free floating elements when we can simply reparent to the top window... 2014-09-24 22:59:40 +02:00
dfighter1985
35017fe059 Orphaned widgets won't get stuck. 2014-09-24 20:40:37 +02:00
dfighter1985
7907ee8cdb Add widget to a new parent when the widget being dragged is dropped, otherwise add it to the orphanlist so that it's drawn anyways. NOTE: The dropped widget can be clipped. If it is clipped, it never shows up even tho it's there. 2014-09-24 18:45:52 +02:00
dfighter1985
40ccff720d Set dragged widgets' coordinates based on the move rather than the mouse pointer's coords. 2014-09-24 16:31:26 +02:00
dfighter1985
b92159a98a Dragged elements will no longer disappear. 2014-09-24 16:20:25 +02:00