pulseview.git
8 years agoInputOutput: replace nullptr with boost::none in Double()
Bartosz Golaszewski [Mon, 29 Jun 2015 13:17:54 +0000 (15:17 +0200)]
InputOutput: replace nullptr with boost::none in Double()

Passing nullptr as the fourth argument in Double's constructor
seems to build fine on x86, but causes build failures on many
other architectures.

Replace it with boost::none.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
8 years agoSignal: Fix index variable declaration
Soeren Apel [Sat, 27 Jun 2015 11:33:59 +0000 (13:33 +0200)]
Signal: Fix index variable declaration

8 years agoFix #501 by deactivating the autocompleter for the signal popup
Soeren Apel [Sat, 27 Jun 2015 11:33:14 +0000 (13:33 +0200)]
Fix #501 by deactivating the autocompleter for the signal popup

8 years agoDevice: Fix bug introduced by b48daed which broke analog channels
Soeren Apel [Sat, 27 Jun 2015 11:31:35 +0000 (13:31 +0200)]
Device: Fix bug introduced by b48daed which broke analog channels

8 years agoFix #590 by adding menu actions to main window also
Soeren Apel [Sat, 27 Jun 2015 11:31:03 +0000 (13:31 +0200)]
Fix #590 by adding menu actions to main window also

8 years agoView: Use more reasonable default time scale
Soeren Apel [Sat, 27 Jun 2015 11:30:28 +0000 (13:30 +0200)]
View: Use more reasonable default time scale

8 years agoimportmenu: Fix libsigrokcxx.hpp #include.
Uwe Hermann [Thu, 11 Jun 2015 18:19:09 +0000 (20:19 +0200)]
importmenu: Fix libsigrokcxx.hpp #include.

