2010-06-16 10:52:59 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
* @file opmapgadgetwidget.cpp
|
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
|
|
* @brief
|
|
|
|
* @see The GNU Public License (GPL) Version 3
|
|
|
|
* @defgroup opmap
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
#include "opmapgadgetwidget.h"
|
|
|
|
#include <QStringList>
|
2010-06-17 16:57:37 +02:00
|
|
|
#include <QtGui/QHBoxLayout>
|
2010-06-18 09:29:49 +02:00
|
|
|
#include <QtGui/QVBoxLayout>
|
2010-06-16 10:52:59 +02:00
|
|
|
#include "extensionsystem/pluginmanager.h"
|
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
#include "ui_opmap_controlpanel.h"
|
|
|
|
|
2010-06-16 10:52:59 +02:00
|
|
|
// *************************************************************************************
|
|
|
|
// constructor
|
|
|
|
|
|
|
|
OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
|
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
// **************
|
|
|
|
|
|
|
|
controlpanel_ui = NULL;
|
2010-06-18 09:29:49 +02:00
|
|
|
map = NULL;
|
2010-06-16 10:52:59 +02:00
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
follow_uav = false;
|
|
|
|
|
|
|
|
// **************
|
2010-06-16 10:52:59 +02:00
|
|
|
// Get required UAVObjects
|
2010-06-17 16:57:37 +02:00
|
|
|
|
2010-06-16 10:52:59 +02:00
|
|
|
ExtensionSystem::PluginManager* pm = ExtensionSystem::PluginManager::instance();
|
|
|
|
UAVObjectManager* objManager = pm->getObject<UAVObjectManager>();
|
|
|
|
m_positionActual = PositionActual::GetInstance(objManager);
|
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
// **************
|
|
|
|
// create the user control panel
|
|
|
|
|
|
|
|
controlpanel_ui = new Ui::OPMapControlPanel();
|
|
|
|
controlpanel_ui->setupUi(this);
|
|
|
|
|
2010-06-18 09:29:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
QWidget *dialog = new QWidget(this, Qt::Dialog);
|
|
|
|
|
|
|
|
controlpanel_ui = new Ui::OPMapControlPanel();
|
|
|
|
controlpanel_ui->setupUi(dialog);
|
|
|
|
|
|
|
|
QHBoxLayout *d_layout = new QHBoxLayout(dialog);
|
|
|
|
d_layout->setSpacing(0);
|
|
|
|
d_layout->setContentsMargins(0, 0, 0, 0);
|
|
|
|
d_layout->addWidget(controlpanel_ui->layoutWidget);
|
|
|
|
dialog->setLayout(d_layout);
|
|
|
|
|
|
|
|
dialog->show();
|
|
|
|
*/
|
2010-06-17 16:57:37 +02:00
|
|
|
// **************
|
|
|
|
// create the map display
|
2010-06-16 10:52:59 +02:00
|
|
|
|
2010-06-16 20:50:36 +02:00
|
|
|
map = new mapcontrol::OPMapWidget();
|
2010-06-17 20:54:12 +02:00
|
|
|
map->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
2010-06-16 20:50:36 +02:00
|
|
|
map->setMinimumSize(64, 64);
|
2010-06-16 10:52:59 +02:00
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
// **************
|
|
|
|
// set the user control options
|
|
|
|
|
|
|
|
controlpanel_ui->comboBox->addItems(mapcontrol::Helper::MapTypes());
|
|
|
|
controlpanel_ui->comboBox->setCurrentIndex(mapcontrol::Helper::MapTypes().indexOf("GoogleHybrid"));
|
2010-06-18 09:29:49 +02:00
|
|
|
controlpanel_ui->labelZoom->setText(" " + QString::number(map->Zoom()));
|
|
|
|
controlpanel_ui->labelRotate->setText(" " + QString::number(map->Rotate()));
|
2010-06-18 21:07:04 +02:00
|
|
|
controlpanel_ui->labelNumTilesToLoad->setText(" 0");
|
2010-06-17 16:57:37 +02:00
|
|
|
|
|
|
|
// **************
|
|
|
|
|
2010-06-17 20:54:12 +02:00
|
|
|
// receive map zoom changes
|
|
|
|
connect(map, SIGNAL(zoomChanged(double)), this, SLOT(zoomChanged(double)));
|
|
|
|
|
2010-06-18 21:07:04 +02:00
|
|
|
// receive tile loading messages
|
|
|
|
connect(map, SIGNAL(OnTilesStillToLoad(int)), this, SLOT(OnTilesStillToLoad(int)));
|
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
map->SetShowTileGridLines(controlpanel_ui->checkBox->isChecked());
|
|
|
|
|
|
|
|
// get current position data
|
|
|
|
PositionActual::DataFields data = m_positionActual->getData();
|
|
|
|
|
|
|
|
// set the default map position
|
|
|
|
map->SetCurrentPosition(internals::PointLatLng(data.Latitude, data.Longitude));
|
|
|
|
|
|
|
|
// **************
|
|
|
|
|
|
|
|
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
2010-06-16 10:52:59 +02:00
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
QHBoxLayout *layout = new QHBoxLayout;
|
2010-06-16 20:50:36 +02:00
|
|
|
layout->setSpacing(0);
|
|
|
|
layout->setContentsMargins(0, 0, 0, 0);
|
2010-06-17 16:57:37 +02:00
|
|
|
layout->addWidget(controlpanel_ui->layoutWidget);
|
2010-06-18 09:29:49 +02:00
|
|
|
// layout->addWidget(dialog);
|
2010-06-16 20:50:36 +02:00
|
|
|
layout->addWidget(map);
|
|
|
|
setLayout(layout);
|
2010-06-16 10:52:59 +02:00
|
|
|
|
2010-06-18 09:29:49 +02:00
|
|
|
// **************
|
|
|
|
// create the user controls overlayed onto the map
|
|
|
|
|
|
|
|
createMapOverlayUserControls();
|
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
// **************
|
|
|
|
|
|
|
|
m_updateTimer = new QTimer();
|
|
|
|
m_updateTimer->setInterval(250);
|
|
|
|
connect(m_updateTimer, SIGNAL(timeout()), this, SLOT(updatePosition()));
|
|
|
|
m_updateTimer->start();
|
|
|
|
|
|
|
|
// **************
|
2010-06-16 10:52:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// *************************************************************************************
|
|
|
|
// destructor
|
|
|
|
|
|
|
|
OPMapGadgetWidget::~OPMapGadgetWidget()
|
|
|
|
{
|
|
|
|
if (map) delete map;
|
2010-06-17 16:57:37 +02:00
|
|
|
if (controlpanel_ui) delete controlpanel_ui;
|
2010-06-16 10:52:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// *************************************************************************************
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::setZoom(int value)
|
|
|
|
{
|
2010-06-16 15:12:28 +02:00
|
|
|
if (map)
|
2010-06-17 16:57:37 +02:00
|
|
|
map->SetZoom(value);
|
2010-06-16 10:52:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::setPosition(QPointF pos)
|
|
|
|
{
|
2010-06-16 15:12:28 +02:00
|
|
|
if (map)
|
2010-06-17 16:57:37 +02:00
|
|
|
map->SetCurrentPosition(internals::PointLatLng(pos.y(), pos.x()));
|
2010-06-16 10:52:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::setMapProvider(QString provider)
|
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
// if (map)
|
|
|
|
// if (map->isStarted())
|
|
|
|
// map->SetMapType(mapcontrol::Helper::MapTypeFromString(provider));
|
2010-06-16 10:52:59 +02:00
|
|
|
}
|
|
|
|
|
2010-06-18 21:07:04 +02:00
|
|
|
void OPMapGadgetWidget::setUseMemoryCache(bool useMemoryCache)
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->configuration->SetUseMemoryCache(useMemoryCache);
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::setCacheLocation(QString cacheLocation)
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->configuration->SetCacheLocation(cacheLocation);
|
|
|
|
}
|
|
|
|
|
2010-06-16 10:52:59 +02:00
|
|
|
// *************************************************************************************
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::updatePosition()
|
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
// get current position data
|
|
|
|
PositionActual::DataFields data = m_positionActual->getData();
|
2010-06-16 10:52:59 +02:00
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
if (map && follow_uav)
|
|
|
|
{ // center the map onto the UAV
|
|
|
|
map->SetCurrentPosition(internals::PointLatLng(data.Latitude, data.Longitude));
|
|
|
|
}
|
2010-06-16 10:52:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// *************************************************************************************
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::resizeEvent(QResizeEvent *event)
|
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
// if (map) map->resize(QSize(width(), height()));
|
2010-06-16 10:52:59 +02:00
|
|
|
update();
|
|
|
|
QWidget::resizeEvent(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
// *************************************************************************************
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::keyPressEvent(QKeyEvent* event)
|
|
|
|
{
|
|
|
|
if (event->key() == Qt::Key_Escape) // ESC
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_F1) // F1
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_F2) // F2
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_Up)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_Down)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_Left)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_Right)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_PageUp)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
if (event->key() == Qt::Key_PageDown)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
qDebug() << event->key() << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-06-18 09:29:49 +02:00
|
|
|
// *************************************************************************************
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::zoomIn()
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->SetZoom(map->Zoom() + 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::zoomOut()
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->SetZoom(map->Zoom() - 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-06-16 10:52:59 +02:00
|
|
|
// *************************************************************************************
|
2010-06-17 16:57:37 +02:00
|
|
|
|
|
|
|
void OPMapGadgetWidget::zoomChanged(double zoom)
|
|
|
|
{
|
2010-06-17 20:54:12 +02:00
|
|
|
controlpanel_ui->labelZoom->setText(" " + QString::number(zoom));
|
2010-06-17 16:57:37 +02:00
|
|
|
}
|
|
|
|
|
2010-06-18 21:07:04 +02:00
|
|
|
void OPMapGadgetWidget::OnTilesStillToLoad(int number)
|
|
|
|
{
|
|
|
|
controlpanel_ui->labelNumTilesToLoad->setText(" " + QString::number(number));
|
|
|
|
}
|
|
|
|
|
|
|
|
// *************************************************************************************
|
2010-06-17 16:57:37 +02:00
|
|
|
void OPMapGadgetWidget::on_checkBox_clicked(bool checked)
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->SetShowTileGridLines(checked);
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_comboBox_currentIndexChanged(QString value)
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
if (map->isStarted())
|
|
|
|
map->SetMapType(mapcontrol::Helper::MapTypeFromString(value));
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_pushButtonGO_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
{
|
|
|
|
core::GeoCoderStatusCode::Types x = map->SetCurrentPositionByKeywords(controlpanel_ui->lineEdit->text());
|
|
|
|
controlpanel_ui->label->setText(mapcontrol::Helper::StrFromGeoCoderStatusCode(x));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-06-17 20:54:12 +02:00
|
|
|
void OPMapGadgetWidget::on_pushButtonReload_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->ReloadMap();
|
|
|
|
}
|
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
void OPMapGadgetWidget::on_pushButtonRL_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
2010-06-18 09:29:49 +02:00
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
map->SetRotate(map->Rotate() - 1);
|
2010-06-18 09:29:49 +02:00
|
|
|
controlpanel_ui->labelRotate->setText(" " + QString::number(map->Rotate()));
|
|
|
|
}
|
2010-06-17 16:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_pushButtonRC_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
2010-06-18 09:29:49 +02:00
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
map->SetRotate(0);
|
2010-06-18 09:29:49 +02:00
|
|
|
controlpanel_ui->labelRotate->setText(" " + QString::number(map->Rotate()));
|
|
|
|
}
|
2010-06-17 16:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_pushButtonRR_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
2010-06-18 09:29:49 +02:00
|
|
|
{
|
2010-06-17 16:57:37 +02:00
|
|
|
map->SetRotate(map->Rotate() + 1);
|
2010-06-18 09:29:49 +02:00
|
|
|
controlpanel_ui->labelRotate->setText(" " + QString::number(map->Rotate()));
|
|
|
|
}
|
2010-06-17 16:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_pushButtonZoomP_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
{
|
2010-06-17 20:54:12 +02:00
|
|
|
double zoom = map->Zoom();
|
|
|
|
// double zoom_step = controlpanel_ui->doubleSpinBox->value();
|
|
|
|
double zoom_step = 1;
|
|
|
|
map->SetZoom(zoom + zoom_step);
|
2010-06-17 16:57:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_pushButtonZoomM_clicked()
|
|
|
|
{
|
|
|
|
if (map)
|
2010-06-17 20:54:12 +02:00
|
|
|
{
|
|
|
|
double zoom = map->Zoom();
|
|
|
|
// double zoom_step = controlpanel_ui->doubleSpinBox->value();
|
|
|
|
double zoom_step = 1;
|
|
|
|
map->SetZoom(zoom - zoom_step);
|
|
|
|
}
|
2010-06-17 16:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_checkBox_2_clicked(bool checked)
|
|
|
|
{
|
|
|
|
if (map)
|
|
|
|
map->SetUseOpenGL(checked);
|
|
|
|
}
|
|
|
|
|
2010-06-17 17:48:43 +02:00
|
|
|
void OPMapGadgetWidget::on_pushButtonGeoFenceM_clicked()
|
|
|
|
{
|
|
|
|
int geo_fence_distance = controlpanel_ui->spinBoxGeoFenceDistance->value();
|
|
|
|
int step = controlpanel_ui->spinBoxGeoFenceDistance->singleStep();
|
|
|
|
controlpanel_ui->spinBoxGeoFenceDistance->setValue(geo_fence_distance - step);
|
|
|
|
|
|
|
|
geo_fence_distance = controlpanel_ui->spinBoxGeoFenceDistance->value();
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::on_pushButtonGeoFenceP_clicked()
|
|
|
|
{
|
|
|
|
int geo_fence_distance = controlpanel_ui->spinBoxGeoFenceDistance->value();
|
|
|
|
int step = controlpanel_ui->spinBoxGeoFenceDistance->singleStep();
|
|
|
|
controlpanel_ui->spinBoxGeoFenceDistance->setValue(geo_fence_distance + step);
|
|
|
|
|
|
|
|
geo_fence_distance = controlpanel_ui->spinBoxGeoFenceDistance->value();
|
|
|
|
}
|
|
|
|
|
2010-06-18 09:29:49 +02:00
|
|
|
// *************************************************************************************
|
|
|
|
// create some user controls overlayed onto the map area
|
|
|
|
|
|
|
|
QPushButton * OPMapGadgetWidget::createTransparentButton(QWidget *parent, QString text, QString icon)
|
|
|
|
{
|
|
|
|
QPixmap pix;
|
|
|
|
pix.load(icon);
|
|
|
|
|
|
|
|
QPushButton *but = new QPushButton(parent);
|
|
|
|
|
|
|
|
QColor transparent_color(0,0,0,0);
|
|
|
|
QPalette but_pal(but->palette());
|
|
|
|
|
|
|
|
but_pal.setColor(QPalette::Button, transparent_color);
|
|
|
|
but->setPalette(but_pal);
|
|
|
|
|
|
|
|
but->setIcon(pix);
|
|
|
|
but->setText(text);
|
|
|
|
but->setIconSize(pix.size());
|
|
|
|
|
|
|
|
return but;
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPMapGadgetWidget::createMapOverlayUserControls()
|
|
|
|
{
|
2010-06-18 12:40:30 +02:00
|
|
|
QPushButton *zoomout = new QPushButton("");
|
|
|
|
zoomout->setFlat(true);
|
|
|
|
zoomout->setToolTip(tr("Zoom out"));
|
|
|
|
zoomout->setCursor(Qt::OpenHandCursor);
|
|
|
|
zoomout->setIcon(QIcon(QString::fromUtf8(":/opmap/images/minus.png")));
|
|
|
|
// zoomout->setIconSize(QSize(12, 12));
|
|
|
|
zoomout->setIconSize(QSize(32, 32));
|
|
|
|
zoomout->setFixedSize(32, 32);
|
|
|
|
// zoomout->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
|
|
|
// zoomout->setWindowOpacity(0.7);
|
|
|
|
// zoomout->setBackgroundRole(QPalette(QColor(0, 0, 0, 0)));
|
|
|
|
connect(zoomout, SIGNAL(clicked(bool)), this, SLOT(zoomOut()));
|
|
|
|
|
|
|
|
// QPushButton *zoomin = createTransparentButton(map, "", QString::fromUtf8(":/core/images/plus.png"));
|
|
|
|
// zoomin->setStyleSheet("");
|
|
|
|
QPushButton *zoomin = new QPushButton("");
|
|
|
|
zoomin->setFlat(true);
|
2010-06-18 09:29:49 +02:00
|
|
|
zoomin->setToolTip(tr("Zoom in"));
|
|
|
|
zoomin->setCursor(Qt::OpenHandCursor);
|
2010-06-18 12:40:30 +02:00
|
|
|
zoomin->setIcon(QIcon(QString::fromUtf8(":/opmap/images/plus.png")));
|
|
|
|
// zoomin->setIconSize(QSize(12, 12));
|
|
|
|
zoomin->setIconSize(QSize(32, 32));
|
|
|
|
zoomin->setFixedSize(32, 32);
|
|
|
|
// zoomin->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
2010-06-18 09:29:49 +02:00
|
|
|
connect(zoomin, SIGNAL(clicked(bool)), this, SLOT(zoomIn()));
|
|
|
|
|
2010-06-18 12:40:30 +02:00
|
|
|
// add zoom buttons to the layout of the MapControl
|
|
|
|
QVBoxLayout* overlay_layout_v1 = new QVBoxLayout;
|
|
|
|
overlay_layout_v1->setMargin(4);
|
|
|
|
overlay_layout_v1->setSpacing(4);
|
|
|
|
overlay_layout_v1->addSpacing(10);
|
|
|
|
|
|
|
|
QHBoxLayout* overlay_layout_h1 = new QHBoxLayout;
|
|
|
|
overlay_layout_h1->setMargin(0);
|
|
|
|
overlay_layout_h1->setSpacing(4);
|
|
|
|
overlay_layout_h1->addSpacing(10);
|
|
|
|
// overlay_layout_h1->addWidget(gcsButton);
|
|
|
|
// overlay_layout_h1->addWidget(uavButton);
|
|
|
|
// overlay_layout_h1->addSpacing(10);
|
|
|
|
overlay_layout_h1->addWidget(zoomout);
|
|
|
|
overlay_layout_h1->addWidget(zoomin);
|
|
|
|
overlay_layout_h1->addStretch(0);
|
|
|
|
|
|
|
|
overlay_layout_v1->addLayout(overlay_layout_h1);
|
|
|
|
overlay_layout_v1->addStretch(0);
|
|
|
|
|
|
|
|
map->setLayout(overlay_layout_v1);
|
2010-06-18 09:29:49 +02:00
|
|
|
}
|
2010-06-17 17:48:43 +02:00
|
|
|
|
2010-06-17 16:57:37 +02:00
|
|
|
// *************************************************************************************
|