pulseview.git
7 years agoMutex protected SigSession::_signals
Joel Holdsworth [Sun, 2 Dec 2012 15:21:03 +0000 (15:21 +0000)]
Mutex protected SigSession::_signals

7 years agoAdded SigSession::signals_changed signals to indicate when signals are created
Joel Holdsworth [Sun, 2 Dec 2012 15:07:12 +0000 (15:07 +0000)]
Added SigSession::signals_changed signals to indicate when signals are created

7 years agoInitial threaded capture
Joel Holdsworth [Sun, 2 Dec 2012 14:32:48 +0000 (14:32 +0000)]
Initial threaded capture

7 years agoAdd struct sr_context * to sr_driver_init() calls
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().

7 years agoremoved std namespace to build with llvm
Rene Hopf [Tue, 20 Nov 2012 12:41:14 +0000 (13:41 +0100)]
removed std namespace to build with llvm

7 years agoAdded pv::view::View::normalize_layout to normalize out-of-bounds drags
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

7 years agoMoved signal margin out of signal rendering into initial layout
Joel Holdsworth [Sun, 18 Nov 2012 13:24:34 +0000 (13:24 +0000)]
Moved signal margin out of signal rendering into initial layout

7 years agoImproved propagation of drag event so that the scroll bars can be updated
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

7 years agoDon't highlight when dragging
Joel Holdsworth [Sat, 17 Nov 2012 12:33:42 +0000 (12:33 +0000)]
Don't highlight when dragging

7 years agoImproved drag selection logic
Joel Holdsworth [Sat, 17 Nov 2012 12:31:40 +0000 (12:31 +0000)]
Improved drag selection logic

7 years agoAdded snap to grid drag behaviour
Joel Holdsworth [Sat, 17 Nov 2012 09:08:41 +0000 (09:08 +0000)]
Added snap to grid drag behaviour

7 years agoAdded initial support for dragging
Joel Holdsworth [Sat, 17 Nov 2012 08:54:39 +0000 (08:54 +0000)]
Added initial support for dragging

7 years agoAdded signal (multi) selection
Joel Holdsworth [Sat, 17 Nov 2012 08:13:31 +0000 (08:13 +0000)]
Added signal (multi) selection

7 years agoUse static signal offsets instead of offsets calculated on-the-fly
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

7 years agoMoved forward declaration of SignalData to correct namespace
Joel Holdsworth [Sat, 17 Nov 2012 07:24:50 +0000 (07:24 +0000)]
Moved forward declaration of SignalData to correct namespace

7 years agoMoved Signal and LogicSignal into pv::view
Joel Holdsworth [Sat, 3 Nov 2012 09:18:16 +0000 (09:18 +0000)]
Moved Signal and LogicSignal into pv::view

7 years agoAdded a label colour chooser dialog
Joel Holdsworth [Sat, 3 Nov 2012 08:46:09 +0000 (08:46 +0000)]
Added a label colour chooser dialog

7 years agoAdd struct sr_context to the sr_init() and sr_exit() calls
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.

7 years agoChange main() to have only one exit code flow, used also on errors
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

7 years agoPixel aligned signal labels
Joel Holdsworth [Thu, 1 Nov 2012 23:17:02 +0000 (23:17 +0000)]
Pixel aligned signal labels

7 years agoInitial code to render text inside cursor markers
Joel Holdsworth [Thu, 1 Nov 2012 23:08:45 +0000 (23:08 +0000)]
Initial code to render text inside cursor markers

7 years agoMoved LabelPadding into View
Joel Holdsworth [Thu, 1 Nov 2012 23:06:24 +0000 (23:06 +0000)]
Moved LabelPadding into View

7 years agoAdded cursor dragging
Joel Holdsworth [Thu, 1 Nov 2012 22:00:06 +0000 (22:00 +0000)]
Added cursor dragging

7 years agoMade TimeMarker and Cursor QObjects
Joel Holdsworth [Thu, 1 Nov 2012 22:16:11 +0000 (22:16 +0000)]
Made TimeMarker and Cursor QObjects

7 years agoAdded cursors show/hide menu action
Joel Holdsworth [Sat, 27 Oct 2012 15:25:08 +0000 (16:25 +0100)]
Added cursors show/hide menu action