8 years agotest: session: Fix a compiler warning/error.
Uwe Hermann [Thu, 11 Jun 2015 18:17:56 +0000 (20:17 +0200)]
test: session: Fix a compiler warning/error.

 [ 30%] Building CXX object
 test/CMakeFiles/pulseview-test.dir/__/pv/storesession.cpp.o
 [...]/pv/session.cpp:408:62: error: unused parameter ‘device’ [-Werror=unused-parameter]
  void Session::sample_thread_proc(shared_ptr<devices::Device> device,

8 years agoSupport specifying input formats on the command line
Joel Holdsworth [Sun, 12 Apr 2015 14:08:51 +0000 (15:08 +0100)]
Support specifying input formats on the command line

Also removes the signal dispatch that was previously used to delay
the file loading until after the constructor.

8 years agoMoved default device selection into MainWindow
Joel Holdsworth [Sun, 12 Apr 2015 15:32:38 +0000 (16:32 +0100)]
Moved default device selection into MainWindow

8 years agoMainWindow: Tidied restore_ui_settings
Joel Holdsworth [Sun, 12 Apr 2015 15:24:06 +0000 (16:24 +0100)]
MainWindow: Tidied restore_ui_settings

8 years agoView: Support having no selected device
Joel Holdsworth [Sun, 12 Apr 2015 15:12:55 +0000 (16:12 +0100)]
View: Support having no selected device

8 years agoDeviceToolButton: Support having no selected device
Joel Holdsworth [Sun, 12 Apr 2015 15:10:05 +0000 (16:10 +0100)]
DeviceToolButton: Support having no selected device

8 years agoMainBar: Support having no selected device
Joel Holdsworth [Sun, 12 Apr 2015 15:03:55 +0000 (16:03 +0100)]
MainBar: Support having no selected device

8 years agoReplaced NULL with nullptr
Joel Holdsworth [Sun, 12 Apr 2015 14:54:29 +0000 (15:54 +0100)]
Replaced NULL with nullptr

8 years agoReordered argument handling
Joel Holdsworth [Sun, 12 Apr 2015 13:24:58 +0000 (14:24 +0100)]
Reordered argument handling

8 years agoMainWindow: Added import options dialog
Joel Holdsworth [Thu, 22 Jan 2015 02:48:19 +0000 (21:48 -0500)]
MainWindow: Added import options dialog

8 years agoMainWindow: Added initial import menu with no options
Joel Holdsworth [Sat, 17 Jan 2015 15:58:21 +0000 (15:58 +0000)]
MainWindow: Added initial import menu with no options

8 years agoMainWindow: Added format parameters to load_file
Joel Holdsworth [Sat, 28 Mar 2015 13:25:41 +0000 (13:25 +0000)]
MainWindow: Added format parameters to load_file

8 years agoAdded InputFile
Joel Holdsworth [Fri, 3 Apr 2015 14:54:22 +0000 (15:54 +0100)]
Added InputFile

8 years agoSession: Support capture before the sigrok::Device object has been created
Joel Holdsworth [Fri, 17 Apr 2015 17:15:12 +0000 (18:15 +0100)]
Session: Support capture before the sigrok::Device object has been created

8 years agoSession: Use Device::read_config to read sample limit
Joel Holdsworth [Fri, 17 Apr 2015 23:22:02 +0000 (00:22 +0100)]
Session: Use Device::read_config to read sample limit

8 years agoDevice: Replaced Session::read_sample_rate with read_config
Joel Holdsworth [Fri, 17 Apr 2015 23:09:03 +0000 (00:09 +0100)]
Device: Replaced Session::read_sample_rate with read_config

8 years agoSession: Converted data_mutex_ into a std::recursive_mutex
Joel Holdsworth [Fri, 17 Apr 2015 17:08:39 +0000 (18:08 +0100)]
Session: Converted data_mutex_ into a std::recursive_mutex

8 years agoSession: Removed device parameter from update_signals
Joel Holdsworth [Fri, 17 Apr 2015 17:23:04 +0000 (18:23 +0100)]
Session: Removed device parameter from update_signals

8 years agoSession: Made update_signals handle having a missing device gracefully
Joel Holdsworth [Mon, 6 Apr 2015 09:14:30 +0000 (10:14 +0100)]
Session: Made update_signals handle having a missing device gracefully

8 years agoSession: Catch errors listing the config keys
Joel Holdsworth [Mon, 6 Apr 2015 09:11:59 +0000 (10:11 +0100)]
Session: Catch errors listing the config keys

8 years agobinding::Device: Catch errors listing the config keys
Joel Holdsworth [Mon, 6 Apr 2015 09:08:40 +0000 (10:08 +0100)]
binding::Device: Catch errors listing the config keys

8 years agoMainBar: Catch errors listing the config keys
Joel Holdsworth [Mon, 6 Apr 2015 09:06:34 +0000 (10:06 +0100)]
MainBar: Catch errors listing the config keys

8 years agoAdded devices::File as a common base of file devices
Joel Holdsworth [Fri, 3 Apr 2015 15:11:55 +0000 (16:11 +0100)]
Added devices::File as a common base of file devices

8 years agoDeviceManager: Deprecated build_display_name and friends
Joel Holdsworth [Sat, 28 Mar 2015 18:54:21 +0000 (18:54 +0000)]
DeviceManager: Deprecated build_display_name and friends

8 years agodevices::Device: Moved in full_name and display_name
Joel Holdsworth [Fri, 3 Apr 2015 10:35:49 +0000 (11:35 +0100)]
devices::Device: Moved in full_name and display_name

8 years agoUse device::Devices to represent sigrok Devices
Joel Holdsworth [Sun, 22 Feb 2015 20:21:15 +0000 (20:21 +0000)]
Use device::Devices to represent sigrok Devices

8 years agoLogicSignal: Tidied up forward declarations
Joel Holdsworth [Sat, 28 Mar 2015 22:03:23 +0000 (22:03 +0000)]
LogicSignal: Tidied up forward declarations

8 years agoConnect: Tidied up forward declarations
Joel Holdsworth [Sat, 28 Mar 2015 21:13:29 +0000 (21:13 +0000)]
Connect: Tidied up forward declarations

8 years agoDeviceManager: Tidied up forward declarations
Joel Holdsworth [Sat, 28 Mar 2015 19:59:48 +0000 (19:59 +0000)]
DeviceManager: Tidied up forward declarations

8 years agoSession: Fixed header guard
Joel Holdsworth [Sun, 22 Feb 2015 20:20:31 +0000 (20:20 +0000)]
Session: Fixed header guard

8 years agoAdded pv::widgets::ImportMenu
Joel Holdsworth [Sat, 17 Jan 2015 17:03:56 +0000 (17:03 +0000)]
Added pv::widgets::ImportMenu

8 years agopv::binding::InputOutput: Bound up more integer types and Bool
Joel Holdsworth [Sun, 22 Feb 2015 14:56:56 +0000 (14:56 +0000)]
pv::binding::InputOutput: Bound up more integer types and Bool

8 years agoSession: Simplified logic of set_device
Joel Holdsworth [Mon, 2 Feb 2015 03:18:46 +0000 (20:18 -0700)]
Session: Simplified logic of set_device

8 years agoStoreSession: Use DeviceManager to get context
Joel Holdsworth [Sat, 28 Mar 2015 13:12:10 +0000 (13:12 +0000)]
StoreSession: Use DeviceManager to get context

8 years agoDeviceManager: Added const context accessor
Joel Holdsworth [Sat, 28 Mar 2015 13:08:03 +0000 (13:08 +0000)]
DeviceManager: Added const context accessor

8 years agoSession: Made update_signals non-destructive
Joel Holdsworth [Sat, 28 Mar 2015 12:54:41 +0000 (12:54 +0000)]
Session: Made update_signals non-destructive

8 years agoLogicSignal: Added set_logic_data
Joel Holdsworth [Sat, 28 Mar 2015 12:54:12 +0000 (12:54 +0000)]
LogicSignal: Added set_logic_data

8 years agoSignalData: Renamed get_max_sample_count
Joel Holdsworth [Sat, 28 Mar 2015 12:35:50 +0000 (12:35 +0000)]
SignalData: Renamed get_max_sample_count

8 years agopv::data::Logic: Renamed get_num_channels and fixed return types
Joel Holdsworth [Sat, 28 Mar 2015 12:30:42 +0000 (12:30 +0000)]
pv::data::Logic: Renamed get_num_channels and fixed return types

8 years agoSession: Store signals_ in an unordered_set
Joel Holdsworth [Sat, 28 Mar 2015 12:10:14 +0000 (12:10 +0000)]
Session: Store signals_ in an unordered_set

9 years agoDevice: Add bindings for SR_CONF_POWER_OFF and SR_CONF_PROBE_FACTOR.
Bartosz Golaszewski [Fri, 3 Apr 2015 13:04:38 +0000 (15:04 +0200)]
Device: Add bindings for SR_CONF_POWER_OFF and SR_CONF_PROBE_FACTOR.

These options are used by baylibre-acme driver and should be available
from pulseview configuration pop-up.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
9 years agoandroid: Add missing libintl.so to APK.
Uwe Hermann [Wed, 8 Apr 2015 23:56:04 +0000 (01:56 +0200)]
android: Add missing libintl.so to APK.

This fixes bug #575.

9 years agoAdd a workaround for QTBUG-22829.
Uwe Hermann [Sat, 28 Feb 2015 19:39:06 +0000 (20:39 +0100)]
Add a workaround for QTBUG-22829.

Qt4's MOC has issues parsing some C++ constructs, yielding errors like:

  [...]/include/boost/type_traits/detail/has_binary_operator.hp:50:
    Parse error at "BOOST_JOIN"

Full details:

  https://bugreports.qt.io/browse/QTBUG-22829

Use -DBOOST_NEXT_PRIOR_HPP_INCLUDED as MOC option to workaround these
issues. This is currently sufficient, however, depending on the future
PulseView code it may be necessary to add further options mentioned in the
above bugreport (e.g.  BOOST_TT_HAS_OPERATOR_HPP_INCLUDED,
BOOST_LEXICAL_CAST_INCLUDED, BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION).

This fixes bug #532 (fixing the build on at least Mac OS X and MinGW).

9 years agowin32: Fix the Windows build (namespace pollution via windows.h).
Vladislav Ivanov [Thu, 26 Feb 2015 18:29:59 +0000 (21:29 +0300)]
win32: Fix the Windows build (namespace pollution via windows.h).

One of the multiple build errors:

  In file included from [...]/windows.h:72:0,
                   from [...]/boost/detail/interlocked.hpp:27,
                   from [...]/boost/thread/win32/thread_primitives.hpp:18,
                   from [...]/boost/thread/win32/thread_data.hpp:11,
                   from [...]/boost/thread/thread_only.hpp:15,
                   from [...]/boost/thread/thread.hpp:12,
                   from [...]/boost/thread.hpp:13,
                   from [...]/pulseview/pv/session.hpp:32,
                   from [...]/pulseview/pv/devicemanager.cpp:22:
  [...]/libsigrok/enums.hpp:153:32: error: expected unqualified-id before numeric constant
    static const Quantity * const DIFFERENCE;
                                  ^

windows.h is included by boost/thread.hpp, hence the conflict can be avoided
by defining NOGDI and NORESOURCE before including thread.hpp.

This fixes bug #517.

9 years agoBring back sigrok-logo-notext.png (needed on Android).
Uwe Hermann [Thu, 26 Feb 2015 19:25:27 +0000 (20:25 +0100)]
Bring back sigrok-logo-notext.png (needed on Android).

On Android sigrok-logo-notext.png is used as app icon, and the build
thus fails if it is not available.

Changing android/custom_rules.xml to use the SVG version instead doesn't
seem to work. It appears Android doesn't really support SVGs as app
icons, or at least not without further changes. Continue using the PNG
for now to keep the Android build in a working state.

9 years agoDrop unneeded /* ENABLE_DECODE */ comments.
Uwe Hermann [Fri, 20 Feb 2015 10:25:45 +0000 (11:25 +0100)]
Drop unneeded /* ENABLE_DECODE */ comments.

(to match the rest of the code base where these are not used either)

9 years agomainwindow: add missing checks against ENABLE_DECODE
Bartosz Golaszewski [Wed, 18 Feb 2015 16:19:08 +0000 (17:19 +0100)]
mainwindow: add missing checks against ENABLE_DECODE

Pulseview doesn't compile with -DENABLE_DECODE=FALSE. Add missing
checks against ENABLE_DECODE in mainwindow.cpp/.hpp.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
9 years agodevice: ensure bind_enum() checks availability of Capability::LIST.
Aurelien Jacobs [Thu, 12 Feb 2015 14:46:42 +0000 (15:46 +0100)]
device: ensure bind_enum() checks availability of Capability::LIST.

This avoids a segfault calling bind_enum() with a non-initialized gvar_list.

This closes bug #453.

9 years agoFix the build for older glibmm versions.
Uwe Hermann [Fri, 30 Jan 2015 18:39:30 +0000 (19:39 +0100)]
Fix the build for older glibmm versions.

With older glibmm versions the following error occured:

  pv/toolbars/mainbar.cpp:228:6: error: no match for ‘operator!’ (operand
  type is ‘Glib::VariantContainerBase’)
    if (!gvar_dict) {
        ^

Work around the above issue by using .gobj() and not relying on
"Glib::VariantBase::operator BoolExpr() const", which was only
added in glibmm 2.36.

This fixes bug #548.

Tested on a Debian stable system with glibmm 2.32.1 and Boost 1.49.

9 years agoMainWindow: Use extension to populate filter
Joel Holdsworth [Wed, 21 Jan 2015 06:53:29 +0000 (01:53 -0500)]
MainWindow: Use extension to populate filter

9 years agoAdded pv::dialogs::InputOutputOptions
Joel Holdsworth [Wed, 21 Jan 2015 01:14:43 +0000 (20:14 -0500)]
Added pv::dialogs::InputOutputOptions

9 years agoAdded InputOutput binding
Joel Holdsworth [Wed, 21 Jan 2015 01:11:22 +0000 (20:11 -0500)]
Added InputOutput binding

9 years agoAdded initial support for export
Joel Holdsworth [Sat, 17 Jan 2015 19:35:33 +0000 (19:35 +0000)]
Added initial support for export

9 years agopv::prop::Int: Fixed unsigned int binding
Joel Holdsworth [Wed, 21 Jan 2015 01:28:38 +0000 (20:28 -0500)]
pv::prop::Int: Fixed unsigned int binding

9 years agoModified header guards to match file names
Joel Holdsworth [Sat, 17 Jan 2015 22:00:52 +0000 (22:00 +0000)]
Modified header guards to match file names

9 years agoRenamed pv::binding::DeviceOptions and DecoderOptions to Device and Decoder
Joel Holdsworth [Sat, 17 Jan 2015 21:58:20 +0000 (21:58 +0000)]
Renamed pv::binding::DeviceOptions and DecoderOptions to Device and Decoder

9 years agoMoved pv::prop:bindings classes into pv::bindings namespace
Joel Holdsworth [Sat, 17 Jan 2015 21:45:04 +0000 (21:45 +0000)]
Moved pv::prop:bindings classes into pv::bindings namespace

9 years agoStoreSession: Support output formats other than srzip
Joel Holdsworth [Sat, 17 Jan 2015 21:03:37 +0000 (21:03 +0000)]
StoreSession: Support output formats other than srzip

9 years agoStoreSession: Added an OutputFormat parameter
Joel Holdsworth [Sat, 17 Jan 2015 20:00:03 +0000 (20:00 +0000)]
StoreSession: Added an OutputFormat parameter

9 years agoAdded pv::widgets::ExportMenu
Joel Holdsworth [Sat, 17 Jan 2015 19:35:18 +0000 (19:35 +0000)]
Added pv::widgets::ExportMenu

9 years agoMainBar: Removed unused run_stop signal
Joel Holdsworth [Sat, 17 Jan 2015 18:35:55 +0000 (18:35 +0000)]
MainBar: Removed unused run_stop signal

9 years agoSession: Tidied class declarations
Joel Holdsworth [Sat, 17 Jan 2015 18:35:12 +0000 (18:35 +0000)]
Session: Tidied class declarations

9 years agoSession: Use set_device to select session file devices
Joel Holdsworth [Sat, 17 Jan 2015 18:14:41 +0000 (18:14 +0000)]
Session: Use set_device to select session file devices

9 years agoMainWindow: Fixed sampling bar comment
Joel Holdsworth [Sat, 17 Jan 2015 18:03:16 +0000 (18:03 +0000)]
MainWindow: Fixed sampling bar comment

9 years agoSession: Renamed set_file to set_session_file
Joel Holdsworth [Sat, 17 Jan 2015 15:19:13 +0000 (15:19 +0000)]
Session: Renamed set_file to set_session_file

9 years agoLogicSignal: Hide the trigger selector, when there is no trigger support
Joel Holdsworth [Sat, 17 Jan 2015 15:09:57 +0000 (15:09 +0000)]
LogicSignal: Hide the trigger selector, when there is no trigger support

9 years agoLogicSignal: Check the TRIGGER_MATCH key before listing
Joel Holdsworth [Sat, 17 Jan 2015 15:04:57 +0000 (15:04 +0000)]
LogicSignal: Check the TRIGGER_MATCH key before listing

9 years agoMainBar: Don't list keys twice
Joel Holdsworth [Sat, 17 Jan 2015 15:04:17 +0000 (15:04 +0000)]
MainBar: Don't list keys twice

9 years agoicons: Improved application icon quality
Joel Holdsworth [Sun, 11 Jan 2015 20:05:12 +0000 (20:05 +0000)]
icons: Improved application icon quality

9 years agoINSTALL: Update build requirements list.
Uwe Hermann [Sat, 24 Jan 2015 19:55:37 +0000 (20:55 +0100)]
INSTALL: Update build requirements list.

9 years agoFix incorrect glibmm.h #includes.
Uwe Hermann [Sat, 17 Jan 2015 20:36:19 +0000 (21:36 +0100)]
Fix incorrect glibmm.h #includes.

As per upstream docs "#include <glibmm.h>" is the correct usage,
the "glibmm-2.4" directory is handled correctly via pkg-config:

 $ pkg-config --cflags glibmm-2.4
 -I/usr/include/glibmm-2.4 [...]

9 years agoUpdate for libsigrokcxx rename.
Uwe Hermann [Sat, 17 Jan 2015 18:29:12 +0000 (19:29 +0100)]
Update for libsigrokcxx rename.

9 years agoMainWindow: Hide the main menu unless Altt is pressed
Joel Holdsworth [Sat, 10 Jan 2015 17:18:32 +0000 (17:18 +0000)]
MainWindow: Hide the main menu unless Altt is pressed

9 years agoMainBar: Prevent context menu from appearing
Soeren Apel [Mon, 5 Jan 2015 20:28:04 +0000 (21:28 +0100)]
MainBar: Prevent context menu from appearing

A user can remove the main toolbar by using the right-click context
menu and clicking on the single entry in it, effectively hiding the
toolbar this way. There is no way to restore it except for closing
PV and deleting the stored session file in ~/.config/sigrok.

This patch prevents the context menu from appearing, thereby
removing the ability to hide the main tool bar.

9 years agoFix #489 by implementing device tool button tooltip
Soeren Apel [Mon, 5 Jan 2015 17:34:53 +0000 (18:34 +0100)]
Fix #489 by implementing device tool button tooltip

9 years agoMainBar: Replaced device selector combo-box with a split button
Joel Holdsworth [Sat, 10 Jan 2015 16:45:55 +0000 (16:45 +0000)]
MainBar: Replaced device selector combo-box with a split button

9 years agoMainBar: Added add-decoder button
Joel Holdsworth [Sat, 10 Jan 2015 16:20:43 +0000 (16:20 +0000)]
MainBar: Added add-decoder button

9 years agoMainWindow: Made menu_decoder_add into a member variable
Joel Holdsworth [Sat, 10 Jan 2015 16:18:33 +0000 (16:18 +0000)]
MainWindow: Made menu_decoder_add into a member variable

9 years agoMainWindow: Removed old main toolbar
Joel Holdsworth [Sat, 10 Jan 2015 16:04:41 +0000 (16:04 +0000)]
MainWindow: Removed old main toolbar

9 years agoMainBar: Added show cursors icon
Joel Holdsworth [Sat, 10 Jan 2015 16:01:57 +0000 (16:01 +0000)]
MainBar: Added show cursors icon

9 years agoMainWindow: Added icon to action_view_show_cursors
Joel Holdsworth [Sat, 10 Jan 2015 16:00:29 +0000 (16:00 +0000)]
MainWindow: Added icon to action_view_show_cursors

9 years agoMainBar: Added menu button
Joel Holdsworth [Sat, 10 Jan 2015 15:53:58 +0000 (15:53 +0000)]
MainBar: Added menu button

9 years agoMainBar: Make toolbar fixed
Joel Holdsworth [Sat, 10 Jan 2015 15:53:41 +0000 (15:53 +0000)]
MainBar: Make toolbar fixed

9 years agoMainWindow: Made QActions into member variables
Joel Holdsworth [Sat, 10 Jan 2015 15:30:52 +0000 (15:30 +0000)]
MainWindow: Made QActions into member variables

9 years agoMainWindow: Moved static constants to top of class definitions
Joel Holdsworth [Sat, 10 Jan 2015 14:57:03 +0000 (14:57 +0000)]
MainWindow: Moved static constants to top of class definitions

9 years agoMainBar: Renamed from SamplingBar
Joel Holdsworth [Tue, 30 Dec 2014 14:37:29 +0000 (14:37 +0000)]
MainBar: Renamed from SamplingBar

9 years agoicons: Added menu icon
Joel Holdsworth [Tue, 6 Jan 2015 22:49:11 +0000 (22:49 +0000)]
icons: Added menu icon

9 years agoSamplingBar: Handle a failure to list the LIMIT_SAMPLES key
Joel Holdsworth [Mon, 5 Jan 2015 20:11:12 +0000 (20:11 +0000)]
SamplingBar: Handle a failure to list the LIMIT_SAMPLES key

9 years agoSamplingBar: Handle a failure to list the SAMPLERATE key
Joel Holdsworth [Mon, 5 Jan 2015 20:10:44 +0000 (20:10 +0000)]
SamplingBar: Handle a failure to list the SAMPLERATE key

This fixes #529

9 years agoConnect: List available serial ports in a combobox.
Aurelien Jacobs [Sat, 6 Dec 2014 23:59:52 +0000 (00:59 +0100)]
Connect: List available serial ports in a combobox.

9 years agoicons: Resized icons to 24x24
Joel Holdsworth [Wed, 31 Dec 2014 10:47:13 +0000 (10:47 +0000)]
icons: Resized icons to 24x24

9 years agoutil: Fixed assertion
Joel Holdsworth [Wed, 31 Dec 2014 09:24:35 +0000 (09:24 +0000)]
util: Fixed assertion

9 years agoUse <cmath> in favor of <math.h> everywhere.
Uwe Hermann [Thu, 1 Jan 2015 19:45:59 +0000 (20:45 +0100)]
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.