added support for fingerprint adding/editing
some visualization changes
This commit is contained in:
@@ -99,6 +99,12 @@ ToolBoxWidget::ToolBoxWidget(MapView2D* view, QWidget *parent) : QWidget(parent)
|
||||
lay->addWidget(btnBeacon, r++, 0, 1,1,Qt::AlignTop);
|
||||
connect(btnBeacon, SIGNAL(clicked(bool)), this, SLOT(onNewBeacon()));
|
||||
|
||||
// TRANSMITTER RELATED
|
||||
btnFingerprintLocation = new QPushButton(UIHelper::getIcon("fingerprint"), "");
|
||||
btnFingerprintLocation->setMinimumSize(s,s);
|
||||
lay->addWidget(btnFingerprintLocation, r++, 0, 1,1,Qt::AlignTop);
|
||||
connect(btnFingerprintLocation, SIGNAL(clicked(bool)), this, SLOT(onNewFingerprintLocation()));
|
||||
|
||||
// IMAGES
|
||||
btnImage = new QPushButton(UIHelper::getIcon("image"), "");
|
||||
btnImage->setMinimumSize(s,s);
|
||||
@@ -134,6 +140,7 @@ void ToolBoxWidget::setSelectedLayer(MapLayer *ml) {
|
||||
|
||||
btnWifi->setEnabled(ml && (ml->getLayerType() == MapLayerType::FLOOR_ACCESS_POINTS));
|
||||
btnBeacon->setEnabled(ml && (ml->getLayerType() == MapLayerType::FLOOR_BEACONS));
|
||||
btnFingerprintLocation->setEnabled(ml && (ml->getLayerType() == MapLayerType::FLOOR_FINGERPRINTS));
|
||||
btnPOI->setEnabled(ml && (ml->getLayerType() == MapLayerType::FLOOR_POIS));
|
||||
|
||||
btnImage->setEnabled(ml && (ml->getLayerType() == MapLayerType::FLOOR_UNDERLAYS));
|
||||
@@ -464,6 +471,18 @@ void ToolBoxWidget::onNewBeacon() {
|
||||
|
||||
}
|
||||
|
||||
void ToolBoxWidget::onNewFingerprintLocation() {
|
||||
|
||||
const Point2 center = view->getScaler().getCenter();
|
||||
Floorplan::FingerprintLocation* fpl = new Floorplan::FingerprintLocation("noname", center, 0);
|
||||
|
||||
MMFloorFingerprints* fps = (MMFloorFingerprints*) curLayer;
|
||||
fps->create(fpl);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ToolBoxWidget::onNewPOI() {
|
||||
|
||||
const Point2 center = view->getScaler().getCenter();
|
||||
|
||||
@@ -45,6 +45,7 @@ private:
|
||||
|
||||
QPushButton* btnWifi;
|
||||
QPushButton* btnBeacon;
|
||||
QPushButton* btnFingerprintLocation;
|
||||
QPushButton* btnPOI;
|
||||
|
||||
QPushButton* btnImage;
|
||||
@@ -63,6 +64,7 @@ private slots:
|
||||
|
||||
void onNewAccessPoint();
|
||||
void onNewBeacon();
|
||||
void onNewFingerprintLocation();
|
||||
void onNewPOI();
|
||||
|
||||
void onNewImage();
|
||||
|
||||
Reference in New Issue
Block a user