Commit Graph

1424 Commits

Author SHA1 Message Date
Michael Drake
bb870de150 Move remaining string literals over to FatMessages. 2013-07-26 12:49:41 +01:00
Michael Drake
f2476a1e20 Yield ownership of value to field builder, since date strings were already allocated. 2013-07-26 12:23:00 +01:00
Michael Drake
b0baa839e8 Avoid snprintf and having buffer on stack. 2013-07-26 12:16:53 +01:00
Michael Drake
7bbcec90c4 Use prefabricated field text for common values. 2013-07-26 12:11:14 +01:00
Michael Drake
0d681fb38e Log old cookie manager init timings for comparison. 2013-07-25 22:51:54 +01:00
Michael Drake
44fa2a9b91 Optimise cookie tolder and entry node search by comparing lengths before strings. 2013-07-25 22:31:27 +01:00
Michael Drake
3f0e70706d Abstract field building. 2013-07-25 22:22:36 +01:00
Michael Drake
f3a3272dd3 Flag a todo. (Move some string literals to messages.) 2013-07-25 16:09:43 +01:00
Michael Drake
92ee6e953c Build new cookie manager. 2013-07-25 16:08:22 +01:00
Michael Drake
219f5dac32 Add initial version of new cookie manager. 2013-07-25 16:07:46 +01:00
Michael Drake
4697d1ccc1 Expose treeview walker. 2013-07-25 16:06:34 +01:00
Michael Drake
17abee0045 Namespace treeview node callback table. 2013-07-25 15:06:09 +01:00
Michael Drake
ba576ad5d6 Guard for uninitalised history case. 2013-07-25 11:45:07 +01:00
Michael Drake
a399e5aa70 Fix return type. 2013-07-25 11:42:04 +01:00
Michael Drake
a4b5a8aed7 Unset built bool when fini is called. 2013-07-25 11:41:16 +01:00
Michael Drake
ef05c2f6e6 Return correct error. 2013-07-25 11:07:40 +01:00
Michael Drake
c6820e8402 Replace magic numbers with enum. 2013-07-24 23:03:16 +01:00
Michael Drake
df2efd03c4 Update header guard. 2013-07-22 11:12:57 +01:00
Michael Drake
68078d7ea7 Fix up for cookies_old rename. 2013-07-22 10:21:37 +01:00
Michael Drake
01159ff589 Move cookies viewer module. 2013-07-21 23:24:07 +01:00
Michael Drake
9ac58865a7 Remove unused function declaration. 2013-07-17 11:42:42 +01:00
Michael Drake
5aed142560 Document callbacks. 2013-07-17 11:42:20 +01:00
Michael Drake
618ef54983 Update new global history, if the treeview test option is set. 2013-07-16 13:15:22 +01:00
Michael Drake
07c2add5cc Add function to add to global history. Fix add_entry to actually add new entry after removing an existing one. Implement directory deletion. 2013-07-16 13:13:33 +01:00
Michael Drake
28a04f6da7 Reset entry url's urldb visit data when user deletes entry from global history. 2013-07-15 21:51:45 +01:00
Michael Drake
ec9608c4de Make node delete callback msg differentiate between deletes caused by user interaction and other deletes (e.g. treeview destruction). 2013-07-15 14:34:56 +01:00
Michael Drake
9f72b5e046 Fix namespace of old global history add function. 2013-07-15 12:57:40 +01:00
Michael Drake
094ef9a64b Minor wrapping fix. 2013-07-12 15:31:43 +01:00
Michael Drake
716776a181 Remove forward declaration. 2013-07-12 13:50:17 +01:00
Michael Drake
55592d5a8d Move hotlist_visted from browser.h to hotlist.h 2013-07-12 12:07:54 +01:00
Michael Drake
d6d9378e9b Move global_history_add out of browser.h into global_history_core.h 2013-07-12 12:01:54 +01:00
Michael Drake
3a0bda9771 Move local history over to nsurl. 2013-07-11 23:38:32 +01:00
Michael Drake
3f45e53539 s/history_core/local_history/ 2013-07-10 11:55:42 +01:00
Michael Drake
ed557f090a Cursor down moves to next after noncontinuous selections. 2013-07-09 14:24:48 +01:00
Michael Drake
0df23dda20 Cursor right toggles expansion. 2013-07-09 13:47:06 +01:00
Michael Drake
11eed50de4 A couple of tidyups. 2013-07-09 12:46:30 +01:00
Michael Drake
541bc8e283 Initial keyboard navigation support. 2013-07-09 12:42:22 +01:00
Michael Drake
e9401de768 Move mix_colour macro out of treeview for other stuff to use. 2013-07-08 17:41:06 +01:00
Michael Drake
81a1506c5c Launch selection launches entries within contracted folders. 2013-07-08 15:22:25 +01:00
Michael Drake
e8f2297d0f Improve doc comments. 2013-07-08 13:01:00 +01:00
Michael Drake
7bd01a0e75 Return key launches current selection. 2013-07-08 12:53:19 +01:00
Michael Drake
de1f0afde2 Change how nodes are deleted. 2013-07-06 23:00:43 +01:00
Michael Drake
3e33721ab6 Make tree walker use nserror. 2013-07-03 14:18:33 +01:00
Michael Drake
5616221064 Typedefs for internal treeview and treeview_node structs. 2013-07-03 13:48:53 +01:00
Michael Drake
c256320b08 Treeview walker now takes two callback function pointers. One called in fwd direction, one called in bwd direction. 2013-07-03 13:23:26 +01:00
Michael Drake
4f238758db Don't allow empty folders. 2013-07-03 12:38:30 +01:00
Michael Drake
657d6ed587 Implement DEL_EMPTY_DIRS flag. 2013-07-03 12:37:58 +01:00
Michael Drake
520503bc7e Allow empty folders to be open. 2013-07-03 12:14:07 +01:00
Michael Drake
26befde81c Make READ_ONLY flag a combinator for NO_MOVES and NO_DELETES. Implement NO_DELETES. 2013-07-03 11:50:23 +01:00
Michael Drake
c010535fbe Add treeview behaviour flags. 2013-07-03 11:19:16 +01:00
Michael Drake
4313d4c4ec Make flags for suppress resize. 2013-07-02 17:30:52 +01:00
Michael Drake
6014a35ed3 Implement entry launching. Currently only launches in new window. 2013-07-02 12:20:44 +01:00
Michael Drake
2476af4c65 Use messages for treeview labels. 2013-07-01 20:05:09 +01:00
Michael Drake
21cd01a9b3 Add quite param to insertion calls to suppress treeview height callback. 2013-07-01 16:16:11 +01:00
Michael Drake
bc37046c6c Pass drag state to core window user. 2013-07-01 15:10:45 +01:00
Michael Drake
6e5e741d53 Add temporary option to enable test of new treeview in bookmarks window. 2013-07-01 14:07:25 +01:00
Michael Drake
b6219f6685 Delete and backspace keys delete selected nodes. 2013-07-01 13:00:46 +01:00
Michael Drake
c862cd60ad Make treeview test parasite trap keyboard action too. 2013-07-01 11:49:14 +01:00
Michael Drake
743ffa2a46 Pass keypresses on to treeview. 2013-07-01 11:48:43 +01:00
Michael Drake
df1667bd58 Start keypress handling. 2013-07-01 11:47:46 +01:00
Michael Drake
6599f415f7 Handle mouse action below last node. 2013-07-01 10:37:40 +01:00
Michael Drake
31450767c9 Update ancestor heights on node deletion. 2013-06-30 22:07:53 +01:00
Michael Drake
a1f5272f78 Update treeview test parasite to pass tree height changes on to front end. 2013-06-30 17:54:08 +01:00
Michael Drake
db83497645 Inform front end when treeview height changes. 2013-06-30 17:53:41 +01:00
Michael Drake
cca6707585 Update documentation for update_size callback. 2013-06-30 17:52:55 +01:00
Michael Drake
64eab40b18 Fix typo. 2013-06-18 20:10:08 +01:00
Michael Drake
4e0f960e3c Write up the rest of the fucntion comments. 2013-06-18 19:53:57 +01:00
Michael Drake
7cd0bacaf6 Create folders as they're required when entry is inserted. 2013-06-18 19:26:49 +01:00
Michael Drake
8c114cdfd8 Ensure global_history_delete_internal checks treeview node is NULL. Add various documentation comments. 2013-06-18 18:54:06 +01:00
Michael Drake
a642cab1b7 Point at header for exported function commentary. 2013-06-18 17:26:36 +01:00
Michael Drake
146fea758f Global history finaliser does not need core_window stuff. 2013-06-18 17:25:23 +01:00
Michael Drake
d6ee11de93 Add documentation comments. 2013-06-18 17:22:56 +01:00
Michael Drake
99e1246cab Document static functions. 2013-06-18 17:08:35 +01:00
Michael Drake
0b730caf2d More documentation. 2013-06-18 16:49:42 +01:00
Michael Drake
beceec8c8e Say which functions are documented in the header. 2013-06-18 16:08:21 +01:00
Michael Drake
ec02cf9e4c Remove unused function. 2013-06-18 16:04:14 +01:00
Michael Drake
1f3265f2a5 Add documentation. 2013-06-18 16:02:31 +01:00
Michael Drake
d064e9ac78 Add support for selection drags. Not yet implemented move drags. 2013-06-18 14:58:43 +01:00
Michael Drake
55dd035686 Add triple click to mouse event logger. 2013-06-15 15:55:05 +01:00
Michael Drake
a3c72894b9 Make test parasite pass drag end event to new treeview. 2013-06-15 15:50:41 +01:00
Michael Drake
44e4ca5f05 Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2013-06-05 12:28:08 +01:00
Michael Drake
b04acde228 Set visits and last visited values. 2013-06-04 21:53:28 +01:00
Vincent Sanders
4e24869524 Add and use no proxy list option 2013-06-04 18:11:15 +01:00
Michael Drake
db62a386bf Reduce redraw area. 2013-06-04 15:43:52 +01:00
Michael Drake
d398caf146 Ensure there's a title. 2013-06-04 15:31:29 +01:00
Michael Drake
9919b77f19 Update for launch msg. 2013-06-04 15:11:24 +01:00
Michael Drake
29185f75cf Fixup and remove unused defines. 2013-06-04 15:11:05 +01:00
Michael Drake
23a0520b40 Enable double click to launch from treeview. 2013-06-04 15:03:07 +01:00
Michael Drake
8692bb6876 Add support for clicking node expansion toggle. 2013-06-04 14:33:02 +01:00
Michael Drake
add9e72837 Allow ctrl + select to toggle selection. 2013-06-04 13:26:02 +01:00
Michael Drake
abf5512aff Make releationship enum meanings clearer. 2013-06-04 12:24:14 +01:00
Michael Drake
cdf9c9ba72 Sort so newest at top. 2013-06-04 12:12:20 +01:00
Michael Drake
a86dd68165 Lose excess logging. 2013-06-04 12:01:45 +01:00
Michael Drake
d9a66a7ce8 Different text colour for an expanded entries' fields. 2013-06-04 11:15:44 +01:00
Michael Drake
c011f45860 Store inset on node. 2013-06-04 10:37:16 +01:00
Michael Drake
f947259ef2 Get line height from font size. 2013-06-03 21:56:18 +01:00
Michael Drake
abe003cc8d Remove selected area styles. 2013-06-03 20:24:34 +01:00
Michael Drake
8b940b5f11 Don't pass INT_MAX to redraw_request. RO WIMP doesn't like it.
TODO: Make treeview aware of the window size.
2013-06-03 20:21:00 +01:00
Michael Drake
aeb09c7329 Remove logging. 2013-06-03 20:10:19 +01:00
Michael Drake
c7b57ff681 Include full expanded entry height in clip test. 2013-06-03 20:06:36 +01:00