]> granicus.if.org Git - graphviz/commitdiff
regex code was isolated in a new dir
authorarif <devnull@localhost>
Tue, 24 Mar 2009 15:16:10 +0000 (15:16 +0000)
committerarif <devnull@localhost>
Tue, 24 Mar 2009 15:16:10 +0000 (15:16 +0000)
cmd/smyrna/btree.h
cmd/smyrna/draw.c
cmd/smyrna/glexpose.c
cmd/smyrna/gui/beacon.c
cmd/smyrna/smyrna.vcproj
cmd/smyrna/topfisheyeview.c
cmd/smyrna/topview.c
graphviz.sln

index d4f19a474cfa7f36dcf95c120aef4906e5212cd2..a6dad1ff4986068b963da06421a1202f6d375652 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef BTREE_H
 #define        BTREE_H
 #include "tvnodes.h"
+#include "regex_win32.h"
 
 btree_node *new_node(char *attribute, char *regex, float min, float max);
 int insert_node(btree_node * parent_n, btree_node * n);
index e991333aa3e633ea060ba12b7a0a28b0af8c4efa..9a3bf4c8c48e912e7309dd3788d8dfacc3f4cb49 100755 (executable)
@@ -474,13 +474,13 @@ static void EmbedText(xdot_op * op, int param)
        x = (GLfloat) op->u.text.x;
     if (op->u.text.align == -1)
        x = (GLfloat) op->u.text.x + op->u.text.width;
-       fontSize(view->fontset->fonts[view->fontset->activefont],view->FontSize);
+       view->fontset->fonts[view->fontset->activefont]->fontheight=view->FontSize;
     if (param == 0)
        fontColor(view->fontset->fonts[view->fontset->activefont],view->penColor.R, view->penColor.G, view->penColor.B,1);
     if (param == 1)            //selected
        fontColor(view->fontset->fonts[view->fontset->activefont],view->selectedNodeColor.R, view->selectedNodeColor.G,
                  view->selectedNodeColor.B,1);
-       fontDrawString(view->fontset->fonts[view->fontset->activefont], (x - dx), (GLfloat)op->u.text.y -  dy,
+       glprintf(view->fontset->fonts[view->fontset->activefont], (x - dx), (GLfloat)op->u.text.y -  dy,
                   (GLfloat)op->u.text.width, op->u.text.text);
 }
 
index ea63cdcb56a21c45c0b1cbfc7739c532d3173af3..5a7bed5f2889d6b2e5373b99ac7d690e7ee7fb32 100644 (file)
@@ -19,7 +19,7 @@
 #include "glutils.h"
 #include "topview.h"
 #include "topfisheyeview.h"
-#include "glTexFont.h"
+#include "glcomptext.h"
 #include "gui/toolboxcallbacks.h"
 
 
