GUI: Updated data recorder action and message info on close

This commit is contained in:
matlabbe
2015-03-29 09:23:00 -04:00
parent ae239bcfbc
commit adb1a8ba22
4 changed files with 61 additions and 22 deletions
+5 -1
View File
@@ -47,14 +47,17 @@ public:
DataRecorder(QWidget * parent = 0);
bool init(const QString & path, bool recordInRAM = true);
void close();
void closeRecorder();
virtual ~DataRecorder();
const QString & path() const {return path_;}
public slots:
void addData(const rtabmap::SensorData & data);
void showImage(const rtabmap::SensorData & data);
protected:
virtual void closeEvent(QCloseEvent* event);
void handleEvent(UEvent * event);
private:
@@ -62,6 +65,7 @@ private:
ImageView* imageView_;
UTimer timer_;
int dataQueue_;
QString path_;
};
} /* namespace rtabmap */