
qMetro
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Subway maps of the World!
Vector metro (subway) map for search routes and getting information. About 200 maps of subways are available. Maps have an open format and can be edited or created. And you can download maps from within the app.
Its GPL project for creating analog of pMetro (Muradov Boris) and its use PMZ format.
Available for:
Windows, Linux, Mac, OS/2, Maemo, MeeGo, Symbian
Additional maps:
http://translate.google.com/translate?sl=ru&tl=en&u=http://pmetro.su/Maps.html
Awards:
Russian MeeGo contest
100% FREE award granted by Softpedia
http://mac.softpedia.com/progClean/qMetro-Clean-109038.html
Features:
- view maps
- search stations
- search routes and fit in view
- description route
- multilanguage
- information for station
- settings - interface, perfomance...
- mobile UI for mobile devices
LazyKent
7 years ago
I: Program returns random data in a function
E: qmetro no-return-in-nonvoid-function src/mapview/mapview.cpp:2529
g++ -c -pipe -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -O2 -Wall -W -D_REENTRANT -DVERSION=\"0.6.6\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -Isrc/zlib -I. -I. -o completer.o src/completer.cpp
src/mapview/mapview.cpp: In member function 'void TMapView::defaultConfig()':
src/mapview/mapview.cpp:2172:23: warning: comparison between 'enum QLocale::Country' and 'enum QLocale::Language' [-Wenum-compare]
if(country==QLocale::Czech) city="Praha"; else
^
src/mapview/mapview.cpp:2173:23: warning: comparison between 'enum QLocale::Country' and 'enum QLocale::Language' [-Wenum-compare]
if(country==QLocale::Spanish) city="Madrid"; else
^
src/mapview/mapview.cpp: In member function 'virtual bool TMapView::viewportEvent(QEvent*)':
src/mapview/mapview.cpp:2529:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Что нужно добавить?
Report
NoIdea
7 years ago
+++ mapview.cpp
@@ -2522,10 +2522,8 @@
}
break;
-
- default:
- return QGraphicsView::viewportEvent(event);
}
+ return QGraphicsView::viewportEvent(event);
}
p.s.> svn110 это 0.6.7 но местами сыроват.
Report
LazyKent
7 years ago
> p.s.> svn110 это 0.6.7 но местами сыроват.
Ну, я не дождался тарбола с исходниками. Решил собрать последнюю версию для openSUSE из SVN.
Диалог "О программе", однако, показывает 0.6.6.
Пока обозначил версию пакета 0.6.6+svn.110.
Report
NoIdea
7 years ago
+++ mapview.cpp
@@ -2522,10 +2522,8 @@
}
break;
-
- default:
- return QGraphicsView::viewportEvent(event);
}
+ return QGraphicsView::viewportEvent(event);
}
p.s.> svn110 это 0.6.7 но местами сыроват.
Report
tobaj
8 years ago
cd /<path-to-qmake-src>/
qmake
make
i get this error:
----------------
src/alarm/audiooutput.cpp:4:24: fatal error: QAudioOutput: No such file or directory
compilation terminated.
make: *** [audiooutput.o] Error 1
any suggestions?
Report
NoIdea
8 years ago
It's because now QtMultimediaKit (QtMobility) outside of Qt.
I just fix it: https://sourceforge.net/p/qmetro/code/108/
1. Install qtmobility-dev
2. Use fixed alarm.pri:
https://sourceforge.net/p/qmetro/code/108/tree/rc/alarm.pri
Or just compile without alarm, it's now little used.
1. Remove line 12: "include(rc/alarm.pri)" from qmetro.pro
Report
tobaj
8 years ago
Report
NoIdea
8 years ago
It's because now QtMultimediaKit (QtMobility) outside of Qt.
I just fix it: https://sourceforge.net/p/qmetro/code/108/
1. Install qtmobility-dev
2. Use fixed alarm.pri:
https://sourceforge.net/p/qmetro/code/108/tree/rc/alarm.pri
Or just compile without alarm, it's now little used.
1. Remove line 12: "include(rc/alarm.pri)" from qmetro.pro
Report
LazyKent
8 years ago
src/completer.cpp: In member function 'QList<QPair<QString, QColor> > TCompleter::filterList(QList<QPair<QString, QColor> >, QString)':
src/completer.cpp:199:1: warning: control reaches end of non-void function [-Wreturn-type]
У меня из-за этого не собирается пакет в OBS. Вот здесь полный лог:
https://build.opensuse.org/package/rawlog?arch=x86_64&package=qmetro&project=home%3ALazy_Kent&repository=openSUSE_Factory
Дайте, пожалуйста, патч.
Report
NoIdea
8 years ago
Но все остальные платформы схавали это! :D
Я так понял, ему не хватает "return filtred;" в предпоследней строке completer.cpp (199)
Quote:no-return-in-nonvoid-function src/completer.cpp:199
Report
LazyKent
8 years ago
Добавьте, пожалуйста, в описание ссылку на пакеты для openSUSE.
http://software.opensuse.org/search?q=qmetro
Report
NoIdea
8 years ago
Report
Drool
8 years ago
P.S. А возможно ли реализовать автоматическое скачивание нужных карт средствами самой программы?
Report
NoIdea
8 years ago
А на счёт этого расположения... люди разбирающиеся в иерархии Linux подсказали, что это правильное место для карт и локалей, но мне если честно тоже не нравится.
Можете предложить решение? Может просто права выставить?...
Report
Drool
8 years ago
Report
NoIdea
8 years ago
Предустановленные карты - для угадывания твоего города и ознакомления с программой, а скачаешь дополнительные - можешь положить их куда угодно, программа запомнит этот путь, если используется карта оттуда.
Report
LazyKent
8 years ago
Я вообще собираю отдельный пакет с картами и регулярно обновляю.
Report
ZLv
9 years ago
Report
NoIdea
9 years ago
... and thanks for comment - very pleasure.
Report
ZLv
9 years ago
Report
NoIdea
9 years ago
You can change setting for perfomance.
Report