index 91a12ccff28738146e2b7deb30bac7b1b7a58beb..c4c6c671c68bd35723b5c3aea71443bbc0398c3d 100644 (file)
@@ -94,7 +94,7 @@ int draw_node_hint_boxes()
                                     agnameof(view->Topview->picked_nodes[ind]->Node));
 /*     fontSize(fs);
        fontColorA(0, 0, 1, 1);
-       fontDrawString((int)
+       glprintf((int)
                       (view->Topview->picked_nodes[ind]->distorted_x -
                        fs / 3 + 1 - fs),
                       (int) (view->Topview->picked_nodes[ind]->
index d474b9567fa8ea5bbd818c2b6ca64cff5609b23d..ab93467cbcdfd735047a61eb20a1e4309b560926 100644 (file)
@@ -41,7 +41,7 @@
                                AdditionalOptions="/D &quot;_CRT_SECURE_NO_DEPRECATE&quot;"
                                Optimization="0"
                                AdditionalIncludeDirectories="&quot;C:\graphviz-ms\graphviz2\lib\windirent&quot;;&quot;$(SolutionDir)/lib/gvc&quot;;&quot;C:\gtk\include\libglade-2.0&quot;;&quot;$(SolutionDir)/lib/neatogen&quot;;&quot;$(SolutionDir)/lib/sparse&quot;;&quot;$(SolutionDir)/lib/topfish&quot;;&quot;C:\gtk\lib\gtkglext-1.0\include&quot;;&quot;C:\gtk\include\gtkglext-1.0\&quot;;C:\gtk\include\cairo;&quot;C:\gtk\include\atk-1.0&quot;;&quot;C:\gtk\lib\gtk-2.0\include\cairo&quot;;&quot;C:\gtk\lib\gtk-2.0\include&quot;;&quot;C:\gtk\include\gtk-2.0\&quot;;&quot;$(SolutionDir)/cmd/smyrna/gui&quot;;&quot;$(SolutionDir)/cmd/smyrna&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)/lib/glcomp&quot;;&quot;C:\gtk\lib\glib-2.0\include&quot;;&quot;C:\gtk\include\glib-2.0&quot;;&quot;C:\gtk\include\pango-1.0\&quot;;C:\gtk\include;&quot;$(SolutionDir)/lib/common&quot;;&quot;$(SolutionDir)/lib/cdt&quot;;&quot;$(SolutionDir)/lib/cgraph&quot;;&quot;$(SolutionDir)/windows\lib\ingraphs&quot;;&quot;$(SolutionDir)/lib/xdot&quot;;&quot;$(SolutionDir)/lib/otk_lib&quot;"
-                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_TRIANGLE;HAVE_CONFIG_H;HAVE_GTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_TRIANGLE;HAVE_CONFIG_H;HAVE_GTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_DLL"
                                MinimalRebuild="true"
                                BasicRuntimeChecks="3"
                                RuntimeLibrary="3"
@@ -62,7 +62,7 @@
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="mspng.lib gtk-win32-2.0.lib asprintf.lib atk-1.0.lib bz2.lib cairo.lib charset.lib croco-0.6.lib expat.lib expatw.lib glade-2.0.lib fontconfig.lib freetype.lib gdk_pixbuf-2.0.lib gdkglext-win32-1.0.lib gdk-win32-2.0.lib glib-2.0.lib gmodule-2.0.lib gobject-2.0.lib gsf-1.lib gsf-win32-1.lib gthread-2.0.lib gtkglext-win32-1.0.lib iconv.lib intl.lib jpeg.lib libexpat.lib libexpatw.lib pango-1.0.lib pangocairo-1.0.lib pangoft2-1.0.lib pangowin32-1.0.lib popt.lib rsvg-2.lib tiff.lib xml2.lib libgdkglext-win32-1.0.dll.a libgtkglext-win32-1.0.dll.a glu32.lib opengl32.lib ltdl.lib hs_regex.lib zdll.lib gladeui-1.lib glcomp.lib cgraph.lib gvc.lib xdot.lib topfish.lib ingraphs.lib neatogen.lib gts.lib User32.lib Gdi32.lib shlwapi.lib $(NOINHERIT)"
+                               AdditionalDependencies="mspng.lib gtk-win32-2.0.lib asprintf.lib atk-1.0.lib bz2.lib cairo.lib charset.lib croco-0.6.lib expat.lib expatw.lib glade-2.0.lib fontconfig.lib freetype.lib gdk_pixbuf-2.0.lib gdkglext-win32-1.0.lib gdk-win32-2.0.lib glib-2.0.lib gmodule-2.0.lib gobject-2.0.lib gsf-1.lib gsf-win32-1.lib gthread-2.0.lib gtkglext-win32-1.0.lib iconv.lib intl.lib jpeg.lib libexpat.lib libexpatw.lib pango-1.0.lib pangocairo-1.0.lib pangoft2-1.0.lib pangowin32-1.0.lib popt.lib rsvg-2.lib tiff.lib xml2.lib libgdkglext-win32-1.0.dll.a libgtkglext-win32-1.0.dll.a glu32.lib opengl32.lib ltdl.lib hs_regex.lib zdll.lib gladeui-1.lib glcomp.lib cgraph.lib gvc.lib xdot.lib topfish.lib ingraphs.lib neatogen.lib gts.lib User32.lib Gdi32.lib shlwapi.lib regex_win32.lib $(NOINHERIT)"
                                OutputFile="c:/graphviz-ms/bin/$(ProjectName).exe"
                                LinkIncremental="2"
                                AdditionalLibraryDirectories="C:\glade_setup\lib;&quot;C:\graphviz-ms\bin&quot;;C:\gtk\lib;C:\GnuWin32\lib;&quot;C:\Projects\graphviz2\lib\zlib-1.2.3\lib&quot;;C:\Projects\cairo_build\lib;C:\Projects\ATT\GTK\GTKTest2\lib;C:\GtkGLExt\1.0\lib;C:\GTK\2.0\bin;C:\GTK\2.0\lib"
                                RelativePath=".\gui\menucallbacks.c"
                                >
                        </File>
-                       <File
-                               RelativePath=".\regex_win32.c"
-                               >
-                       </File>
                        <File
                                RelativePath=".\selection.c"
                                >
index b7ac291bf828d6f3e6cf05239d5fe8baef9cdce0..4e34bed567d520595d6b648d17621ea9a0ddc362 100644 (file)
@@ -14,7 +14,7 @@
 **********************************************************/
 #include "topfisheyeview.h"
 
-#include "glTexFont.h"
+#include "glcomptext.h"
 #include "glcomptextpng.h"
 #include "math.h"
 #include "memory.h"
