Commit Graph

9512 Commits

Author SHA1 Message Date
Michael Drake 71676165c1 Add folder node update function. 2013-08-20 20:04:42 +01:00
Chris Young 011ba501a7 Make some global DrawInfo local to the function it is needed in. 2013-08-20 19:43:13 +01:00
Chris Young 1761d390de Slightly better layouting 2013-08-20 19:39:18 +01:00
Michael Drake 9e29ef4bdd Pass edit message to treeview client, when editing ends. 2013-08-20 15:44:24 +01:00
Michael Drake a9e92e335c Fix node insertion ancestor height updating having cumulative effect. 2013-08-20 15:02:09 +01:00
Michael Drake 9f3a83da66 Tidy edit start click behaviour, with existing selections. 2013-08-19 14:41:12 +01:00
Michael Drake 385af23fbe Start of treeview node edit support. Internal treeview part is mostly done. It now needs to inform the client (only hotlist allows edit), of the change. And the hotlist needs to handle the change request message and update the node. 2013-08-19 14:23:44 +01:00
Michael Drake 5beac3085e Implement get window dimensions for treeview test parasite. 2013-08-19 14:04:20 +01:00
Michael Drake 0e00654681 Mention behaviour when params are NULL in comment. 2013-08-19 14:03:36 +01:00
Chris Young b686daea8c Squash warning 2013-08-18 17:28:40 +01:00
Michael Drake acaa3f16e8 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-08-18 17:19:17 +01:00
Michael Drake 0ae3bfde8a Use extern on tree.c globals. (These go away when front ends can use the new treeview modules directly.) 2013-08-18 17:17:41 +01:00
Michael Drake f389c7ad6e Set allow edit flag on title and url fields. 2013-08-18 17:16:47 +01:00
Chris Young d6e975ce50 Merge branch 'chris/gadtools-53-6' 2013-08-18 15:22:31 +01:00
Chris Young 1238afdfc8 Remove unused 2013-08-18 15:20:39 +01:00
Chris Young 4a70c21215 Construct the menu in a new function, which also does basic layouting of any image menus. 2013-08-18 15:15:12 +01:00
Michael Drake fd961c6dfa Ensure ctrl modifier is handled, by dealing with it before no-modifiers case. 2013-08-18 13:22:57 +01:00
Michael Drake 5aa5eb9d6f Ensure nodes within contracted nodes are unselected. 2013-08-17 23:52:48 +01:00
Michael Drake 5f32ac1858 Fix clang warning. 2013-08-17 20:20:49 +01:00
Michael Drake 4ab7ad6bd2 Implement node moving drags. 2013-08-17 19:39:17 +01:00
Michael Drake e5a4c3d4c9 Find the top y value of selections for indicator pos. 2013-08-17 14:37:24 +01:00
Michael Drake d1cd950327 Improve keyboard nav slightly. 2013-08-17 13:40:05 +01:00
Michael Drake e1468a78df Fix keyboard nav redraw when treeview height decreases as a result of keypress. Reduce some variable name lengths. 2013-08-17 13:27:38 +01:00
Michael Drake e17e56b0cc Move drops over selection target top of selected run. 2013-08-17 13:22:40 +01:00
Michael Drake 59ea55ef3d Propagate selection to visible descendant nodes when a move drag is started with folder selected. 2013-08-17 12:51:08 +01:00
Michael Drake dee0cb0380 Optimise drop indicator redraw area. 2013-08-17 11:48:16 +01:00
Michael Drake d8bf6c2216 Remove unused structure member. 2013-08-16 23:13:25 +01:00
Michael Drake 29b6185ab1 Do indicator redraw after everything else is done, to simplify things. 2013-08-16 23:08:57 +01:00
Michael Drake b699169d0b Group the move details, for clarity. 2013-08-16 21:40:45 +01:00
Michael Drake 304523553c Start optimising drop indicator redraw. 2013-08-16 20:34:41 +01:00
Michael Drake a9cad3cfa8 Begin move handling. Currently only moves the drop target indicator during drags. Nothing actually gets moved. 2013-08-16 20:06:08 +01:00
Michael Drake 7169b2fb01 Make treeview test parasite convert move drag enum type. 2013-08-16 20:03:18 +01:00
Michael Drake 15c1ad7eea Add move drag type. 2013-08-16 20:02:49 +01:00
Michael Drake 7bd57563e1 Set appropriate treeview flags. 2013-08-16 20:01:58 +01:00
Michael Drake 5f4c624c5b Slight refactor of drag end handling, for future handling of more types of drag. 2013-08-16 12:23:37 +01:00
Michael Drake 2dc8b64153 Add comment. 2013-08-16 11:17:45 +01:00
Michael Drake 285fe734bc Rename "section" to "part". 2013-08-16 11:15:16 +01:00
Michael Drake c3ca5ab979 Fix treeview code's inconsistant application of the plot origin. (Fixes various redraw glitches.) 2013-08-16 10:05:21 +01:00
Michael Drake 8a87058dc2 Remove pointless clipping. Move some calculations out of function call params to make them more readable. 2013-08-16 09:49:59 +01:00
Michael Drake c716a53bed Make the no_font_blending toggle. 2013-08-16 09:28:56 +01:00
Michael Drake 2b0a98bd47 Avoid background blending overhead for treeview text. 2013-08-16 09:15:50 +01:00
Michael Drake 9d624ce17f Inform front end when drag starts below nodes too. 2013-08-16 08:25:26 +01:00
Michael Drake 2ba2fcc7b6 Add selection to enum. 2013-08-16 08:25:26 +01:00
Michael Drake 2a3ff41e14 Flag a TODO. 2013-08-16 08:25:26 +01:00
Michael Drake 46c74777a2 Pass mouse coords to treeview during drag. Note, we now get a warning when mouse leaves window during drag. 2013-08-16 08:25:26 +01:00
Michael Drake 2c695bc2fa Use abstracted folder creation. 2013-08-16 08:25:26 +01:00
Michael Drake ff9155273e Update messages for default hotlist entries. 2013-08-16 08:25:25 +01:00
Michael Drake 32ae7b5117 Add generator for default hotlist. 2013-08-16 08:25:25 +01:00
Michael Drake e13e72357d Set built=false after destruction. 2013-08-16 08:25:25 +01:00
Michael Drake 82f5cd33a0 Implement simplisitic hotlist_add function. Need to improve where new entries are placed. (See TODO comment.) 2013-08-16 08:25:25 +01:00