[brlcad-commits] SF.net SVN: brlcad:[44714] brlcad/trunk/include/bu.h

2011-05-31 Thread brlcad
Revision: 44714
  http://brlcad.svn.sourceforge.net/brlcad/?rev=44714view=rev
Author:   brlcad
Date: 2011-05-31 13:19:27 + (Tue, 31 May 2011)

Log Message:
---
consider different encoding types for proper flexibility

Modified Paths:
--
brlcad/trunk/include/bu.h

Modified: brlcad/trunk/include/bu.h
===
--- brlcad/trunk/include/bu.h   2011-05-27 23:05:05 UTC (rev 44713)
+++ brlcad/trunk/include/bu.h   2011-05-31 13:19:27 UTC (rev 44714)
@@ -4969,6 +4969,12 @@
  * given an input string, wrap the string in double quotes if there is
  * a space.  escape any existing double quotes.
  *
+ * TODO: consider a specifiable quote character and octal encoding
+ * instead of double quote wrapping.  perhaps specifiable encode type:
+ *   BU_ENCODE_QUOTE
+ *   BU_ENCODE_OCTAL
+ *   BU_ENCODE_XML
+ *
  * the behavior of this routine is subject to change but should remain
  * a reversible operation when used in conjunction with
  * bu_vls_decode().


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[44715] brlcad/trunk/src/tclscripts/mged/g2asc.tcl

2011-05-31 Thread starseeker
Revision: 44715
  http://brlcad.svn.sourceforge.net/brlcad/?rev=44715view=rev
Author:   starseeker
Date: 2011-05-31 16:08:17 + (Tue, 31 May 2011)

Log Message:
---
Reviewed and applied patch from Brandon Hinesley (one of our 2011 GSoC 
students) that replaces MGED's g2asc saving dialog with the proper use of 
tk_getSaveFile.

Modified Paths:
--
brlcad/trunk/src/tclscripts/mged/g2asc.tcl

Modified: brlcad/trunk/src/tclscripts/mged/g2asc.tcl
===
--- brlcad/trunk/src/tclscripts/mged/g2asc.tcl  2011-05-31 13:19:27 UTC (rev 
44714)
+++ brlcad/trunk/src/tclscripts/mged/g2asc.tcl  2011-05-31 16:08:17 UTC (rev 
44715)
@@ -40,37 +40,22 @@
 set top .$id.ascii
 catch { destroy $top }
 
+# get the name of the ascii database to save
 set db_name [_mged_opendb]
-set default_name [file rootname $db_name].asc
-set ret [cad_input_dialog $top $mged_gui($id,screen) Save as Ascii\
-Enter ascii filename: ascii_filename\
-$default_name 0 {{ summary Enter a filename to indicate where
-to put the acsii converted database.}} OK Cancel]
+set default_name [file tail [file rootname $db_name]].asc
+set ftypes {{{Ascii Database} {.asc}} {{All Files} {*}}}
+set filename [tk_getSaveFile -parent .$id -filetypes $ftypes \
+ -initialdir $mged_gui(databaseDir) \
+ -initialfile $default_name \
+ -title Extract Ascii Database]
 
+if { $filename !=  } {  
+# save the current directory for subsequent file saves
+set mged_gui(databaseDir) [ file dirname $filename ]
 
-if { $ascii_filename !=  } {
-   if { $ret == 0 } {
-   if [file exists $ascii_filename] {
-   set result [cad_dialog $::tk::Priv(cad_dialog) 
$mged_gui($id,screen)\
-   Overwrite $ascii_filename?\
-   Overwrite $ascii_filename?\
-0 OK Cancel]
-
-   if { $result } {
-   return
-   }
-   }
-
-   set g2asc [file join [bu_brlcad_root bin] g2asc]
-   catch {exec $g2asc $db_name $ascii_filename} msg
-   }
-} else {
-   if { $ret == 0 } {
-   cad_dialog $::tk::Priv(cad_dialog) $mged_gui($id,screen)\
-   No file name specified!\
-   No file name specified!\
-0 OK
-   }
+# convert binary database to ascii
+set g2asc [bu_brlcad_root bin/g2asc]
+catch {exec $g2asc $db_name $filename} msg
 }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[44716] brlcad/trunk/AUTHORS

2011-05-31 Thread brlcad
Revision: 44716
  http://brlcad.svn.sourceforge.net/brlcad/?rev=44716view=rev
Author:   brlcad
Date: 2011-05-31 16:26:16 + (Tue, 31 May 2011)

Log Message:
---
note the code contribution from sf patch 3258381 (mged's export ASCII: Changed 
input box to a save file dialog) that cliff applied in r44715

Modified Paths:
--
brlcad/trunk/AUTHORS

Modified: brlcad/trunk/AUTHORS
===
--- brlcad/trunk/AUTHORS2011-05-31 16:08:17 UTC (rev 44715)
+++ brlcad/trunk/AUTHORS2011-05-31 16:26:16 UTC (rev 44716)
@@ -492,8 +492,14 @@
 
 Shinn, Rob
 2010 April
+Open Source
 
+Hinesley, Brandon
+nicknames bhinesley
+2011 May
+Open Source (GSoC)
 
+
 SPECIAL THANKS
 --
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[44717] brlcad/trunk/src/tclscripts/archer/ArcherCore. tcl

2011-05-31 Thread bob1961
Revision: 44717
  http://brlcad.svn.sourceforge.net/brlcad/?rev=44717view=rev
Author:   bob1961
Date: 2011-05-31 17:27:32 + (Tue, 31 May 2011)

Log Message:
---
Removed bot2pipe from mArcherCoreCommands.

Modified Paths:
--
brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl

Modified: brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl
===
--- brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2011-05-31 16:26:16 UTC 
(rev 44716)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2011-05-31 17:27:32 UTC 
(rev 44717)
@@ -436,7 +436,7 @@
# a few commands that are implemented here in ArcherCore.
variable mArcherCoreCommands { \
   3ptarb adjust arced attr bb bev 
blast bo \
-  bot bot2pipe bot_condense 
bot_decimate bot_face_fuse \
+  bot bot_condense bot_decimate 
bot_face_fuse \
   bot_face_sort bot_flip bot_merge 
bot_smooth bot_split bot_sync bot_vertex_fuse \
   c cd clear clone color comb 
comb_color combmem copy copyeval copymat \
   cp cpi dbconcat dbExpand decompose 
delete draw E edcodes edcolor edcomb \


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits