mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-24 05:45:59 +08:00
Prettier presentation of the flight plan editor
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE layout SYSTEM "layout.dtd">
|
||||
|
||||
<layout width="512" height="384">
|
||||
<layout width="650" height="384">
|
||||
<rows>
|
||||
<widget size="256" name="map2d"/>
|
||||
<widget name="editor"/>
|
||||
|
||||
@@ -125,7 +125,11 @@ let load_xml_file = fun geomap editor_frame accel_group xml_file ->
|
||||
try
|
||||
let xml = Xml.parse_file xml_file in
|
||||
ignore (load_xml_fp geomap editor_frame accel_group ~xml_file xml);
|
||||
geomap#fit_to_window ()
|
||||
geomap#fit_to_window ();
|
||||
match GWindow.toplevel geomap#canvas with
|
||||
Some w ->
|
||||
w#set_title (sprintf "%s (%s)" w#title (Filename.basename xml_file))
|
||||
| None -> ()
|
||||
with
|
||||
Dtd.Prove_error(e) -> loading_error xml_file (Dtd.prove_error e)
|
||||
| Dtd.Check_error(e) -> loading_error xml_file (Dtd.check_error e)
|
||||
|
||||
@@ -502,7 +502,8 @@ let _main =
|
||||
match !wid with
|
||||
None ->
|
||||
let icon = GdkPixbuf.from_file Env.icon_file in
|
||||
let window = GWindow.window ~icon ~title:"GCS" ~border_width:1 ~width ~height ~allow_shrink:true () in
|
||||
let title = if !edit then "Flight Plan Editor" else "GCS" in
|
||||
let window = GWindow.window ~icon ~title ~border_width:1 ~width ~height ~allow_shrink:true () in
|
||||
if !maximize then
|
||||
window#maximize ();
|
||||
if !fullscreen then
|
||||
|
||||
Reference in New Issue
Block a user