7 years agoAdded cursors
Joel Holdsworth [Sun, 28 Oct 2012 18:00:50 +0000 (18:00 +0000)]
Added cursors

7 years agoDocumented scale, offset, set_scale_offset, _scale and _offset in pv::view::View
Joel Holdsworth [Sun, 28 Oct 2012 17:33:21 +0000 (17:33 +0000)]
Documented scale, offset, set_scale_offset, _scale and _offset in pv::view::View

7 years agoAdded Cursor class
Joel Holdsworth [Sun, 28 Oct 2012 16:47:09 +0000 (16:47 +0000)]
Added Cursor class

7 years agoAdded TimeMarker base class
Joel Holdsworth [Sun, 28 Oct 2012 16:22:37 +0000 (16:22 +0000)]
Added TimeMarker base class

7 years agoAdded header time hover arrow
Joel Holdsworth [Sun, 28 Oct 2012 15:56:06 +0000 (15:56 +0000)]
Added header time hover arrow

7 years agoAdded hover point to pv::view::View
Joel Holdsworth [Sun, 28 Oct 2012 15:53:29 +0000 (15:53 +0000)]
Added hover point to pv::view::View

7 years agoRender ruler and signals with sub-pixel accuracy
Joel Holdsworth [Wed, 24 Oct 2012 20:22:58 +0000 (21:22 +0100)]
Render ruler and signals with sub-pixel accuracy

7 years agoMoved unit test build commands into test/CMakeLists.txt
Joel Holdsworth [Sat, 20 Oct 2012 18:01:58 +0000 (19:01 +0100)]
Moved unit test build commands into test/CMakeLists.txt

7 years agoFix #include guards.
Uwe Hermann [Sun, 21 Oct 2012 14:03:08 +0000 (16:03 +0200)]
Fix #include guards.

 - Add missing #include guards.

 - Fix incorrect #endif comments for some #include guards.

 - Use consistent naming for them, as per HACKING.

7 years agoAdd a HACKING file.
Uwe Hermann [Tue, 16 Oct 2012 13:18:01 +0000 (15:18 +0200)]
Add a HACKING file.

7 years agoAdded a context menu for set name
Joel Holdsworth [Sat, 20 Oct 2012 10:10:54 +0000 (11:10 +0100)]
Added a context menu for set name

7 years agoCache signal label text size at draw time for later use
Joel Holdsworth [Wed, 17 Oct 2012 20:11:41 +0000 (21:11 +0100)]
Cache signal label text size at draw time for later use

7 years agoFixed timeline scale
Joel Holdsworth [Wed, 17 Oct 2012 19:40:44 +0000 (20:40 +0100)]
Fixed timeline scale

7 years agoAdded mouse-over behaviour to signal labels
Joel Holdsworth [Wed, 17 Oct 2012 19:31:21 +0000 (20:31 +0100)]
Added mouse-over behaviour to signal labels

7 years agoMoved Signal label layout to get_label_rect
Joel Holdsworth [Sun, 14 Oct 2012 14:46:43 +0000 (15:46 +0100)]
Moved Signal label layout to get_label_rect

7 years agoEnable -Werror -Wall
Joel Holdsworth [Sat, 13 Oct 2012 21:29:20 +0000 (22:29 +0100)]
Enable -Werror -Wall

7 years agoRemoved uneeded statements in LogicDataSnapshot test
Joel Holdsworth [Sat, 13 Oct 2012 21:29:07 +0000 (22:29 +0100)]
Removed uneeded statements  in LogicDataSnapshot test

7 years agoCorrected more signed/unsigned inconsistencies in LogicDataSnapshot test
Joel Holdsworth [Sat, 13 Oct 2012 21:27:53 +0000 (22:27 +0100)]
Corrected more signed/unsigned inconsistencies in LogicDataSnapshot test

7 years agoCorrected signed/unsigned inconsistencies in Ruler::paintEvent
Joel Holdsworth [Sat, 13 Oct 2012 21:20:01 +0000 (22:20 +0100)]
Corrected signed/unsigned inconsistencies in Ruler::paintEvent

7 years agoRemoved unused return value from LogicSignal::paint_caps
Joel Holdsworth [Sat, 13 Oct 2012 21:18:29 +0000 (22:18 +0100)]
Removed unused return value from LogicSignal::paint_caps

