added main menu added debug display many debug widgets for plotting live data worked on android live sensors added offline-data sensor feeding some dummy data sensors worked on the map display added ui debug for grid-points, particles and weights added a cool dude to display the estimation added real filtering based on the Indoor components c++11 fixes for android compilation online and offline filtering support new resampling technique for testing map loading via dialog
36 lines
657 B
C++
36 lines
657 B
C++
#include "MainWindow.h"
|
|
|
|
#include <QResizeEvent>
|
|
|
|
#include "map/MapView.h"
|
|
#include "menu/MainMenu.h"
|
|
#include "debug/SensorDataWidget.h"
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
|
|
|
|
setMinimumHeight(500);
|
|
setMinimumWidth(500);
|
|
|
|
mapView = new MapView(this);
|
|
mainMenu = new MainMenu(this);
|
|
sensorWidget = new SensorDataWidget(this);
|
|
|
|
//sensorWidget->setVisible(false);
|
|
showMaximized();
|
|
|
|
}
|
|
|
|
void MainWindow::resizeEvent(QResizeEvent* event) {
|
|
|
|
const int w = event->size().width();
|
|
const int h = event->size().height();
|
|
|
|
mapView->setGeometry(0,0,w,h);
|
|
mainMenu->setGeometry(0,0,w,64);
|
|
sensorWidget->setGeometry(0,64,w,h-64);
|
|
|
|
}
|
|
|
|
|