@@ -422,15 +422,15 @@ void drawtopfishnodelabels(topview* t)
                                {
                                        fs=view->FontSizeConst*(float)1.4;
                                        fontColor(view->fontset->fonts[view->fontset->activefont],(float)0, (float)0, (float)1, (float)1);
-                                       fontSize(view->fontset->fonts[view->fontset->activefont],fs);
-                                       fontDrawString(view->fontset->fonts[view->fontset->activefont],gg[v].physical_x_coord,gg[v].physical_y_coord, (fs*strlen(buf)*(GLfloat)0.4),buf);
+                                       view->fontset->fonts[view->fontset->activefont]->fontheight=fs;
+                                       glprintf(view->fontset->fonts[view->fontset->activefont],gg[v].physical_x_coord,gg[v].physical_y_coord, (fs*strlen(buf)*(GLfloat)0.4),buf);
                                }
                                else if (finenodes)
                                {
                                        fs=view->FontSizeConst*1.2;
                                        fontColor(view->fontset->fonts[view->fontset->activefont],0, 0, 0, 1);
-                                       fontSize(view->fontset->fonts[view->fontset->activefont],fs);
-                                       fontDrawString(view->fontset->fonts[view->fontset->activefont],gg[v].physical_x_coord,gg[v].physical_y_coord, (fs*strlen(buf)*(GLfloat)0.4),buf);
+                                       view->fontset->fonts[view->fontset->activefont]->fontheight=fs;
+                                       glprintf(view->fontset->fonts[view->fontset->activefont],gg[v].physical_x_coord,gg[v].physical_y_coord, (fs*strlen(buf)*(GLfloat)0.4),buf);
                                }
                        }
 
index 45b2a5947c3b6e1fd4654c83d51a6ba1fb2ee7d8..8b2fe058450be6e888da41bf523748bd7827c35c 100755 (executable)
@@ -13,7 +13,7 @@
 *        Information and Software Systems Research        *
 *              AT&T Research, Florham Park NJ             *
 **********************************************************/
-#include "glTexFont.h"
+#include "glcomptext.h"
 #include "glcomptextpng.h"
 #include "glcompbutton.h"
 #include "glcomppanel.h"
@@ -649,11 +649,11 @@ static int draw_node_hint_boxes(void)
                          (GLfloat) fs,agnameof(view->Topview->picked_nodes[ind]->Node)
                          )
                          ;
-       fontSize(view->fontset->fonts[view->fontset->activefont],fs);
+               view->fontset->fonts[view->fontset->activefont]->fontheight=fs;
        fontColor(view->fontset->fonts[view->fontset->activefont],0, 0, 1, 1);
 
 
-       fontDrawString(
+       glprintf(
                view->fontset->fonts[view->fontset->activefont],
                       (view->Topview->picked_nodes[ind]->distorted_x),
                        (view->Topview->picked_nodes[ind]->
@@ -893,7 +893,7 @@ static int draw_topview_label(topview_node * v, float zdepth)
 
 
 
-       fontSize(view->fontset->fonts[view->fontset->activefont],fs);
+       view->fontset->fonts[view->fontset->activefont]->fontheight=fs;
        if ((log((float) v->degree) * -0.6 * view->zoom) > 0)
            fontColor(view->fontset->fonts[view->fontset->activefont],(float) log((double) v->degree + (double) 1),
                       view->penColor.G, view->penColor.B,
@@ -905,7 +905,7 @@ static int draw_topview_label(topview_node * v, float zdepth)
 
        fontColor(view->fontset->fonts[view->fontset->activefont],0,0,0,view->penColor.A / (float) log((double) v->degree) *
                       (float) -0.4 * (float) view->zoom);
-       fontDrawString(view->fontset->fonts[view->fontset->activefont],(v->distorted_x - ddx),
+       glprintf(view->fontset->fonts[view->fontset->activefont],(v->distorted_x - ddx),
                        (v->distorted_y - ddy),  (fs * strlen(v->Label)*(float)0.6),v->Label   );
 
        return 1;
index 1bde76cf74823b38ca27a320b0c7c697828e1b58..fc61bbff7789c38e538c27edda27084bb56effb3 100644 (file)
@@ -184,6 +184,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libpng", "lib\libpng\1.2.24
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvplugin_gdiplus", "plugin\gdiplus\gvplugin_gdiplus.vcproj", "{0F4D5D8F-F4D6-4A5D-97E0-9B482257F493}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "regex_win32", "lib\regex_win32\regex_win32.vcproj", "{1DE8628B-271E-49B3-A9B7-A53519E1CA65}"
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -394,6 +396,10 @@ Global
                {0F4D5D8F-F4D6-4A5D-97E0-9B482257F493}.Debug|Win32.Build.0 = Debug|Win32
                {0F4D5D8F-F4D6-4A5D-97E0-9B482257F493}.Release|Win32.ActiveCfg = Release|Win32
                {0F4D5D8F-F4D6-4A5D-97E0-9B482257F493}.Release|Win32.Build.0 = Release|Win32
+               {1DE8628B-271E-49B3-A9B7-A53519E1CA65}.Debug|Win32.ActiveCfg = Debug|Win32
+               {1DE8628B-271E-49B3-A9B7-A53519E1CA65}.Debug|Win32.Build.0 = Debug|Win32
+               {1DE8628B-271E-49B3-A9B7-A53519E1CA65}.Release|Win32.ActiveCfg = Release|Win32
+               {1DE8628B-271E-49B3-A9B7-A53519E1CA65}.Release|Win32.Build.0 = Release|Win32
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE