Revision 7cea46f7
| b/gr-qtgui/src/lib/Makefile.am | ||
|---|---|---|
| 25 | 25 |
EXTRA_DIST += spectrumdisplayform.ui |
| 26 | 26 |
|
| 27 | 27 |
AM_CPPFLAGS = -I. $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \ |
| 28 |
$(QT_INCLUDES) $(WITH_INCLUDES) |
|
| 28 |
$(QT_INCLUDES) $(BOOST_CPPFLAGS) $(WITH_INCLUDES)
|
|
| 29 | 29 |
|
| 30 | 30 |
# Only include these files in the build if qtgui passes configure checks |
| 31 | 31 |
# This is mostly to help make distcheck pass |
| ... | ... | |
| 82 | 82 |
$(QT_UIC_EXEC) $< -o $@ |
| 83 | 83 |
|
| 84 | 84 |
# magic flags |
| 85 |
libgnuradio_qtgui_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS) |
|
| 85 |
libgnuradio_qtgui_la_LDFLAGS = $(NO_UNDEFINED) $(BOOST_LDFLAGS) $(LTVERSIONFLAGS)
|
|
| 86 | 86 |
|
| 87 | 87 |
libgnuradio_qtgui_la_LIBADD = \ |
| 88 | 88 |
$(GNURADIO_CORE_LA) \ |
| 89 |
$(BOOST_THREAD_LIB) \ |
|
| 90 |
$(BOOST_DATE_TIME_LIB) \ |
|
| 89 | 91 |
-lstdc++ \ |
| 90 | 92 |
$(QT_LIBS) |
| 91 | 93 |
|
| b/gr-qtgui/src/lib/WaterfallDisplayPlot.cc | ||
|---|---|---|
| 12 | 12 |
|
| 13 | 13 |
#include <qapplication.h> |
| 14 | 14 |
|
| 15 |
#include <boost/date_time/posix_time/posix_time.hpp> |
|
| 16 |
|
|
| 15 | 17 |
class FreqOffsetAndPrecisionClass |
| 16 | 18 |
{
|
| 17 | 19 |
public: |
| ... | ... | |
| 138 | 140 |
QwtText returnLabel("");
|
| 139 | 141 |
|
| 140 | 142 |
timespec lineTime = timespec_add(GetZeroTime(), (-value) * GetSecondsPerLine()); |
| 141 |
struct tm timeTm; |
|
| 142 |
gmtime_r(&lineTime.tv_sec, &timeTm); |
|
| 143 |
tm timeTm(boost::posix_time::to_tm(boost::posix_time::from_time_t(lineTime.tv_sec))); |
|
| 143 | 144 |
returnLabel = (QString("").sprintf("%04d/%02d/%02d\n%02d:%02d:%02d.%03ld",
|
| 144 | 145 |
timeTm.tm_year+1900, timeTm.tm_mon+1, |
| 145 | 146 |
timeTm.tm_mday, timeTm.tm_hour, timeTm.tm_min, |
| ... | ... | |
| 192 | 193 |
QString yLabel("");
|
| 193 | 194 |
|
| 194 | 195 |
timespec lineTime = timespec_add(GetZeroTime(), (-p.y()) * GetSecondsPerLine()); |
| 195 |
struct tm timeTm; |
|
| 196 |
gmtime_r(&lineTime.tv_sec, &timeTm); |
|
| 196 |
tm timeTm(boost::posix_time::to_tm(boost::posix_time::from_time_t(lineTime.tv_sec))); |
|
| 197 | 197 |
yLabel = (QString("").sprintf("%04d/%02d/%02d %02d:%02d:%02d.%03ld",
|
| 198 | 198 |
timeTm.tm_year+1900, timeTm.tm_mon+1, |
| 199 | 199 |
timeTm.tm_mday, timeTm.tm_hour, timeTm.tm_min, |
Also available in: Unified diff