60FXIMPLEMENT(
GUIGLObjectPopupMenu, FXMenuPane, GUIGLObjectPopupMenuMap, ARRAYNUMBER(GUIGLObjectPopupMenuMap))
99 if (child ==
nullptr) {
218 Position lowLeft(b.xmin(), b.ymin());
220 Position upRight(b.xmax(), b.ymax());
232 FXMenuCommand*
const mc =
dynamic_cast<FXMenuCommand*
>(item);
235 std::string url =
myApplication->getOnlineMaps().find(mc->getText().text())->second;
@ MID_ADDSELECT
Add to selected items - menu entry.
@ MID_COPY_CURSOR_GEOPOSITION
Copy cursor geo-coordinate position - popup entry.
@ MID_CENTER
Center view to object - popup entry.
@ MID_COPY_TEST_COORDINATES
Copy test coordinates.
@ MID_SHOW_GEOPOSITION_ONLINE
Show the cursor geo-coordinate position online in GeoHack - popup entry.
@ MID_COPY_TYPED_NAME
Copy typed object name - popup entry.
@ MID_COPY_EDGE_NAME
Copy edge name (for lanes only).
@ MID_COPY_CURSOR_POSITION
Copy cursor position - popup entry.
@ MID_SHOWPARS
Show object parameter - popup entry.
@ MID_COPY_NAME
Copy object name - popup entry.
@ MID_COPY_VIEW_GEOBOUNDARY
Copy view geo-coordinate boundary - popup entry.
@ MID_SHOWTYPEPARS
Show object type parameter - popup entry.
@ MID_REMOVESELECT
Remove from selected items - Menu Entry.
GUISelectedStorage gSelected
A global holder of selected objects.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A class that stores a 2D geometrical boundary.
static void copyToClipboard(const FXApp &app, const std::string &text)
Copies the given text to clipboard.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
void cartesian2geo(Position &cartesian) const
Converts the given cartesian (shifted) position to its geo (lat/long) representation.
static FXint fxexecute(FXString link)
A point in 2D or 3D with translation and scaling methods.
double x() const
Returns the x-position.
double y() const
Returns the y-position.
static std::string replace(std::string str, const std::string &what, const std::string &by)
Replaces all occurrences of the second string by the third string within the first string.