Commit graph

58 commits

Author SHA1 Message Date
René Stadler
ae75acd50d Timeline: small cleanup 2014-09-11 20:51:46 +02:00
Stefan Kost
4e334e0e00 Add 'fixme' and 'trace' log levels 2014-09-11 20:51:46 +02:00
Stefan Kost
5fae4aa235 timeline: add tooltip to histogram as well 2014-09-11 20:51:46 +02:00
René Stadler
c89cada72a timeline: fix grey background artifact when enlarging window 2014-09-11 20:51:46 +02:00
René Stadler
05aa65551a Fix glib warnings on model property access
Seems like pygobject can all of the sudden not handle a NULL model on a
property. Using the getter works around this. Also using the setter now for
consistency.
2014-09-11 20:51:46 +02:00
René Stadler
e46367c073 timeline: fix possible lag when dragging on timeline
I need to idle-aggregate scroll updates, since gtk performs heavy operations in
a synchronous fashion here (ironically, they do that to make scrolling smooth).
2014-09-11 20:51:46 +02:00
René Stadler
d71d09759b Split giant GUI module into submodules 2014-09-11 20:51:46 +02:00
René Stadler
7b57fe2423 timeline: fix timestamp binary search
Fixes dragging the mouse over bigger gaps of log activity making the red
position rectangle come out next to the mouse pointer. Also selects the proper
row now, not randomly 1-2 rows before or after the gap.
2014-09-11 20:51:45 +02:00
René Stadler
390262a363 Cleanup whitespace 2014-09-11 20:51:45 +02:00
René Stadler
c9aeb0ce2b Update vertical timeline when the widget size changes 2014-09-11 20:51:45 +02:00
René Stadler
43badaea0c Faster handling of partial expose events in timeline 2014-09-11 20:51:45 +02:00
René Stadler
35c11f13ab Add FIXME comment 2014-09-11 20:51:44 +02:00
René Stadler
04d90a4e38 Sync show-timeline action state before connecting signal handler 2014-09-11 20:51:44 +02:00
René Stadler
8b6e0d193f Timeline.py: Move per-window management into own class 2014-09-11 20:51:44 +02:00
René Stadler
500e68ca3e Re-format long line 2014-09-11 20:51:44 +02:00
René Stadler
e1182e28c3 Replace gdk.ALL_EVENTS_MASK with proper minimal set of event flags 2014-09-11 20:51:44 +02:00
René Stadler
f998069d6b Add TODO comment 2014-09-11 20:51:44 +02:00
René Stadler
e5d490cabe Use GdkColors for level column, cleanup color handling 2014-09-11 20:51:44 +02:00
René Stadler
99a755e56c Fix timeline warning/error indicator triangle vertical position 2014-09-11 20:51:43 +02:00
René Stadler
a6f268ab4b Add GUI utility function to add a popup menu to a widget 2014-09-11 20:51:42 +02:00
René Stadler
a073b11f63 Cleanup timeline warning/error triangle drawing, add TODOs 2014-09-11 20:51:42 +02:00
René Stadler
abc54e5360 Add tooltip to vertical timeline widget 2014-09-11 20:51:42 +02:00
René Stadler
47badacfde Add hide before/after menu items to timeline context menu 2014-09-11 20:51:42 +02:00
René Stadler
5f35233eb7 Fix crash when displaying only one line 2014-09-11 20:51:42 +02:00
René Stadler
2eb76b142d Try to avoid a crash regarding illegal paths received from GtkTreeView 2014-09-11 20:51:41 +02:00
René Stadler
5b41b6e861 Fix timeline level distribution plotting after gaps 2014-09-11 20:51:41 +02:00
René Stadler
8fe97e709c Fix hanging after loading an unparsable/colored file 2014-09-11 20:51:41 +02:00
René Stadler
527b3ed2ef Behave a little better with unparsable/colored files 2014-09-11 20:51:41 +02:00
René Stadler
026604747a Fix division by zero crash with unparsable/colored files 2014-09-11 20:51:41 +02:00
René Stadler
41b34c2e5e Fix crash when opening a file that has trash lines only 2014-09-11 20:51:41 +02:00
René Stadler
38c4ac239e Fix comment 2014-09-11 20:51:41 +02:00
René Stadler
f61574dbda Fix level distribution calculation for the last partition 2014-09-11 20:51:41 +02:00
René Stadler
209448c559 s/omit lines/hide lines/ 2014-09-11 20:51:40 +02:00
René Stadler
769a3d9d7c When navigating with the timeline, select the line in the center of the view 2014-09-11 20:51:40 +02:00
René Stadler
293dd13985 Add a (pretty limited) context menu to the timeline widget 2014-09-11 20:51:40 +02:00
René Stadler
91208d8eb9 Add fuzzy compatibility to unpatched pygtk 2.12.0 2014-09-11 20:51:40 +02:00
René Stadler
8108907e5f Add ranged line omission feature 2014-09-11 20:51:40 +02:00
René Stadler
13d22d4254 Draw vertical timeline connectors as triangles 2014-09-11 20:51:40 +02:00
René Stadler
e0be989987 Fix timeline position drawing and vertical timeline initial display 2014-09-11 20:51:39 +02:00
René Stadler
d4237c5600 Save state of timeline visibility 2014-09-11 20:51:39 +02:00
René Stadler
df96f4064c Colorize vertical timeline lines to indicate different threads 2014-09-11 20:51:39 +02:00
René Stadler
44376b41d1 Add (commented) support to draw the vertical timeline on first display 2014-09-11 20:51:39 +02:00
René Stadler
19a3fef369 Add vertical timeline widget (which looks quite cool) 2014-09-11 20:51:39 +02:00
René Stadler
822a90a334 Make file->open work correctly 2014-09-11 20:51:39 +02:00
René Stadler
98b381c7d9 Clamp timeline mouse position to actual range 2014-09-11 20:51:39 +02:00
René Stadler
13a1310e44 Fix copyright/license headers and module docstrings 2014-09-11 20:51:39 +02:00
René Stadler
cda1eb0131 Display timeline by default 2014-09-11 20:51:39 +02:00
René Stadler
41eaf0eb5e Fix missing the last vertical ref line in the timeline display 2014-09-11 20:51:39 +02:00
René Stadler
b4ad0d01bd Progressively draw the debug level distribution into the timeline widget 2014-09-11 20:51:38 +02:00
René Stadler
7cda31f6c7 Don't make timeline data processing block the GUI 2014-09-11 20:51:38 +02:00