Sha256: 4fb6cd7b6ff1da740e44dab19609bb98b3c7a05b752e020038163df8ea7b9769
Contents?: true
Size: 986 Bytes
Versions: 1
Compression:
Stored size: 986 Bytes
Contents
#!/usr/bin/env ruby ################################################## # Flightgear Mapping # # Provide a real-time map of flight position in Flightgear. It is based on tiles from Openstreetmap, # downloads them in the background, provides navigation aids and runways, allows setting of waypoints # and tracks the flight. # # License # GPL V2 # # Author Michael Meltner (mmeltner@gmail.com) ################################################## # check if we were launched via symlink, then resolve it myself = __FILE__ if File.lstat(myself).symlink? then myself = File.readlink(__FILE__) end Dir.chdir(File.dirname(myself)) require "rubygems" require "Qt4" require "./main-dlg-impl.rb" a = Qt::Application.new(ARGV) a.setWindowIcon(Qt::Icon.new(":/icons/vor.png")) u = Qt::MainWindow.new w = MainDlg.new(u, ARGV[0]) u.resize(w.size) # set Mainwindow to correct size u.setCentralWidget(w) # make widget part of the mainwindow to allow resizing u.show w.movemap(w.node,true) a.exec
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fgmapping-2.0.0 | lib/fgmapping/waypoint.rb |