sigrok:sigrok.git
6 years agogtk: Added sigrok-logo icon to main window and about dialog.
Gareth McMullin [Fri, 18 Nov 2011 23:44:07 +0000 (12:44 +1300)]
gtk: Added sigrok-logo icon to main window and about dialog.

6 years agogtk: Add icon to Windows output binary and remove console window.
Gareth McMullin [Fri, 18 Nov 2011 22:39:13 +0000 (11:39 +1300)]
gtk: Add icon to Windows output binary and remove console window.

6 years agogtk: Pass probe configuration to hw before starting session.
Gareth McMullin [Thu, 17 Nov 2011 09:21:28 +0000 (22:21 +1300)]
gtk: Pass probe configuration to hw before starting session.

6 years agoConsistently use __func__ instead of __FUNCTION__.
Uwe Hermann [Thu, 17 Nov 2011 22:00:33 +0000 (23:00 +0100)]
Consistently use __func__ instead of __FUNCTION__.

The __func__ form is standardized and more portable.

6 years agolibsigrok: Use sr_err() et al instead of printf.
Uwe Hermann [Thu, 17 Nov 2011 21:54:17 +0000 (22:54 +0100)]
libsigrok: Use sr_err() et al instead of printf.

6 years agolibsigrokdecode.pc: Add glib + Python.
Uwe Hermann [Thu, 17 Nov 2011 21:42:30 +0000 (22:42 +0100)]
libsigrokdecode.pc: Add glib + Python.

6 years agoREADME/HACKING: Add/update GUI build info.
Uwe Hermann [Thu, 17 Nov 2011 21:45:21 +0000 (22:45 +0100)]
README/HACKING: Add/update GUI build info.

6 years agomingw: qt: Use --static for pkg-config calls.
Uwe Hermann [Thu, 17 Nov 2011 17:17:15 +0000 (18:17 +0100)]
mingw: qt: Use --static for pkg-config calls.

This is needed on Windows/MinGW, probably shouldn't be done on other OSes.

6 years agoNSIS: Various fixes for the Windows installer.
Uwe Hermann [Thu, 17 Nov 2011 17:11:16 +0000 (18:11 +0100)]
NSIS: Various fixes for the Windows installer.

 - Don't install .la files, they're probably not needed.

 - Install the "real" sigrok-gtk.exe, not the libtool wrapper script.

 - Update libzip and Qt paths and file names.

 - Add libgcc_s_dw2-1.dll, zlib1.dll and libftdi.dll.

 - Add all required libs for the GTK+ GUI.

 - Upon uninstall, also delete any *.pyc file which were auto-generated.

6 years agoconfigure.ac: Use pkg-config for libftdi on MinGW.
Uwe Hermann [Thu, 17 Nov 2011 17:08:32 +0000 (18:08 +0100)]
configure.ac: Use pkg-config for libftdi on MinGW.

Don't special-case MinGW here. If the used libftdi binary doesn't come
with a pkg-config .pc file, we'll rather provide one than do ugly
work-arounds.

6 years agoqt: Drop unneeded lib checks.
Uwe Hermann [Thu, 17 Nov 2011 17:06:36 +0000 (18:06 +0100)]
qt: Drop unneeded lib checks.

With a properly working libsigrok.pc and libsigrokdecode.pc those checks
are neither necessary nor recommended.

6 years agoFixed a crash when loading a second session file.
Gareth McMullin [Thu, 17 Nov 2011 08:18:46 +0000 (21:18 +1300)]
Fixed a crash when loading a second session file.

6 years agogtk: Added function to open a session file.
Gareth McMullin [Wed, 16 Nov 2011 09:42:36 +0000 (22:42 +1300)]
gtk: Added function to open a session file.

6 years agogtk: Skip line drawing where adjacent samples are equal.
Gareth McMullin [Wed, 16 Nov 2011 09:41:35 +0000 (22:41 +1300)]
gtk: Skip line drawing where adjacent samples are equal.

