]>
sigrok.org Git - pulseview.git/log
Uwe Hermann [Mon, 18 Feb 2013 23:56:19 +0000 (00:56 +0100)]
Cosmetics, typos.
Alexandru Gagniuc [Wed, 2 Jan 2013 23:19:57 +0000 (17:19 -0600)]
main: quit on SIGINT
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Wed, 2 Jan 2013 17:37:49 +0000 (11:37 -0600)]
main: Add signal handler for SIGINT
Add a SIGINT handler as requested here:
http://www.airwebreathe.org.uk/projects/index.php?title=PulseView#Make_PulseView_respond_properly_to_SIGINT
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Tue, 5 Feb 2013 16:33:05 +0000 (10:33 -0600)]
buildsystem: Abort cmake config if Boost is not found
When cmake didn't find Boost, it would not abort; instead the linking
process after the build would fail with non-obvious error messages.
Thus, make Boost a required dependency (fixes bug 59).
Signed-off-by: Alexandru Gagniuc <redacted>
Joel Holdsworth [Mon, 28 Jan 2013 20:35:24 +0000 (20:35 +0000)]
Get sample rate from device instance rather than storing it
Joel Holdsworth [Sun, 27 Jan 2013 16:35:11 +0000 (16:35 +0000)]
Moved signal creation into feed_in_header
Joel Holdsworth [Sun, 27 Jan 2013 11:10:19 +0000 (11:10 +0000)]
Ported sampling to new sigrok API
Joel Holdsworth [Sun, 27 Jan 2013 09:43:57 +0000 (09:43 +0000)]
Renamed pv::dialogs::HwCap to DeviceOptions
Joel Holdsworth [Sun, 27 Jan 2013 09:40:29 +0000 (09:40 +0000)]
Renamed pv::prop::binding::HwCap to DeviceOptions
Joel Holdsworth [Sun, 27 Jan 2013 09:32:20 +0000 (09:32 +0000)]
Ported pv::prop::binding::HwCap to new sigrok API
Joel Holdsworth [Sun, 27 Jan 2013 09:16:40 +0000 (09:16 +0000)]
samplingbar: Replace sr_info_get(SR_DI_SAMPLERATES) with sr_config_list(SR_CONF_SAMPLERATE)
Alexandru Gagniuc [Sat, 26 Jan 2013 06:35:17 +0000 (00:35 -0600)]
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 <redacted>
Alexandru Gagniuc [Tue, 15 Jan 2013 22:09:57 +0000 (16:09 -0600)]
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 <redacted>
Uwe Hermann [Thu, 24 Jan 2013 21:34:49 +0000 (22:34 +0100)]
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).
Uwe Hermann [Thu, 24 Jan 2013 21:34:08 +0000 (22:34 +0100)]
Lower Boost dependency to 1.42.
PulseView builds fine with Boost 1.42, too.
Uwe Hermann [Sun, 20 Jan 2013 16:11:51 +0000 (17:11 +0100)]
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.
Uwe Hermann [Sun, 20 Jan 2013 14:48:16 +0000 (15:48 +0100)]
Add missing settings for boost-thread on MinGW.
Uwe Hermann [Sat, 19 Jan 2013 22:15:21 +0000 (23:15 +0100)]
CPack: Only generate a .tar.gz file.
We don't need the tarball as additional *.tar.bz2 and .tar.Z files.
Uwe Hermann [Sat, 19 Jan 2013 22:13:56 +0000 (23:13 +0100)]
README: Minor fixes, typos.
Joel Holdsworth [Sat, 19 Jan 2013 21:55:25 +0000 (21:55 +0000)]
Documented packing procedure
Joel Holdsworth [Sat, 19 Jan 2013 21:52:22 +0000 (21:52 +0000)]
Prevent CPack from generating a source package with -Source appended to the name
Joel Holdsworth [Sat, 19 Jan 2013 21:51:52 +0000 (21:51 +0000)]
Set the package version number
Alexandru Gagniuc [Wed, 24 Oct 2012 15:12:40 +0000 (10:12 -0500)]
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 <redacted>
Joel Holdsworth [Sat, 19 Jan 2013 08:22:12 +0000 (08:22 +0000)]
Added axes to each signal
Joel Holdsworth [Fri, 18 Jan 2013 18:33:01 +0000 (18:33 +0000)]
Eliminated get_nominal_offset
Uwe Hermann [Sat, 19 Jan 2013 20:05:53 +0000 (21:05 +0100)]
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.
Uwe Hermann [Sat, 19 Jan 2013 19:50:30 +0000 (20:50 +0100)]
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.
Uwe Hermann [Sat, 19 Jan 2013 19:44:38 +0000 (20:44 +0100)]
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.
Uwe Hermann [Sat, 19 Jan 2013 19:09:07 +0000 (20:09 +0100)]
CMakeLists.txt: Fix typo.
Uwe Hermann [Sat, 19 Jan 2013 17:48:16 +0000 (18:48 +0100)]
boost-thread: Use 'thread_win32' on Windows/MinGW.
Joel Holdsworth [Wed, 16 Jan 2013 19:04:08 +0000 (19:04 +0000)]
Added -Wextra, and an option to disable -Werror
Joel Holdsworth [Wed, 16 Jan 2013 18:56:16 +0000 (18:56 +0000)]
Explicitly initialise QObject in the copy constructor
Joel Holdsworth [Wed, 16 Jan 2013 18:55:52 +0000 (18:55 +0000)]
Supressed unused parameters
Uwe Hermann [Tue, 15 Jan 2013 22:48:55 +0000 (23:48 +0100)]
pulseview.qrc: Add missing application-exit.png entry.
Without this, the icon won't be shown in the menu.
Joel Holdsworth [Tue, 15 Jan 2013 19:25:43 +0000 (19:25 +0000)]
Added File>Quit menu item
Joel Holdsworth [Tue, 15 Jan 2013 18:55:49 +0000 (18:55 +0000)]
Do not fast_forward if there is no data at the minimum mip-map level
Joel Holdsworth [Sun, 13 Jan 2013 19:24:31 +0000 (19:24 +0000)]
Added Sixteen test case
This test case is a replica of sixteen.sr attached to the Bug #33
Joel Holdsworth [Sun, 13 Jan 2013 13:42:36 +0000 (13:42 +0000)]
Fixed LongPulses test packet setup
The length field is now populated with the number of bytes rather
than the number of samples
Joel Holdsworth [Sun, 13 Jan 2013 11:55:51 +0000 (11:55 +0000)]
Fixed usage of sr_datafeed_logic::length
The length field is a measure of bytes not samples. The previous
usage would fail unless the unitsize was set to 1.
Alexandru Gagniuc [Tue, 8 Jan 2013 20:25:56 +0000 (14:25 -0600)]
global: Do not assert >= 0 for unsigned values
Unsigned values are always >= 0. These assertions are redundant, so remove them.
$ grep assert -r ./ |grep ">=" |grep 0
shows the assert(something >= 0). Remove those which assert(unsigned >= 0).
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Tue, 8 Jan 2013 20:18:37 +0000 (14:18 -0600)]
tests: Add check for handling of wide data (16 probes)
The details of the test are explained in-source. This test is designed to
provide a test case for bug 33.
Signed-off-by: Alexandru Gagniuc <redacted>
Joel Holdsworth [Tue, 1 Jan 2013 19:47:24 +0000 (19:47 +0000)]
Fixed pv::dialogs::About to accomodate
42515b0f in libsigrokdecode
Joel Holdsworth [Mon, 31 Dec 2012 09:34:12 +0000 (09:34 +0000)]
Added status icons to Run/Stop button
Joel Holdsworth [Sun, 30 Dec 2012 20:58:55 +0000 (20:58 +0000)]
Tidied pv::MainWindow menu setup
Joel Holdsworth [Sun, 30 Dec 2012 20:47:40 +0000 (20:47 +0000)]
Removed status bar
Joel Holdsworth [Sat, 29 Dec 2012 13:49:59 +0000 (13:49 +0000)]
Set HwCap dialog title
Joel Holdsworth [Fri, 28 Dec 2012 11:44:42 +0000 (11:44 +0000)]
Added fallback toolbar icons
Joel Holdsworth [Fri, 28 Dec 2012 11:34:25 +0000 (11:34 +0000)]
Added Tango configure icon
Joel Holdsworth [Fri, 28 Dec 2012 10:03:51 +0000 (10:03 +0000)]
Implemented HwCap binding
Joel Holdsworth [Fri, 28 Dec 2012 10:17:50 +0000 (10:17 +0000)]
Added commit support to HwCap dialog
Joel Holdsworth [Fri, 28 Dec 2012 10:17:08 +0000 (10:17 +0000)]
Added commit support to Binding
Joel Holdsworth [Fri, 28 Dec 2012 10:15:54 +0000 (10:15 +0000)]
Added get/set support to Property and Enum
Joel Holdsworth [Fri, 28 Dec 2012 10:03:34 +0000 (10:03 +0000)]
Integrated property widgets with dialog
Joel Holdsworth [Fri, 28 Dec 2012 10:10:09 +0000 (10:10 +0000)]
Added Enum property
Joel Holdsworth [Fri, 28 Dec 2012 10:09:41 +0000 (10:09 +0000)]
Added Property
Joel Holdsworth [Fri, 28 Dec 2012 09:51:12 +0000 (09:51 +0000)]
Added empty HwCap dialog
Joel Holdsworth [Fri, 28 Dec 2012 09:52:56 +0000 (09:52 +0000)]
Added empty HwCap binding
Joel Holdsworth [Thu, 20 Dec 2012 21:34:43 +0000 (21:34 +0000)]
Moved data and snapshot classes into pv::data namespace
Joel Holdsworth [Thu, 20 Dec 2012 20:28:19 +0000 (20:28 +0000)]
Tidied include of view in mainwindow.cpp
Joel Holdsworth [Thu, 20 Dec 2012 20:27:54 +0000 (20:27 +0000)]
Moved pv::About into the pv::dialogs::About namespace
Alexandru Gagniuc [Sun, 16 Dec 2012 06:01:47 +0000 (00:01 -0600)]
Viewport: Allow horizontal scrolling via mouse wheel tilting
On mice with a horizontal scroll wheel, or tilting wheel, enable the user to
scroll horizontally.
Signed-off-by: Alexandru Gagniuc <redacted>
Alexandru Gagniuc [Sun, 16 Dec 2012 01:16:32 +0000 (19:16 -0600)]
Viewport: Only zoom in/out at vertical wheel events
Viewport always zoomed the signals in and out on a wheel event. Moving the
scroll wheel up or down caused the intended effect of zooming in or zooming out,
respectively. This works flawlessly on mice with only a vertical wheel.
On mice with a horizontal or tilting wheel, horizontal scrolling or tilting was
still treated as zooming in and out. This created a non-intuitive experience,
as the user expects the signals to scroll left or right with this gesture.
Check to make sure the wheel event is a vertical one, and only then zoom in/out.
Do nothing if the wheel event is not vertical.
Signed-off-by: Alexandru Gagniuc <redacted>
Joel Holdsworth [Mon, 17 Dec 2012 21:54:48 +0000 (21:54 +0000)]
Added basic analog signal plotting
Joel Holdsworth [Mon, 17 Dec 2012 21:21:14 +0000 (21:21 +0000)]
Added skeleton analog support
Joel Holdsworth [Mon, 17 Dec 2012 21:18:36 +0000 (21:18 +0000)]
Renamed pv::SigSession::_state_mutex to pv::SigSession::_sampling_mutex
Joel Holdsworth [Thu, 13 Dec 2012 22:40:22 +0000 (22:40 +0000)]
Factored out feed_in_logic
Joel Holdsworth [Thu, 13 Dec 2012 21:45:54 +0000 (21:45 +0000)]
Factored out feed_in_meta_logic
Joel Holdsworth [Thu, 13 Dec 2012 21:30:50 +0000 (21:30 +0000)]
Make data_feed_in and data_feed_in_proc packet parameter a const pointer
This patch corresponds to
bf53457d in libsigrok.
Joel Holdsworth [Wed, 12 Dec 2012 21:49:15 +0000 (21:49 +0000)]
Moved file load into a thread
Uwe Hermann [Wed, 12 Dec 2012 21:21:48 +0000 (22:21 +0100)]
README: Document Boost system + thread requirement.
Uwe Hermann [Wed, 12 Dec 2012 21:19:22 +0000 (22:19 +0100)]
Some smaller whitespace fixes.
Uwe Hermann [Wed, 12 Dec 2012 21:00:09 +0000 (22:00 +0100)]
cmake: Add boost-thread as explicit dependency.
Apparently boost-thread requires boost-system even if not explicitly
used in the code.
See also: https://svn.boost.org/trac/boost/ticket/7241
On Debian with libboost-thread1.50.0 and libboost-system1.50.0 the
following error occurs during linking:
/usr/bin/ld: CMakeFiles/pulseview.dir/main.cpp.o: undefined reference to symbol 'boost::system::system_category()'
/usr/bin/ld: note: 'boost::system::system_category()' is defined in DSO /usr/lib/libboost_system.so.1.50.0 so try adding it to the linker command line
/usr/lib/libboost_system.so.1.50.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
This commit fixes the issue.
It's unclear whether this is an issue that should be fixed in PulseView
in general, or whether it's a Boost issue.
Joel Holdsworth [Mon, 10 Dec 2012 21:24:17 +0000 (21:24 +0000)]
Made LogicDataSnapshot::get_sample private rather than mutex protecting it
Joel Holdsworth [Mon, 10 Dec 2012 20:37:23 +0000 (20:37 +0000)]
Mutex protected snapshot data
Joel Holdsworth [Mon, 3 Dec 2012 23:25:59 +0000 (23:25 +0000)]
Keep Run/Stop button state updated
Joel Holdsworth [Sun, 2 Dec 2012 16:25:13 +0000 (16:25 +0000)]
Added proof of concept start/stop support
Joel Holdsworth [Sun, 2 Dec 2012 15:33:43 +0000 (15:33 +0000)]
Initial real time display during capture
Joel Holdsworth [Sun, 2 Dec 2012 15:21:03 +0000 (15:21 +0000)]
Mutex protected SigSession::_signals
Joel Holdsworth [Sun, 2 Dec 2012 15:07:12 +0000 (15:07 +0000)]
Added SigSession::signals_changed signals to indicate when signals are created
Joel Holdsworth [Sun, 2 Dec 2012 14:32:48 +0000 (14:32 +0000)]
Initial threaded capture
Peter Stuge [Mon, 3 Dec 2012 03:23:37 +0000 (04:23 +0100)]
Add struct sr_context * to sr_driver_init() calls
libsigrok.git commit
193691ae1590eb31025d943ffbb0ea5c1047e6ca changes
the API of sr_driver_init() to take a struct sr_context * parameter as
allocated by sr_init().
Move our struct sr_context *sr_ctx out of main() into file global scope
so that it can be used easily in all calls to sr_driver_init().
Rene Hopf [Tue, 20 Nov 2012 12:41:14 +0000 (13:41 +0100)]
removed std namespace to build with llvm
Joel Holdsworth [Sun, 18 Nov 2012 14:01:24 +0000 (14:01 +0000)]
Added pv::view::View::normalize_layout to normalize out-of-bounds drags
Joel Holdsworth [Sun, 18 Nov 2012 13:24:34 +0000 (13:24 +0000)]
Moved signal margin out of signal rendering into initial layout
Joel Holdsworth [Sat, 17 Nov 2012 12:48:27 +0000 (12:48 +0000)]
Improved propagation of drag event so that the scroll bars can be updated
Joel Holdsworth [Sat, 17 Nov 2012 12:33:42 +0000 (12:33 +0000)]
Don't highlight when dragging
Joel Holdsworth [Sat, 17 Nov 2012 12:31:40 +0000 (12:31 +0000)]
Improved drag selection logic
Joel Holdsworth [Sat, 17 Nov 2012 09:08:41 +0000 (09:08 +0000)]
Added snap to grid drag behaviour
Joel Holdsworth [Sat, 17 Nov 2012 08:54:39 +0000 (08:54 +0000)]
Added initial support for dragging
Joel Holdsworth [Sat, 17 Nov 2012 08:13:31 +0000 (08:13 +0000)]
Added signal (multi) selection
Joel Holdsworth [Sat, 17 Nov 2012 08:08:40 +0000 (08:08 +0000)]
Use static signal offsets instead of offsets calculated on-the-fly
This will be needed for dragging
Joel Holdsworth [Sat, 17 Nov 2012 07:24:50 +0000 (07:24 +0000)]
Moved forward declaration of SignalData to correct namespace
Joel Holdsworth [Sat, 3 Nov 2012 09:18:16 +0000 (09:18 +0000)]
Moved Signal and LogicSignal into pv::view
Joel Holdsworth [Sat, 3 Nov 2012 08:46:09 +0000 (08:46 +0000)]
Added a label colour chooser dialog
Peter Stuge [Sun, 21 Oct 2012 23:12:52 +0000 (01:12 +0200)]
Add struct sr_context to the sr_init() and sr_exit() calls
libsigrok.git commit
b8072700c1bc7d13ba004fd897668b56cec4ac62 adds
struct sr_context to the public API, and changes sr_init() and sr_exit()
to take a struct sr_context ** and struct sr_context * parameter
respectively.
struct sr_context is opaque, and all sr_init() and sr_exit() calls must
be balanced.
Joel Holdsworth [Fri, 2 Nov 2012 00:11:21 +0000 (00:11 +0000)]
Change main() to have only one exit code flow, used also on errors
Joel Holdsworth [Thu, 1 Nov 2012 23:17:02 +0000 (23:17 +0000)]
Pixel aligned signal labels
Joel Holdsworth [Thu, 1 Nov 2012 23:08:45 +0000 (23:08 +0000)]
Initial code to render text inside cursor markers
Joel Holdsworth [Thu, 1 Nov 2012 23:06:24 +0000 (23:06 +0000)]
Moved LabelPadding into View
Joel Holdsworth [Thu, 1 Nov 2012 22:00:06 +0000 (22:00 +0000)]
Added cursor dragging