diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /packaging/macosx/Resources | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'packaging/macosx/Resources')
16 files changed, 267 insertions, 0 deletions
diff --git a/packaging/macosx/Resources/EPS.icns b/packaging/macosx/Resources/EPS.icns Binary files differnew file mode 100644 index 000000000..153a21ec9 --- /dev/null +++ b/packaging/macosx/Resources/EPS.icns diff --git a/packaging/macosx/Resources/EPSI.icns b/packaging/macosx/Resources/EPSI.icns Binary files differnew file mode 100644 index 000000000..4b9a1893f --- /dev/null +++ b/packaging/macosx/Resources/EPSI.icns diff --git a/packaging/macosx/Resources/Inkscape.icns b/packaging/macosx/Resources/Inkscape.icns Binary files differnew file mode 100644 index 000000000..f177047c0 --- /dev/null +++ b/packaging/macosx/Resources/Inkscape.icns diff --git a/packaging/macosx/Resources/MenuBar.nib/classes.nib b/packaging/macosx/Resources/MenuBar.nib/classes.nib new file mode 100644 index 000000000..ea58db118 --- /dev/null +++ b/packaging/macosx/Resources/MenuBar.nib/classes.nib @@ -0,0 +1,4 @@ +{ +IBClasses = (); +IBVersion = 1; +} diff --git a/packaging/macosx/Resources/MenuBar.nib/info.nib b/packaging/macosx/Resources/MenuBar.nib/info.nib new file mode 100644 index 000000000..c0f4643ef --- /dev/null +++ b/packaging/macosx/Resources/MenuBar.nib/info.nib @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>IBDocumentLocation</key> + <string>99 362 356 240 0 0 1280 832 </string> + <key>IBEditorPositions</key> + <dict> + <key>187</key> + <string>340 374 240 44 0 0 1280 832 </string> + </dict> + <key>IBFramework Version</key> + <string>349.0</string> + <key>IBOpenObjects</key> + <array> + <integer>187</integer> + </array> + <key>IBSystem Version</key> + <string>7F44</string> + <key>targetFramework</key> + <string>IBCarbonFramework</string> +</dict> +</plist> diff --git a/packaging/macosx/Resources/MenuBar.nib/objects.xib b/packaging/macosx/Resources/MenuBar.nib/objects.xib new file mode 100644 index 000000000..78f0a0a01 --- /dev/null +++ b/packaging/macosx/Resources/MenuBar.nib/objects.xib @@ -0,0 +1,73 @@ +<?xml version="1.0" standalone="yes"?> +<object class="NSIBObjectData"> + <string name="targetFramework">IBCarbonFramework</string> + <object name="rootObject" class="NSCustomObject" id="1"> + <string name="customClass">NSApplication</string> + </object> + <array count="4" name="allObjects"> + <object class="IBCarbonMenu" id="187"> + <string name="title">MenuBar</string> + <array count="1" name="items"> + <object class="IBCarbonMenuItem" id="195"> + <string name="title">ScriptExec</string> + <object name="submenu" class="IBCarbonMenu" id="193"> + <string name="title">ScriptExec</string> + <string name="name">_NSAppleMenu</string> + </object> + </object> + </array> + <string name="name">_NSMainMenu</string> + </object> + <reference idRef="193"/> + <reference idRef="195"/> + <object class="IBCarbonMenuItem" id="204"> + <string name="title">Window</string> + <object name="submenu" class="IBCarbonMenu"> + <string name="title">Window</string> + <array count="5" name="items"> + <object class="IBCarbonMenuItem"> + <boolean name="dynamic">TRUE</boolean> + <string name="title">Minimize Window</string> + <string name="keyEquivalent">m</string> + <ostype name="command">mini</ostype> + </object> + <object class="IBCarbonMenuItem"> + <boolean name="dynamic">TRUE</boolean> + <string name="title">Minimize All Windows</string> + <string name="keyEquivalent">m</string> + <int name="keyEquivalentModifier">1572864</int> + <ostype name="command">mini</ostype> + </object> + <object class="IBCarbonMenuItem"> + <boolean name="separator">TRUE</boolean> + </object> + <object class="IBCarbonMenuItem"> + <boolean name="dynamic">TRUE</boolean> + <string name="title">Bring All to Front</string> + <ostype name="command">frnt</ostype> + </object> + <object class="IBCarbonMenuItem"> + <boolean name="dynamic">TRUE</boolean> + <string name="title">Bring in Front</string> + <int name="keyEquivalentModifier">1572864</int> + <ostype name="command">frnt</ostype> + </object> + </array> + <string name="name">_NSWindowsMenu</string> + </object> + </object> + </array> + <array count="4" name="allParents"> + <reference idRef="1"/> + <reference idRef="195"/> + <reference idRef="187"/> + <reference idRef="187"/> + </array> + <dictionary count="2" name="nameTable"> + <string>File's Owner</string> + <reference idRef="1"/> + <string>MenuBar</string> + <reference idRef="187"/> + </dictionary> + <unsigned_int name="nextObjectID">206</unsigned_int> +</object> diff --git a/packaging/macosx/Resources/ProgressWindow.nib/classes.nib b/packaging/macosx/Resources/ProgressWindow.nib/classes.nib new file mode 100644 index 000000000..ea58db118 --- /dev/null +++ b/packaging/macosx/Resources/ProgressWindow.nib/classes.nib @@ -0,0 +1,4 @@ +{ +IBClasses = (); +IBVersion = 1; +} diff --git a/packaging/macosx/Resources/ProgressWindow.nib/info.nib b/packaging/macosx/Resources/ProgressWindow.nib/info.nib new file mode 100644 index 000000000..4e5156002 --- /dev/null +++ b/packaging/macosx/Resources/ProgressWindow.nib/info.nib @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>IBDocumentLocation</key> + <string>124 298 356 240 0 0 1280 832 </string> + <key>IBFramework Version</key> + <string>349.0</string> + <key>IBOpenObjects</key> + <array> + <integer>180</integer> + </array> + <key>IBSystem Version</key> + <string>7F44</string> + <key>targetFramework</key> + <string>IBCarbonFramework</string> +</dict> +</plist> diff --git a/packaging/macosx/Resources/ProgressWindow.nib/objects.xib b/packaging/macosx/Resources/ProgressWindow.nib/objects.xib new file mode 100644 index 000000000..6eaacc43e --- /dev/null +++ b/packaging/macosx/Resources/ProgressWindow.nib/objects.xib @@ -0,0 +1,53 @@ +<?xml version="1.0" standalone="yes"?> +<object class="NSIBObjectData"> + <string name="targetFramework">IBCarbonFramework</string> + <object name="rootObject" class="NSCustomObject" id="1"> + <string name="customClass">NSApplication</string> + </object> + <array count="4" name="allObjects"> + <object class="IBCarbonWindow" id="180"> + <string name="windowRect">404 523 457 899 </string> + <string name="title">Caching Fonts...</string> + <object name="rootControl" class="IBCarbonRootControl" id="183"> + <string name="bounds">0 0 53 376 </string> + <array count="2" name="subviews"> + <object class="IBCarbonProgressBar" id="181"> + <string name="bounds">19 17 32 270 </string> + <boolean name="small">TRUE</boolean> + <int name="controlSize">1</int> + <int name="initialValue">50</int> + </object> + <object class="IBCarbonButton" id="185"> + <string name="bounds">16 284 34 356 </string> + <boolean name="small">TRUE</boolean> + <int name="controlSize">1</int> + <string name="title">Cancel</string> + <ostype name="command">quit</ostype> + </object> + </array> + </object> + <boolean name="hasCloseBox">FALSE</boolean> + <boolean name="hasHorizontalZoom">FALSE</boolean> + <boolean name="isResizable">FALSE</boolean> + <boolean name="hasVerticalZoom">FALSE</boolean> + <int name="themeBrush">51</int> + <int name="windowPosition">1</int> + </object> + <reference idRef="181"/> + <reference idRef="183"/> + <reference idRef="185"/> + </array> + <array count="4" name="allParents"> + <reference idRef="1"/> + <reference idRef="183"/> + <reference idRef="180"/> + <reference idRef="183"/> + </array> + <dictionary count="2" name="nameTable"> + <string>File's Owner</string> + <reference idRef="1"/> + <string>Window</string> + <reference idRef="180"/> + </dictionary> + <unsigned_int name="nextObjectID">186</unsigned_int> +</object> diff --git a/packaging/macosx/Resources/SVG_plain.icns b/packaging/macosx/Resources/SVG_plain.icns Binary files differnew file mode 100644 index 000000000..a309b25b4 --- /dev/null +++ b/packaging/macosx/Resources/SVG_plain.icns diff --git a/packaging/macosx/Resources/bin/getdisplay.sh b/packaging/macosx/Resources/bin/getdisplay.sh new file mode 100755 index 000000000..f7f383348 --- /dev/null +++ b/packaging/macosx/Resources/bin/getdisplay.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# +# Author: Aaron Voisine <aaron@voisine.org> + +if [ "$DISPLAY"x == "x" ]; then + echo :0 > /tmp/display.$UID +else + echo $DISPLAY > /tmp/display.$UID +fi diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape new file mode 100755 index 000000000..bcfa77662 --- /dev/null +++ b/packaging/macosx/Resources/bin/inkscape @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Author: Aaron Voisine <aaron@voisine.org> +# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net> + +CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`" +TOP="`dirname \"$CWD\"`" + +export "DYLD_LIBRARY_PATH=$TOP/lib" +export "PATH=$CWD:$PATH" +export "PANGO_RC_FILE=$HOME/.inkscape-etc/pangorc" +export "FONTCONFIG_PATH=$TOP/etc/fonts" +export "GTK_IM_MODULE_FILE=$HOME/.inkscape-etc/gtk.immodules" +export "GDK_PIXBUF_MODULE_FILE=$HOME/.inkscape-etc/gdk-pixbuf.loaders" +export "GTK_DATA_PREFIX=$TOP" +export "GTK_EXE_PREFIX=$TOP" +export "GNOME_VFS_MODULE_CONFIG_PATH=$TOP/etc/gnome-vfs-2.0/modules" +export "GNOME_VFS_MODULE_PATH=$TOP/lib/gnome-vfs-2.0/modules" + +export "INKSCAPE_SHAREDIR=$TOP" +export "INKSCAPE_PLUGINDIR=$TOP/lib/inkscape" +export "INKSCAPE_LOCALEDIR=$TOP/locale" + +# TODO: Have to add ".UTF-8" to the LANG since ommiting causes Inkscape +# to crash on startup in locale_from_utf8(). +export "LANG=`grep \"\`defaults read .GlobalPreferences AppleCollationOrder \ + 2>&1\`_\" /usr/share/locale/locale.alias | tail -n1 | sed 's/\./ /' | \ + awk '{print $2}'`.UTF-8" + +mkdir -p ~/.inkscape-etc +sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > ~/.inkscape-etc/pangorc +sed 's|${CWD}|'"$TOP|g" "$TOP/etc/pango/pango.modules" \ + > ~/.inkscape-etc/pango.modules +cp -f "$TOP/etc/pango/pangox.aliases" ~/.inkscape-etc/ +sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gtk.immodules" \ + > ~/.inkscape-etc/gtk.immodules +sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gdk-pixbuf.loaders" \ + > ~/.inkscape-etc/gdk-pixbuf.loaders + +exec "$CWD/inkscape-bin" "$@" diff --git a/packaging/macosx/Resources/inkscape_svg.icns b/packaging/macosx/Resources/inkscape_svg.icns Binary files differnew file mode 100644 index 000000000..007bf52cb --- /dev/null +++ b/packaging/macosx/Resources/inkscape_svg.icns diff --git a/packaging/macosx/Resources/openDoc b/packaging/macosx/Resources/openDoc new file mode 100755 index 000000000..8e6ac0399 --- /dev/null +++ b/packaging/macosx/Resources/openDoc @@ -0,0 +1,8 @@ +#!/bin/sh +# +# Author: Aaron Voisine <aaron@voisine.org> + +export "DISPLAY=`cat /tmp/display.$UID`" +BASE="`echo "$0" | sed -e 's/\/[A-Za-z]*.app\/Contents\/Resources\/script/\//'`" +cd "$BASE" +exec "$CWD/bin/inkscape" "$@" diff --git a/packaging/macosx/Resources/postscript.icns b/packaging/macosx/Resources/postscript.icns Binary files differnew file mode 100644 index 000000000..1f12741da --- /dev/null +++ b/packaging/macosx/Resources/postscript.icns diff --git a/packaging/macosx/Resources/script b/packaging/macosx/Resources/script new file mode 100755 index 000000000..fb67e950c --- /dev/null +++ b/packaging/macosx/Resources/script @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Author: Aaron Voisine <aaron@voisine.org> +# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net> + +CWD="`dirname \"$0\"`" + +ps -wx -ocommand | grep -e '[X]11' > /dev/null +if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then + echo "rm -f ~/.xinitrc" > ~/.xinitrc + sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc +fi + +cp -f "$CWD/bin/getdisplay.sh" /tmp/ +rm -f /tmp/display.$UID +open-x11 /tmp/getdisplay.sh || \ +open -a XDarwin /tmp/getdisplay.sh || \ +echo ":0" > /tmp/display.$UID + +while [ "$?" == "0" -a ! -f /tmp/display.$UID ]; do + sleep 1 +done +export "DISPLAY=`cat /tmp/display.$UID`" + +ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11 + +VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'` +if [ "$VERSION" -eq "4" ]; then + # We're on tiger. So need to update fc-cache if it hasn't been done + test -f ~/.inkscape/.fccache || exit 12 +fi + +BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`" +cd "$BASE" +exec "$CWD/bin/inkscape" "$@" |
