• R/O
  • SSH
  • HTTPS

qrobosdk: コミット


コミットメタ情報

リビジョン1808 (tree)
日時2010-04-26 14:46:55
作者satofumi

ログメッセージ

ScipViewer draw timestamp value

変更サマリ

差分

--- trunk/programs/UrgViewer/UrgViewerWindow.cpp (revision 1807)
+++ trunk/programs/UrgViewer/UrgViewerWindow.cpp (revision 1808)
@@ -538,6 +538,9 @@
538538 }
539539 }
540540 pimpl->serial_connection_widget_.setDevices(devices);
541+ if (! devices.empty()) {
542+ pimpl->serial_connection_widget_.setFocus();
543+ }
541544 }
542545
543546
--- trunk/programs/UrgInformation/UrgInformationWidget.cpp (revision 1807)
+++ trunk/programs/UrgInformation/UrgInformationWidget.cpp (revision 1808)
@@ -175,6 +175,9 @@
175175 }
176176 }
177177 pimpl->connection_widget_.setDevices(devices);
178+ if (! devices.empty()) {
179+ pimpl->connection_widget_.setFocus();
180+ }
178181 }
179182
180183
--- trunk/programs/ScipPlayer/ScipPlayerWindow.cpp (revision 1807)
+++ trunk/programs/ScipPlayer/ScipPlayerWindow.cpp (revision 1808)
@@ -46,6 +46,7 @@
4646
4747 ScipData scip_data_;
4848 long current_timestamp_;
49+ long last_timestamp_;
4950
5051 CustomConnection con_;
5152 UrgDevice urg_;
@@ -55,7 +56,8 @@
5556 bool led_on_;
5657
5758 pImpl(ScipPlayerWindow* parent)
58- : widget_(parent), data_reader_(NULL), current_timestamp_(0),
59+ : widget_(parent), data_reader_(NULL),
60+ current_timestamp_(0), last_timestamp_(0),
5961 play_ratio_(0), led_on_(false)
6062 {
6163 urg_.setConnection(&con_);
@@ -186,6 +188,11 @@
186188 urg_draw_widget_.setUrgData(&urg_);
187189 urg_draw_widget_.redraw();
188190 scip_data_.clear();
191+
192+ QString message = QString("timestamp: %1 [msec] (%2)")
193+ .arg(current_timestamp_).arg(current_timestamp_ - last_timestamp_);
194+ widget_->statusBar()->showMessage(message, 60 * 1000);
195+ last_timestamp_ = current_timestamp_;
189196 }
190197
191198 ScipData line_block;
旧リポジトリブラウザで表示