added new param-editing to APs and Beacons
changed drawing for better debuging changed layer editing option to add and delete layers some minor changes
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "params/LayerParamWidget.h"
|
||||
#include "params/ToolBoxWidget.h"
|
||||
#include "params/ActionWidget.h"
|
||||
#include "params/LayerTree.h"
|
||||
|
||||
#include "tree/MapTreeModel.h"
|
||||
|
||||
@@ -32,7 +33,7 @@ MainController::MainController() {
|
||||
|
||||
MapView2D* mapView2D = mw->getMapView2D();
|
||||
MapView3D* mapView3D = mw->getMapView3D();
|
||||
QTreeView* layerTree = mw->getTree();
|
||||
LayerTree* layerTree = mw->getTree();
|
||||
|
||||
|
||||
// model setup
|
||||
@@ -58,7 +59,8 @@ MainController::MainController() {
|
||||
|
||||
|
||||
//connect(layerTree, SIGNAL(activated(QModelIndex)), this, SLOT(layerSelected(QModelIndex)));
|
||||
connect(layerTree->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(layerSelected(QModelIndex)));
|
||||
//connect(layerTree->getTree()->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(layerSelected(QModelIndex)));
|
||||
connect(layerTree, SIGNAL(layerSelected(QModelIndex)), this, SLOT(layerSelected(QModelIndex)));
|
||||
|
||||
connect(mapSelector, SIGNAL(onMapElementSelected(MapModelElement*)), this, SLOT(mapElementSelected(MapModelElement*)));
|
||||
connect(mw->getMapView2D(), SIGNAL(onElementChange(MV2DElement*)), this, SLOT(curMapElementChanged()));
|
||||
@@ -81,17 +83,20 @@ MainController::MainController() {
|
||||
connect(mw, &MainWindow::onGridShowEdges, [&] (const bool show) {mw->getMapView3D()->getGridRenderer()->setShowEdges(show);} );
|
||||
|
||||
|
||||
//mapModel->load("../IndoorMap/maps/SHL21.xml");
|
||||
//mapModel->load("../IndoorMap/maps/SHL25.xml");
|
||||
//mapModel->load("../IndoorMap/maps/test.xml");
|
||||
//mapModel->load("../IndoorMap/maps/APs.xml");
|
||||
|
||||
//mapModel->load("/mnt/data/workspaces/IPIN2016/IPIN2016/competition/maps/CAR/CAR9.xml");
|
||||
mapModel->load("/mnt/data/workspaces/IPIN2016/IPIN2016/competition/maps/UAH/UAH9.xml");
|
||||
//mapModel->load("/mnt/data/workspaces/IPIN2016/IPIN2016/competition/maps/UAH/UAH9.xml");
|
||||
//mapModel->load("/mnt/data/workspaces/IPIN2016/IPIN2016/competition/maps/UJI-TI/UJI-TI4.xml");
|
||||
//mapModel->load("/mnt/data/workspaces/IPIN2016/IPIN2016/competition/maps/UJI-UB/UJI-UB4.xml");
|
||||
//mapModel->load("/mnt/data/workspaces/Indoor/tests/data/WalkHeadingMap.xml");
|
||||
//mapModel->load("/mnt/data/workspaces/IPIN2016/IPIN2016/competition/maps/test.xml");
|
||||
//mapModel->load("/mnt/vm/workspace/IRGame/IndoorServer/maps/map6.xml");
|
||||
//mapModel->load("/mnt/vm/workspace/IRGame/IndoorServer/maps/keller.xml");
|
||||
|
||||
|
||||
//mapModel->startEmpty();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user