boost-thread: Use 'thread_win32' on Windows/MinGW.
CMakeLists.txt: Fix typo.
Add missing newlines in two header files.

Without the newlines, some compilers will spew warnings such as:

  cursor.h:83:37: error: no newline at end of file

(which will break the build due to -Werror, which is default-enabled)

This has been (for example) observed on FreeBSD 9.0's (patched) gcc 4.2.1.
samplingbar.cpp: Add missing "ULL".

10000000000 is too large for an int/long on 32bit systems, properly list it
as 10000000000ULL, otherwise the compile will fail.

samplingbar.cpp:48: error: integer constant is too large for 'long' type.
Lower Boost dependency to 1.45, which is sufficient.

FreeBSD 9.0 ships with Boost 1.45, and builds fine (without errors), so
lower the dependency to 1.45.
Eliminated get_nominal_offset
Added axes to each signal
Add a way to generate a tarball without requiring git

  $ make package_source

This will use CPack to generate tarballs of the source directory.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Set the package version number
Prevent CPack from generating a source package with -Source appended to the name
Documented packing procedure
README: Minor fixes, typos.
CPack: Only generate a .tar.gz file.

We don't need the tarball as additional *.tar.bz2 and .tar.Z files.
Add missing settings for boost-thread on MinGW.
MinGW: Drop hardcoded BOOST_ROOT.

This was somewhat useful when PulseView only needed header-only parts of
Boost, but since boost-thread is now also needed this is not sufficient
anymore and needs a different setup for native MinGW builds on Windows.

Cross-compile builds using 'sigrok-cross-mingw' from sigrok-util work
fine without it, though.
Lower Boost dependency to 1.42.

PulseView builds fine with Boost 1.42, too.
Add missing #include <limits.h>.

The file ruler.cpp uses INT_MAX from <limits.h>, so add the #include line.
Without this, the build would fail on some systems (due to -Werror).
buildsystem: Link against the platform's thread library

At least on Linux, boost-thread depends on pthread. The linking is not
automatic, and users have had issues with this.

We need to link against the platform's thread library, as it is needed for
boost-thread. CMake takes care of getting the exact settings to be passed
to the linker for us with ${CMAKE_THREAD_LIBS_INIT}.

This fixes bug #42.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
View: Decouple horizontal scrolling from the scoll bar

Scrolling horizontally, regardless if through the tilt wheel, dragging the
signals, or moving the scroll bar, updates the viewport and the scroll bar. This
triggered a valueChanged() signal from the scroll bar, causing the viewport to
be updated again (redundantly). The operation of the viewport became dependent
on the scroll bar. On high zoom levels, where the scroll bar's resolution is
limited, the coupling manifested as jitter. The view was rendered with the
proper resolution of, caused the mouse drag event, then immediately updated and
rendered with the limited resolution of the scroll bar.

Decouple the viewport from the valueChanged() signal, and use the sliderMoved()
signal instead. The scroll bar becomes a simple input element, and only causes
a viewport update when acted upon by the user. Using the scroll bar is still
limited in resolution, but other scrolling methods are no longer affected by the
limitations of the scroll bar.

This fixes bug 7.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
samplingbar: Replace sr_info_get(SR_DI_SAMPLERATES) with sr_config_list(SR_CONF_SAMPLERATE)