14 #ifndef MARBLE_MARBLEPART_H
15 #define MARBLE_MARBLEPART_H
17 #include <kparts/part.h>
24 #include <krecentfilesaction.h>
35 class QStandardItemModel;
39 class StatusBarExtension;
46 class DownloadRegionDialog;
47 class RoutingProfilesWidget;
48 class SunControlWidget;
49 class TimeControlWidget;
70 bool openUrl(
const KUrl &url );
81 void exportMapScreenShot();
82 void printMapScreenShot();
84 void copyCoordinates();
85 void setShowClouds(
bool );
86 void setShowBookmarks(
bool isChecked );
87 void showFullScreen(
bool );
88 void showStatusBar(
bool );
95 void showDateTimeLabel(
bool isChecked );
102 void showPositionLabel(
bool isChecked );
109 void showAltitudeLabel(
bool isChecked );
116 void showTileZoomLevelLabel(
bool isChecked );
123 void showDownloadProgressBar(
bool isChecked );
125 void downloadJobAdded();
126 void downloadJobRemoved();
128 void lockFloatItemPosition(
bool );
131 void showSun(
bool );
132 void lockToSubSolarPoint(
bool );
133 void setSubSolarPointIconVisible(
bool );
134 void workOffline(
bool );
136 void setupStatusBar();
137 void showNewStuffDialog();
138 void showUploadNewStuffDialog();
139 void showDownloadRegionDialog();
140 void downloadRegion();
141 void showStatusBarContextMenu(
const QPoint& pos );
142 void showMapWizard();
146 void enableApplyButton();
147 void applyPluginState();
149 void updateSettings();
151 void updateStatusBar();
156 void writePluginSettings();
161 void readPluginSettings();
164 void openEditBookmarkDialog();
166 void openManageBookmarksDialog();
167 void createBookmarksListMenu( QMenu *,
const GeoDataFolder& );
168 void lookAtBookmark( QAction * );
171 void updateMapEditButtonVisibility(
const QString &mapTheme );
175 void setupDownloadProgressBar();
176 void setupStatusBarActions();
177 QLabel * setupStatusBarLabel(
const QString& templateString );
180 void readStatusBarSettings();
181 void writeSettings();
182 void writeStatusBarSettings();
186 void updateTileZoomLevel();
187 void migrateNewstuffConfigFiles()
const;
188 void repairNode( QDomNode node,
const QString &child )
const;
198 KAction *m_exportMapAction;
199 KAction *m_printMapAction;
200 KAction *m_printPreviewAction;
201 KAction *m_workOfflineAction;
202 KAction *m_copyMapAction;
203 KAction *m_copyCoordinatesAction;
204 KAction *m_showCloudsAction;
205 KAction *m_fullScreenAct;
207 KAction *m_newStuffAction;
208 KAction *m_downloadRegionAction;
209 KAction *m_controlSunAction;
210 KAction *m_controlTimeAction;
211 KAction *m_lockFloatItemsAct;
212 KAction *m_mapWizardAct;
213 KAction *m_externalMapEditorAction;
214 KRecentFilesAction *m_recentFilesAction;
217 KAction *m_addBookmarkAction;
218 KAction *m_toggleBookmarkDisplayAction;
219 KAction *m_setHomeAction;
220 KAction *m_manageBookmarksAction;
222 KAction *m_showPositionAction;
223 KAction *m_showDateTimeAction;
224 KAction *m_showAltitudeAction;
225 KAction *m_showTileZoomLevelAction;
226 KAction *m_showDownloadProgressAction;
229 KToggleAction *m_showShadow;
230 KToggleAction *m_lockToSubSolarPoint;
231 KToggleAction *m_setSubSolarPointIconVisible;
233 KConfigDialog *m_configDialog;
235 QHash<QString, int> m_pluginEnabled;
239 QString m_tileZoomLevel;
240 KUrl m_lastFileOpenPath;
243 QLabel *m_positionLabel;
244 QLabel *m_clockLabel;
245 QLabel *m_distanceLabel;
246 QLabel *m_tileZoomLevelLabel;
247 QProgressBar *m_downloadProgressBar;
249 KParts::StatusBarExtension *m_statusBarExtension;
255 QHash< int, int > m_timezone;
256 QMap<int, QString> m_externalEditorMapping;
void fallBackToDefaultTheme()
void showZoomLevel(const int)
void showPosition(const QString &position)
bool openUrl(const KUrl &url)
MarblePart(QWidget *parentWidget, QObject *parent, const QVariantList &)
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()