Soeren Apel [Fri, 12 Dec 2014 16:32:06 +0000 (17:32 +0100)]
DecodeTrace: Correct row calculation/tooltip position for row 0
Uwe Hermann [Wed, 10 Dec 2014 16:53:15 +0000 (17:53 +0100)]
test/CMakeLists.txt: Add missing #includes.
This fixes the build with enabled unit tests.
Soeren Apel [Sun, 7 Dec 2014 16:29:02 +0000 (17:29 +0100)]
DecodeTrace: Remove hide_hover_annotation() as it's only used once
Joel Holdsworth [Tue, 9 Dec 2014 00:13:50 +0000 (00:13 +0000)]
MarginWidget: Moved in dragging_, mouse_point_, and mouse_down_point_
Joel Holdsworth [Tue, 9 Dec 2014 00:32:51 +0000 (00:32 +0000)]
CursorHeader: Paint by the labels by the time item list
Joel Holdsworth [Mon, 8 Dec 2014 23:47:02 +0000 (23:47 +0000)]
View: Added CursorPair to time_items list
This solves bug #514
Joel Holdsworth [Mon, 8 Dec 2014 23:45:05 +0000 (23:45 +0000)]
TimeItem: Made paint_label a mandatory field
Joel Holdsworth [Mon, 8 Dec 2014 23:26:03 +0000 (23:26 +0000)]
CursorPair: Draw highlight when selected
Joel Holdsworth [Mon, 8 Dec 2014 23:25:26 +0000 (23:25 +0000)]
CursorHeader: Accept TimeItems not providing a Popup
Joel Holdsworth [Mon, 8 Dec 2014 22:48:10 +0000 (22:48 +0000)]
CursorHeader: Handle all TimeItems instead of TimeMarkers
This fixes the issue where items were always dragged to the x-coordinate of
the mouse. This patch makes the drag relative to the grab point.
Joel Holdsworth [Mon, 8 Dec 2014 22:46:37 +0000 (22:46 +0000)]
TimeItem: Added mandatory get_x virtual method
Joel Holdsworth [Mon, 8 Dec 2014 22:36:54 +0000 (22:36 +0000)]
TimeItem: Added mandatory set_time virtual method
Joel Holdsworth [Sun, 7 Dec 2014 11:02:54 +0000 (11:02 +0000)]
SelectableItem: Moved in label_rect
Joel Holdsworth [Sun, 7 Dec 2014 10:59:52 +0000 (10:59 +0000)]
TimeMarker: Renamed get_label_rect, and made it take a const QRectF&
Joel Holdsworth [Sun, 7 Dec 2014 10:34:40 +0000 (10:34 +0000)]
RowItem: Pass rect into label_rect
Joel Holdsworth [Sun, 7 Dec 2014 00:38:07 +0000 (00:38 +0000)]
View: Store CursorPair in a shared_ptr
Joel Holdsworth [Sun, 7 Dec 2014 00:00:53 +0000 (00:00 +0000)]
CursorPair: Derived from TimeItem
Joel Holdsworth [Sat, 6 Dec 2014 23:14:51 +0000 (23:14 +0000)]
View: Added time_markers
Joel Holdsworth [Sat, 6 Dec 2014 23:40:07 +0000 (23:40 +0000)]
TimeItem: Added new class - a base of TimeMarker, derived from SelectableItem
Joel Holdsworth [Sun, 30 Nov 2014 16:36:31 +0000 (16:36 +0000)]
TimeMarker: Clamp to minimum size
Joel Holdsworth [Sat, 6 Dec 2014 23:11:29 +0000 (23:11 +0000)]
SelectableItem: Moved in enabled(), and added to TriggerMarkers
Joel Holdsworth [Sun, 30 Nov 2014 15:31:10 +0000 (15:31 +0000)]
TimeMarker: Added get_text
Joel Holdsworth [Sun, 30 Nov 2014 13:48:37 +0000 (13:48 +0000)]
TimeMarker: Added default get_label_rect implementation
Joel Holdsworth [Sun, 30 Nov 2014 13:04:12 +0000 (13:04 +0000)]
Cursor: Moved paint_label into TimeMarker
Joel Holdsworth [Sun, 30 Nov 2014 12:57:31 +0000 (12:57 +0000)]
Trace: Moved get_text_colour into SelectableItem
Joel Holdsworth [Sun, 30 Nov 2014 12:52:38 +0000 (12:52 +0000)]
DecodeTrace: Removed incorrect use of get_text_colour
Joel Holdsworth [Sun, 30 Nov 2014 10:46:23 +0000 (10:46 +0000)]
Snapshot: Renamed to Segment
Joel Holdsworth [Sun, 30 Nov 2014 10:29:54 +0000 (10:29 +0000)]
SignalData: Moved samplerate into Snapshot
Joel Holdsworth [Sat, 29 Nov 2014 18:48:06 +0000 (18:48 +0000)]
SignalData: Moved start_time into Snapshot
Joel Holdsworth [Sat, 29 Nov 2014 18:40:46 +0000 (18:40 +0000)]
SignalData: Added snapshots accessor method
Joel Holdsworth [Sat, 29 Nov 2014 18:39:39 +0000 (18:39 +0000)]
DecoderStack: Emancipate from SignalData
Joel Holdsworth [Sat, 29 Nov 2014 18:23:57 +0000 (18:23 +0000)]
Renamed pv::data::Analog::get_snapshots and Logic::get_snapshots
Joel Holdsworth [Mon, 24 Nov 2014 23:45:17 +0000 (23:45 +0000)]
RowItemParams: Added font and text_height
Joel Holdsworth [Mon, 24 Nov 2014 19:28:34 +0000 (19:28 +0000)]
RowItemPaintParams: Bundled scale and offset
Joel Holdsworth [Mon, 24 Nov 2014 19:17:27 +0000 (19:17 +0000)]
Trace: Make paint_axis take RowItemPaintParams
Joel Holdsworth [Sun, 23 Nov 2014 19:53:59 +0000 (19:53 +0000)]
RowItem: Bundled painting parameters into RowItemPaintParams
Uwe Hermann [Sun, 7 Dec 2014 16:50:16 +0000 (17:50 +0100)]
mingw: Drop libusb0.dll, always use libusb-1.0.
Jens Steinhauser [Wed, 26 Nov 2014 17:32:38 +0000 (18:32 +0100)]
Signal: Save and load signal names as UTF-8 strings.
This fixes bug #498.
Uwe Hermann [Thu, 4 Dec 2014 13:54:24 +0000 (14:54 +0100)]
CMakeLists.txt: mingw: Simplify by using Boost_THREADAPI.
Aurelien Jacobs [Thu, 4 Dec 2014 00:14:09 +0000 (01:14 +0100)]
connect: Fix filtering of supported devices.
Now that driver options are split from device options, it is not
possible to check the SAMPLERATE option on a driver as it is a device
only option. The SAMPLERATE test still works on some drivers that
didn't have their options split yet, but this won't hold true for long.
The proper way is to check the driver class, which is the only option
you can expect at the driver level for now.
Uwe Hermann [Wed, 3 Dec 2014 23:08:09 +0000 (00:08 +0100)]
test: Add a dummy unit test to fix 'make test'.
This should be dropped again when the real unit tests
are working again.
Soeren Apel [Wed, 3 Dec 2014 09:39:41 +0000 (10:39 +0100)]
View: Make horizontal arrow-key scrolling useful
Currently, the horizontal scroll bar scrolls by a very small amount
of time when the arrow keys on the keyboard are used. This is because
View::horizontalScrollBar's single step size is never set.
In order to make the arrow keys become useful, this patch sets this
step size equal to the major tick width of the ruler. This results
in scrolling by a fair amount of time without losing track of the
context and also preserving the positions of the major ticks on
the ruler when scrolling.
Joel Holdsworth [Sun, 30 Nov 2014 12:33:18 +0000 (12:33 +0000)]
Ruler: Moved calculate_tick_spacing into View
Joel Holdsworth [Wed, 3 Dec 2014 22:23:36 +0000 (22:23 +0000)]
Session: Renamed files to match class name
Joel Holdsworth [Mon, 24 Nov 2014 19:18:13 +0000 (19:18 +0000)]
.gitignore: Added .ninja_deps
Joel Holdsworth [Sun, 30 Nov 2014 14:14:10 +0000 (14:14 +0000)]
Removed cotire
cotire has proven itself to be counter-productive. It rebuilds the pre-compiled
header after any header in pulseview is modified causes a complete rebuild of
all of PulseView. Also, the pre-compiled header contains a union of all the
includes of all source files, which masks errors where source files are missing
needed includes.
Uwe Hermann [Sat, 29 Nov 2014 16:45:10 +0000 (17:45 +0100)]
test/CMakeLists.txt: Fix file list, fix -DENABLE_TESTS=y build.
The build is now fixed for -DENABLE_TESTS=y, but re-enabling the
actual unit tests (and potentially other issues) will need more work.
Uwe Hermann [Sat, 29 Nov 2014 16:42:10 +0000 (17:42 +0100)]
Build system: Fix issue with unit tests, simplify code.
Drop some unneeded lines from test/CMakeLists.txt. Most of the variables
are inherited from the main CMakeLists.txt file. This reduces the amount
of duplicated code and the likelyhood that the two CMakeLists.txt files
get out of sync.
This fixes the following issues when building the unit tests
(related to mixing Qt4 and Qt5 apparently):
[ 69%] Building CXX object CMakeFiles/pulseview.dir/signalhandler.cpp.o
[...]/test/__/pv/moc_sigsession.cxx:13:2:
error: #error "This file was generated using the moc from 4.8.6. It"
#error "This file was generated using the moc from 4.8.6. It"
^
[...]/test/__/pv/moc_sigsession.cxx:14:2:
error: #error "cannot be used with the include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
^
[...]/test/__/pv/moc_sigsession.cxx:15:2:
error: #error "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
^
[...]/test/__/pv/moc_sigsession.cxx:64:7:
error: ‘QMetaObjectExtraData’ does not name a type
const QMetaObjectExtraData pv::SigSession::staticMetaObjectExtraData = {
^
[...]/test/__/pv/moc_sigsession.cxx:70:37:
error: ‘staticMetaObjectExtraData’ was not declared in this scope
qt_meta_data_pv__SigSession, &staticMetaObjectExtraData }
^
[...]/test/__/pv/moc_sigsession.cxx:
In member function ‘virtual const QMetaObject* pv::SigSession::metaObject() const’:
[...]/test/__/pv/moc_sigsession.cxx:79:71:
error: conditional expression between distinct pointer types
‘QDynamicMetaObjectData*’ and ‘const QMetaObject*’ lacks a cast
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
^
[...]/test/__/pv/moc_sigsession.cxx:80:1:
warning: control reaches end of non-void function [-Wreturn-type]
}
^
test/CMakeFiles/pulseview-test.dir/build.make:1362: recipe for target
'test/CMakeFiles/pulseview-test.dir/__/pv/moc_sigsession.cxx.o' failed
make[2]: ***
[test/CMakeFiles/pulseview-test.dir/__/pv/moc_sigsession.cxx.o] Error 1
CMakeFiles/Makefile2:110: recipe for target
'test/CMakeFiles/pulseview-test.dir/all' failed
make[1]: *** [test/CMakeFiles/pulseview-test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Uwe Hermann [Sat, 29 Nov 2014 16:28:14 +0000 (17:28 +0100)]
decoderstack.cpp: Fix incorrect #inludes.
Uwe Hermann [Sat, 29 Nov 2014 16:27:50 +0000 (17:27 +0100)]
test: Disable all unit tests for now (all of them are broken).
Uwe Hermann [Sat, 29 Nov 2014 15:05:07 +0000 (16:05 +0100)]
INSTALL: Update and fix build requirements.
Uwe Hermann [Sat, 29 Nov 2014 15:04:57 +0000 (16:04 +0100)]
README: Update status.
Uwe Hermann [Sat, 29 Nov 2014 15:04:38 +0000 (16:04 +0100)]
CMakeLists.txt: Fix whitespace, cosmetics.
Uwe Hermann [Sat, 29 Nov 2014 12:17:04 +0000 (13:17 +0100)]
Example channel names: Consistently use all-caps.
Rename Tx->TX and Rx->RX to be consistent with the other names.
Uwe Hermann [Sat, 29 Nov 2014 12:15:57 +0000 (13:15 +0100)]
Minor whitespace fixes.
Uwe Hermann [Wed, 26 Nov 2014 17:05:57 +0000 (18:05 +0100)]
Fix saving of channel names in .sr files.
This closes bug #490.
Joel Holdsworth [Sun, 23 Nov 2014 19:53:59 +0000 (19:53 +0000)]
LogicSignal: Added trigger markers
Joel Holdsworth [Sun, 23 Nov 2014 19:24:53 +0000 (19:24 +0000)]
LogicSignal: Added an icon cache
Joel Holdsworth [Sun, 23 Nov 2014 18:31:09 +0000 (18:31 +0000)]
icons: Added trigger markers
Joel Holdsworth [Sun, 23 Nov 2014 18:10:09 +0000 (18:10 +0000)]
LogicSignal: Refactored get_trigger_types
Joel Holdsworth [Sun, 23 Nov 2014 17:59:00 +0000 (17:59 +0000)]
LogicSignal: Renamed action_match and match_action
Joel Holdsworth [Sun, 23 Nov 2014 17:35:46 +0000 (17:35 +0000)]
LogicSignal: Removed redundant calls to match_action
Joel Holdsworth [Sat, 22 Nov 2014 17:13:45 +0000 (17:13 +0000)]
StoreSession: Fixed completion mechanism
This fixes bug #451
Joel Holdsworth [Sat, 22 Nov 2014 16:25:19 +0000 (16:25 +0000)]
MainWindow: Handle device selection failure
This fixes bug #455
Joel Holdsworth [Sat, 22 Nov 2014 16:02:34 +0000 (16:02 +0000)]
Session: Renamed pv::SigSession to Session
Joel Holdsworth [Sat, 22 Nov 2014 16:01:47 +0000 (16:01 +0000)]
SamplingBar: Added reference to MainWindow for run_stop
Joel Holdsworth [Sat, 22 Nov 2014 15:03:16 +0000 (15:03 +0000)]
DecodeTrace: Don't attempt to hover if the trace hasn't been painted yet
Joel Holdsworth [Sat, 22 Nov 2014 15:02:47 +0000 (15:02 +0000)]
TimeMarker: Fixed display of negative value in popup
This fixes bug #460
Joel Holdsworth [Sat, 22 Nov 2014 14:11:03 +0000 (14:11 +0000)]
Check LIMIT_SAMPLES and SAMPLERATE are available to read before reading them
This fixes bug #487
Joel Holdsworth [Sat, 22 Nov 2014 12:40:25 +0000 (12:40 +0000)]
SamplingBar: Reduced indentation in update_sample_count_selector
Joel Holdsworth [Sat, 22 Nov 2014 10:15:56 +0000 (10:15 +0000)]
MainWindow: Include device/file name in window title
This fixes bug #244
Joel Holdsworth [Sat, 22 Nov 2014 09:16:01 +0000 (09:16 +0000)]
Upgraded cotire to 1.6.6
Joel Holdsworth [Sat, 22 Nov 2014 08:53:27 +0000 (08:53 +0000)]
Renamed C++ headers to .hpp
Joel Holdsworth [Sat, 22 Nov 2014 08:46:22 +0000 (08:46 +0000)]
Make member variable underscores a suffix instead of a prefix
This change is made because tokens prefixed with underscore are reserved.
Uwe Hermann [Fri, 21 Nov 2014 15:52:57 +0000 (16:52 +0100)]
Fix build on MinGW (boost thread related).
Now that PulseView uses boost thread again, bring back the required
settings to make it all work on MinGW (and with static builds).
Joel Holdsworth [Sun, 9 Nov 2014 10:21:33 +0000 (10:21 +0000)]
Header: Added group/ungroup key-combos
Joel Holdsworth [Wed, 5 Nov 2014 21:31:56 +0000 (21:31 +0000)]
MarginWidget: Removed unused geometry_updated signal
Joel Holdsworth [Sun, 9 Nov 2014 10:26:27 +0000 (10:26 +0000)]
Header: Added on_ungroup method
Joel Holdsworth [Sun, 2 Nov 2014 16:07:23 +0000 (16:07 +0000)]
Header: Added group command
Joel Holdsworth [Sun, 9 Nov 2014 10:21:20 +0000 (10:21 +0000)]
TraceGroup: Added ungroup method
Joel Holdsworth [Sun, 2 Nov 2014 16:14:34 +0000 (16:14 +0000)]
View: Create trace groups from channel groups
Joel Holdsworth [Sun, 2 Nov 2014 17:43:02 +0000 (17:43 +0000)]
TraceGroup: Implemented stacking
Joel Holdsworth [Sun, 16 Nov 2014 19:47:13 +0000 (19:47 +0000)]
RowItemOwner: Added depth() method
Joel Holdsworth [Wed, 5 Nov 2014 22:03:46 +0000 (22:03 +0000)]
RowItemOwner: Replaced parent notification scheme
Joel Holdsworth [Sat, 15 Nov 2014 10:04:52 +0000 (10:04 +0000)]
RowItem: Split appart visual and layout v offsets
Joel Holdsworth [Sun, 2 Nov 2014 16:13:42 +0000 (16:13 +0000)]
TraceGroup: Implemented paint_label
Joel Holdsworth [Sat, 1 Nov 2014 10:42:48 +0000 (10:42 +0000)]
TraceGroup: Added ungroup item
Joel Holdsworth [Sun, 2 Nov 2014 18:49:16 +0000 (18:49 +0000)]
View: Removed normalize_layout
Joel Holdsworth [Sun, 2 Nov 2014 18:44:28 +0000 (18:44 +0000)]
RowItem: Replaced fixed signal heights with extents
Joel Holdsworth [Sun, 2 Nov 2014 19:05:33 +0000 (19:05 +0000)]
RowItem: Derrive from std::enable_shared_from_this
Joel Holdsworth [Sun, 2 Nov 2014 16:29:29 +0000 (16:29 +0000)]
Header: Keep a shared_ptr of the clicked item
Joel Holdsworth [Wed, 5 Nov 2014 23:04:19 +0000 (23:04 +0000)]
Header: Moved drag functionality into SelectableItem
Joel Holdsworth [Wed, 5 Nov 2014 22:50:42 +0000 (22:50 +0000)]
SelectableItem: Fix documentation
Joel Holdsworth [Sun, 2 Nov 2014 17:04:25 +0000 (17:04 +0000)]
Header: Fixed dragging glitches
Joel Holdsworth [Sat, 1 Nov 2014 10:56:42 +0000 (10:56 +0000)]
Header: Only allow dragging if all traces share a common ancestor
Joel Holdsworth [Thu, 30 Oct 2014 22:33:37 +0000 (22:33 +0000)]
Header: Remove snap-to-grid behaviour
Joel Holdsworth [Mon, 27 Oct 2014 19:00:35 +0000 (19:00 +0000)]
View: Replaced signals_changed handler with signals_updated call
Joel Holdsworth [Fri, 10 Oct 2014 20:27:41 +0000 (21:27 +0100)]
RowItem: Combined appearance change signals into appearance_changed()
Joel Holdsworth [Tue, 26 Aug 2014 08:17:21 +0000 (09:17 +0100)]
TraceGroup: Implemented label_rect
Joel Holdsworth [Wed, 8 Oct 2014 20:27:02 +0000 (21:27 +0100)]
Header, Viewport: Don't manually invoke on_signals_changed on construction