Soeren Apel [Wed, 4 Nov 2015 16:03:26 +0000 (17:03 +0100)]
Add "save selection range as..." to the export menu on the toolbar
Soeren Apel [Wed, 4 Nov 2015 16:02:47 +0000 (17:02 +0100)]
Make ExportMenu accept a vector of actions
Soeren Apel [Wed, 4 Nov 2015 15:41:34 +0000 (16:41 +0100)]
Refactoring: move samplerate algo from View to Session
Soeren Apel [Wed, 4 Nov 2015 15:33:07 +0000 (16:33 +0100)]
Introduce "save selection range as..." feature
Uwe Hermann [Tue, 3 Nov 2015 18:10:07 +0000 (19:10 +0100)]
CMakeLists.txt: Enable unit tests by default.
This will help to avoid missing some breakage scenarios.
Daniel Elstner [Mon, 2 Nov 2015 21:29:46 +0000 (22:29 +0100)]
Suppress warnings from glibmm about deprecated auto_ptr
This fixes bug #654.
Daniel Elstner [Mon, 2 Nov 2015 21:14:39 +0000 (22:14 +0100)]
build: Limit auto-versioning to git revision hash
When building from a git checkout and HEAD does not exactly match
a tag, append the shortened revision hash to the hardcoded version
string. Do not attempt to provide any information beyond that.
This brings the PulseView versioning in line with the other modules
in the sigrok stack.
Aurelien Jacobs [Sat, 24 Oct 2015 20:18:42 +0000 (22:18 +0200)]
avoid using deprecated std::autoptr
This fixes the following g++-5 warning:
pv/dialogs/about.hpp:51:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<QTextDocument> supportedDoc;
Uwe Hermann [Sat, 24 Oct 2015 16:54:18 +0000 (18:54 +0200)]
win32: Re-fix the Windows build (namespace pollution via windows.h).
This brings back / extends fixes for bug #517.
Uwe Hermann [Tue, 20 Oct 2015 22:33:46 +0000 (00:33 +0200)]
Minor update related to the libsigrok analog format changes.
This is only a temporary fix, and assumes only SR_DF_ANALOG packets with
float data ever arrive. Support for other types will be needed later.
Uwe Hermann [Sun, 18 Oct 2015 14:20:46 +0000 (16:20 +0200)]
test/CMakeLists.txt: Add missing files.
Joel Holdsworth [Sat, 3 Oct 2015 22:37:23 +0000 (16:37 -0600)]
Viewport: Anti-alias time items, but not row items
Joel Holdsworth [Sat, 3 Oct 2015 22:29:30 +0000 (16:29 -0600)]
View: Place non-grouped logic channels in a TraceGroup
Joel Holdsworth [Mon, 7 Sep 2015 00:35:34 +0000 (18:35 -0600)]
ViewWidget: Moved update() call into ViewItem
Joel Holdsworth [Wed, 14 Oct 2015 03:17:25 +0000 (21:17 -0600)]
AnalogSignal: Apply scale handle dragging
Joel Holdsworth [Wed, 14 Oct 2015 04:01:49 +0000 (22:01 -0600)]
LogicSignal: Apply scale handle dragging
Joel Holdsworth [Sun, 30 Aug 2015 15:52:14 +0000 (09:52 -0600)]
ScaleSignalHandle: Initial implementation
Joel Holdsworth [Mon, 7 Sep 2015 00:39:29 +0000 (18:39 -0600)]
ViewWidget: Added drag-handling support for non-TraceTreeItems
Joel Holdsworth [Sun, 30 Aug 2015 15:52:37 +0000 (09:52 -0600)]
Header: Added drag-handling support for non-TraceTreeItems
Joel Holdsworth [Mon, 7 Sep 2015 02:29:31 +0000 (20:29 -0600)]
ViewItem: Make hit_box_rect take ViewItemPaintParams
Joel Holdsworth [Sun, 6 Sep 2015 23:57:54 +0000 (17:57 -0600)]
LogicSignal: Replaced SignalMargin with half font-height
Joel Holdsworth [Sun, 6 Sep 2015 14:30:30 +0000 (08:30 -0600)]
Header: Hit-test items in reverse order
Joel Holdsworth [Tue, 1 Sep 2015 02:19:43 +0000 (20:19 -0600)]
ViewItem: Added a default label_rect implementation
Joel Holdsworth [Tue, 1 Sep 2015 02:13:08 +0000 (20:13 -0600)]
Signal: Added scale_handle_offset, scale_handle_dragged and scale_handle_released
Joel Holdsworth [Tue, 1 Sep 2015 01:52:33 +0000 (19:52 -0600)]
Viewport: Render all types of RowItem
Joel Holdsworth [Wed, 14 Oct 2015 03:28:14 +0000 (21:28 -0600)]
TraceTreeItem: Update when selection state changes
Joel Holdsworth [Wed, 14 Oct 2015 03:21:32 +0000 (21:21 -0600)]
ViewItem: Make select virtual
Joel Holdsworth [Sun, 4 Oct 2015 21:56:30 +0000 (15:56 -0600)]
ViewItem: Make drag_release virtual
Joel Holdsworth [Tue, 1 Sep 2015 01:51:00 +0000 (19:51 -0600)]
ViewItem: Make paint_label optional
Joel Holdsworth [Sun, 30 Aug 2015 15:02:28 +0000 (09:02 -0600)]
Signal: Derive from ViewItemOwner
Joel Holdsworth [Sun, 30 Aug 2015 15:31:17 +0000 (09:31 -0600)]
TraceTreeItemOwner: Removed non-const item_list accessor
Joel Holdsworth [Mon, 17 Aug 2015 01:14:47 +0000 (19:14 -0600)]
Added ViewItemOwner
Joel Holdsworth [Sun, 23 Aug 2015 00:39:05 +0000 (18:39 -0600)]
RowItemIterator: Removed usage of RowItem::owner()
Joel Holdsworth [Sat, 22 Aug 2015 16:01:49 +0000 (10:01 -0600)]
Session: Removed signals_mutex(), and made signals() return a copy not a reference
Joel Holdsworth [Sun, 30 Aug 2015 15:01:53 +0000 (09:01 -0600)]
LogicSignal: Call TriggerStage::begin with matches.begin()
Joel Holdsworth [Sun, 30 Aug 2015 14:42:41 +0000 (08:42 -0600)]
TraceTreeItem: Added valid owner assert to drag_by
Joel Holdsworth [Mon, 17 Aug 2015 00:20:57 +0000 (18:20 -0600)]
Use list_by_type instead of iterator
Joel Holdsworth [Mon, 17 Aug 2015 01:12:57 +0000 (19:12 -0600)]
Reduce include bloat by including boost/thread/{locks,shared_mutex}.hpp directly
Joel Holdsworth [Sat, 22 Aug 2015 21:54:00 +0000 (15:54 -0600)]
View: Moved in list_row_item_owners
Joel Holdsworth [Sun, 16 Aug 2015 16:09:47 +0000 (10:09 -0600)]
View: Use list_by_type to get TraceTreeItems
Joel Holdsworth [Sun, 16 Aug 2015 15:22:08 +0000 (09:22 -0600)]
Header: Use list_by_type in on_ungroup
Joel Holdsworth [Fri, 16 Oct 2015 03:07:38 +0000 (21:07 -0600)]
TraceTreeItemOwner: Make list_by_type return a vector instead of a set
Joel Holdsworth [Sun, 16 Aug 2015 15:44:31 +0000 (09:44 -0600)]
TraceTreeItemOwner: Moved list_by_type template definition into header
Joel Holdsworth [Sun, 16 Aug 2015 15:35:54 +0000 (09:35 -0600)]
RowItem: Moved hover_point_changed in
Joel Holdsworth [Mon, 27 Jul 2015 02:52:46 +0000 (20:52 -0600)]
ViewItem: Make a create_popup optional
Joel Holdsworth [Mon, 27 Jul 2015 01:24:11 +0000 (19:24 -0600)]
TraceTreeItem: Separated from RowItem
Joel Holdsworth [Tue, 1 Sep 2015 01:51:21 +0000 (19:51 -0600)]
ViewItemPaintParams: Added missing include
Joel Holdsworth [Sun, 4 Oct 2015 23:24:03 +0000 (17:24 -0600)]
AnalogSignal: Removed set_scale
Nothing uses it now
Joel Holdsworth [Mon, 27 Jul 2015 01:11:41 +0000 (19:11 -0600)]
ViewItemPaintParams: Fixed header guard
Joel Holdsworth [Sat, 4 Jul 2015 17:08:31 +0000 (18:08 +0100)]
RowItem: Corrected header guard
Daniel Elstner [Sat, 3 Oct 2015 15:51:00 +0000 (17:51 +0200)]
windows: Install data files into share subdirectory
This allows these files to be found on standard paths relative
to the location of the executable.
Marcus Comstedt [Wed, 30 Sep 2015 18:25:49 +0000 (20:25 +0200)]
android: Include firmwares in the APK
Marcus Comstedt [Wed, 30 Sep 2015 18:22:58 +0000 (20:22 +0200)]
android: Fix copylibs task to include the right libs
Since more and more libs are losing their versioned soname, the
heuristic of including libs with versioned sonames is an increasingly
poor one. Instead, simply blacklist the libs we do not want.
Marcus Comstedt [Wed, 30 Sep 2015 18:20:46 +0000 (20:20 +0200)]
android: Don't include qtaccessiblewidgets plugin
Since Qt 5.4.0, accessibility is no longer a plugin.
Daniel Elstner [Thu, 1 Oct 2015 12:59:03 +0000 (14:59 +0200)]
android: Check for firmware in standard locations, too
Daniel Elstner [Sat, 26 Sep 2015 23:14:11 +0000 (01:14 +0200)]
android: Read firmware resources from assets
Set up a resource reader to load firmware resources as assets
bundled with the APK.
Jonathan Dahan [Mon, 10 Aug 2015 18:37:34 +0000 (14:37 -0400)]
SAMPLERATE is a guint64
This fixes bug #621.
Jens Steinhauser [Fri, 4 Sep 2015 16:31:48 +0000 (18:31 +0200)]
Ruler: Don't use a function that is only available in recent boost versions
Jens Steinhauser [Fri, 4 Sep 2015 16:23:02 +0000 (18:23 +0200)]
Ruler: Prevent ticks from disappearing at high zoom levels
Daniel Elstner [Fri, 4 Sep 2015 13:24:59 +0000 (15:24 +0200)]
Build: Substitute build configuration into NSIS script
This enables out-of-source builds of the Windows installer,
and no longer hardcodes the MXE/mingw prefix.
Daniel Elstner [Fri, 4 Sep 2015 14:02:03 +0000 (16:02 +0200)]
Build: Fix build with Qt 4 moc
Jens Steinhauser [Thu, 3 Sep 2015 12:47:13 +0000 (14:47 +0200)]
ViewItem: Adjust the threshold between dark and light colors
Previously, the function returned 'Qt::black' for all used colors except
when black itself was passed in, making the text on brown, blue or violet
backgrounds very hard to read.
Jens Steinhauser [Thu, 3 Sep 2015 13:19:20 +0000 (15:19 +0200)]
Viewport: Don't draw the cursors and markers antialiased
After adding them or zooming around, the cursors and markers could
appear washed out.
Jens Steinhauser [Thu, 3 Sep 2015 12:42:40 +0000 (14:42 +0200)]
Ruler: Don't draw the tick marks antialiased
Next to the sharp font of the timestamp labels the washed out markers
didn't look that good.
Jens Steinhauser [Thu, 3 Sep 2015 11:50:53 +0000 (13:50 +0200)]
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.
Jens Steinhauser [Wed, 2 Sep 2015 11:37:56 +0000 (13:37 +0200)]
View: Do not emit superfluous signals in a loop
Jens Steinhauser [Wed, 2 Sep 2015 09:25:37 +0000 (11:25 +0200)]
View: Change the type of tick_period to pv::util::Timestamp
This makes the tick position/label calculation in the ruler more precise,
avoiding rounded values for zero which would yield to "+0" or "-0" labels.
Jens Steinhauser [Thu, 3 Sep 2015 13:26:17 +0000 (15:26 +0200)]
Ruler: Factor out the calculation of the tick spacing
This avoids useless recalculations of the tick spacings on every mouse
pointer move and makes the function easier to test.
Jens Steinhauser [Sun, 30 Aug 2015 12:16:11 +0000 (14:16 +0200)]
Ruler: Fix tick mark calculation
Prior to this change, due to floating point errors the loop that
calculates the tick mark positions could loop thousands of iterations
while zooming in at high time values, blocking the whole UI and leading
to distorted text in the end.
Jens Steinhauser [Sun, 30 Aug 2015 21:20:21 +0000 (23:20 +0200)]
Use typesafe enum classes in pv::util
Jens Steinhauser [Sat, 29 Aug 2015 14:40:13 +0000 (16:40 +0200)]
Add a spin box widget for timestamp values
Jens Steinhauser [Sun, 30 Aug 2015 21:11:31 +0000 (23:11 +0200)]
format_time(): Use the timestamp type in the calculation
Jens Steinhauser [Sat, 29 Aug 2015 14:57:37 +0000 (16:57 +0200)]
format_si_value(): Use the timestamp type in the calculation
Jens Steinhauser [Sun, 30 Aug 2015 21:00:34 +0000 (23:00 +0200)]
Use a type with a greater resolution to represent time values
Fixes #627.
Jens Steinhauser [Fri, 28 Aug 2015 15:34:29 +0000 (17:34 +0200)]
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.
Soeren Apel [Fri, 4 Sep 2015 01:34:08 +0000 (03:34 +0200)]
Fix #605 by closing current device when another is selected
As the device manager class holds a pointer to all devices
they will never be destroyed until PV exits. Devices are
opened with the first call to create() but only closed in
the destructor. Together, this results in devices never
being closed.
This patch fixes this by renaming create() to open()
and introducing a matching close() method that the
session class calls when a different device is to be
selected.
Soeren Apel [Fri, 28 Aug 2015 06:35:56 +0000 (08:35 +0200)]
Fix #592 completely by showing the actual error message
Before, the supplied infoMessage was ignored (unnamed parameter)
and instead the local variable infoMessage was used, which was
empty. For this reason, the cause of the error never showed.
Martin Ling [Tue, 25 Aug 2015 18:30:39 +0000 (19:30 +0100)]
Don't try to store a reference to a shared pointer.
Fixes #596.
Soeren Apel [Mon, 24 Aug 2015 19:25:04 +0000 (21:25 +0200)]
Ruler scale calculation optimization
Soeren Apel [Mon, 24 Aug 2015 19:23:32 +0000 (21:23 +0200)]
Fix wrong ruler scale after loading a file
Soeren Apel [Mon, 24 Aug 2015 16:21:15 +0000 (18:21 +0200)]
Fix #595 by correctly handling UINT64_MAX and INT_MAX boundaries
By using an int64_t to hold UINT64_MAX, it was made to overflow
to -1. This lead to range_min=0 and range_max=-1, resulting in
a disabled spin button.
Soeren Apel [Mon, 24 Aug 2015 14:56:05 +0000 (16:56 +0200)]
Fix #597 by disabling device-related toolbar buttons as necessary
Soeren Apel [Mon, 24 Aug 2015 10:32:11 +0000 (12:32 +0200)]
Fix #510 by disabling removal of the last decoder from the popup
Soeren Apel [Sun, 23 Aug 2015 12:21:33 +0000 (14:21 +0200)]
Provide short-term fix for #627 by limiting zoom range to 100 ps
Soeren Apel [Sun, 23 Aug 2015 12:20:59 +0000 (14:20 +0200)]
Util: Fix malformed time formatting
Uwe Hermann [Fri, 21 Aug 2015 13:23:58 +0000 (15:23 +0200)]
Restore the default of "pulseview foo.sr" opening the file.
This used to work in e.g. the 0.2.0 release and is much more convenient
than having to supply "-i" for every file. It also allows for (easier, at
least) association of the .sr extension with PulseView on most OSes.
Uwe Hermann [Thu, 20 Aug 2015 17:51:15 +0000 (19:51 +0200)]
Pass unitsize to srd_session_send() directly.
Follow an API change in libsigrokdecode where srd_inst_channel_set_all()
no longer gets passed a unitsize, but rather srd_session_send() gets it.
Soeren Apel [Wed, 19 Aug 2015 19:34:11 +0000 (21:34 +0200)]
Fix #626 by stopping acquisition gracefully
Soeren Apel [Sun, 16 Aug 2015 12:25:55 +0000 (14:25 +0200)]
Fix #622 by using the actual sample count per segment
Currently, each segment is as big as the sample limit
(in the bug report: 1G samples), wasting huge amounts
of memory.
Soeren Apel [Sat, 15 Aug 2015 21:11:52 +0000 (23:11 +0200)]
View: Allow ScaleUnits[0] to actually be used
Without this patch, no major tick on the ruler will ever
begin with a '1' but only with '2' or '5'. This behavior
can also be observed with current sigrok git head, so it
is independent of my util/view/ruler patch set.
Soeren Apel [Sat, 15 Aug 2015 21:05:18 +0000 (23:05 +0200)]
View: Use max time to calculate label length, not offset_
Using offset_ gives false results, in particular when
offset_ happens to be 0. With this fix, realistic values
are used for the label length calculation.
Soeren Apel [Wed, 12 Aug 2015 15:34:09 +0000 (17:34 +0200)]
Util: Fix issue where t=0 randomly shows up as +0 or -0
Soeren Apel [Wed, 12 Aug 2015 15:32:57 +0000 (17:32 +0200)]
Util: Refactor format_time()
Soeren Apel [Mon, 10 Aug 2015 07:26:43 +0000 (09:26 +0200)]
View/Ruler: Calculate and use tick precision
Soeren Apel [Mon, 10 Aug 2015 07:11:43 +0000 (09:11 +0200)]
Util: Introduce DD:HH:MM:SS.mmm nnn ppp fff format
This also fixes bug #371.
Soeren Apel [Mon, 10 Aug 2015 06:21:53 +0000 (08:21 +0200)]
View: Separate data changed/capture state changed events
Soeren Apel [Sun, 9 Aug 2015 18:41:03 +0000 (20:41 +0200)]
View: Determine time unit and use it in other classes
Soeren Apel [Sun, 9 Aug 2015 18:32:41 +0000 (20:32 +0200)]
Introduce time units
Soeren Apel [Sat, 15 Aug 2015 21:14:17 +0000 (23:14 +0200)]
Fix #615 by opening the output stream only if needed
Uwe Hermann [Sun, 9 Aug 2015 15:25:49 +0000 (17:25 +0200)]
nsis: Add start menu entries for Zadig.
This fixes bug #542.