Commit Graph

17 Commits

Author SHA1 Message Date
Gerhard Sittig 34f4a40baa util: Introduce string tokenize helper routine
Introduce a helper routine which splits a string into tokens that were
separated by a delimiter.
2017-06-25 20:32:58 +02:00
Uwe Hermann c063290ac7 Random simplifications, cosmetics/whitespace/consistency fixes. 2017-03-23 19:42:18 +01:00
Gerhard Sittig efdec55aec license: remove FSF postal address from boiler plate license text
Remove the FSF postal address as it might change (it did in the past).
Reference the gnu.org website instead which is more stable.
2017-01-07 16:11:15 +01:00
Uwe Hermann 520362f8c4 Fix inconsistent declaration parameter names.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,readability-inconsistent-declaration-parameter-name" -fix

(with some manual fixups of false-positives)
2016-02-13 20:41:33 +01:00
Uwe Hermann 39ccf9c39e Fix a bunch of random typos. 2016-01-03 20:40:27 +01:00
Daniel Elstner 2b68d17cab Build: Fix build with Qt 4 moc 2015-09-04 16:15:10 +02:00
Jens Steinhauser 3ccf0f7f5b Untangle the time formatting functions a bit
The formatting depending on the distance between two timestamps is
reintroduced with the responding function residing in the 'Ruler' class
(the prime user of that function).

Fixes a rounding bug for the least significant digit in the
'format_time_minutes()' function.

The 'Cursor' and 'CursorPair' classes now use the same precision when
formatting timestamps as the rest of the program.
2015-09-04 12:54:52 +02:00
Jens Steinhauser d001f416ae Use typesafe enum classes in pv::util 2015-09-04 12:54:52 +02:00
Jens Steinhauser 806d3e1eb3 Add a spin box widget for timestamp values 2015-09-04 12:54:52 +02:00
Jens Steinhauser 60d9b99a32 Use a type with a greater resolution to represent time values
Fixes #627.
2015-09-04 12:54:51 +02:00
Jens Steinhauser dae21ebcf6 Remove unused arguments from 'format_time()'
This function is already complicated enough (it tries to guess in what
context it is currently used and changes its behaviour accordingly), so
remove the unused parameters to make it somewhat comprehensible.
2015-09-04 12:54:47 +02:00
Soeren Apel ac98198803 Util: Introduce DD:HH:MM:SS.mmm nnn ppp fff format
This also fixes bug #371.
2015-08-16 18:53:21 +02:00
Soeren Apel 96b6316ab8 Introduce time units 2015-08-16 14:28:02 +02:00
Joel Holdsworth 7a01bd3654 Modified header guards to match file names 2015-01-27 16:28:31 +01:00
Uwe Hermann d9e717371c Use <cmath> in favor of <math.h> everywhere.
This is both for consistency reasons, as well as to reduce the
likelyhood of issues that may occur due to <math.h> / <cmath> mixups.
2015-01-01 20:45:59 +01:00
Joel Holdsworth 4bc10a9105 util: Added format_si_value 2014-12-30 14:24:08 +00:00
Joel Holdsworth 2acdb232d6 Renamed C++ headers to .hpp 2014-11-22 14:32:09 +00:00