6 years agogtk: Show new device menu items after rescan.
Gareth McMullin [Wed, 16 Nov 2011 03:24:47 +0000 (16:24 +1300)]
gtk: Show new device menu items after rescan.

6 years agoconfigure.ac: Use pkg-config on MinGW, too.
Uwe Hermann [Wed, 16 Nov 2011 00:41:33 +0000 (01:41 +0100)]
configure.ac: Use pkg-config on MinGW, too.

No need for a MinGW special case, with the proper PKG_CONFIG_PATH
setting pkg-config works on Mindows/MinGW just fine.

6 years agoconfigure.ac: Add PKG_PROG_PKG_CONFIG call (>= 0.22).
Uwe Hermann [Tue, 15 Nov 2011 22:16:26 +0000 (23:16 +0100)]
configure.ac: Add PKG_PROG_PKG_CONFIG call (>= 0.22).

6 years agosigrok.h: Remove SIGROK_*VERSION #defines again.
Uwe Hermann [Tue, 15 Nov 2011 21:46:57 +0000 (22:46 +0100)]
sigrok.h: Remove SIGROK_*VERSION #defines again.

These version numbers represent the sigrok version (i.e., the version
of the tarball, such as "sigrok-0.2.0.tar.gz"), but _not_ the libsigrok
(libtool) library/API/ABI versions. Thus, they should not be in
libsigrok's include file (sigrok.h).

6 years agoDon't bind sigrok version to GUI version.
Uwe Hermann [Tue, 15 Nov 2011 20:51:56 +0000 (21:51 +0100)]
Don't bind sigrok version to GUI version.

This reverts an earlier change which made sigrok-gui always have the
same version as sigrok itself. That's not a good thing though, the GUI(s)
are independent and should have their own versioning.

6 years agosigrok.nsi.in: Hook up the GTK+ GUI.
Uwe Hermann [Tue, 15 Nov 2011 20:39:11 +0000 (21:39 +0100)]
sigrok.nsi.in: Hook up the GTK+ GUI.

6 years agosigrok.nsis.in: Name the shortcut "sigrok Qt GUI".
Uwe Hermann [Tue, 15 Nov 2011 20:35:27 +0000 (21:35 +0100)]
sigrok.nsis.in: Name the shortcut "sigrok Qt GUI".

6 years agosigrok.nsi.in: Update to recent Qt file locations.
Uwe Hermann [Tue, 15 Nov 2011 20:08:33 +0000 (21:08 +0100)]
sigrok.nsi.in: Update to recent Qt file locations.

6 years agoFix some compiler warnings.
Uwe Hermann [Tue, 15 Nov 2011 20:05:40 +0000 (21:05 +0100)]
Fix some compiler warnings.

6 years agoBuild GTK frontend with main autoconfigury.
Gareth McMullin [Tue, 15 Nov 2011 08:41:34 +0000 (21:41 +1300)]
Build GTK frontend with main autoconfigury.

6 years agoAdded a scrollbar for panning signals.
Gareth McMullin [Mon, 14 Nov 2011 08:47:07 +0000 (21:47 +1300)]
Added a scrollbar for panning signals.

6 years agoCheck zoom when window is resized.
Gareth McMullin [Mon, 14 Nov 2011 07:45:00 +0000 (20:45 +1300)]
Check zoom when window is resized.

6 years agoDraw slope on rising and falling edges.
Gareth McMullin [Mon, 14 Nov 2011 07:44:38 +0000 (20:44 +1300)]
Draw slope on rising and falling edges.

6 years agoGtkCellRendererSignal: Destory cairo after rendering.
Gareth McMullin [Mon, 14 Nov 2011 05:14:24 +0000 (18:14 +1300)]
GtkCellRendererSignal: Destory cairo after rendering.

6 years agoAdded missing devselect.c
Gareth McMullin [Mon, 14 Nov 2011 05:05:50 +0000 (18:05 +1300)]
Added missing devselect.c

6 years agoAdded zoom-best-fit function. More whitespace fixes.
Gareth McMullin [Sun, 13 Nov 2011 05:36:54 +0000 (18:36 +1300)]
Added zoom-best-fit function. More whitespace fixes.