7 years agoCorrected intializer order in LogicSignal
Joel Holdsworth [Sat, 13 Oct 2012 21:17:37 +0000 (22:17 +0100)]
Corrected intializer order in LogicSignal

7 years agoRemoved uneeded statements from LogicDataSnapshot
Joel Holdsworth [Sat, 13 Oct 2012 21:14:36 +0000 (22:14 +0100)]
Removed uneeded statements from LogicDataSnapshot

7 years agoCorrected signed/unsigned inconsistencies in LogicDataSnapshot
Joel Holdsworth [Sat, 13 Oct 2012 21:14:06 +0000 (22:14 +0100)]
Corrected signed/unsigned inconsistencies in LogicDataSnapshot

7 years agoOnly check for libboost-test if tests are enabled.
Uwe Hermann [Sat, 13 Oct 2012 13:55:32 +0000 (15:55 +0200)]
Only check for libboost-test if tests are enabled.

7 years agoAdd initial manpage.
Uwe Hermann [Fri, 12 Oct 2012 20:47:45 +0000 (22:47 +0200)]
Add initial manpage.

7 years agoAdd icons/sigrok-logo-notext.ico.
Uwe Hermann [Sat, 13 Oct 2012 13:12:10 +0000 (15:12 +0200)]
Add icons/sigrok-logo-notext.ico.

This is (will be) needed on Windows (and for the Windows installer).

7 years agoCosmetics.
Uwe Hermann [Sat, 13 Oct 2012 13:06:50 +0000 (15:06 +0200)]
Cosmetics.

7 years agoDo not pass -DBOOST_TEST_DYN_LINK to pulseview
Alexandru Gagniuc [Sat, 13 Oct 2012 00:11:16 +0000 (19:11 -0500)]
Do not pass -DBOOST_TEST_DYN_LINK to pulseview

-DBOOST_TEST_DYN_LINK is meant to be passed only to pulseview-test,
not to pulseview. When test were enabled, this flag was defined
globally, and as a result, also passed to pulseview.

Create a CMakeLists.txt for test, and add test as a subdirectory
when tests are enabled. This way, -DBOOST_TEST_DYN_LINK is only
defined for our test app.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
7 years agoAdded config.h to .gitignore
Joel Holdsworth [Sat, 13 Oct 2012 00:18:40 +0000 (01:18 +0100)]
Added config.h to .gitignore

7 years agoAdded --help option
Joel Holdsworth [Sat, 13 Oct 2012 00:15:47 +0000 (01:15 +0100)]
Added --help option

7 years agoUse ${PROJECT_NAME} instead of pulseview in CMakeLists.txt
Joel Holdsworth [Sat, 13 Oct 2012 00:04:52 +0000 (01:04 +0100)]
Use ${PROJECT_NAME} instead of pulseview in CMakeLists.txt

7 years agoAdded --version option
Joel Holdsworth [Fri, 12 Oct 2012 23:59:37 +0000 (00:59 +0100)]
Added --version option

7 years agoMade extdef.h a global include
Joel Holdsworth [Fri, 12 Oct 2012 23:36:12 +0000 (00:36 +0100)]
Made extdef.h a global include

7 years agoUse C++ style comments in main.cpp
Joel Holdsworth [Fri, 12 Oct 2012 23:13:44 +0000 (00:13 +0100)]
Use C++ style comments in main.cpp

7 years agoGenerate a config.h file for versioning
Alexandru Gagniuc [Fri, 12 Oct 2012 20:38:06 +0000 (15:38 -0500)]
Generate a config.h file for versioning

