Ejemplo n.º 1
0
OpenCachingComModel::OpenCachingComModel( const MarbleModel *marbleModel, QObject *parent )
    : AbstractDataPluginModel( "opencachingcom", marbleModel, parent )
{
    updateHome();
    connect(marbleModel, SIGNAL(homeChanged(GeoDataCoordinates)), SLOT(updateHome()));

    // translate known values for tags and cache types
    // What would be a nice place for this??? Put here, since this object is only
    // constructed once.
    // note to translators: "cache" in this context means "geocache",
    // please refer to opencaching.com and wikipedia if in doubt.
    tr("Boat required");
    tr("Chirp");
    tr("Diving");
    tr("Exclusive");
    tr("Historic site");
    tr("Letterbox");
    tr("Night");
    tr("Tree climbing");
    tr("UV light");

    tr("Traditional Cache");
    tr("Multi-cache");
    tr("Virtual Cache");
    tr("Puzzle Cache");
    tr("Unknown Cache");
}
Ejemplo n.º 2
0
void Logbook::setHome(BookmarkItem &item) {
   QDEBUG_EXP("Logbook::setHome(id)", "title: " << item.title << " url: " << item.url << " id: " << item.id);
   if ( item.id != LINK_ITEM_ID_UNDEFINED ) {
      m_settings.setValue(SETTINGS_KEY_HOME_BOOKMARK_ID, item.id);
      item.isHome = true;
      emit homeChanged(item.id);
   }
}