6 years agoCleaned up whitespace.
Gareth McMullin [Sun, 13 Nov 2011 05:19:57 +0000 (18:19 +1300)]
Cleaned up whitespace.

6 years agoCleaned up all warnings and moved put prototypes in sigrok-gtk.h.
Gareth McMullin [Sun, 13 Nov 2011 05:18:16 +0000 (18:18 +1300)]
Cleaned up all warnings and moved put prototypes in sigrok-gtk.h.

6 years agoFixed some whitespace issues.
Gareth McMullin [Sat, 12 Nov 2011 22:31:20 +0000 (11:31 +1300)]
Fixed some whitespace issues.

6 years agoAdded device selection to the menu.
Gareth McMullin [Sat, 12 Nov 2011 10:31:47 +0000 (23:31 +1300)]
Added device selection to the menu.

There's still a bug in that the menu new menu items don't appear after
the a rescan.

6 years agoMade Signal view reorderable.
Gareth McMullin [Wed, 9 Nov 2011 08:54:41 +0000 (21:54 +1300)]
Made Signal view reorderable.

6 years agoMoved toggle log to view menu.
Gareth McMullin [Wed, 9 Nov 2011 07:37:57 +0000 (20:37 +1300)]
Moved toggle log to view menu.

Minor other fixes.

6 years agoAdded about dialog and wiki link on help menu.
Gareth McMullin [Wed, 9 Nov 2011 07:17:07 +0000 (20:17 +1300)]
Added about dialog and wiki link on help menu.

6 years agoAdded a menu bar.
Gareth McMullin [Wed, 9 Nov 2011 05:21:05 +0000 (18:21 +1300)]
Added a menu bar.

6 years agoWork towards a GtkAction based toolbar.
Gareth McMullin [Tue, 8 Nov 2011 10:39:30 +0000 (23:39 +1300)]
Work towards a GtkAction based toolbar.

6 years agoDevice properties shows option description in tooltip.
Gareth McMullin [Tue, 8 Nov 2011 08:39:34 +0000 (21:39 +1300)]
Device properties shows option description in tooltip.

6 years agoDon't allow zooming or panning signals off the screen.
Gareth McMullin [Tue, 8 Nov 2011 08:27:05 +0000 (21:27 +1300)]
Don't allow zooming or panning signals off the screen.

Automatically zoom to fit small sample count.

6 years agoPrevent signal renderer from drawing over other cells.
Gareth McMullin [Mon, 7 Nov 2011 04:40:15 +0000 (17:40 +1300)]
Prevent signal renderer from drawing over other cells.

Fixed a bug where the first sample wasn't shown.

6 years agoFixed array bounds check against sample count.
Gareth McMullin [Sun, 6 Nov 2011 01:55:19 +0000 (14:55 +1300)]
Fixed array bounds check against sample count.

6 years agoDevice now selected by default.
Gareth McMullin [Sun, 6 Nov 2011 01:48:15 +0000 (14:48 +1300)]
Device now selected by default.

Skip demo if a real device is present.
Preserve selection over rescan.

6 years agoAdded zoom in/out buttons to the toolbar.
Gareth McMullin [Sun, 6 Nov 2011 00:41:47 +0000 (13:41 +1300)]
Added zoom in/out buttons to the toolbar.

6 years agoAdded sigview_zoom(). Moved siglist to sigview.c.
Gareth McMullin [Sun, 6 Nov 2011 00:15:50 +0000 (13:15 +1300)]
Added sigview_zoom(). Moved siglist to sigview.c.

6 years agoSplit signal view code into separate file.
Gareth McMullin [Sun, 6 Nov 2011 00:00:42 +0000 (13:00 +1300)]
Split signal view code into separate file.

6 years agoAdded autoconf stuff and README.
Gareth McMullin [Sat, 5 Nov 2011 22:10:49 +0000 (11:10 +1300)]
Added autoconf stuff and README.

