[Marble-commits] KDE/kdeedu/marble/src
Jens-Michael Hoffmann
jensmh at gmx.de
Mon Apr 26 12:28:30 CEST 2010
SVN commit 1118963 by jmhoffmann:
MarblePart: Add "Download Region..." menu entry and corresponding action.
M +11 -0 marble_part.cpp
M +2 -0 marble_part.h
M +1 -0 marble_part.rc
--- trunk/KDE/kdeedu/marble/src/marble_part.cpp #1118962:1118963
@@ -592,6 +592,13 @@
void MarblePart::setupActions()
{
+ // Action: Download Region
+ m_downloadRegionAction = new KAction( this );
+ m_downloadRegionAction->setText( i18nc( "Action for downloading an entire region of a map",
+ "Download Region..." ));
+ actionCollection()->addAction( "file_download_region", m_downloadRegionAction );
+ connect( m_downloadRegionAction, SIGNAL( triggered() ), SLOT( showDownloadRegionDialog() ));
+
// Action: Print Map
m_printMapAction = KStandardAction::print( this, SLOT( printMapScreenShot() ),
actionCollection() );
@@ -956,6 +963,10 @@
//m_controlView->marbleControl()->updateMapThemes();
}
+void MarblePart::showDownloadRegionDialog()
+{
+}
+
void MarblePart::showStatusBarContextMenu( const QPoint& pos )
{
KStatusBar * const statusBar = m_statusBarExtension->statusBar();
--- trunk/KDE/kdeedu/marble/src/marble_part.h #1118962:1118963
@@ -115,6 +115,7 @@
void setupStatusBar();
void showNewStuffDialog();
+ void showDownloadRegionDialog();
void showStatusBarContextMenu( const QPoint& pos );
void editSettings();
@@ -180,6 +181,7 @@
KAction *m_fullScreenAct;
KAction *m_openAct;
KAction *m_newStuffAction;
+ KAction *m_downloadRegionAction;
KAction *m_controlSunAction;
KAction *m_lockFloatItemsAct;
--- trunk/KDE/kdeedu/marble/src/marble_part.rc #1118962:1118963
@@ -6,6 +6,7 @@
<text>&File</text>
<Action name="file_open"/>
<Action name="new_stuff"/>
+ <Action name="file_download_region"/>
<Action name="exportMap"/>
<Separator/>
<Action name="file_print"/>
More information about the Marble-commits
mailing list