Revision: 55829
          http://sourceforge.net/p/brlcad/code/55829
Author:   vladbogo
Date:     2013-06-24 19:00:49 +0000 (Mon, 24 Jun 2013)
Log Message:
-----------
Added the qt display manager files to mged folder so that mged can use it.

Modified Paths:
--------------
    brlcad/trunk/src/mged/CMakeLists.txt
    brlcad/trunk/src/mged/attach.c

Added Paths:
-----------
    brlcad/trunk/src/mged/dm-qt.c

Modified: brlcad/trunk/src/mged/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/mged/CMakeLists.txt        2013-06-24 18:51:04 UTC (rev 
55828)
+++ brlcad/trunk/src/mged/CMakeLists.txt        2013-06-24 19:00:49 UTC (rev 
55829)
@@ -80,6 +80,7 @@
   dm-plot.c
   dm-ps.c
   dm-txt.c
+  dm-qt.c
   dodraw.c
   doevent.c
   dozoom.c

Modified: brlcad/trunk/src/mged/attach.c
===================================================================
--- brlcad/trunk/src/mged/attach.c      2013-06-24 18:51:04 UTC (rev 55828)
+++ brlcad/trunk/src/mged/attach.c      2013-06-24 19:00:49 UTC (rev 55829)
@@ -56,7 +56,8 @@
        IS_DM_TYPE_PEX(_type) || \
        IS_DM_TYPE_TK(_type) || \
        IS_DM_TYPE_X(_type) || \
-       IS_DM_TYPE_TXT(_type))
+       IS_DM_TYPE_TXT(_type) || \
+       IS_DM_TYPE_QT(_type))
 
 
 /* All systems can compile these! */
@@ -102,6 +103,10 @@
 extern int Pex_dm_init();
 #endif /* DM_PEX */
 
+#ifdef DM_QT
+extern int Qt_dm_init();
+#endif /* DM_QT */
+
 extern void fbserv_set_port(void);             /* defined in fbserv.c */
 extern void share_dlist(struct dm_list *dlp2); /* defined in share.c */
 
@@ -142,6 +147,9 @@
 #ifdef DM_PEX
     { DM_TYPE_PEX, "pex", Pex_dm_init },
 #endif /* DM_PEX */
+#ifdef DM_QT
+    { DM_TYPE_QT, "qt", Qt_dm_init },
+#endif /* DM_QT */
     { -1, (char *)NULL, (int (*)())NULL}
 };
 

Added: brlcad/trunk/src/mged/dm-qt.c
===================================================================
--- brlcad/trunk/src/mged/dm-qt.c                               (rev 0)
+++ brlcad/trunk/src/mged/dm-qt.c       2013-06-24 19:00:49 UTC (rev 55829)
@@ -0,0 +1,58 @@
+/*                          D M - Q T . C
+ * BRL-CAD
+ *
+ * Copyright (c) 2013 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file mged/dm-qt.c
+ *
+ * Routines specific to MGED's use of LIBDM's X display manager.
+ *
+ */
+
+#include "common.h"
+
+#include <stdlib.h>
+#include <math.h>
+#include <string.h>
+
+#include "./mged.h"
+#include "./sedit.h"
+#include "./mged_dm.h"
+
+extern void dm_var_init(struct dm_list *initial_dm_list);              /* 
defined in attach.c */
+
+int
+Qt_dm_init(struct dm_list *o_dm_list,
+         int argc,
+         const char *argv[])
+{
+    dm_var_init(o_dm_list);
+    if ((dmp = dm_open(INTERP, DM_TYPE_QT, argc-1, argv)) == DM_NULL)
+       return TCL_ERROR;
+    return TCL_OK;
+}
+
+
+/*
+ * Local Variables:
+ * mode: C
+ * tab-width: 8
+ * indent-tabs-mode: t
+ * c-file-style: "stroustrup"
+ * End:
+ * ex: shiftwidth=4 tabstop=8
+ */


Property changes on: brlcad/trunk/src/mged/dm-qt.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to