6 years agoOnly respond to mouse pan/zoom events over the signal column.
Gareth McMullin [Sat, 5 Nov 2011 22:07:38 +0000 (11:07 +1300)]
Only respond to mouse pan/zoom events over the signal column.

6 years agoFixed a crash if the signals were panned off the screen.
Gareth McMullin [Sat, 5 Nov 2011 22:06:54 +0000 (11:06 +1300)]
Fixed a crash if the signals were panned off the screen.

6 years agoZoom in/out preserved position of displayed waveforms.
Gareth McMullin [Sat, 5 Nov 2011 03:13:40 +0000 (16:13 +1300)]
Zoom in/out preserved position of displayed waveforms.

6 years agoAdded panning function using right mouse button and drag.
Gareth McMullin [Sat, 5 Nov 2011 01:53:25 +0000 (14:53 +1300)]
Added panning function using right mouse button and drag.

6 years agoAdded scale/zoom adjustment with mouse wheel.
Gareth McMullin [Sat, 5 Nov 2011 00:51:21 +0000 (13:51 +1300)]
Added scale/zoom adjustment with mouse wheel.

6 years agoRespect cell renderer padding. Fixed bug with > 8bit samples.
Gareth McMullin [Sat, 5 Nov 2011 00:10:04 +0000 (13:10 +1300)]
Respect cell renderer padding. Fixed bug with > 8bit samples.

6 years agoHide log view by default. Added toolbutton to show.
Gareth McMullin [Fri, 4 Nov 2011 23:58:42 +0000 (12:58 +1300)]
Hide log view by default. Added toolbutton to show.

6 years agoCleaned up signal render function.
Gareth McMullin [Fri, 4 Nov 2011 23:41:19 +0000 (12:41 +1300)]
Cleaned up signal render function.

6 years agoUse new GtkCellRendererSignal to plot signals.
Gareth McMullin [Fri, 4 Nov 2011 23:16:03 +0000 (12:16 +1300)]
Use new GtkCellRendererSignal to plot signals.

6 years agoAdded shell of GtkCellRendererSignal.
Gareth McMullin [Fri, 4 Nov 2011 10:28:20 +0000 (23:28 +1300)]
Added shell of GtkCellRendererSignal.

6 years agoAdded display of capture logic in a GtkCellRendererText.
Gareth McMullin [Fri, 4 Nov 2011 08:10:43 +0000 (21:10 +1300)]
Added display of capture logic in a GtkCellRendererText.

6 years agoAdded capture function. Session datafeed is just logged.
Gareth McMullin [Fri, 4 Nov 2011 05:36:55 +0000 (18:36 +1300)]
Added capture function. Session datafeed is just logged.

6 years agoLog window scrolls with output.
Gareth McMullin [Fri, 4 Nov 2011 05:13:38 +0000 (18:13 +1300)]
Log window scrolls with output.

Newlines added to log messages.
Fixed some compiler warnings.

6 years agoCreate session and add device when selected.
Gareth McMullin [Thu, 3 Nov 2011 07:31:29 +0000 (20:31 +1300)]
Create session and add device when selected.

6 years agoWrap text in log display.
Gareth McMullin [Thu, 3 Nov 2011 07:30:26 +0000 (20:30 +1300)]
Wrap text in log display.

6 years agoAdded 'Configure Probes' dialog.
Gareth McMullin [Thu, 3 Nov 2011 07:08:54 +0000 (20:08 +1300)]
Added 'Configure Probes' dialog.

6 years agoProperties dialog new sets device configuration.
Gareth McMullin [Thu, 3 Nov 2011 06:12:42 +0000 (19:12 +1300)]
Properties dialog new sets device configuration.

6 years agoAdded editable properties to properties dialog.
Gareth McMullin [Wed, 2 Nov 2011 09:57:25 +0000 (22:57 +1300)]
Added editable properties to properties dialog.

6 years agoSplit toolbar function into their own file.
Gareth McMullin [Wed, 2 Nov 2011 09:15:47 +0000 (22:15 +1300)]
Split toolbar function into their own file.

