[Marble-commits] KDE/kdeedu/marble/src
Bastian Holst
bastianholst at gmx.de
Mon Mar 29 19:48:34 CEST 2010
SVN commit 1108741 by bholst:
Patch by Kumar Anik which introduces the "Redisplay" menu item in the Qt version of marble
M +11 -0 QtMainWindow.cpp
M +2 -0 QtMainWindow.h
--- trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp #1108740:1108741
@@ -186,6 +186,11 @@
m_controlSunAct->setStatusTip(tr("Configure Sun Control"));
connect(m_controlSunAct, SIGNAL(triggered()), this, SLOT( controlSun()));
+ m_reloadAct = new QAction( tr("&Redisplay"), this);
+ m_reloadAct->setShortcut(tr("F5"));
+ m_reloadAct->setStatusTip(tr("Reload Current Map"));
+ connect(m_reloadAct, SIGNAL(triggered()), this, SLOT(reload()));
+
m_handbookAct = new QAction( QIcon(":/icons/help-contents.png"), tr("Marble Desktop Globe &Handbook"), this);
m_handbookAct->setShortcut(tr("F1"));
m_handbookAct->setStatusTip(tr("Show the Handbook for Marble Desktop Globe"));
@@ -239,6 +244,7 @@
m_fileMenu->addAction( (*i)->action() );
}
}
+ m_fileMenu->addAction(m_reloadAct);
m_fileMenu->addSeparator();
m_infoBoxesMenu = m_fileMenu->addMenu("&Info Boxes");
@@ -572,6 +578,11 @@
m_controlView->marbleWidget()->sunLocator()->setShow( active );
}
+void MainWindow::reload()
+{
+ m_controlView->marbleWidget()->map()->reload();
+}
+
void MainWindow::enterWhatsThis()
{
QWhatsThis::enterWhatsThisMode();
--- trunk/KDE/kdeedu/marble/src/QtMainWindow.h #1108740:1108741
@@ -85,6 +85,7 @@
void showAtmosphere( bool );
void controlSun();
void showSun( bool );
+ void reload();
// Settings Menu
void showFullScreen( bool );
@@ -129,6 +130,7 @@
QAction *m_showCloudsAct;
QAction *m_showAtmosphereAct;
QAction *m_controlSunAct;
+ QAction *m_reloadAct;
// Settings Menu
QAction *m_sideBarAct;
More information about the Marble-commits
mailing list