Commit graph

22 commits

Author SHA1 Message Date
René Stadler
a83c471d00 Fix crash when copying row to clipboard 2014-09-11 20:51:48 +02:00
René Stadler
66ed3bb258 Use pango markup instead of attributes
Attributes don't work from introspection, so this blocks porting to gtk3.

In MessageColumn, admit that multiple highlighters don't actually work.
2014-09-11 20:51:48 +02:00
René Stadler
fb9d9ca4cf Modernize menus a little
A bit in preparation to gtk3 app menus.
2014-09-11 20:51:47 +02:00
René Stadler
9864042ff8 Simplify and optimize filtered model implementation
RangeFilteredLogModel is gone. The functionality is trivially implemented in
FilteredLogModel now. Changing the range is now O(log n) at worst (was O(n) at
best, for rewriting the arrays). Stacking filtered models is not supported
anymore, which simplifies the code.
2014-09-11 20:51:47 +02:00
René Stadler
3caf64118b Make RangeFilteredLogModel internal to GUI.models 2014-09-11 20:51:47 +02:00
René Stadler
f47260fbc4 Always use a filtered log model in the log view
Preparing to phase out RangeFilteredLogModel.
2014-09-11 20:51:47 +02:00
René Stadler
bcfc4197d8 window: prevent default handler for delete-event from running 2014-09-11 20:51:47 +02:00
René Stadler
9829e2bec1 window: set to insensitive during load/filter operations 2014-09-11 20:51:47 +02:00
René Stadler
c84185ca48 window: show error for unparseable files 2014-09-11 20:51:47 +02:00
René Stadler
9fda3730a0 window: replace progress and error dialogs with InfoBars 2014-09-11 20:51:47 +02:00
René Stadler
bfb3b242c7 window: set wmclass, to have a nicer app name when running uninstalled 2014-09-11 20:51:47 +02:00
René Stadler
50dd570f3a window: connect action handlers using a function decorator
A bit esoteric, but better than maintaining the list of action names.
2014-09-11 20:51:47 +02:00
René Stadler
7a05a716d2 Switch to new try..except syntax
This is forward compatible to Python 3.
2014-09-11 20:51:47 +02:00
René Stadler
ca9a31ddd9 columns: auto size time column when setting base time
Base time formatting adds + or - in front of the timestamp, so the column has
to grow a little to not hide the last digit.

Also fixes a crash when setting the base time while the time column is hidden.
2014-09-11 20:51:47 +02:00
René Stadler
d7c5942403 Store zoom level in state 2014-09-11 20:51:46 +02:00
René Stadler
5b07a1fc39 Add zoom reset action 2014-09-11 20:51:46 +02:00
René Stadler
b866669ae1 Refactor and fix zoom handling
ColumnManager has to apply the zoom factor to newly added columns. Otherwise,
showing a previously hidden column appears with scale 1.0.

This also drops the value-changed signal emission for the vadjustment, as it is
apparently not needed.
2014-09-11 20:51:46 +02:00
Stefan Kost
aa9db8ef8e Add zoom in/out actions, reduce vertical row padding
Add two actions to shrink and enlarge the text in the log pane. Add a theme
overide to set expander size to 1 (see bug #615985) and also turn focus lines
off. Remove extra ypadding on cells.
2014-09-11 20:51:46 +02:00
René Stadler
1b724edcac Improve wording of hide lines actions
These also appear in the context menu of the timeline. The more generic wording
makes more sense for the timeline, since you do not pinpoint any specific line
in this case.
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
097cacebbd Add new base time feature
The log view context menu gains a new action "Set base time", which changes the
time column to show the delta to the selected row.
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