11#include "MarbleDebug.h"
13#include "ui_MarbleNavigator.h"
18class MarbleNavigatorPrivate
23 Ui::MarbleNavigator uiWidget;
28 , d(new MarbleNavigatorPrivate)
31 d->uiWidget.setupUi(
this);
33 d->m_minimumzoom = 950;
37 connect(d->uiWidget.goHomeButton, SIGNAL(clicked()),
this, SIGNAL(
goHome()));
38 connect(d->uiWidget.zoomSlider, SIGNAL(valueChanged(
int)),
this, SIGNAL(
zoomChanged(
int)));
39 connect(d->uiWidget.zoomInButton, SIGNAL(clicked()),
this, SIGNAL(
zoomIn()));
40 connect(d->uiWidget.zoomOutButton, SIGNAL(clicked()),
this, SIGNAL(
zoomOut()));
42 connect(d->uiWidget.moveLeftButton, SIGNAL(clicked()),
this, SIGNAL(
moveLeft()));
43 connect(d->uiWidget.moveRightButton, SIGNAL(clicked()),
this, SIGNAL(
moveRight()));
44 connect(d->uiWidget.moveUpButton, SIGNAL(clicked()),
this, SIGNAL(
moveUp()));
45 connect(d->uiWidget.moveDownButton, SIGNAL(clicked()),
this, SIGNAL(
moveDown()));
48MarbleNavigator::~MarbleNavigator()
55 return d->m_minimumzoom;
62 d->uiWidget.zoomSlider->setValue(zoom);
63 d->uiWidget.zoomSlider->setMinimum(d->m_minimumzoom);
71 if (!d->uiWidget.zoomSlider->isHidden()) {
72 d->uiWidget.zoomSlider->hide();
76 if (d->uiWidget.zoomSlider->isHidden()) {
77 d->uiWidget.zoomSlider->show();
85#include "moc_MarbleNavigator.cpp"
This file contains the header for MarbleNavigator.
void zoomChanged(int zoom)
Signal emitted when the zoom slider has been moved.
int minimumZoom() const
Return the minimum zoom level set in the widget.
MarbleNavigator(QWidget *parent=nullptr)
Construct a new MarbleNavigator.
void resizeEvent(QResizeEvent *) override
Reimplementation of the resizeEvent() of the widget.
void moveRight()
Signal emitted when the Move Right button has been pressed.
void zoomIn()
Signal emitted when the Zoom In button has been pressed.
void moveDown()
Signal emitted when the Move Down button has been pressed.
void changeZoom(int zoom)
Sets the value of the slider.
void moveLeft()
Signal emitted when the Move Left button has been pressed.
void zoomOut()
Signal emitted when the Zoom Out button has been pressed.
void goHome()
Signal emitted when the Home button has been pressed.
void moveUp()
Signal emitted when the Move Up button has been pressed.
Binds a QML item to a specific geodetic location in screen coordinates.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.