Versioning was already handled in CMakeLists.txt, but it was handled
in a non-standard and unclear manner. We used
    set(VERSION
for starters. While this is valid CMake syntax, VERSION is also a
reserved word in cmake, depending on the context. We were
communicating the version information by a compile-time define, again,
not a recommended practice.

Change versioning to the more standard way of
    set(*VERSION_MAJOR
    set(*VERSION_MINOR
    set(*VERSION_MICRO
    set(*VERSION_STRING

Instead of defining the version at compile time, generate a config.h
file with the version information.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
7 years agoUnify the if(WIN32) defines
Alexandru Gagniuc [Fri, 12 Oct 2012 22:56:25 +0000 (23:56 +0100)]
Unify the if(WIN32) defines

The if(WIN32)/else(WIN32)/endif(WIN32) is an archaic cmake syntax.
Remove all the if(WIN32) clauses, and use an option to specify whether
we want to link to the static versions of libsigrok*. That's basically
what the WIN32 clauses were doing anyway. This makes the "what is
going on" more readeable.

On WIN32, automatically set this option to link to the static libraries.

7 years agoOffer unit tests with a cmake option
Joel Holdsworth [Fri, 12 Oct 2012 22:11:41 +0000 (23:11 +0100)]
Offer unit tests with a cmake option

7 years agoAdded section headers to CMakeLists.txt
Alexandru Gagniuc [Fri, 12 Oct 2012 22:51:14 +0000 (23:51 +0100)]
Added section headers to CMakeLists.txt

7 years agoIndented if statements in CMakeLists.txt
Joel Holdsworth [Fri, 12 Oct 2012 22:43:52 +0000 (23:43 +0100)]
Indented if statements in CMakeLists.txt

7 years agoMoved install rule out of test section in CMakeLists.txt
Joel Holdsworth [Fri, 12 Oct 2012 22:42:49 +0000 (23:42 +0100)]
Moved install rule out of test section in CMakeLists.txt

7 years agoMoved all classes into the pv namespace
Joel Holdsworth [Fri, 12 Oct 2012 21:41:01 +0000 (22:41 +0100)]
Moved all classes into the pv namespace

7 years agoAdd initial NSIS file for building a win installer.
Uwe Hermann [Fri, 12 Oct 2012 20:08:06 +0000 (22:08 +0200)]
Add initial NSIS file for building a win installer.

7 years agoSmall consistency fix in a header.
Uwe Hermann [Fri, 12 Oct 2012 20:32:39 +0000 (22:32 +0200)]
Small consistency fix in a header.

7 years agoCorrected project name in header comments
Joel Holdsworth [Fri, 12 Oct 2012 20:20:44 +0000 (21:20 +0100)]
Corrected project name in header comments

7 years agoAdded a copyright header to CMakeLists.txt
Joel Holdsworth [Fri, 12 Oct 2012 20:02:47 +0000 (21:02 +0100)]
Added a copyright header to CMakeLists.txt

7 years agoMade unit tests optional
Joel Holdsworth [Fri, 12 Oct 2012 19:53:47 +0000 (20:53 +0100)]
Made unit tests optional

7 years agoAdded install rule
Joel Holdsworth [Thu, 11 Oct 2012 21:10:10 +0000 (22:10 +0100)]
Added install rule

7 years agoAdd missing include.
Uwe Hermann [Thu, 11 Oct 2012 21:03:04 +0000 (23:03 +0200)]
Add missing include.

This breaks the build on Windows/MinGW otherwise, since stdlib.h is
needed for free().

7 years agoSet explicit BOOST_ROOT on Windows/MinGW.
Uwe Hermann [Thu, 11 Oct 2012 14:55:20 +0000 (16:55 +0200)]
Set explicit BOOST_ROOT on Windows/MinGW.

7 years agoInitial build fixes for Windows/MinGW.
Uwe Hermann [Thu, 11 Oct 2012 14:50:46 +0000 (16:50 +0200)]
Initial build fixes for Windows/MinGW.

All pkg-config --cflags and --libs invocations need an additional --static
on Windows/MinGW. As cmake runs pkg-config both, with and without the
--static option, and stores the results with --static in *_STATIC_*
variables, we simply use those variables instead of the usual ones.

7 years agoAdd COPYING file (PulseView is GPL, version 2 or later).
Uwe Hermann [Thu, 11 Oct 2012 20:59:40 +0000 (22:59 +0200)]
Add COPYING file (PulseView is GPL, version 2 or later).

7 years agoFixed ruler scale units
Joel Holdsworth [Thu, 11 Oct 2012 20:38:24 +0000 (21:38 +0100)]
Fixed ruler scale units

7 years agoFixed zero samplerate issue
Joel Holdsworth [Thu, 11 Oct 2012 20:19:08 +0000 (21:19 +0100)]
Fixed zero samplerate issue

7 years agoBump libsigrok dependency to >= 0.2.0.
Uwe Hermann [Wed, 10 Oct 2012 21:44:23 +0000 (23:44 +0200)]
Bump libsigrok dependency to >= 0.2.0.

Older versions (e.g. 0.1.1) will not work with the current PulseView code.

7 years agoAdd README file.
Uwe Hermann [Wed, 10 Oct 2012 21:43:00 +0000 (23:43 +0200)]
Add README file.

7 years agoFix application name in the About window.
Uwe Hermann [Sun, 7 Oct 2012 19:15:15 +0000 (21:15 +0200)]
Fix application name in the About window.

7 years agoPartial fix to scroll overflow issues
Joel Holdsworth [Sat, 6 Oct 2012 13:34:48 +0000 (14:34 +0100)]
Partial fix to scroll overflow issues

7 years agoOversample edges to prevent gaps
Joel Holdsworth [Sat, 6 Oct 2012 12:50:16 +0000 (13:50 +0100)]
Oversample edges to prevent gaps

7 years agoAdded tests for low scale
Joel Holdsworth [Sat, 6 Oct 2012 11:15:48 +0000 (12:15 +0100)]
Added tests for low scale

7 years agoAdded LisMUsbHid test
Joel Holdsworth [Sun, 30 Sep 2012 18:15:54 +0000 (19:15 +0100)]
Added LisMUsbHid test

7 years agoMade longpulses a 64-bit test
Joel Holdsworth [Sat, 29 Sep 2012 09:11:18 +0000 (10:11 +0100)]
Made longpulses a 64-bit test

7 years agoAdded missing delete to longpulses test
Joel Holdsworth [Sat, 29 Sep 2012 09:10:57 +0000 (10:10 +0100)]
Added missing delete to longpulses test

7 years agoAdded missing delete to pulses test
Joel Holdsworth [Sat, 29 Sep 2012 09:10:38 +0000 (10:10 +0100)]
Added missing delete to pulses test

7 years agoFixes for data sizes greater than zero
Joel Holdsworth [Sat, 29 Sep 2012 09:09:50 +0000 (10:09 +0100)]
Fixes for data sizes greater than zero

7 years agoFixes and optimizations to get_subsampled edges
Joel Holdsworth [Sun, 30 Sep 2012 19:31:19 +0000 (20:31 +0100)]
Fixes and optimizations to get_subsampled edges

7 years agoAdded LongPulses test
Joel Holdsworth [Sat, 29 Sep 2012 08:14:29 +0000 (09:14 +0100)]
Added LongPulses test

7 years agoAdded a sanity check to LogicSignal::paint
Joel Holdsworth [Sun, 16 Sep 2012 16:25:54 +0000 (17:25 +0100)]
Added a sanity check to LogicSignal::paint

7 years agoAdded Pulses test case for LogicDataSnapshot
Joel Holdsworth [Sun, 16 Sep 2012 12:15:47 +0000 (13:15 +0100)]
Added Pulses test case for LogicDataSnapshot

7 years agoFixes to LargeData test checks
Joel Holdsworth [Sun, 16 Sep 2012 12:15:14 +0000 (13:15 +0100)]
Fixes to LargeData test checks

7 years agoAdded LogicDataSnapshot::get_subsample helper function
Joel Holdsworth [Sun, 16 Sep 2012 09:34:31 +0000 (10:34 +0100)]
Added LogicDataSnapshot::get_subsample helper function

7 years agoAdded tests, and corrected behaviour of LogicDataSnapshot::pow2_ceil
Joel Holdsworth [Sat, 15 Sep 2012 12:31:14 +0000 (13:31 +0100)]
Added tests, and corrected behaviour of LogicDataSnapshot::pow2_ceil

7 years agoViewport no longer needs to be a friend
Joel Holdsworth [Sun, 9 Sep 2012 11:22:46 +0000 (12:22 +0100)]
Viewport no longer needs to be a friend

7 years agoMade pv::view::View::zoom public
Joel Holdsworth [Sun, 9 Sep 2012 11:21:28 +0000 (12:21 +0100)]
Made pv::view::View::zoom public

7 years agoRemoved OpenGL from pv::view::Viewport
Joel Holdsworth [Sun, 9 Sep 2012 10:13:50 +0000 (11:13 +0100)]
Removed OpenGL from pv::view::Viewport

7 years agoInitial work moving ruler into the pv::view::Ruler widget
Joel Holdsworth [Sun, 9 Sep 2012 09:44:43 +0000 (10:44 +0100)]
Initial work moving ruler into the pv::view::Ruler widget