[Marble-commits] KDE/kdeedu/marble/src/plugins/runner
Dennis Nienhüser
earthwings at gentoo.org
Fri Nov 12 21:49:49 CET 2010
SVN commit 1196221 by nienhueser:
Do not ignore gosmore, monav and yours when calculating the default profiles.
M +5 -0 gosmore/GosmorePlugin.cpp
M +2 -0 gosmore/GosmorePlugin.h
M +7 -0 monav/MonavPlugin.cpp
M +2 -0 monav/MonavPlugin.h
M +5 -0 yours/YoursPlugin.cpp
M +2 -0 yours/YoursPlugin.h
--- trunk/KDE/kdeedu/marble/src/plugins/runner/gosmore/GosmorePlugin.cpp #1196220:1196221
@@ -45,8 +45,13 @@
}
}
+bool GosmorePlugin::supportsTemplate( RoutingProfilesModel::ProfileTemplate profileTemplate ) const
+{
+ return profileTemplate == RoutingProfilesModel::CarFastestTemplate;
}
+}
+
Q_EXPORT_PLUGIN2( GosmorePlugin, Marble::GosmorePlugin )
#include "GosmorePlugin.moc"
--- trunk/KDE/kdeedu/marble/src/plugins/runner/gosmore/GosmorePlugin.h #1196220:1196221
@@ -27,6 +27,8 @@
virtual MarbleAbstractRunner* newRunner() const;
+ virtual bool supportsTemplate(RoutingProfilesModel::ProfileTemplate profileTemplate) const;
+
virtual bool canWork( Capability capability ) const;
};
--- trunk/KDE/kdeedu/marble/src/plugins/runner/monav/MonavPlugin.cpp #1196220:1196221
@@ -250,8 +250,15 @@
}
}
+bool MonavPlugin::supportsTemplate( RoutingProfilesModel::ProfileTemplate profileTemplate ) const
+{
+ // Since we support multiple maps, pretty much anything can be installed, but ecological is
+ // not supported by monav
+ return profileTemplate != RoutingProfilesModel::CarEcologicalTemplate;
}
+}
+
Q_EXPORT_PLUGIN2( MonavPlugin, Marble::MonavPlugin )
#include "MonavPlugin.moc"
--- trunk/KDE/kdeedu/marble/src/plugins/runner/monav/MonavPlugin.h #1196220:1196221
@@ -31,6 +31,8 @@
virtual MarbleAbstractRunner* newRunner() const;
+ virtual bool supportsTemplate(RoutingProfilesModel::ProfileTemplate profileTemplate) const;
+
virtual ConfigWidget *configWidget();
virtual bool canWork( Capability capability ) const;
--- trunk/KDE/kdeedu/marble/src/plugins/runner/yours/YoursPlugin.cpp #1196220:1196221
@@ -30,8 +30,13 @@
return new YoursRunner;
}
+bool YoursPlugin::supportsTemplate( RoutingProfilesModel::ProfileTemplate profileTemplate ) const
+{
+ return profileTemplate == RoutingProfilesModel::CarFastestTemplate;
}
+}
+
Q_EXPORT_PLUGIN2( YoursPlugin, Marble::YoursPlugin )
#include "YoursPlugin.moc"
--- trunk/KDE/kdeedu/marble/src/plugins/runner/yours/YoursPlugin.h #1196220:1196221
@@ -26,6 +26,8 @@
explicit YoursPlugin( QObject *parent = 0 );
virtual MarbleAbstractRunner* newRunner() const;
+
+ virtual bool supportsTemplate(RoutingProfilesModel::ProfileTemplate profileTemplate) const;
};
}
More information about the Marble-commits
mailing list