14 #ifndef MARBLE_MARBLEPART_H
15 #define MARBLE_MARBLEPART_H
17 #include <kparts/part.h>
24 #include <krecentfilesaction.h>
25 #include <KDE/KWallet/Wallet>
27 #include "ui_MarbleCloudSyncSettingsWidget.h"
42 class StatusBarExtension;
48 class MovieCaptureDialog;
50 class DownloadRegionDialog;
51 class RoutingProfilesWidget;
52 class SunControlWidget;
53 class TimeControlWidget;
76 bool openUrl(
const KUrl &url );
87 void exportMapScreenShot();
88 void printMapScreenShot();
90 void copyCoordinates();
91 void setShowClouds(
bool );
92 void setShowBookmarks(
bool isChecked );
93 void showFullScreen(
bool );
94 void showStatusBar(
bool );
95 void changeRecordingState();
102 void showDateTimeLabel(
bool isChecked );
109 void showPositionLabel(
bool isChecked );
116 void showAltitudeLabel(
bool isChecked );
123 void showTileZoomLevelLabel(
bool isChecked );
130 void showDownloadProgressBar(
bool isChecked );
132 void handleProgress(
int active,
int queued);
133 void removeProgressItem();
135 void lockFloatItemPosition(
bool );
138 void showSun(
bool );
139 void lockToSubSolarPoint(
bool );
140 void setSubSolarPointIconVisible(
bool );
141 void workOffline(
bool );
143 void setupStatusBar();
144 void showNewStuffDialog();
145 void showUploadNewStuffDialog();
146 void showDownloadRegionDialog();
147 void downloadRegion();
148 void showStatusBarContextMenu(
const QPoint& pos );
149 void showMapWizard();
153 void enableApplyButton();
154 void applyPluginState();
156 void updateSettings();
158 void updateStatusBar();
160 void updateCloudSyncStatus(
const QString &status);
165 void writePluginSettings();
170 void readPluginSettings();
173 void openEditBookmarkDialog();
175 void openManageBookmarksDialog();
177 void lookAtBookmark(
QAction * );
180 void updateMapEditButtonVisibility(
const QString &mapTheme );
181 void showMovieCaptureDialog();
182 void stopRecording();
183 void updateCloudSyncCredentials();
187 void setupDownloadProgressBar();
188 void setupStatusBarActions();
189 QLabel * setupStatusBarLabel(
const QString& templateString );
192 void readStatusBarSettings();
193 void writeSettings();
194 void writeStatusBarSettings();
198 void updateTileZoomLevel();
199 void migrateNewstuffConfigFiles()
const;
211 KAction *m_exportMapAction;
212 KAction *m_printMapAction;
213 KAction *m_printPreviewAction;
214 KAction *m_workOfflineAction;
215 KAction *m_copyMapAction;
216 KAction *m_copyCoordinatesAction;
217 KAction *m_showCloudsAction;
218 KAction *m_fullScreenAct;
220 KAction *m_newStuffAction;
221 KAction *m_downloadRegionAction;
222 KAction *m_controlSunAction;
223 KAction *m_controlTimeAction;
224 KAction *m_lockFloatItemsAct;
225 KAction *m_mapWizardAct;
226 KAction *m_externalMapEditorAction;
227 KAction *m_recordMovieAction;
228 KAction *m_stopRecordingAction;
229 KRecentFilesAction *m_recentFilesAction;
232 KAction *m_addBookmarkAction;
233 KAction *m_toggleBookmarkDisplayAction;
234 KAction *m_setHomeAction;
235 KAction *m_manageBookmarksAction;
237 KAction *m_showPositionAction;
238 KAction *m_showDateTimeAction;
239 KAction *m_showAltitudeAction;
240 KAction *m_showTileZoomLevelAction;
241 KAction *m_showDownloadProgressAction;
244 KToggleAction *m_showShadow;
245 KToggleAction *m_lockToSubSolarPoint;
246 KToggleAction *m_setSubSolarPointIconVisible;
248 KConfigDialog *m_configDialog;
252 KWallet::Wallet *m_wallet;
257 KUrl m_lastFileOpenPath;
263 QLabel *m_tileZoomLevelLabel;
266 KParts::StatusBarExtension *m_statusBarExtension;
274 Ui_MarbleCloudSyncSettingsWidget m_ui_cloudSyncSettings;
void fallBackToDefaultTheme()
void showZoomLevel(const int)
void showPosition(const QString &position)
bool openUrl(const KUrl &url)
MarblePart(QWidget *parentWidget, QObject *parent, const QVariantList &)
void readTrackingSettings()
ControlView * controlView() const
static KAboutData * createAboutData()
void mapThemeChanged(const QString &newMapTheme)
GraphicsSystem
This enum is used to choose which graphics system Qt is using.
void createInfoBoxesMenu()
void createOnlineServicesMenu()
void createRenderPluginActions()
void initializeCustomTimezone()