6 years agoWindow with ComboBox to select device. Log system implemented.
Gareth McMullin [Wed, 2 Nov 2011 08:34:36 +0000 (21:34 +1300)]
Window with ComboBox to select device. Log system implemented.

6 years agoconfigure.ac: Add some more checks.
Uwe Hermann [Tue, 15 Nov 2011 08:17:57 +0000 (09:17 +0100)]
configure.ac: Add some more checks.

6 years agolibsigrok.pc: Add Required.private field entries.
Uwe Hermann [Tue, 15 Nov 2011 00:11:27 +0000 (01:11 +0100)]
libsigrok.pc: Add Required.private field entries.

The "Required.private:" field in pkg-config .pc files is used for
declaring that we need the listed libs (pkg-config packages) for
static linking, but not for dynamic linking.
I.e., the "Required.private:" field should be used for libs which we
use internally in libsigrok, but which we do not "expose" ourselves.

For now all libs are listed as "Required.private:" instead of
"Required:", but this may not be entirely correct and needs to be
checked carefully at some later date.

6 years agoUse PKG_CHECK_MODULES to check for gthread-2.0.
Uwe Hermann [Mon, 14 Nov 2011 23:56:51 +0000 (00:56 +0100)]
Use PKG_CHECK_MODULES to check for gthread-2.0.

No reason to use AC_CHECK_LIB to do this manually, rather use
PKG_CHECK_MODULES which relies on pkg-config, as we do for all the other
libs as well.

6 years agoGUI: Make horizontal scrollbar adjust to the number of samples and scale.
Kristoffer Sjöberg [Sun, 6 Nov 2011 23:58:52 +0000 (00:58 +0100)]
GUI: Make horizontal scrollbar adjust to the number of samples and scale.

6 years agoGUI: Use nested layouts to let controls adjust to the available space.
Kristoffer Sjöberg [Sun, 6 Nov 2011 16:42:58 +0000 (17:42 +0100)]
GUI: Use nested layouts to let controls adjust to the available space.

6 years agoUse one scrollbar widget for all channels in the main form.
Kristoffer Sjöberg [Sun, 6 Nov 2011 15:10:28 +0000 (16:10 +0100)]
Use one scrollbar widget for all channels in the main form.

6 years agoRemove IO source if callback returns FALSE.
Gareth McMullin [Sat, 5 Nov 2011 22:44:25 +0000 (11:44 +1300)]
Remove IO source if callback returns FALSE.

6 years agoGUI: Add and use ARRAY_SIZE.
Uwe Hermann [Sat, 5 Nov 2011 22:11:49 +0000 (23:11 +0100)]
GUI: Add and use ARRAY_SIZE.

6 years agoGUI: Small coding-stlye fixes.
Uwe Hermann [Sat, 5 Nov 2011 22:10:09 +0000 (23:10 +0100)]
GUI: Small coding-stlye fixes.

6 years agoRefactor zoomFactor to scaleFactor and enable pixel-by-pixel horizontal scrolling.
Kristoffer Sjöberg [Sat, 5 Nov 2011 00:48:31 +0000 (01:48 +0100)]
Refactor zoomFactor to scaleFactor and enable pixel-by-pixel horizontal scrolling.

6 years agoPredefined channel colors and mark the left and top border with that color
Kristoffer Sjöberg [Sat, 5 Nov 2011 00:33:53 +0000 (01:33 +0100)]
Predefined channel colors and mark the left and top border with that color

6 years agoClean up duplicated code for setting the default channel name.
Kristoffer Sjöberg [Sat, 5 Nov 2011 00:29:53 +0000 (01:29 +0100)]
Clean up duplicated code for setting the default channel name.

6 years agoGUI: Always automatically use same version as sigrok-cli.
Uwe Hermann [Fri, 29 Apr 2011 18:07:42 +0000 (20:07 +0200)]
GUI: Always automatically use same version as sigrok-cli.

