Revision: 56971
http://sourceforge.net/p/brlcad/code/56971
Author: vladbogo
Date: 2013-08-19 20:34:08 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
Added the Qt display manager as a option to the Modes>Display Manager in mged's
menu.
Modified Paths:
--------------
brlcad/trunk/src/mged/attach.c
brlcad/trunk/src/tclscripts/mged/openw.tcl
Modified: brlcad/trunk/src/mged/attach.c
===================================================================
--- brlcad/trunk/src/mged/attach.c 2013-08-19 20:03:35 UTC (rev 56970)
+++ brlcad/trunk/src/mged/attach.c 2013-08-19 20:34:08 UTC (rev 56971)
@@ -346,6 +346,10 @@
Tcl_AppendResult(interpreter, "glx", (char *)NULL);
i++;
#endif /* DM_GLX */
+#ifdef DM_QT
+ Tcl_AppendResult(interpreter, "qt", (char *)NULL);
+ i++;
+#endif /* DM_QT */
if (i==0) {
Tcl_AppendResult(interpreter, "NONE AVAILABLE", (char *)NULL);
}
@@ -695,6 +699,11 @@
Tcl_AppendResult(interpreter, "glx", (char *)NULL);
}
#endif /* DM_GLX */
+#ifdef DM_QT
+ if (BU_STR_EQUAL(argv[argc-1], "qt")) {
+ Tcl_AppendResult(interpreter, "qt", (char *)NULL);
+ }
+#endif /* DM_QT */
return TCL_OK;
}
Modified: brlcad/trunk/src/tclscripts/mged/openw.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/mged/openw.tcl 2013-08-19 20:03:35 UTC (rev
56970)
+++ brlcad/trunk/src/tclscripts/mged/openw.tcl 2013-08-19 20:34:08 UTC (rev
56971)
@@ -1808,6 +1808,12 @@
-label "Tk" -underline 0\
-command "dmtype set tk"
}
+ set have_dm [dm valid qt]
+ if {$have_dm == "qt"} {
+ .$id.menubar.modes.dmtype add radiobutton -value s -variable
mged_gui($id,dtype)\
+ -label "Qt" -underline 0\
+ -command "dmtype set qt"
+ }
hoc_register_menu_data "Modes" "Display Manager" "Display Manager"\
{ { summary "Change the display manager being used to render wireframe
and/or
shaded displays of BRL-CAD models." }
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits