Hello, Thanks for this feature !
And "table view" for tracks as Basecamp has would be very useful too ! Christouf -------- Message original -------- Objet: Re: [Qlandkartegt-users] How to identify tracks ? Date: 10.08.2014 12:07 De: Oliver Eichler <[email protected]> À: [email protected] Répondre à: [email protected] Hi Max, start to have a look at IMouse.cpp. The is the baseclass of all CMouse... objects. There you will find mouseMoveEventTrack(...). This does nothing as long as there is no track highlighted. At this point you have to implement a call to CTrackDB, which is a singelton and can be addressed vie static method CTrackDB::self(). In CTrackDB you iterate over all CTrack objects and and compare the mouse position to the pixel polyline of each track (see CTrack::getPolyline). Now you need a way to highlight a detected track and to ask the user for a decision if there is more than one track close by. In my new project, QMapShack (https://bitbucket.org/maproom/qmapshack/wiki/Home), I already implemented that feature. So you might want to look at it too. The point to start is src/mouse/CMouseNormal.cpp. I hope that gives you a good point to start. If you got problems to understand the code, which grew a bit chaotic at some points over the years, to hesitate to ask. I am quite often in the IRC channel. That might proof to be the faster medium. Oliver > Oliver Eichler <oliver.eichler@...> writes: > > Hi > > > > this is not implemented. Mainly because I never have 700 tracks on my > > workspace at one time . All my tracks are sorted into the database, by year, > tour and special areas. As the database does not create a copy this can be > done with a minimum overhead. > > > > > But I am always happy to receive a patch. > > > > Oliver > > Hi Oliver, > > I also would really appreciate this feature. I am also willing to contribute > to QLandkarte. Could you give me pointers where in the code I would have to > look? > > Cheers > Max > > > ---------------------------------------------------------------------------- > -- _______________________________________________ > Qlandkartegt-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users ------------------------------------------------------------------------------ _______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users ------------------------------------------------------------------------------ _______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