6 years agosigrok.h: Add SIGROK_{MAJOR,MINOR,MICRO,}_VERSION #defines.
Uwe Hermann [Fri, 29 Apr 2011 17:27:32 +0000 (19:27 +0200)]
sigrok.h: Add SIGROK_{MAJOR,MINOR,MICRO,}_VERSION #defines.

6 years agoconfigure.ac: Add major/minor/micro version number variables.
Uwe Hermann [Fri, 29 Apr 2011 17:06:26 +0000 (19:06 +0200)]
configure.ac: Add major/minor/micro version number variables.

Always construct the sigrok version number out of those three numbers.

6 years agoOLS: Calculate actual sample rate used.
Gareth McMullin [Sun, 30 Oct 2011 01:25:24 +0000 (14:25 +1300)]
OLS: Calculate actual sample rate used.

6 years agoAdd missing full-stops.
Uwe Hermann [Mon, 31 Oct 2011 00:06:57 +0000 (01:06 +0100)]
Add missing full-stops.

6 years agoFix issue that caused major ticks not to be placed on top of a minor tick if width...
Kristoffer Sjöberg [Sun, 30 Oct 2011 23:57:14 +0000 (00:57 +0100)]
Fix issue that caused major ticks not to be placed on top of a minor tick if width of form wasn't evenly dividable by 100.

6 years agoCompilation fixes for sigrok-gui.
Kristoffer Sjöberg [Sun, 30 Oct 2011 23:52:41 +0000 (00:52 +0100)]
Compilation fixes for sigrok-gui.

6 years agools: Minor whitespace and coding style fixes.
Uwe Hermann [Sun, 30 Oct 2011 00:10:32 +0000 (02:10 +0200)]
ols: Minor whitespace and coding style fixes.

6 years agoRun-Length Encoding support for the OLS.
Gareth McMullin [Sat, 29 Oct 2011 02:57:17 +0000 (15:57 +1300)]
Run-Length Encoding support for the OLS.

6 years agoPrevent reading past end of OLS hardware buffer.
Gareth McMullin [Sat, 29 Oct 2011 02:21:16 +0000 (15:21 +1300)]
Prevent reading past end of OLS hardware buffer.

7 years agoMacports and Xcode build fixes
Jerry [Mon, 20 Jun 2011 22:04:21 +0000 (00:04 +0200)]
Macports and Xcode build fixes

7 years agoMac OS X build fixes
Jerry [Mon, 20 Jun 2011 21:43:44 +0000 (23:43 +0200)]
Mac OS X build fixes

7 years agosaleae-logic: fix timing on packets when triggering is used
Bert Vermeulen [Mon, 20 Jun 2011 09:43:34 +0000 (11:43 +0200)]
saleae-logic: fix timing on packets when triggering is used

7 years agobetter session bus logging
Bert Vermeulen [Mon, 20 Jun 2011 09:42:43 +0000 (11:42 +0200)]
better session bus logging

7 years agosummarize driver build list after configure run
Bert Vermeulen [Sun, 19 Jun 2011 12:30:55 +0000 (14:30 +0200)]
summarize driver build list after configure run

7 years agouse new datafeed packet format
Bert Vermeulen [Sun, 19 Jun 2011 12:28:50 +0000 (14:28 +0200)]
use new datafeed packet format

7 years agonew datafeed packet format
Bert Vermeulen [Sun, 19 Jun 2011 00:35:23 +0000 (02:35 +0200)]
new datafeed packet format

struct sr_datafeed_packet now has timeoffset and duration fields,
expressed in picoseconds (1/10^12 seconds)
length and unitsize are now in a separate struct sr_datafeed_logic

7 years agofix parameter type
Bert Vermeulen [Sat, 18 Jun 2011 22:55:36 +0000 (00:55 +0200)]
fix parameter type

7 years agowhitespace
Bert Vermeulen [Sun, 12 Jun 2011 16:07:15 +0000 (18:07 +0200)]
whitespace

7 years agosupport for multiple FX2 devices
Bert Vermeulen [Sun, 12 Jun 2011 16:04:19 +0000 (18:04 +0200)]
support for multiple FX2 devices