Revision: 57061
          http://sourceforge.net/p/brlcad/code/57061
Author:   vladbogo
Date:     2013-08-22 11:03:37 +0000 (Thu, 22 Aug 2013)
Log Message:
-----------
Added the Qt display manager as a valid dm.

Modified Paths:
--------------
    brlcad/trunk/src/libtclcad/tclcad_obj.c

Modified: brlcad/trunk/src/libtclcad/tclcad_obj.c
===================================================================
--- brlcad/trunk/src/libtclcad/tclcad_obj.c     2013-08-22 10:58:24 UTC (rev 
57060)
+++ brlcad/trunk/src/libtclcad/tclcad_obj.c     2013-08-22 11:03:37 UTC (rev 
57061)
@@ -90,6 +90,10 @@
 #  include "dm-wgl.h"
 #endif /* DM_WGL */
 
+#ifdef DM_QT
+#  include "dm_xvars.h"
+#endif /* DM_QT */
+
 /* Private headers */
 #include "tclcad_private.h"
 
@@ -9640,6 +9644,11 @@
        type = DM_TYPE_WGL;
 #endif /* DM_WGL */
 
+#ifdef DM_QT
+    if (BU_STR_EQUAL(argv[2], "qt"))
+       type = DM_TYPE_QT;
+#endif /* DM_QT */
+
     if (type == DM_TYPE_BAD) {
        bu_vls_printf(gedp->ged_result_str, "ERROR:  Requisite display manager 
is not available.\nBRL-CAD may need to be recompiled with support for:  %s\nRun 
'fbhelp' for a list of available display managers.\n", argv[2]);
        return GED_ERROR;
@@ -11997,7 +12006,7 @@
        }
     }
 
-#if defined(DM_X) || defined(DM_TK) || defined(DM_OGL) || defined(DM_WGL)
+#if defined(DM_X) || defined(DM_TK) || defined(DM_OGL) || defined(DM_WGL) || 
defined(DM_QT)
 #   if (defined HAVE_TK)
     Tk_GeometryRequest(((struct dm_xvars 
*)gdvp->gdv_dmp->dm_vars.pub_vars)->xtkwin,
                       width, height);

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

Reply via email to