summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-05-07 13:21:59 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-05-07 13:21:59 +0200
commitd7f0b3e19fddc89fd22692847e9d840023d2b7f3 (patch)
tree762f48cb637eef334cf7f6320fe13b7988bc53e3
parentb00c5250d7a56b6d20980d89cf331a114fdfdee0 (diff)
GPLed
-rw-r--r--COPYING674
-rw-r--r--src/data/edge.cpp18
-rw-r--r--src/data/edge.h18
-rw-r--r--src/data/edgestyle.cpp18
-rw-r--r--src/data/edgestyle.h18
-rw-r--r--src/data/graph.cpp18
-rw-r--r--src/data/graph.h18
-rw-r--r--src/data/graphelementdata.cpp18
-rw-r--r--src/data/graphelementdata.h18
-rw-r--r--src/data/graphelementproperty.cpp18
-rw-r--r--src/data/graphelementproperty.h18
-rw-r--r--src/data/node.cpp18
-rw-r--r--src/data/node.h18
-rw-r--r--src/data/nodestyle.cpp18
-rw-r--r--src/data/nodestyle.h18
-rw-r--r--src/data/style.cpp18
-rw-r--r--src/data/style.h18
-rw-r--r--src/data/tikzassembler.cpp18
-rw-r--r--src/data/tikzassembler.h20
-rw-r--r--src/data/tikzdocument.cpp18
-rw-r--r--src/data/tikzdocument.h18
-rw-r--r--src/data/tikzlexer.l39
-rw-r--r--src/data/tikzparserdefs.h18
-rw-r--r--src/data/tikzstyles.cpp18
-rw-r--r--src/data/tikzstyles.h18
-rw-r--r--src/gui/edgeitem.cpp18
-rw-r--r--src/gui/edgeitem.h20
-rw-r--r--src/gui/mainmenu.cpp18
-rw-r--r--src/gui/mainmenu.h18
-rw-r--r--src/gui/nodeitem.cpp18
-rw-r--r--src/gui/nodeitem.h18
-rw-r--r--src/gui/propertypalette.cpp18
-rw-r--r--src/gui/propertypalette.h18
-rw-r--r--src/gui/stylepalette.cpp18
-rw-r--r--src/gui/stylepalette.h18
-rw-r--r--src/gui/tikzscene.cpp18
-rw-r--r--src/gui/tikzscene.h18
-rw-r--r--src/gui/tikzview.cpp18
-rw-r--r--src/gui/tikzview.h18
-rw-r--r--src/gui/toolpalette.cpp18
-rw-r--r--src/gui/toolpalette.h18
-rw-r--r--src/gui/undocommands.cpp18
-rw-r--r--src/gui/undocommands.h18
-rw-r--r--src/main.cpp21
-rw-r--r--src/tikzit.cpp18
-rw-r--r--src/tikzit.h19
-rw-r--r--src/util.cpp18
-rw-r--r--src/util.h18
-rw-r--r--tikzit-old/.gitignore235
-rw-r--r--tikzit-old/AH_latex_head.pngbin6334 -> 0 bytes
-rw-r--r--tikzit-old/AH_latex_tail.pngbin6324 -> 0 bytes
-rw-r--r--tikzit-old/AH_none.pngbin6183 -> 0 bytes
-rw-r--r--tikzit-old/AH_plain_head.pngbin6298 -> 0 bytes
-rw-r--r--tikzit-old/AH_plain_tail.pngbin6320 -> 0 bytes
-rw-r--r--tikzit-old/COPYING340
-rw-r--r--tikzit-old/DESIGN-GTK23
-rw-r--r--tikzit-old/ED_arrow.pngbin6357 -> 0 bytes
-rw-r--r--tikzit-old/ED_none.pngbin6190 -> 0 bytes
-rw-r--r--tikzit-old/ED_tick.pngbin6258 -> 0 bytes
-rw-r--r--tikzit-old/English.lproj/Credits.rtf18
-rw-r--r--tikzit-old/English.lproj/CustomNodes.xib256
-rw-r--r--tikzit-old/English.lproj/InfoPlist.strings2
-rw-r--r--tikzit-old/English.lproj/MainMenu.xib453
-rw-r--r--tikzit-old/English.lproj/Preamble.xib235
-rw-r--r--tikzit-old/English.lproj/Preview.xib70
-rw-r--r--tikzit-old/English.lproj/PropertyInspector.xib769
-rw-r--r--tikzit-old/English.lproj/StylePalette.xib631
-rw-r--r--tikzit-old/English.lproj/TikzDocument.xib161
-rw-r--r--tikzit-old/English.lproj/UserDefaults.plist10
l---------tikzit-old/Frameworks/SFBInspectors.framework/Headers1
l---------tikzit-old/Frameworks/SFBInspectors.framework/Resources1
l---------tikzit-old/Frameworks/SFBInspectors.framework/SFBInspectors1
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPane.h31
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneBody.h16
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneHeader.h24
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorView.h17
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelector.h22
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBar.h29
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBarItem.h28
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/English.lproj/InfoPlist.stringsbin92 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/Info.plist24
-rwxr-xr-xtikzit-old/Frameworks/SFBInspectors.framework/Versions/A/SFBInspectorsbin280648 -> 0 bytes
l---------tikzit-old/Frameworks/SFBInspectors.framework/Versions/Current1
l---------tikzit-old/Frameworks/Sparkle.framework/Headers1
l---------tikzit-old/Frameworks/Sparkle.framework/Resources1
l---------tikzit-old/Frameworks/Sparkle.framework/Sparkle1
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h33
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h47
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h118
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h27
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h21
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/Info.plist24
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/License.txt7
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist174
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/classes.nib56
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nibbin7344 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7278 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10493 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin13189 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.stringsbin9806 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7148 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10623 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/info.nib21
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin13263 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.stringsbin8216 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7273 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10668 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin13404 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.stringsbin8020 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/info.nib16
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7245 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/info.nib16
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10338 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib16
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin13156 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.stringsbin8554 -> 0 bytes
l---------tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj1
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7161 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10360 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin12659 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.stringsbin8914 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/info.nib18
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7234 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib16
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10220 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib16
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin12535 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.stringsbin8514 -> 0 bytes
-rwxr-xr-xtikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/relaunchbin58924 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7675 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/classes.nib67
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10895 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib18
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin12898 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.stringsbin8364 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/classes.nib50
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nibbin7474 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/classes.nib39
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/info.nib18
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nibbin10180 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib59
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib20
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nibbin13483 -> 0 bytes
-rw-r--r--tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.stringsbin8142 -> 0 bytes
-rwxr-xr-xtikzit-old/Frameworks/Sparkle.framework/Versions/A/Sparklebin463812 -> 0 bytes
l---------tikzit-old/Frameworks/Sparkle.framework/Versions/Current1
-rw-r--r--tikzit-old/INSTALL34
-rw-r--r--tikzit-old/Makefile.am3
-rw-r--r--tikzit-old/NEWS75
-rw-r--r--tikzit-old/README7
-rw-r--r--tikzit-old/README.release98
-rw-r--r--tikzit-old/TODO15
-rw-r--r--tikzit-old/TikZiT-Info.plist61
-rw-r--r--tikzit-old/TikZiT.xcodeproj/project.pbxproj1322
-rw-r--r--tikzit-old/TikZiT.xcodeproj/project.xcworkspace/contents.xcworkspacedata7
-rw-r--r--tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcshareddata/TikZiT.xccheckout37
-rw-r--r--tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/UserInterfaceState.xcuserstate24539
-rw-r--r--tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/WorkspaceSettings.xcsettings22
-rw-r--r--tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist123
-rw-r--r--tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/TikZiT.xcscheme72
-rw-r--r--tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/tests.xcscheme72
-rw-r--r--tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/xcschememanagement.plist32
-rw-r--r--tikzit-old/TikZiT_Prefix.pch30
-rwxr-xr-xtikzit-old/autogen.sh1578
-rw-r--r--tikzit-old/build/DEBIAN/control11
-rw-r--r--tikzit-old/configure.ac141
-rwxr-xr-xtikzit-old/customshape.pngbin1281 -> 0 bytes
-rw-r--r--tikzit-old/docs/Doxyfile1600
-rw-r--r--tikzit-old/draw-ellipse.pngbin3493 -> 0 bytes
-rw-r--r--tikzit-old/draw-path.pngbin920 -> 0 bytes
-rw-r--r--tikzit-old/emblem-important.pngbin717 -> 0 bytes
-rw-r--r--tikzit-old/emblem-unreadable-grey.pngbin3554 -> 0 bytes
-rwxr-xr-xtikzit-old/engine.pngbin1546 -> 0 bytes
-rw-r--r--tikzit-old/format-indent-less.pngbin767 -> 0 bytes
-rw-r--r--tikzit-old/m4/objc.m4135
-rwxr-xr-xtikzit-old/preamble.pngbin851 -> 0 bytes
-rwxr-xr-xtikzit-old/scripts/generate_keys.rb13
-rwxr-xr-xtikzit-old/scripts/prepare_release.sh40
-rwxr-xr-xtikzit-old/scripts/sign_update.rb7
-rw-r--r--tikzit-old/select-rectangular.pngbin499 -> 0 bytes
-rw-r--r--tikzit-old/shapes/cap.tikz13
-rw-r--r--tikzit-old/shapes/copants.tikz19
-rw-r--r--tikzit-old/shapes/cup.tikz13
-rw-r--r--tikzit-old/shapes/oval.tikz11
-rw-r--r--tikzit-old/shapes/pants.tikz19
-rw-r--r--tikzit-old/share/Makefile.am10
-rw-r--r--tikzit-old/share/applications/tikzit.desktop11
-rw-r--r--tikzit-old/share/icons/hicolor/128x128/apps/tikzit.pngbin9098 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/128x128/mimetypes/text-x-tikz.pngbin7316 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/16x16/apps/tikzit.pngbin882 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/16x16/mimetypes/text-x-tikz.pngbin564 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/22x22/apps/tikzit.pngbin1273 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/22x22/mimetypes/text-x-tikz.pngbin866 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/24x24/apps/tikzit.pngbin1406 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/32x32/apps/tikzit.pngbin1987 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/32x32/mimetypes/text-x-tikz.pngbin1352 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/48x48/apps/tikzit.pngbin3132 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/48x48/mimetypes/text-x-tikz.pngbin2445 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/64x64/apps/tikzit.pngbin4315 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/64x64/mimetypes/text-x-tikz.pngbin3532 -> 0 bytes
-rw-r--r--tikzit-old/share/icons/hicolor/scalable/apps/tikzit.svg79
-rw-r--r--tikzit-old/share/icons/hicolor/scalable/mimetypes/text-x-tikz.svg488
-rw-r--r--tikzit-old/share/mime/packages/tikzit.xml10
l---------tikzit-old/share/tikzit1
-rw-r--r--tikzit-old/src/Makefile.am178
-rw-r--r--tikzit-old/src/common/CircleShape.h33
-rw-r--r--tikzit-old/src/common/CircleShape.m57
-rw-r--r--tikzit-old/src/common/ColorRGB.h64
-rw-r--r--tikzit-old/src/common/ColorRGB.m353
-rw-r--r--tikzit-old/src/common/DiamondShape.h34
-rw-r--r--tikzit-old/src/common/DiamondShape.m63
-rw-r--r--tikzit-old/src/common/Edge.h401
-rw-r--r--tikzit-old/src/common/Edge.m757
-rw-r--r--tikzit-old/src/common/EdgeStyle.h71
-rw-r--r--tikzit-old/src/common/EdgeStyle.m222
-rw-r--r--tikzit-old/src/common/Graph.h401
-rw-r--r--tikzit-old/src/common/Graph.m922
-rw-r--r--tikzit-old/src/common/GraphChange.h344
-rw-r--r--tikzit-old/src/common/GraphChange.m369
-rw-r--r--tikzit-old/src/common/GraphElementData.h94
-rw-r--r--tikzit-old/src/common/GraphElementData.m188
-rw-r--r--tikzit-old/src/common/GraphElementProperty.h88
-rw-r--r--tikzit-old/src/common/GraphElementProperty.m164
-rw-r--r--tikzit-old/src/common/Grid.h110
-rw-r--r--tikzit-old/src/common/Grid.m186
-rw-r--r--tikzit-old/src/common/NSError+Tikzit.h44
-rw-r--r--tikzit-old/src/common/NSError+Tikzit.m64
-rw-r--r--tikzit-old/src/common/NSFileManager+Utils.h29
-rw-r--r--tikzit-old/src/common/NSFileManager+Utils.m46
-rw-r--r--tikzit-old/src/common/NSString+LatexConstants.h33
-rw-r--r--tikzit-old/src/common/NSString+LatexConstants.m212
-rw-r--r--tikzit-old/src/common/NSString+Tikz.h26
-rw-r--r--tikzit-old/src/common/NSString+Tikz.m72
-rw-r--r--tikzit-old/src/common/NSString+Util.h27
-rw-r--r--tikzit-old/src/common/NSString+Util.m66
-rw-r--r--tikzit-old/src/common/Node.h181
-rw-r--r--tikzit-old/src/common/Node.m214
-rw-r--r--tikzit-old/src/common/NodeStyle.h125
-rw-r--r--tikzit-old/src/common/NodeStyle.m246
-rw-r--r--tikzit-old/src/common/PickSupport.h164
-rw-r--r--tikzit-old/src/common/PickSupport.m232
-rw-r--r--tikzit-old/src/common/Preambles.h73
-rw-r--r--tikzit-old/src/common/Preambles.m320
-rw-r--r--tikzit-old/src/common/PropertyHolder.h36
-rw-r--r--tikzit-old/src/common/PropertyHolder.m74
-rw-r--r--tikzit-old/src/common/RColor.h50
-rw-r--r--tikzit-old/src/common/RColor.m33
-rw-r--r--tikzit-old/src/common/RectangleShape.h33
-rw-r--r--tikzit-old/src/common/RectangleShape.m57
-rw-r--r--tikzit-old/src/common/RegularPolyShape.h50
-rw-r--r--tikzit-old/src/common/RegularPolyShape.m76
-rw-r--r--tikzit-old/src/common/RenderContext.h156
-rw-r--r--tikzit-old/src/common/Shape.h49
-rw-r--r--tikzit-old/src/common/Shape.m171
-rw-r--r--tikzit-old/src/common/ShapeNames.h27
-rw-r--r--tikzit-old/src/common/StyleManager.h49
-rw-r--r--tikzit-old/src/common/StyleManager.m378
-rw-r--r--tikzit-old/src/common/SupportDir.h36
-rw-r--r--tikzit-old/src/common/SupportDir.m65
-rw-r--r--tikzit-old/src/common/TikzGraphAssembler+Parser.h36
-rw-r--r--tikzit-old/src/common/TikzGraphAssembler.h115
-rw-r--r--tikzit-old/src/common/TikzGraphAssembler.m310
-rw-r--r--tikzit-old/src/common/TikzShape.h37
-rw-r--r--tikzit-old/src/common/TikzShape.m70
-rw-r--r--tikzit-old/src/common/Transformer.h154
-rw-r--r--tikzit-old/src/common/Transformer.m231
-rw-r--r--tikzit-old/src/common/test/Makefile14
-rw-r--r--tikzit-old/src/common/test/color.m80
-rw-r--r--tikzit-old/src/common/test/common.m34
-rw-r--r--tikzit-old/src/common/test/maths.m562
-rw-r--r--tikzit-old/src/common/test/parser.m86
-rw-r--r--tikzit-old/src/common/test/test.h57
-rw-r--r--tikzit-old/src/common/test/test.m175
-rw-r--r--tikzit-old/src/common/tikzlexer.lm170
-rw-r--r--tikzit-old/src/common/tikzparser.ym224
-rw-r--r--tikzit-old/src/common/tikzparserdefs.h49
-rw-r--r--tikzit-old/src/common/util.h201
-rw-r--r--tikzit-old/src/common/util.m403
-rw-r--r--tikzit-old/src/gtk/Application.h155
-rw-r--r--tikzit-old/src/gtk/Application.m377
-rw-r--r--tikzit-old/src/gtk/BoundingBoxTool.h45
-rw-r--r--tikzit-old/src/gtk/BoundingBoxTool.m353
-rw-r--r--tikzit-old/src/gtk/CairoRenderContext.h59
-rw-r--r--tikzit-old/src/gtk/CairoRenderContext.m344
-rw-r--r--tikzit-old/src/gtk/ColorRGB+Gtk.h30
-rw-r--r--tikzit-old/src/gtk/ColorRGB+Gtk.m46
-rw-r--r--tikzit-old/src/gtk/ColorRGB+IntegerListStorage.h32
-rw-r--r--tikzit-old/src/gtk/ColorRGB+IntegerListStorage.m57
-rw-r--r--tikzit-old/src/gtk/Configuration.h447
-rw-r--r--tikzit-old/src/gtk/Configuration.m450
-rw-r--r--tikzit-old/src/gtk/ContextWindow.h53
-rw-r--r--tikzit-old/src/gtk/ContextWindow.m169
-rw-r--r--tikzit-old/src/gtk/CreateEdgeTool.h45
-rw-r--r--tikzit-old/src/gtk/CreateEdgeTool.m226
-rw-r--r--tikzit-old/src/gtk/CreateNodeTool.h42
-rw-r--r--tikzit-old/src/gtk/CreateNodeTool.m169
-rw-r--r--tikzit-old/src/gtk/DocumentContext.h27
-rw-r--r--tikzit-old/src/gtk/Edge+Render.h34
-rw-r--r--tikzit-old/src/gtk/Edge+Render.m267
-rw-r--r--tikzit-old/src/gtk/EdgeStyle+Gtk.h29
-rw-r--r--tikzit-old/src/gtk/EdgeStyle+Gtk.m33
-rw-r--r--tikzit-old/src/gtk/EdgeStyle+Storage.h29
-rw-r--r--tikzit-old/src/gtk/EdgeStyle+Storage.m55
-rw-r--r--tikzit-old/src/gtk/EdgeStyleEditor.h45
-rw-r--r--tikzit-old/src/gtk/EdgeStyleEditor.m499
-rw-r--r--tikzit-old/src/gtk/EdgeStyleSelector.h61
-rw-r--r--tikzit-old/src/gtk/EdgeStyleSelector.m143
-rw-r--r--tikzit-old/src/gtk/EdgeStylesModel.h62
-rw-r--r--tikzit-old/src/gtk/EdgeStylesModel.m367
-rw-r--r--tikzit-old/src/gtk/EdgeStylesPalette.h43
-rw-r--r--tikzit-old/src/gtk/EdgeStylesPalette.m198
-rw-r--r--tikzit-old/src/gtk/FileChooserDialog.h56
-rw-r--r--tikzit-old/src/gtk/FileChooserDialog.m152
-rw-r--r--tikzit-old/src/gtk/GraphEditorPanel.h53
-rw-r--r--tikzit-old/src/gtk/GraphEditorPanel.m240
-rw-r--r--tikzit-old/src/gtk/GraphRenderer.h84
-rw-r--r--tikzit-old/src/gtk/GraphRenderer.m476
-rw-r--r--tikzit-old/src/gtk/HandTool.h33
-rw-r--r--tikzit-old/src/gtk/HandTool.m75
-rw-r--r--tikzit-old/src/gtk/InputDelegate.h77
-rw-r--r--tikzit-old/src/gtk/Menu.h86
-rw-r--r--tikzit-old/src/gtk/Menu.m737
-rw-r--r--tikzit-old/src/gtk/NSError+Glib.h28
-rw-r--r--tikzit-old/src/gtk/NSError+Glib.m50
-rw-r--r--tikzit-old/src/gtk/NSFileManager+Glib.h31
-rw-r--r--tikzit-old/src/gtk/NSFileManager+Glib.m55
-rw-r--r--tikzit-old/src/gtk/NSString+Glib.h50
-rw-r--r--tikzit-old/src/gtk/NSString+Glib.m96
-rw-r--r--tikzit-old/src/gtk/Node+Render.h44
-rw-r--r--tikzit-old/src/gtk/Node+Render.m188
-rw-r--r--tikzit-old/src/gtk/NodeStyle+Gtk.h31
-rw-r--r--tikzit-old/src/gtk/NodeStyle+Gtk.m41
-rw-r--r--tikzit-old/src/gtk/NodeStyle+Render.h30
-rw-r--r--tikzit-old/src/gtk/NodeStyle+Storage.h29
-rw-r--r--tikzit-old/src/gtk/NodeStyle+Storage.m62
-rw-r--r--tikzit-old/src/gtk/NodeStyleEditor.h45
-rw-r--r--tikzit-old/src/gtk/NodeStyleEditor.m477
-rw-r--r--tikzit-old/src/gtk/NodeStyleSelector.h61
-rw-r--r--tikzit-old/src/gtk/NodeStyleSelector.m135
-rw-r--r--tikzit-old/src/gtk/NodeStylesModel.h62
-rw-r--r--tikzit-old/src/gtk/NodeStylesModel.m381
-rw-r--r--tikzit-old/src/gtk/NodeStylesPalette.h43
-rw-r--r--tikzit-old/src/gtk/NodeStylesPalette.m197
-rw-r--r--tikzit-old/src/gtk/PreambleEditor.h51
-rw-r--r--tikzit-old/src/gtk/PreambleEditor.m568
-rw-r--r--tikzit-old/src/gtk/Preambles+Storage.h29
-rw-r--r--tikzit-old/src/gtk/Preambles+Storage.m84
-rw-r--r--tikzit-old/src/gtk/PreviewRenderer.h48
-rw-r--r--tikzit-old/src/gtk/PreviewRenderer.m250
-rw-r--r--tikzit-old/src/gtk/PreviewWindow.h51
-rw-r--r--tikzit-old/src/gtk/PreviewWindow.m195
-rw-r--r--tikzit-old/src/gtk/PropertiesPane.h69
-rw-r--r--tikzit-old/src/gtk/PropertiesPane.m763
-rw-r--r--tikzit-old/src/gtk/PropertyListEditor.h65
-rw-r--r--tikzit-old/src/gtk/PropertyListEditor.m501
-rw-r--r--tikzit-old/src/gtk/RecentManager.h30
-rw-r--r--tikzit-old/src/gtk/RecentManager.m74
-rw-r--r--tikzit-old/src/gtk/SelectTool.h63
-rw-r--r--tikzit-old/src/gtk/SelectTool.m590
-rw-r--r--tikzit-old/src/gtk/SelectionPane.h56
-rw-r--r--tikzit-old/src/gtk/SelectionPane.m432
-rw-r--r--tikzit-old/src/gtk/SettingsDialog.h54
-rw-r--r--tikzit-old/src/gtk/SettingsDialog.m328
-rw-r--r--tikzit-old/src/gtk/Shape+Render.h29
-rw-r--r--tikzit-old/src/gtk/Shape+Render.m57
-rw-r--r--tikzit-old/src/gtk/StyleManager+Storage.h26
-rw-r--r--tikzit-old/src/gtk/StyleManager+Storage.m82
-rw-r--r--tikzit-old/src/gtk/Surface.h107
-rw-r--r--tikzit-old/src/gtk/TZFoundation.h30
-rw-r--r--tikzit-old/src/gtk/TikzDocument.h149
-rw-r--r--tikzit-old/src/gtk/TikzDocument.m911
-rw-r--r--tikzit-old/src/gtk/Tool.h41
-rw-r--r--tikzit-old/src/gtk/ToolBox.h45
-rw-r--r--tikzit-old/src/gtk/ToolBox.m280
-rw-r--r--tikzit-old/src/gtk/WidgetSurface.h54
-rw-r--r--tikzit-old/src/gtk/WidgetSurface.m630
-rw-r--r--tikzit-old/src/gtk/Window.h182
-rw-r--r--tikzit-old/src/gtk/Window.m991
-rw-r--r--tikzit-old/src/gtk/cairo_helpers.h25
-rw-r--r--tikzit-old/src/gtk/cairo_helpers.m28
-rw-r--r--tikzit-old/src/gtk/clipboard.h41
-rw-r--r--tikzit-old/src/gtk/clipboard.m57
-rw-r--r--tikzit-old/src/gtk/gtkhelpers.h60
-rw-r--r--tikzit-old/src/gtk/gtkhelpers.m275
-rw-r--r--tikzit-old/src/gtk/logo.h32
-rw-r--r--tikzit-old/src/gtk/logo.m64
-rw-r--r--tikzit-old/src/gtk/main.m111
-rw-r--r--tikzit-old/src/gtk/mkdtemp.h32
-rw-r--r--tikzit-old/src/gtk/mkdtemp.m180
-rw-r--r--tikzit-old/src/gtk/stat.h25
-rw-r--r--tikzit-old/src/gtk/test/gtk.m27
-rw-r--r--tikzit-old/src/gtk/test/main.m50
-rw-r--r--tikzit-old/src/gtk/tzstockitems.h26
-rw-r--r--tikzit-old/src/gtk/tzstockitems.m64
-rw-r--r--tikzit-old/src/gtk/tztoolpalette.h56
-rw-r--r--tikzit-old/src/gtk/tztoolpalette.m158
-rw-r--r--tikzit-old/src/osx/AppDelegate.h57
-rw-r--r--tikzit-old/src/osx/AppDelegate.m124
-rw-r--r--tikzit-old/src/osx/CALayer+DrawLabel.h21
-rw-r--r--tikzit-old/src/osx/CALayer+DrawLabel.m84
-rw-r--r--tikzit-old/src/osx/CoreGraphicsRenderContext.h44
-rw-r--r--tikzit-old/src/osx/CoreGraphicsRenderContext.m234
-rw-r--r--tikzit-old/src/osx/CustomNodeCellView.h23
-rw-r--r--tikzit-old/src/osx/CustomNodeCellView.m83
-rw-r--r--tikzit-old/src/osx/CustomNodeController.h35
-rw-r--r--tikzit-old/src/osx/CustomNodeController.m58
-rw-r--r--tikzit-old/src/osx/CustomNodes.xib249
-rw-r--r--tikzit-old/src/osx/DraggablePDFView.h28
-rw-r--r--tikzit-old/src/osx/DraggablePDFView.m60
-rw-r--r--tikzit-old/src/osx/EdgeControlLayer.h44
-rw-r--r--tikzit-old/src/osx/EdgeControlLayer.m150
-rw-r--r--tikzit-old/src/osx/EdgeStyle+Coder.h30
-rw-r--r--tikzit-old/src/osx/EdgeStyle+Coder.m50
-rw-r--r--tikzit-old/src/osx/Graph+Coder.h17
-rw-r--r--tikzit-old/src/osx/Graph+Coder.m24
-rw-r--r--tikzit-old/src/osx/GraphicsView.h129
-rw-r--r--tikzit-old/src/osx/GraphicsView.m1216
-rw-r--r--tikzit-old/src/osx/Grid.h48
-rw-r--r--tikzit-old/src/osx/Grid.m152
-rw-r--r--tikzit-old/src/osx/MultiCombo.h18
-rw-r--r--tikzit-old/src/osx/MultiCombo.m38
-rw-r--r--tikzit-old/src/osx/MultiField.h18
-rw-r--r--tikzit-old/src/osx/MultiField.m53
-rw-r--r--tikzit-old/src/osx/NilToEmptyStringTransformer.h28
-rw-r--r--tikzit-old/src/osx/NilToEmptyStringTransformer.m53
-rw-r--r--tikzit-old/src/osx/NodeLayer.h62
-rw-r--r--tikzit-old/src/osx/NodeLayer.m238
-rw-r--r--tikzit-old/src/osx/NodeSelectionLayer.h45
-rw-r--r--tikzit-old/src/osx/NodeSelectionLayer.m93
-rw-r--r--tikzit-old/src/osx/NodeStyle+Coder.h36
-rw-r--r--tikzit-old/src/osx/NodeStyle+Coder.m91
-rw-r--r--tikzit-old/src/osx/ParseErrorView.h13
-rw-r--r--tikzit-old/src/osx/ParseErrorView.m40
-rw-r--r--tikzit-old/src/osx/PreambleController.h57
-rw-r--r--tikzit-old/src/osx/PreambleController.m168
-rw-r--r--tikzit-old/src/osx/Preambles+Coder.h32
-rw-r--r--tikzit-old/src/osx/Preambles+Coder.m41
-rw-r--r--tikzit-old/src/osx/PreferenceController.h49
-rw-r--r--tikzit-old/src/osx/PreferenceController.m133
-rw-r--r--tikzit-old/src/osx/Preferences.xib1165
-rw-r--r--tikzit-old/src/osx/PreviewController.h52
-rw-r--r--tikzit-old/src/osx/PreviewController.m147
-rw-r--r--tikzit-old/src/osx/PropertyInspectorController.h83
-rw-r--r--tikzit-old/src/osx/PropertyInspectorController.m280
-rw-r--r--tikzit-old/src/osx/SelectBoxLayer.h22
-rw-r--r--tikzit-old/src/osx/SelectBoxLayer.m48
-rw-r--r--tikzit-old/src/osx/SelectableCollectionViewItem.h33
-rw-r--r--tikzit-old/src/osx/SelectableCollectionViewItem.m54
-rw-r--r--tikzit-old/src/osx/SelectableNodeView.h38
-rw-r--r--tikzit-old/src/osx/SelectableNodeView.m96
-rw-r--r--tikzit-old/src/osx/StylePaletteController.h80
-rw-r--r--tikzit-old/src/osx/StylePaletteController.m252
-rw-r--r--tikzit-old/src/osx/TikzDocument.h37
-rw-r--r--tikzit-old/src/osx/TikzDocument.m84
-rw-r--r--tikzit-old/src/osx/TikzFormatter.h29
-rw-r--r--tikzit-old/src/osx/TikzFormatter.m91
-rw-r--r--tikzit-old/src/osx/TikzSourceController.h71
-rw-r--r--tikzit-old/src/osx/TikzSourceController.m241
-rw-r--r--tikzit-old/src/osx/TikzWindowController.h31
-rw-r--r--tikzit-old/src/osx/TikzWindowController.m66
-rw-r--r--tikzit-old/src/osx/ToolPaletteController.h42
-rw-r--r--tikzit-old/src/osx/ToolPaletteController.m58
-rw-r--r--tikzit-old/src/osx/UpdatePreferenceController.h34
-rw-r--r--tikzit-old/src/osx/UpdatePreferenceController.m49
-rw-r--r--tikzit-old/src/osx/UpdatePreferencePanel.xib95
-rw-r--r--tikzit-old/src/osx/main.m26
-rw-r--r--tikzit-old/src/osx/test/main.m56
-rw-r--r--tikzit-old/src/osx/test/osx.m64
-rw-r--r--tikzit-old/src/tikzit.rc24
-rw-r--r--tikzit-old/text-x-generic.pngbin744 -> 0 bytes
-rw-r--r--tikzit-old/text-x-script.pngbin1416 -> 0 bytes
-rw-r--r--tikzit-old/tikzit.icnsbin166599 -> 0 bytes
-rw-r--r--tikzit-old/tikzit.icobin34494 -> 0 bytes
-rw-r--r--tikzit-old/tikzit.spec98
-rw-r--r--tikzit-old/tikzit48x48.pngbin2606 -> 0 bytes
-rw-r--r--tikzit-old/tikzit_dsa_pub.pem20
-rw-r--r--tikzit-old/tikzitdoc.icnsbin154929 -> 0 bytes
-rw-r--r--tikzit-old/transform-crop-and-resize.pngbin1132 -> 0 bytes
-rw-r--r--tikzit-old/transform-move.pngbin638 -> 0 bytes
-rwxr-xr-xtikzit-old/updates.pngbin1953 -> 0 bytes
515 files changed, 1527 insertions, 74410 deletions
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/src/data/edge.cpp b/src/data/edge.cpp
index a18c8ea..d741c56 100644
--- a/src/data/edge.cpp
+++ b/src/data/edge.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "edge.h"
#include "tikzit.h"
#include "util.h"
diff --git a/src/data/edge.h b/src/data/edge.h
index 3dc0211..dd09469 100644
--- a/src/data/edge.h
+++ b/src/data/edge.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef EDGE_H
#define EDGE_H
diff --git a/src/data/edgestyle.cpp b/src/data/edgestyle.cpp
index 9fb2638..079d4f5 100644
--- a/src/data/edgestyle.cpp
+++ b/src/data/edgestyle.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "edgestyle.h"
#include <QPainter>
diff --git a/src/data/edgestyle.h b/src/data/edgestyle.h
index 6b0c3bb..cf55d06 100644
--- a/src/data/edgestyle.h
+++ b/src/data/edgestyle.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef EDGESTYLE_H
#define EDGESTYLE_H
diff --git a/src/data/graph.cpp b/src/data/graph.cpp
index 4153bc0..00b2dce 100644
--- a/src/data/graph.cpp
+++ b/src/data/graph.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "graph.h"
#include "util.h"
diff --git a/src/data/graph.h b/src/data/graph.h
index d00d2b2..77af253 100644
--- a/src/data/graph.h
+++ b/src/data/graph.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* A graph defined by tikz code.
*/
diff --git a/src/data/graphelementdata.cpp b/src/data/graphelementdata.cpp
index 01736b8..5b35f63 100644
--- a/src/data/graphelementdata.cpp
+++ b/src/data/graphelementdata.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "graphelementdata.h"
#include <QDebug>
diff --git a/src/data/graphelementdata.h b/src/data/graphelementdata.h
index 740d4dc..58e57a0 100644
--- a/src/data/graphelementdata.h
+++ b/src/data/graphelementdata.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef GRAPHELEMENTDATA_H
#define GRAPHELEMENTDATA_H
diff --git a/src/data/graphelementproperty.cpp b/src/data/graphelementproperty.cpp
index a50af58..0717952 100644
--- a/src/data/graphelementproperty.cpp
+++ b/src/data/graphelementproperty.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "graphelementproperty.h"
#include <QRegExp>
diff --git a/src/data/graphelementproperty.h b/src/data/graphelementproperty.h
index 01b6e5a..d37f69e 100644
--- a/src/data/graphelementproperty.h
+++ b/src/data/graphelementproperty.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef GRAPHELEMENTPROPERTY_H
#define GRAPHELEMENTPROPERTY_H
diff --git a/src/data/node.cpp b/src/data/node.cpp
index 085bdf5..ce4286f 100644
--- a/src/data/node.cpp
+++ b/src/data/node.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "node.h"
#include "tikzit.h"
diff --git a/src/data/node.h b/src/data/node.h
index 241d1ca..4d4beee 100644
--- a/src/data/node.h
+++ b/src/data/node.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef NODE_H
#define NODE_H
diff --git a/src/data/nodestyle.cpp b/src/data/nodestyle.cpp
index 3f2c921..b22105c 100644
--- a/src/data/nodestyle.cpp
+++ b/src/data/nodestyle.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "nodestyle.h"
#include <QPainter>
diff --git a/src/data/nodestyle.h b/src/data/nodestyle.h
index 4b48bb3..db38a0a 100644
--- a/src/data/nodestyle.h
+++ b/src/data/nodestyle.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef NODESTYLE_H
#define NODESTYLE_H
diff --git a/src/data/style.cpp b/src/data/style.cpp
index 927271c..2811612 100644
--- a/src/data/style.cpp
+++ b/src/data/style.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "style.h"
Style::Style() : _name("none"), _data(0)
diff --git a/src/data/style.h b/src/data/style.h
index 9d58ebe..ac7e606 100644
--- a/src/data/style.h
+++ b/src/data/style.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef STYLE_H
#define STYLE_H
diff --git a/src/data/tikzassembler.cpp b/src/data/tikzassembler.cpp
index e0197da..fed3c39 100644
--- a/src/data/tikzassembler.cpp
+++ b/src/data/tikzassembler.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzassembler.h"
#include "tikzparserdefs.h"
diff --git a/src/data/tikzassembler.h b/src/data/tikzassembler.h
index 38d67a7..f5b580c 100644
--- a/src/data/tikzassembler.h
+++ b/src/data/tikzassembler.h
@@ -1,4 +1,22 @@
-/**
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
+/*!
* Convenience class to hold the parser state while loading tikz graphs or projects.
*/
diff --git a/src/data/tikzdocument.cpp b/src/data/tikzdocument.cpp
index 206ec5b..f685656 100644
--- a/src/data/tikzdocument.cpp
+++ b/src/data/tikzdocument.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include <QFile>
#include <QFileInfo>
#include <QSettings>
diff --git a/src/data/tikzdocument.h b/src/data/tikzdocument.h
index 8f16a53..0d6b48c 100644
--- a/src/data/tikzdocument.h
+++ b/src/data/tikzdocument.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* This class contains a tikz Graph, source code, file info, and undo stack. It serves as the model
* in the MVC triple (TikzDocument, TikzView, TikzScene).
diff --git a/src/data/tikzlexer.l b/src/data/tikzlexer.l
index 45494d2..7d7e990 100644
--- a/src/data/tikzlexer.l
+++ b/src/data/tikzlexer.l
@@ -1,28 +1,29 @@
%{
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger, Chris Heunen,
+ K. Johan Paulsson, Alex Merry
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
+
/*!
* \file tikzlexer.l
*
* The lexer for tikz input.
*/
-/*
- * Copyright 2010 Chris Heunen
- * Copyright 2010-2013 Aleks Kissinger
- * Copyright 2013 K. Johan Paulsson
- * Copyright 2013 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
#include "tikzparserdefs.h"
#include "tikzparser.parser.hpp"
diff --git a/src/data/tikzparserdefs.h b/src/data/tikzparserdefs.h
index 5865739..a5e77be 100644
--- a/src/data/tikzparserdefs.h
+++ b/src/data/tikzparserdefs.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef TIKZPARSERDEFS_H
#define TIKZPARSERDEFS_H
diff --git a/src/data/tikzstyles.cpp b/src/data/tikzstyles.cpp
index c198412..a924c01 100644
--- a/src/data/tikzstyles.cpp
+++ b/src/data/tikzstyles.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzstyles.h"
#include "nodestyle.h"
diff --git a/src/data/tikzstyles.h b/src/data/tikzstyles.h
index 4cd7d6e..0f7cce1 100644
--- a/src/data/tikzstyles.h
+++ b/src/data/tikzstyles.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef PROJECT_H
#define PROJECT_H
diff --git a/src/gui/edgeitem.cpp b/src/gui/edgeitem.cpp
index de51db3..f469506 100644
--- a/src/gui/edgeitem.cpp
+++ b/src/gui/edgeitem.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzit.h"
#include "edgeitem.h"
diff --git a/src/gui/edgeitem.h b/src/gui/edgeitem.h
index 948f137..3d4758a 100644
--- a/src/gui/edgeitem.h
+++ b/src/gui/edgeitem.h
@@ -1,4 +1,22 @@
-/**
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
+/*!
* A QGraphicsItem that handles drawing a single edge.
*/
diff --git a/src/gui/mainmenu.cpp b/src/gui/mainmenu.cpp
index 7e2584c..3625338 100644
--- a/src/gui/mainmenu.cpp
+++ b/src/gui/mainmenu.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "mainmenu.h"
#include "tikzit.h"
diff --git a/src/gui/mainmenu.h b/src/gui/mainmenu.h
index bceb69d..aa5c727 100644
--- a/src/gui/mainmenu.h
+++ b/src/gui/mainmenu.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef MAINMENU_H
#define MAINMENU_H
diff --git a/src/gui/nodeitem.cpp b/src/gui/nodeitem.cpp
index b0b7ea6..922747d 100644
--- a/src/gui/nodeitem.cpp
+++ b/src/gui/nodeitem.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzit.h"
#include "nodeitem.h"
#include "tikzscene.h"
diff --git a/src/gui/nodeitem.h b/src/gui/nodeitem.h
index 91b3f63..678a7e8 100644
--- a/src/gui/nodeitem.h
+++ b/src/gui/nodeitem.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* A QGraphicsItem that handles drawing a single node.
*/
diff --git a/src/gui/propertypalette.cpp b/src/gui/propertypalette.cpp
index 3e4ba88..c27b8b2 100644
--- a/src/gui/propertypalette.cpp
+++ b/src/gui/propertypalette.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "propertypalette.h"
#include "graphelementdata.h"
#include "ui_propertypalette.h"
diff --git a/src/gui/propertypalette.h b/src/gui/propertypalette.h
index 80f2d88..29fb0af 100644
--- a/src/gui/propertypalette.h
+++ b/src/gui/propertypalette.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* Enables the user to edit properties of the graph, as well as the selected node/edge.
*/
diff --git a/src/gui/stylepalette.cpp b/src/gui/stylepalette.cpp
index f1462df..6d6599b 100644
--- a/src/gui/stylepalette.cpp
+++ b/src/gui/stylepalette.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "stylepalette.h"
#include "ui_stylepalette.h"
#include "tikzit.h"
diff --git a/src/gui/stylepalette.h b/src/gui/stylepalette.h
index cc8fb73..45dc8da 100644
--- a/src/gui/stylepalette.h
+++ b/src/gui/stylepalette.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#ifndef STYLEPALETTE_H
#define STYLEPALETTE_H
diff --git a/src/gui/tikzscene.cpp b/src/gui/tikzscene.cpp
index 3c8fb71..772c67b 100644
--- a/src/gui/tikzscene.cpp
+++ b/src/gui/tikzscene.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzit.h"
#include "util.h"
#include "tikzscene.h"
diff --git a/src/gui/tikzscene.h b/src/gui/tikzscene.h
index 9d90c4f..4ac56c7 100644
--- a/src/gui/tikzscene.h
+++ b/src/gui/tikzscene.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* Manage the scene, which contains a single Graph, and respond to user input. This serves as
* the controller for the MVC (TikzDocument, TikzView, TikzScene).
diff --git a/src/gui/tikzview.cpp b/src/gui/tikzview.cpp
index 9997106..700cf29 100644
--- a/src/gui/tikzview.cpp
+++ b/src/gui/tikzview.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzview.h"
#include "tikzit.h"
diff --git a/src/gui/tikzview.h b/src/gui/tikzview.h
index b2006c8..4ec9f3d 100644
--- a/src/gui/tikzview.h
+++ b/src/gui/tikzview.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* Display a Graph, and manage any user input that purely changes the view (e.g. Zoom). This
* serves as the view in the MVC (TikzDocument, TikzView, TikzScene).
diff --git a/src/gui/toolpalette.cpp b/src/gui/toolpalette.cpp
index 0d0bd30..43a4a49 100644
--- a/src/gui/toolpalette.cpp
+++ b/src/gui/toolpalette.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "toolpalette.h"
#include <QVector>
diff --git a/src/gui/toolpalette.h b/src/gui/toolpalette.h
index 1876043..a001055 100644
--- a/src/gui/toolpalette.h
+++ b/src/gui/toolpalette.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* A small window that lets the user select the current editing tool.
*/
diff --git a/src/gui/undocommands.cpp b/src/gui/undocommands.cpp
index 5ce6941..5525cb7 100644
--- a/src/gui/undocommands.cpp
+++ b/src/gui/undocommands.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "undocommands.h"
#include "nodeitem.h"
#include "edgeitem.h"
diff --git a/src/gui/undocommands.h b/src/gui/undocommands.h
index ad76479..292632e 100644
--- a/src/gui/undocommands.h
+++ b/src/gui/undocommands.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* \file undocommands.h
*
diff --git a/src/main.cpp b/src/main.cpp
index 3532888..4d6f9a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,4 +1,23 @@
-/**
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
+
+/*!
* \file main.cpp
*
* The main entry point for the TikZiT executable.
diff --git a/src/tikzit.cpp b/src/tikzit.cpp
index dca6d95..9a4e166 100644
--- a/src/tikzit.cpp
+++ b/src/tikzit.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "tikzit.h"
#include "tikzassembler.h"
#include "tikzstyles.h"
diff --git a/src/tikzit.h b/src/tikzit.h
index 5ae9490..232a4aa 100644
--- a/src/tikzit.h
+++ b/src/tikzit.h
@@ -1,3 +1,22 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
+
/*!
*
* \mainpage TikZiT Documentation
diff --git a/src/util.cpp b/src/util.cpp
index 5e56cd9..9c699f5 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
#include "util.h"
float bezierInterpolate(float dist, float c0, float c1, float c2, float c3) {
diff --git a/src/util.h b/src/util.h
index 706928d..aff0587 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,3 +1,21 @@
+/*
+ TikZiT - a GUI diagram editor for TikZ
+ Copyright (C) 2018 Aleks Kissinger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
+
/*!
* Various utility functions, mostly for mathematical calculation.
*/
diff --git a/tikzit-old/.gitignore b/tikzit-old/.gitignore
deleted file mode 100644
index fc1d580..0000000
--- a/tikzit-old/.gitignore
+++ /dev/null
@@ -1,235 +0,0 @@
-# Previous gitignore items
-
-*~
-*.swp
-*.o
-.deps
-.dirstamp
-Makefile
-Makefile.in
-/aclocal.m4
-/autom4te.cache
-/config.guess
-/config.log
-/config.status
-/config.sub
-/configure
-/depcomp
-/install-sh
-/missing
-/src/tikzit
-/src/tikzit.res
-/src/common/tikzlexer.h
-/src/common/tikzlexer.m
-/src/common/tikzparser.m
-/src/common/tikzparser.h
-/src/gtk/icondata.m
-/src/gtk/logodata.m
-/src/gtk/edgedecdata.m
-/tikzit-*.tar.gz
-/tikzit-*.tar.bz2
-xbuild
-
-#########################
-# .gitignore file for Xcode4 and Xcode5 Source projects
-#
-# Apple bugs, waiting for Apple to fix/respond:
-#
-# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
-#
-# Version 2.3
-# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
-#
-# 2014 updates:
-# - appended non-standard items DISABLED by default (uncomment if you use those tools)
-# - removed the edit that an SO.com moderator made without bothering to ask me
-# - researched CocoaPods .lock more carefully, thanks to Gokhan Celiker
-# 2013 updates:
-# - fixed the broken "save personal Schemes"
-# - added line-by-line explanations for EVERYTHING (some were missing)
-#
-# NB: if you are storing "built" products, this WILL NOT WORK,
-# and you should use a different .gitignore (or none at all)
-# This file is for SOURCE projects, where there are many extra
-# files that we want to exclude
-#
-#########################
-
-#####
-# OS X temporary files that should never be committed
-#
-# c.f. http://www.westwind.com/reference/os-x/invisibles.html
-
-.DS_Store
-.Trashes
-*.swp
-
-#
-# *.lock - this is used and abused by many editors for many different things.
-# For the main ones I use (e.g. Eclipse), it should be excluded
-# from source-control, but YMMV.
-# (lock files are usually local-only file-synchronization on the local FS that should NOT go in git)
-# c.f. the "OPTIONAL" section at bottom though, for tool-specific variations!
-
-*.lock
-
-
-#
-# profile - REMOVED temporarily (on double-checking, I can't find it in OS X docs?)
-#profile
-
-
-####
-# Xcode temporary files that should never be committed
-#
-# NB: NIB/XIB files still exist even on Storyboard projects, so we want this...
-
-*~.nib
-
-
-####
-# Xcode build files -
-#
-# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData"
-
-DerivedData/
-
-# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build"
-
-build/
-
-
-#####
-# Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
-#
-# This is complicated:
-#
-# SOMETIMES you need to put this file in version control.
-# Apple designed it poorly - if you use "custom executables", they are
-# saved in this file.
-# 99% of projects do NOT use those, so they do NOT want to version control this file.
-# ..but if you're in the 1%, comment out the line "*.pbxuser"
-
-# .pbxuser: http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html
-
-*.pbxuser
-
-# .mode1v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
-
-*.mode1v3
-
-# .mode2v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
-
-*.mode2v3
-
-# .perspectivev3: http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file
-
-*.perspectivev3
-
-# NB: also, whitelist the default ones, some projects need to use these
-!default.pbxuser
-!default.mode1v3
-!default.mode2v3
-!default.perspectivev3
-
-
-####
-# Xcode 4 - semi-personal settings
-#
-#
-# OPTION 1: ---------------------------------
-# throw away ALL personal settings (including custom schemes!
-# - unless they are "shared")
-#
-# NB: this is exclusive with OPTION 2 below
-xcuserdata
-
-# OPTION 2: ---------------------------------
-# get rid of ALL personal settings, but KEEP SOME OF THEM
-# - NB: you must manually uncomment the bits you want to keep
-#
-# NB: this *requires* git v1.8.2 or above; you may need to upgrade to latest OS X,
-# or manually install git over the top of the OS X version
-# NB: this is exclusive with OPTION 1 above
-#
-#xcuserdata/**/*
-
-# (requires option 2 above): Personal Schemes
-#
-#!xcuserdata/**/xcschemes/*
-
-####
-# XCode 4 workspaces - more detailed
-#
-# Workspaces are important! They are a core feature of Xcode - don't exclude them :)
-#
-# Workspace layout is quite spammy. For reference:
-#
-# /(root)/
-# /(project-name).xcodeproj/
-# project.pbxproj
-# /project.xcworkspace/
-# contents.xcworkspacedata
-# /xcuserdata/
-# /(your name)/xcuserdatad/
-# UserInterfaceState.xcuserstate
-# /xcsshareddata/
-# /xcschemes/
-# (shared scheme name).xcscheme
-# /xcuserdata/
-# /(your name)/xcuserdatad/
-# (private scheme).xcscheme
-# xcschememanagement.plist
-#
-#
-
-####
-# Xcode 4 - Deprecated classes
-#
-# Allegedly, if you manually "deprecate" your classes, they get moved here.
-#
-# We're using source-control, so this is a "feature" that we do not want!
-
-*.moved-aside
-
-####
-# OPTIONAL: Some well-known tools that people use side-by-side with Xcode / iOS development
-#
-# NB: I'd rather not include these here, but gitignore's design is weak and doesn't allow
-# modular gitignore: you have to put EVERYTHING in one file.
-#
-# COCOAPODS:
-#
-# c.f. http://guides.cocoapods.org/using/using-cocoapods.html#what-is-a-podfilelock
-# c.f. http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
-#
-#!Podfile.lock
-#
-# RUBY:
-#
-# c.f. http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
-#
-#!Gemfile.lock
-#
-# IDEA:
-#
-#.idea
-#
-# TEXTMATE:
-#
-# -- UNVERIFIED: c.f. http://stackoverflow.com/a/50283/153422
-#
-#tm_build_errors
-
-####
-# UNKNOWN: recommended by others, but I can't discover what these files are
-#
-# Community suggestions (unverified, no evidence available - DISABLED by default)
-#
-# 1. Xcode 5 - VCS file
-#
-# "The data in this file not represent state of your project.
-# If you'll leave this file in git - you will have merge conflicts during
-# pull your cahnges to other's repo"
-#
-#*.xccheckout \ No newline at end of file
diff --git a/tikzit-old/AH_latex_head.png b/tikzit-old/AH_latex_head.png
deleted file mode 100644
index b25cf6d..0000000
--- a/tikzit-old/AH_latex_head.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/AH_latex_tail.png b/tikzit-old/AH_latex_tail.png
deleted file mode 100644
index 0825cda..0000000
--- a/tikzit-old/AH_latex_tail.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/AH_none.png b/tikzit-old/AH_none.png
deleted file mode 100644
index 6322374..0000000
--- a/tikzit-old/AH_none.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/AH_plain_head.png b/tikzit-old/AH_plain_head.png
deleted file mode 100644
index 8a398fa..0000000
--- a/tikzit-old/AH_plain_head.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/AH_plain_tail.png b/tikzit-old/AH_plain_tail.png
deleted file mode 100644
index 45b1876..0000000
--- a/tikzit-old/AH_plain_tail.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/COPYING b/tikzit-old/COPYING
deleted file mode 100644
index 1f963da..0000000
--- a/tikzit-old/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- 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 General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
-
diff --git a/tikzit-old/DESIGN-GTK b/tikzit-old/DESIGN-GTK
deleted file mode 100644
index 7952a34..0000000
--- a/tikzit-old/DESIGN-GTK
+++ /dev/null
@@ -1,23 +0,0 @@
-Some documentation on how the GTK+ port is designed.
-
-State classes:
-
-StyleManager keeps track of what user-defined styles the application
-knows about, and which one is currently "active". The active style
-is used when creating new nodes.
-
-Preambles keeps track of the preambles used for previews.
-
-
-GUI classes:
-
-MainWindow is the core class that manages the application as a whole.
-It manages the main GtkWindow and is generally responsible for loading
-the various UI elements. It also keeps track of the main application
-configuration file, the user-defined styles (via StyleManager) and the
-custom preambles (via Preambles).
-
-The Menu class manages the menu and toolbar for MainWindow. It uses
-GtkUiManager to load these from an XML description, and deals with the
-GTK+ callbacks for the various actions.
-
diff --git a/tikzit-old/ED_arrow.png b/tikzit-old/ED_arrow.png
deleted file mode 100644
index 153d2e1..0000000
--- a/tikzit-old/ED_arrow.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/ED_none.png b/tikzit-old/ED_none.png
deleted file mode 100644
index f95140c..0000000
--- a/tikzit-old/ED_none.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/ED_tick.png b/tikzit-old/ED_tick.png
deleted file mode 100644
index a3882fe..0000000
--- a/tikzit-old/ED_tick.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/English.lproj/Credits.rtf b/tikzit-old/English.lproj/Credits.rtf
deleted file mode 100644
index 708d138..0000000
--- a/tikzit-old/English.lproj/Credits.rtf
+++ /dev/null
@@ -1,18 +0,0 @@
-{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 LucidaSans-Typewriter;}
-{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
-\vieww9000\viewh8400\viewkind0
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
-
-\f0\b\fs24 \cf0 TikZiT\
-\
-Copyright 2010 Aleks Kissinger. All rights reserved.\
-
-\b0 \
-\pard\tx560\pardeftab560\ql\qnatural\pardirnatural
-
-\f1\fs22 \cf2 \CocoaLigature0 TikZiT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\
-\
-TikZiT 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 General Public License for more details.\
-\
-You should have received a copy of the GNU General Public License along with TikZiT. If not, see <http://www.gnu.org/licenses/>.} \ No newline at end of file
diff --git a/tikzit-old/English.lproj/CustomNodes.xib b/tikzit-old/English.lproj/CustomNodes.xib
deleted file mode 100644
index 33f6e3a..0000000
--- a/tikzit-old/English.lproj/CustomNodes.xib
+++ /dev/null
@@ -1,256 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13C64" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="CustomNodeController">
- <connections>
- <outlet property="customNodeTable" destination="ieg-vU-MzM" id="nrO-zt-zY0"/>
- <outlet property="graphicsView" destination="3MT-Yc-Dhv" id="9gg-fS-oBl"/>
- <outlet property="tikzSourceController" destination="il5-cQ-3oh" id="Wny-jd-sKZ"/>
- <outlet property="view" destination="1" id="sH5-DU-xwB"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
- <arrayController objectClassName="NodeStyle" id="iyU-U5-XAU" userLabel="Node Style Array Controller">
- <declaredKeys>
- <string>name</string>
- <string>strokeThickness</string>
- <string>strokeColor</string>
- <string>fillColor</string>
- <string>strokeColorIsKnown</string>
- <string>fillColorIsKnown</string>
- <string>representedObject.name</string>
- <string>shapeName</string>
- <string>scale</string>
- <string>@distinctUnionOfObjects.category</string>
- <string>category</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="customNodeStyles" id="eXd-NF-dvR"/>
- </connections>
- </arrayController>
- <customObject id="il5-cQ-3oh" customClass="TikzSourceController">
- <connections>
- <outlet property="errorMessage" destination="6rJ-4b-syy" id="cin-Wb-6uD"/>
- <outlet property="errorNotification" destination="R3k-mz-hMn" id="jtn-fQ-Amk"/>
- <outlet property="graphicsView" destination="3MT-Yc-Dhv" id="hK1-h1-Dsr"/>
- <outlet property="sourceView" destination="QXu-0d-uF0" id="SEj-FL-5Ac"/>
- <outlet property="status" destination="6rJ-4b-syy" id="lVN-cK-3Cb"/>
- </connections>
- </customObject>
- <customView id="1">
- <rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <splitView dividerStyle="thin" vertical="YES" translatesAutoresizingMaskIntoConstraints="NO" id="DO1-FS-fZd">
- <rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="33" horizontalPageScroll="10" verticalLineScroll="33" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="Ry0-48-577">
- <rect key="frame" x="0.0" y="0.0" width="135" height="272"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="9D3-br-lEi">
- <rect key="frame" x="1" y="1" width="133" height="270"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" rowHeight="31" rowSizeStyle="automatic" viewBased="YES" id="ieg-vU-MzM">
- <rect key="frame" x="0.0" y="0.0" width="133" height="270"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="130" minWidth="40" maxWidth="1000" id="k91-pc-nbl">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <customCell key="dataCell" alignment="left" id="iBr-Zx-inI"/>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <prototypeCellViews>
- <tableCellView id="FFd-Cu-kI9" customClass="CustomNodeCellView">
- <rect key="frame" x="1" y="1" width="130" height="31"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ao2-4F-rlt">
- <rect key="frame" x="0.0" y="7" width="130" height="17"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="QkT-4g-5Qq">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- </subviews>
- <connections>
- <outlet property="textField" destination="ao2-4F-rlt" id="zq7-cf-ZXq"/>
- </connections>
- </tableCellView>
- </prototypeCellViews>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="iyU-U5-XAU" name="content" keyPath="arrangedObjects" id="Sdh-7p-80z"/>
- <outlet property="dataSource" destination="iyU-U5-XAU" id="t5B-c8-e0k"/>
- <outlet property="delegate" destination="-2" id="M05-fU-pjz"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="QIL-7j-JmC">
- <rect key="frame" x="1" y="256" width="36" height="15"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="ElP-ub-Uwa">
- <rect key="frame" x="-14" y="-7" width="15" height="0.0"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- <view id="F5P-T2-9eB">
- <rect key="frame" x="136" y="0.0" width="344" height="272"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <splitView translatesAutoresizingMaskIntoConstraints="NO" id="KKi-SZ-dS6">
- <rect key="frame" x="0.0" y="0.0" width="344" height="272"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <customView id="d61-FR-v2c">
- <rect key="frame" x="0.0" y="0.0" width="344" height="156"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <customView wantsLayer="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3MT-Yc-Dhv" customClass="GraphicsView">
- <rect key="frame" x="0.0" y="0.0" width="344" height="155"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </customView>
- <customView wantsLayer="YES" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="R3k-mz-hMn" customClass="ParseErrorView">
- <rect key="frame" x="0.0" y="113" width="343" height="42"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <subviews>
- <textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6rJ-4b-syy">
- <rect key="frame" x="5" y="10" width="336" height="27"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" placeholderString="parser information" allowsEditingTextAttributes="YES" id="3y1-Zn-Hv4">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <button wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Et8-Cc-Xac">
- <rect key="frame" x="322" y="21" width="17" height="19"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="squareTextured" bezelStyle="texturedSquare" image="NSStopProgressFreestandingTemplate" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" id="7vB-Le-tP4">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="closeParseError:" target="il5-cQ-3oh" id="jdZ-7K-cwe"/>
- </connections>
- </button>
- </subviews>
- </customView>
- </subviews>
- <constraints>
- <constraint firstAttribute="bottom" secondItem="3MT-Yc-Dhv" secondAttribute="bottom" id="DEy-EJ-EeA"/>
- <constraint firstItem="R3k-mz-hMn" firstAttribute="leading" secondItem="d61-FR-v2c" secondAttribute="leading" id="FDF-4e-3R4"/>
- <constraint firstItem="3MT-Yc-Dhv" firstAttribute="top" secondItem="d61-FR-v2c" secondAttribute="top" constant="1" id="TXv-kR-OA6"/>
- <constraint firstItem="3MT-Yc-Dhv" firstAttribute="leading" secondItem="d61-FR-v2c" secondAttribute="leading" id="TzA-tT-Vdh"/>
- <constraint firstItem="R3k-mz-hMn" firstAttribute="top" secondItem="d61-FR-v2c" secondAttribute="top" constant="1" id="a7a-Y8-O1K"/>
- <constraint firstAttribute="trailing" secondItem="3MT-Yc-Dhv" secondAttribute="trailing" id="tEn-7r-xa3"/>
- <constraint firstAttribute="trailing" secondItem="R3k-mz-hMn" secondAttribute="trailing" constant="1" id="tpa-mG-DNu"/>
- </constraints>
- </customView>
- <customView id="Fal-9S-dwR">
- <rect key="frame" x="0.0" y="165" width="344" height="107"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <scrollView horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yLp-gf-r49">
- <rect key="frame" x="0.0" y="0.0" width="344" height="107"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" id="qOT-id-lqk">
- <rect key="frame" x="1" y="1" width="327" height="105"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textView importsGraphics="NO" richText="NO" findStyle="panel" allowsUndo="YES" usesRuler="YES" verticallyResizable="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="QXu-0d-uF0">
- <rect key="frame" x="0.0" y="0.0" width="327" height="105"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="327" height="105"/>
- <size key="maxSize" width="877" height="10000000"/>
- <attributedString key="textStorage">
- <fragment>
- <string key="content">\begin{tikzpicture}
-
-\end{tikzpicture}</string>
- <attributes>
- <font key="NSFont" metaFont="toolTip"/>
- <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
- </attributes>
- </fragment>
- </attributedString>
- <color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="327" height="105"/>
- <size key="maxSize" width="877" height="10000000"/>
- <connections>
- <binding destination="il5-cQ-3oh" name="attributedString" keyPath="source" id="15z-o3-4ni"/>
- <outlet property="delegate" destination="il5-cQ-3oh" id="9Mr-J3-zvR"/>
- </connections>
- </textView>
- </subviews>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="BYM-Xm-JpT">
- <rect key="frame" x="-100" y="-100" width="87" height="18"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" verticalHuggingPriority="750" doubleValue="0.90909090909090906" horizontal="NO" id="SEU-Jq-fwu">
- <rect key="frame" x="328" y="1" width="15" height="105"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- </subviews>
- <constraints>
- <constraint firstAttribute="bottom" secondItem="yLp-gf-r49" secondAttribute="bottom" id="3Zg-sl-ndb"/>
- <constraint firstItem="yLp-gf-r49" firstAttribute="leading" secondItem="Fal-9S-dwR" secondAttribute="leading" id="MoY-ha-w7Q"/>
- <constraint firstItem="yLp-gf-r49" firstAttribute="top" secondItem="Fal-9S-dwR" secondAttribute="top" id="rmR-5R-FQ1"/>
- <constraint firstAttribute="trailing" secondItem="yLp-gf-r49" secondAttribute="trailing" id="z6B-m5-ePl"/>
- </constraints>
- </customView>
- </subviews>
- <holdingPriorities>
- <real value="250"/>
- <real value="250"/>
- </holdingPriorities>
- </splitView>
- </subviews>
- <constraints>
- <constraint firstAttribute="trailing" secondItem="KKi-SZ-dS6" secondAttribute="trailing" id="Nae-MC-igi"/>
- <constraint firstAttribute="bottom" secondItem="KKi-SZ-dS6" secondAttribute="bottom" id="Tvy-gL-Wmv"/>
- <constraint firstItem="KKi-SZ-dS6" firstAttribute="top" secondItem="F5P-T2-9eB" secondAttribute="top" id="gIg-p8-zOO"/>
- <constraint firstItem="KKi-SZ-dS6" firstAttribute="leading" secondItem="F5P-T2-9eB" secondAttribute="leading" id="iHl-dm-VjB"/>
- </constraints>
- </view>
- </subviews>
- <holdingPriorities>
- <real value="250"/>
- <real value="250"/>
- </holdingPriorities>
- </splitView>
- </subviews>
- <constraints>
- <constraint firstAttribute="trailing" secondItem="DO1-FS-fZd" secondAttribute="trailing" id="Bow-1P-jx4"/>
- <constraint firstAttribute="bottom" secondItem="DO1-FS-fZd" secondAttribute="bottom" id="c94-eC-Rhp"/>
- <constraint firstItem="DO1-FS-fZd" firstAttribute="leading" secondItem="1" secondAttribute="leading" id="j1G-Ag-RLs"/>
- <constraint firstItem="DO1-FS-fZd" firstAttribute="top" secondItem="1" secondAttribute="top" id="tBr-89-Ipp"/>
- </constraints>
- </customView>
- </objects>
- <resources>
- <image name="NSStopProgressFreestandingTemplate" width="12" height="12"/>
- </resources>
-</document>
diff --git a/tikzit-old/English.lproj/InfoPlist.strings b/tikzit-old/English.lproj/InfoPlist.strings
deleted file mode 100644
index 477b28f..0000000
--- a/tikzit-old/English.lproj/InfoPlist.strings
+++ /dev/null
@@ -1,2 +0,0 @@
-/* Localized versions of Info.plist keys */
-
diff --git a/tikzit-old/English.lproj/MainMenu.xib b/tikzit-old/English.lproj/MainMenu.xib
deleted file mode 100644
index c7f22d7..0000000
--- a/tikzit-old/English.lproj/MainMenu.xib
+++ /dev/null
@@ -1,453 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="NSApplication"/>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application">
- <connections>
- <outlet property="delegate" destination="532" id="533"/>
- </connections>
- </customObject>
- <menu title="AMainMenu" systemMenu="main" id="29">
- <items>
- <menuItem title="TikZiT" id="56">
- <menu key="submenu" title="TikZiT" systemMenu="apple" id="57">
- <items>
- <menuItem title="About TikZiT" id="58">
- <modifierMask key="keyEquivalentModifierMask"/>
- <connections>
- <action selector="orderFrontStandardAboutPanel:" target="-2" id="534"/>
- </connections>
- </menuItem>
- <menuItem title="Check for Updates..." id="573">
- <modifierMask key="keyEquivalentModifierMask"/>
- <connections>
- <action selector="checkForUpdates:" target="574" id="575"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="236">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Preferences…" keyEquivalent="," id="129">
- <connections>
- <action selector="togglePreferences:" target="532" id="614"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="143">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Services" id="131">
- <menu key="submenu" title="Services" systemMenu="services" id="130"/>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="144">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Hide TikZiT" keyEquivalent="h" id="134">
- <connections>
- <action selector="hide:" target="-1" id="367"/>
- </connections>
- </menuItem>
- <menuItem title="Hide Others" keyEquivalent="h" id="145">
- <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
- <connections>
- <action selector="hideOtherApplications:" target="-1" id="368"/>
- </connections>
- </menuItem>
- <menuItem title="Show All" id="150">
- <connections>
- <action selector="unhideAllApplications:" target="-1" id="370"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="149">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Quit TikZiT" keyEquivalent="q" id="136">
- <connections>
- <action selector="terminate:" target="-3" id="448"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="File" id="83">
- <menu key="submenu" title="File" id="81">
- <items>
- <menuItem title="New" keyEquivalent="n" id="82">
- <connections>
- <action selector="newDocument:" target="-1" id="371"/>
- </connections>
- </menuItem>
- <menuItem title="Open…" keyEquivalent="o" id="72">
- <connections>
- <action selector="openDocument:" target="-1" id="372"/>
- </connections>
- </menuItem>
- <menuItem title="Open Recent" id="124">
- <menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="125">
- <items>
- <menuItem title="Clear Menu" id="126">
- <connections>
- <action selector="clearRecentDocuments:" target="-1" id="127"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="79">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Close" keyEquivalent="w" id="73">
- <connections>
- <action selector="performClose:" target="-1" id="193"/>
- </connections>
- </menuItem>
- <menuItem title="Save" keyEquivalent="s" id="75">
- <connections>
- <action selector="saveDocument:" target="-1" id="362"/>
- </connections>
- </menuItem>
- <menuItem title="Save As…" keyEquivalent="S" id="80">
- <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
- <connections>
- <action selector="saveDocumentAs:" target="-1" id="363"/>
- </connections>
- </menuItem>
- <menuItem title="Revert to Saved" id="112">
- <modifierMask key="keyEquivalentModifierMask"/>
- <connections>
- <action selector="revertDocumentToSaved:" target="-1" id="364"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="74">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Page Setup..." keyEquivalent="P" id="77">
- <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
- <connections>
- <action selector="runPageLayout:" target="-1" id="87"/>
- </connections>
- </menuItem>
- <menuItem title="Print…" keyEquivalent="p" id="78">
- <connections>
- <action selector="printDocument:" target="-1" id="373"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="Edit" id="217">
- <menu key="submenu" title="Edit" id="205">
- <items>
- <menuItem title="Undo" keyEquivalent="z" id="207">
- <connections>
- <action selector="undo:" target="-1" id="223"/>
- </connections>
- </menuItem>
- <menuItem title="Redo" keyEquivalent="Z" id="215">
- <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
- <connections>
- <action selector="redo:" target="-1" id="231"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="206">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Cut" keyEquivalent="x" id="199">
- <connections>
- <action selector="cut:" target="-1" id="228"/>
- </connections>
- </menuItem>
- <menuItem title="Copy" keyEquivalent="c" id="197">
- <connections>
- <action selector="copy:" target="-1" id="224"/>
- </connections>
- </menuItem>
- <menuItem title="Paste" keyEquivalent="v" id="203">
- <connections>
- <action selector="paste:" target="-1" id="226"/>
- </connections>
- </menuItem>
- <menuItem title="Delete" id="202">
- <string key="keyEquivalent" base64-UTF8="YES">
-CA
-</string>
- <modifierMask key="keyEquivalentModifierMask"/>
- <connections>
- <action selector="delete:" target="-1" id="235"/>
- </connections>
- </menuItem>
- <menuItem title="Select All" keyEquivalent="a" id="198">
- <connections>
- <action selector="selectAll:" target="-1" id="232"/>
- </connections>
- </menuItem>
- <menuItem title="Deselect All" keyEquivalent="A" id="551">
- <connections>
- <action selector="deselectAll:" target="-1" id="552"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="214">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Arrange" id="602">
- <modifierMask key="keyEquivalentModifierMask"/>
- <menu key="submenu" title="Arrange" id="603">
- <items>
- <menuItem title="Bring to Front" keyEquivalent="]" id="604">
- <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
- <connections>
- <action selector="bringToFront:" target="-1" id="609"/>
- </connections>
- </menuItem>
- <menuItem title="Bring Forward" keyEquivalent="]" id="605">
- <connections>
- <action selector="bringForward:" target="-1" id="608"/>
- </connections>
- </menuItem>
- <menuItem title="Send Backward" keyEquivalent="[" id="606">
- <connections>
- <action selector="sendBackward:" target="-1" id="612"/>
- </connections>
- </menuItem>
- <menuItem title="Send to Back" keyEquivalent="[" id="607">
- <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
- <connections>
- <action selector="sendToBack:" target="-1" id="613"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="Find" id="218">
- <menu key="submenu" title="Find" id="220">
- <items>
- <menuItem title="Find…" tag="1" keyEquivalent="f" id="209">
- <connections>
- <action selector="performFindPanelAction:" target="-1" id="241"/>
- </connections>
- </menuItem>
- <menuItem title="Find Next" tag="2" keyEquivalent="g" id="208">
- <connections>
- <action selector="performFindPanelAction:" target="-1" id="467"/>
- </connections>
- </menuItem>
- <menuItem title="Find Previous" tag="3" keyEquivalent="G" id="213">
- <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
- <connections>
- <action selector="performFindPanelAction:" target="-1" id="468"/>
- </connections>
- </menuItem>
- <menuItem title="Use Selection for Find" tag="7" keyEquivalent="e" id="221">
- <connections>
- <action selector="performFindPanelAction:" target="-1" id="469"/>
- </connections>
- </menuItem>
- <menuItem title="Jump to Selection" keyEquivalent="j" id="210">
- <connections>
- <action selector="centerSelectionInVisibleArea:" target="-1" id="245"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="Transformations" id="449">
- <modifierMask key="keyEquivalentModifierMask"/>
- <menu key="submenu" title="Transformations" id="450">
- <items>
- <menuItem title="Flip Horizontal" keyEquivalent="" id="553">
- <connections>
- <action selector="flipHorizonal:" target="-1" id="555"/>
- </connections>
- </menuItem>
- <menuItem title="Flip Vertical" keyEquivalent="" id="554">
- <connections>
- <action selector="flipVertical:" target="-1" id="556"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="Edge" id="558">
- <modifierMask key="keyEquivalentModifierMask"/>
- <menu key="submenu" title="Edge" id="559">
- <items>
- <menuItem title="Reverse Edge Direction" keyEquivalent="/" id="560">
- <connections>
- <action selector="reverseEdgeDirection:" target="-1" id="596"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="TikZ" id="374">
- <modifierMask key="keyEquivalentModifierMask"/>
- <menu key="submenu" title="TikZ" id="375">
- <items>
- <menuItem title="Parse" keyEquivalent="t" id="547">
- <connections>
- <action selector="parseTikz:" target="-1" id="549"/>
- </connections>
- </menuItem>
- <menuItem title="Revert" id="548">
- <modifierMask key="keyEquivalentModifierMask"/>
- <connections>
- <action selector="revertTikz:" target="-1" id="550"/>
- </connections>
- </menuItem>
- <menuItem title="Preview" keyEquivalent="r" id="582">
- <connections>
- <action selector="previewTikz:" target="-1" id="583"/>
- </connections>
- </menuItem>
- <menuItem title="Refresh Shapes" id="594">
- <modifierMask key="keyEquivalentModifierMask"/>
- <connections>
- <action selector="refreshShapes:" target="532" id="595"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="View" id="295">
- <menu key="submenu" title="View" id="296">
- <items>
- <menuItem title="Zoom In" keyEquivalent="+" id="565">
- <connections>
- <action selector="zoomIn:" target="-1" id="569"/>
- </connections>
- </menuItem>
- <menuItem title="Zoom Out" keyEquivalent="-" id="566">
- <connections>
- <action selector="zoomOut:" target="-1" id="570"/>
- </connections>
- </menuItem>
- <menuItem title="Actual Size" keyEquivalent="0" id="567">
- <connections>
- <action selector="zoomToActualSize:" target="-1" id="572"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="Window" id="19">
- <menu key="submenu" title="Window" systemMenu="window" id="24">
- <items>
- <menuItem title="Minimize" keyEquivalent="m" id="23">
- <connections>
- <action selector="performMiniaturize:" target="-1" id="37"/>
- </connections>
- </menuItem>
- <menuItem title="Zoom" id="239">
- <connections>
- <action selector="performZoom:" target="-1" id="240"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="588"/>
- <menuItem title="Style Inspector" keyEquivalent="s" id="587">
- <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
- <connections>
- <action selector="toggleStyleInspector:" target="532" id="590"/>
- </connections>
- </menuItem>
- <menuItem title="Property Inspector" keyEquivalent="p" id="589">
- <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
- <connections>
- <action selector="togglePropertyInspector:" target="532" id="591"/>
- </connections>
- </menuItem>
- <menuItem isSeparatorItem="YES" id="92">
- <modifierMask key="keyEquivalentModifierMask" command="YES"/>
- </menuItem>
- <menuItem title="Bring All to Front" id="5">
- <connections>
- <action selector="arrangeInFront:" target="-1" id="39"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- <menuItem title="Help" id="491">
- <modifierMask key="keyEquivalentModifierMask"/>
- <menu key="submenu" title="Help" systemMenu="help" id="492">
- <items>
- <menuItem title="TikZiT Help" keyEquivalent="?" id="493">
- <connections>
- <action selector="showHelp:" target="-1" id="494"/>
- </connections>
- </menuItem>
- </items>
- </menu>
- </menuItem>
- </items>
- </menu>
- <customObject id="419" customClass="NSFontManager"/>
- <customObject id="532" customClass="AppDelegate">
- <connections>
- <outlet property="toolPaletteController" destination="543" id="545"/>
- </connections>
- </customObject>
- <window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" animationBehavior="default" id="535" userLabel="Tool Palette" customClass="NSPanel">
- <windowStyleMask key="styleMask" titled="YES" utility="YES" nonactivatingPanel="YES"/>
- <windowPositionMask key="initialPositionMask" leftStrut="YES" topStrut="YES"/>
- <rect key="contentRect" x="42" y="560" width="36" height="138"/>
- <rect key="screenRect" x="0.0" y="0.0" width="1440" height="878"/>
- <view key="contentView" id="536">
- <rect key="frame" x="0.0" y="0.0" width="36" height="138"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <matrix verticalHuggingPriority="750" allowsEmptySelection="NO" id="537">
- <rect key="frame" x="2" y="2" width="32" height="134"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- <size key="cellSize" width="32" height="32"/>
- <size key="intercellSpacing" width="4" height="2"/>
- <buttonCell key="prototype" type="square" bezelStyle="shadowlessSquare" imagePosition="left" alignment="left" borderStyle="border" inset="2" id="540">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <cells>
- <column>
- <buttonCell type="square" bezelStyle="shadowlessSquare" image="select-rectangular" imagePosition="left" alignment="left" state="on" borderStyle="border" toolTip="Select (S)" inset="2" id="538">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES" changeBackground="YES" changeGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <buttonCell type="square" bezelStyle="shadowlessSquare" image="draw-ellipse" imagePosition="left" alignment="left" borderStyle="border" toolTip="Add Node (N)" inset="2" id="539">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES" changeBackground="YES" changeGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <buttonCell type="square" bezelStyle="shadowlessSquare" image="draw-path" imagePosition="left" alignment="left" borderStyle="border" toolTip="Add Edge (E)" inset="2" id="542">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES" changeBackground="YES" changeGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <buttonCell type="square" bezelStyle="shadowlessSquare" image="transform-crop-and-resize" imagePosition="left" alignment="left" borderStyle="border" toolTip="Crop Box (K)" inset="2" id="586">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES" changeBackground="YES" changeGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- </column>
- </cells>
- </matrix>
- </subviews>
- </view>
- </window>
- <customObject id="543" customClass="ToolPaletteController">
- <connections>
- <outlet property="toolMatrix" destination="537" id="546"/>
- <outlet property="toolPalette" destination="535" id="544"/>
- </connections>
- </customObject>
- <customObject id="574" customClass="SUUpdater"/>
- </objects>
- <resources>
- <image name="draw-ellipse" width="22" height="22"/>
- <image name="draw-path" width="22" height="22"/>
- <image name="select-rectangular" width="22" height="22"/>
- <image name="transform-crop-and-resize" width="22" height="22"/>
- </resources>
-</document> \ No newline at end of file
diff --git a/tikzit-old/English.lproj/Preamble.xib b/tikzit-old/English.lproj/Preamble.xib
deleted file mode 100644
index 54a4125..0000000
--- a/tikzit-old/English.lproj/Preamble.xib
+++ /dev/null
@@ -1,235 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="PreambleController">
- <connections>
- <outlet property="preambleDictionaryController" destination="73" id="93"/>
- <outlet property="textView" destination="W3D-gx-uy5" id="3cl-CN-Ttd"/>
- <outlet property="view" destination="NcT-h6-689" id="2cI-hG-RRR"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <view id="NcT-h6-689">
- <rect key="frame" x="0.0" y="0.0" width="667" height="421"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <splitView vertical="YES" id="Blx-Qy-PIu">
- <rect key="frame" x="0.0" y="0.0" width="667" height="421"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <customView id="TdM-Td-oQD">
- <rect key="frame" x="0.0" y="0.0" width="172" height="421"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="QAv-5n-TPO">
- <rect key="frame" x="0.0" y="31" width="172" height="390"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" id="awP-dp-RCJ">
- <rect key="frame" x="1" y="1" width="170" height="388"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" id="HfD-V3-j66">
- <rect key="frame" x="0.0" y="0.0" width="170" height="388"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="167" minWidth="40" maxWidth="1000" id="nhc-op-Gcl">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Preambles">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="U49-Lx-1Hy">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="73" name="value" keyPath="arrangedObjects.key" id="GST-ha-V95"/>
- </connections>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="-2" name="enabled" keyPath="useDefaultPreamble" id="dAs-JJ-qGS">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- <outlet property="delegate" destination="-2" id="Vrp-Wi-leY"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="jmd-4g-hMF">
- <rect key="frame" x="1" y="119" width="223" height="15"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="9Yg-pg-tmJ">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- <button verticalHuggingPriority="750" id="jaL-LK-rAN">
- <rect key="frame" x="3" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="HgN-ag-Dmt">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addPreamble:" target="-2" id="IJV-Jp-qwv"/>
- <binding destination="-2" name="enabled" keyPath="useDefaultPreamble" id="PTY-My-mrd">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="F8d-C5-YKO">
- <rect key="frame" x="28" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="8V0-3D-PtP">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="remove:" target="73" id="gBP-VV-uek"/>
- <binding destination="-2" name="enabled" keyPath="useDefaultPreamble" id="JG3-H7-MSd">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- </connections>
- </button>
- <button toolTip="Use default preamble" verticalHuggingPriority="750" id="bKv-Ei-k2u">
- <rect key="frame" x="96" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSHomeTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Xm0-Tv-CQT">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="setPreambleToDefault:" target="-2" id="3x4-He-t6d"/>
- <binding destination="-2" name="enabled" keyPath="useDefaultPreamble" id="TsJ-jC-dku">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- </connections>
- </button>
- <button toolTip="Use custom preamble" verticalHuggingPriority="750" id="1UE-dW-5gK">
- <rect key="frame" x="121" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSListViewTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="u68-bY-vMv">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="setPreamble:" target="-2" id="nq6-zY-QM2"/>
- <binding destination="-2" name="enabled" keyPath="useDefaultPreamble" id="O8c-Mn-wTe"/>
- </connections>
- </button>
- <button toolTip="Insert node styles to selected preamble" verticalHuggingPriority="750" id="t7Y-cN-PL2">
- <rect key="frame" x="146" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSFollowLinkFreestandingTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="yza-ch-hNO">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="insertDefaultStyles:" target="-2" id="4xx-wH-A2a"/>
- <binding destination="-2" name="enabled" keyPath="useDefaultPreamble" id="Qhf-Lw-ysd">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- </connections>
- </button>
- </subviews>
- </customView>
- <customView id="few-6X-OqV">
- <rect key="frame" x="181" y="0.0" width="486" height="421"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <scrollView horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" id="6gh-aS-EIR">
- <rect key="frame" x="0.0" y="0.0" width="486" height="421"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" id="UfT-qO-OB9">
- <rect key="frame" x="1" y="1" width="469" height="419"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textView importsGraphics="NO" findStyle="panel" allowsUndo="YES" usesRuler="YES" usesFontPanel="YES" verticallyResizable="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="W3D-gx-uy5">
- <rect key="frame" x="0.0" y="0.0" width="469" height="419"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="469" height="419"/>
- <size key="maxSize" width="495" height="10000000"/>
- <color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="469" height="419"/>
- <size key="maxSize" width="495" height="10000000"/>
- <connections>
- <binding destination="-2" name="attributedString" keyPath="preambleText" id="R1R-ix-xfb">
- <dictionary key="options">
- <bool key="NSContinuouslyUpdatesValue" value="YES"/>
- </dictionary>
- </binding>
- <binding destination="-2" name="editable" keyPath="useDefaultPreamble" id="1xO-TB-qx0">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- </connections>
- </textView>
- </subviews>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="Nwf-2h-Oei">
- <rect key="frame" x="-100" y="-100" width="87" height="18"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="Rhk-Cb-HvD">
- <rect key="frame" x="470" y="1" width="15" height="419"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- </subviews>
- </customView>
- </subviews>
- <holdingPriorities>
- <real value="250"/>
- <real value="250"/>
- </holdingPriorities>
- </splitView>
- </subviews>
- </view>
- <customObject id="-3" userLabel="Application"/>
- <userDefaultsController representsSharedInstance="YES" id="22"/>
- <dictionaryController objectClassName="_NSControllerKeyValuePair" id="73">
- <declaredKeys>
- <string>key</string>
- </declaredKeys>
- <excludedKeys>
- <string>default</string>
- </excludedKeys>
- <connections>
- <binding destination="-2" name="contentDictionary" keyPath="preambles.preambleDict" id="81"/>
- <binding destination="-2" name="selectionIndexes" keyPath="selectionIndexes" id="92"/>
- </connections>
- </dictionaryController>
- </objects>
- <resources>
- <image name="NSAddTemplate" width="8" height="8"/>
- <image name="NSFollowLinkFreestandingTemplate" width="10" height="10"/>
- <image name="NSHomeTemplate" width="14" height="13"/>
- <image name="NSListViewTemplate" width="11" height="10"/>
- <image name="NSRemoveTemplate" width="8" height="8"/>
- </resources>
-</document> \ No newline at end of file
diff --git a/tikzit-old/English.lproj/Preview.xib b/tikzit-old/English.lproj/Preview.xib
deleted file mode 100644
index cb1e82c..0000000
--- a/tikzit-old/English.lproj/Preview.xib
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
- <plugIn identifier="com.apple.pdfkit.ibplugin" version="3338"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="PreviewController">
- <connections>
- <outlet property="errorText" destination="11" id="12"/>
- <outlet property="errorTextView" destination="8" id="13"/>
- <outlet property="pdfView" destination="3" id="5"/>
- <outlet property="progressIndicator" destination="6" id="7"/>
- <outlet property="window" destination="1" id="4"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
- <window title="Preview" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" wantsToBeColor="NO" animationBehavior="default" id="1">
- <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
- <windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
- <rect key="contentRect" x="196" y="138" width="480" height="380"/>
- <rect key="screenRect" x="0.0" y="0.0" width="1440" height="878"/>
- <view key="contentView" id="2">
- <rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <pdfView autoresizesSubviews="NO" wantsLayer="YES" displayMode="singlePage" displaysPageBreaks="NO" autoScales="YES" id="3" customClass="DraggablePDFView">
- <rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </pdfView>
- <scrollView hidden="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" id="8">
- <rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" id="5CZ-eC-gQr">
- <rect key="frame" x="1" y="1" width="463" height="378"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textView editable="NO" importsGraphics="NO" richText="NO" findStyle="panel" allowsUndo="YES" usesRuler="YES" usesFontPanel="YES" verticallyResizable="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="11">
- <rect key="frame" x="0.0" y="0.0" width="463" height="378"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="463" height="378"/>
- <size key="maxSize" width="493" height="10000000"/>
- <color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="463" height="378"/>
- <size key="maxSize" width="493" height="10000000"/>
- </textView>
- </subviews>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="10">
- <rect key="frame" x="-100" y="-100" width="463" height="15"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="9">
- <rect key="frame" x="464" y="1" width="15" height="378"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- <progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" style="spinning" id="6">
- <rect key="frame" x="7" y="342" width="32" height="32"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- </progressIndicator>
- </subviews>
- </view>
- </window>
- </objects>
-</document> \ No newline at end of file
diff --git a/tikzit-old/English.lproj/PropertyInspector.xib b/tikzit-old/English.lproj/PropertyInspector.xib
deleted file mode 100644
index 9f19b5c..0000000
--- a/tikzit-old/English.lproj/PropertyInspector.xib
+++ /dev/null
@@ -1,769 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13C64" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="PropertyInspectorController">
- <connections>
- <outlet property="edgeDataArrayController" destination="360" id="390"/>
- <outlet property="edgeNodeCheckbox" destination="434" id="454"/>
- <outlet property="edgeNodeDataArrayController" destination="442" id="452"/>
- <outlet property="edgeNodeLabelField" destination="437" id="453"/>
- <outlet property="edgePropertiesView" destination="361" id="389"/>
- <outlet property="graphDataArrayController" destination="343" id="350"/>
- <outlet property="graphPropertiesView" destination="301" id="354"/>
- <outlet property="nodeDataArrayController" destination="272" id="282"/>
- <outlet property="nodePropertiesView" destination="185" id="188"/>
- <outlet property="propertyInspectorView" destination="463" id="464"/>
- <outlet property="selectedEdgesArrayController" destination="585" id="586"/>
- <outlet property="selectedNodesArrayController" destination="575" id="583"/>
- <outlet property="sourceAnchorComboBox" destination="666" id="716"/>
- <outlet property="sourceAnchorNamesArrayController" destination="674" id="678"/>
- <outlet property="targetAnchorComboBox" destination="668" id="717"/>
- <outlet property="targetAnchorNamesArrayController" destination="681" id="682"/>
- <outlet property="window" destination="461" id="567"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
- <window title="Property Inspector" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" showsToolbarButton="NO" animationBehavior="default" id="461" customClass="NSPanel">
- <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" utility="YES" nonactivatingPanel="YES"/>
- <windowPositionMask key="initialPositionMask" rightStrut="YES" topStrut="YES"/>
- <rect key="contentRect" x="1219" y="531" width="193" height="256"/>
- <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1200"/>
- <value key="minSize" type="size" width="200" height="230"/>
- <view key="contentView" id="462">
- <rect key="frame" x="0.0" y="0.0" width="193" height="256"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <customView id="463" customClass="SFBInspectorView">
- <rect key="frame" x="0.0" y="0.0" width="193" height="256"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </customView>
- </subviews>
- </view>
- </window>
- <customView id="185" userLabel="Node Properties View">
- <rect key="frame" x="0.0" y="0.0" width="193" height="152"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <textField verticalHuggingPriority="750" id="189">
- <rect key="frame" x="7" y="128" width="38" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Label" id="190">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <button verticalHuggingPriority="750" id="206">
- <rect key="frame" x="4" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="209">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addNodeProperty:" target="-2" id="348"/>
- <binding destination="272" name="enabled" keyPath="canAdd" id="615"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="283">
- <rect key="frame" x="28" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title=" a" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="284">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addNodeAtom:" target="-2" id="349"/>
- <binding destination="272" name="enabled" keyPath="canAdd" id="618"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="207">
- <rect key="frame" x="53" y="3" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="208">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="removeNodeProperty:" target="-2" id="359"/>
- <binding destination="272" name="enabled" keyPath="canRemove" id="297"/>
- </connections>
- </button>
- <textField verticalHuggingPriority="750" id="191">
- <rect key="frame" x="54" y="127" width="134" height="19"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="192">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <connections>
- <binding destination="575" name="value" keyPath="selection.label" id="644">
- <dictionary key="options">
- <string key="NSMultipleValuesPlaceholder">Multiple Values</string>
- <string key="NSValueTransformerName">NilToEmptyStringTransformer</string>
- </dictionary>
- </binding>
- <outlet property="delegate" destination="-2" id="584"/>
- <outlet property="formatter" destination="718" id="719"/>
- </connections>
- </textField>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="258">
- <rect key="frame" x="4" y="31" width="185" height="92"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="KAN-x5-ywG">
- <rect key="frame" x="1" y="17" width="183" height="74"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="262" id="261">
- <rect key="frame" x="0.0" y="0.0" width="183" height="74"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="85" minWidth="40" maxWidth="1000" id="263">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Key/Atom">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="266">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="734"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="272" name="value" keyPath="arrangedObjects.key" id="274"/>
- </connections>
- </tableColumn>
- <tableColumn width="92" minWidth="40" maxWidth="1000" id="264">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Value">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="265">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="733"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="272" name="enabled" keyPath="arrangedObjects.isAtom" id="281">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- <binding destination="272" name="value" keyPath="arrangedObjects.value" id="277"/>
- </connections>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="272" name="content" keyPath="arrangedObjects" id="278"/>
- <binding destination="272" name="enabled" keyPath="isEditable" id="622"/>
- <binding destination="272" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="278" id="650"/>
- <outlet property="delegate" destination="-2" id="290"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="260">
- <rect key="frame" x="1" y="75" width="183" height="16"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="259">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <tableHeaderView key="headerView" id="262">
- <rect key="frame" x="0.0" y="0.0" width="183" height="17"/>
- <autoresizingMask key="autoresizingMask"/>
- </tableHeaderView>
- </scrollView>
- </subviews>
- </customView>
- <customView id="301" userLabel="Graph Properties View">
- <rect key="frame" x="0.0" y="0.0" width="193" height="130"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <button verticalHuggingPriority="750" id="307">
- <rect key="frame" x="4" y="4" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="314">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addGraphProperty:" target="-2" id="351"/>
- <binding destination="343" name="enabled" keyPath="canAdd" id="640"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="303">
- <rect key="frame" x="28" y="4" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title=" a" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="325">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addGraphAtom:" target="-2" id="352"/>
- <binding destination="343" name="enabled" keyPath="canAdd" id="643"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="302">
- <rect key="frame" x="53" y="4" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="326">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="removeGraphProperty:" target="-2" id="358"/>
- <binding destination="343" name="enabled" keyPath="canRemove" id="347"/>
- </connections>
- </button>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="304">
- <rect key="frame" x="4" y="33" width="185" height="92"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="86P-5s-gB4">
- <rect key="frame" x="1" y="17" width="183" height="74"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="317" id="318">
- <rect key="frame" x="0.0" y="0.0" width="183" height="74"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="85" minWidth="40" maxWidth="1000" id="322">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Key/Atom">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="323">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="728"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="343" name="value" keyPath="arrangedObjects.key" id="645">
- <dictionary key="options">
- <string key="NSValueTransformerName">NilToEmptyStringTransformer</string>
- </dictionary>
- </binding>
- </connections>
- </tableColumn>
- <tableColumn width="92" minWidth="40" maxWidth="1000" id="321">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Value">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="324">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="727"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="343" name="enabled" keyPath="arrangedObjects.isAtom" id="356">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- <binding destination="343" name="value" keyPath="arrangedObjects.value" id="357"/>
- </connections>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="343" name="content" keyPath="arrangedObjects" id="346"/>
- <binding destination="343" name="enabled" keyPath="isEditable" id="638"/>
- <binding destination="343" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="346" id="652"/>
- <outlet property="delegate" destination="-2" id="331"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="319">
- <rect key="frame" x="1" y="75" width="183" height="16"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="320">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <tableHeaderView key="headerView" id="317">
- <rect key="frame" x="0.0" y="0.0" width="183" height="17"/>
- <autoresizingMask key="autoresizingMask"/>
- </tableHeaderView>
- </scrollView>
- </subviews>
- </customView>
- <customView id="361" userLabel="Edge Properties View">
- <rect key="frame" x="0.0" y="0.0" width="193" height="344"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <button verticalHuggingPriority="750" id="362">
- <rect key="frame" x="4" y="218" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="376">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addEdgeProperty:" target="-2" id="391"/>
- <binding destination="360" name="enabled" keyPath="canAdd" id="612"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="364">
- <rect key="frame" x="28" y="218" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title=" a" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="367">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addEdgeAtom:" target="-2" id="392"/>
- <binding destination="360" name="enabled" keyPath="canAdd" id="624"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="365">
- <rect key="frame" x="53" y="218" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="366">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="removeEdgeProperty:" target="-2" id="393"/>
- <binding destination="360" name="enabled" keyPath="canRemove" id="394"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="422">
- <rect key="frame" x="4" y="8" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="427">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addEdgeNodeProperty:" target="-2" id="449"/>
- <binding destination="442" name="enabled" keyPath="canAdd" id="626"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="423">
- <rect key="frame" x="28" y="8" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title=" a" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="426">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="miniSystem"/>
- </buttonCell>
- <connections>
- <action selector="addEdgeNodeAtom:" target="-2" id="450"/>
- <binding destination="442" name="enabled" keyPath="canAdd" id="628"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="424">
- <rect key="frame" x="53" y="8" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="425">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="removeEdgeNodeProperty:" target="-2" id="451"/>
- <binding destination="442" name="enabled" keyPath="canRemove" id="460"/>
- </connections>
- </button>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="363">
- <rect key="frame" x="4" y="247" width="185" height="92"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="qY7-YX-vfN">
- <rect key="frame" x="1" y="17" width="183" height="74"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="371" id="370">
- <rect key="frame" x="0.0" y="0.0" width="183" height="74"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="85" minWidth="40" maxWidth="1000" id="372">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Key/Atom">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="375">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="729"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="360" name="value" keyPath="arrangedObjects.key" id="646">
- <dictionary key="options">
- <string key="NSValueTransformerName">NilToEmptyStringTransformer</string>
- </dictionary>
- </binding>
- </connections>
- </tableColumn>
- <tableColumn width="92" minWidth="40" maxWidth="1000" id="373">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Value">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="374">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="730"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="360" name="enabled" keyPath="arrangedObjects.isAtom" id="467">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- <binding destination="360" name="value" keyPath="arrangedObjects.value" id="405"/>
- </connections>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="360" name="content" keyPath="arrangedObjects" id="401"/>
- <binding destination="360" name="enabled" keyPath="isEditable" id="630"/>
- <binding destination="360" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="401" id="654"/>
- <outlet property="delegate" destination="-2" id="382"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="369">
- <rect key="frame" x="1" y="75" width="183" height="16"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="368">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <tableHeaderView key="headerView" id="371">
- <rect key="frame" x="0.0" y="0.0" width="183" height="17"/>
- <autoresizingMask key="autoresizingMask"/>
- </tableHeaderView>
- </scrollView>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="408">
- <rect key="frame" x="4" y="37" width="185" height="62"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="Sh6-qW-PDE">
- <rect key="frame" x="1" y="17" width="183" height="44"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="409" id="410">
- <rect key="frame" x="0.0" y="0.0" width="183" height="44"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="85" minWidth="40" maxWidth="1000" id="414">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Key/Atom">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="415">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="731"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="442" name="value" keyPath="arrangedObjects.key" id="647">
- <dictionary key="options">
- <string key="NSValueTransformerName">NilToEmptyStringTransformer</string>
- </dictionary>
- </binding>
- </connections>
- </tableColumn>
- <tableColumn width="92" minWidth="40" maxWidth="1000" id="413">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Value">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="416">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <outlet property="formatter" destination="718" id="732"/>
- </connections>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="442" name="enabled" keyPath="arrangedObjects.isAtom" id="459">
- <dictionary key="options">
- <string key="NSValueTransformerName">NSNegateBoolean</string>
- </dictionary>
- </binding>
- <binding destination="442" name="value" keyPath="arrangedObjects.value" id="445"/>
- </connections>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="442" name="content" keyPath="arrangedObjects" id="443"/>
- <binding destination="442" name="enabled" keyPath="isEditable" id="632"/>
- <binding destination="442" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="443" id="656"/>
- <outlet property="delegate" destination="-2" id="421"/>
- <outlet property="formatter" destination="718" id="724"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="411">
- <rect key="frame" x="1" y="45" width="183" height="16"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="412">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <tableHeaderView key="headerView" id="409">
- <rect key="frame" x="0.0" y="0.0" width="183" height="17"/>
- <autoresizingMask key="autoresizingMask"/>
- </tableHeaderView>
- </scrollView>
- <button id="434">
- <rect key="frame" x="3" y="126" width="82" height="18"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="check" title="Child Node" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="435">
- <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
- <font key="font" metaFont="smallSystem"/>
- </buttonCell>
- <connections>
- <action selector="refreshDocument:" target="-2" id="596"/>
- <binding destination="585" name="value" keyPath="selection.hasEdgeNode" id="595"/>
- </connections>
- </button>
- <textField verticalHuggingPriority="750" id="436">
- <rect key="frame" x="8" y="107" width="38" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Label" id="439">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="664">
- <rect key="frame" x="4" y="202" width="51" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Anchors" id="665">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="670">
- <rect key="frame" x="12" y="185" width="42" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Source" id="671">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="672">
- <rect key="frame" x="12" y="159" width="42" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Target" id="673">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="437">
- <rect key="frame" x="55" y="107" width="134" height="19"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="438">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <connections>
- <binding destination="585" name="enabled" keyPath="selection.hasEdgeNode" id="636"/>
- <binding destination="585" name="value" keyPath="selection.edgeNode.label" id="648">
- <dictionary key="options">
- <string key="NSValueTransformerName">NilToEmptyStringTransformer</string>
- </dictionary>
- </binding>
- <outlet property="delegate" destination="-2" id="440"/>
- <outlet property="formatter" destination="718" id="723"/>
- </connections>
- </textField>
- <box autoresizesSubviews="NO" verticalHuggingPriority="750" title="Box" boxType="separator" titlePosition="noTitle" id="441">
- <rect key="frame" x="4" y="146" width="185" height="5"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
- <color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
- <font key="titleFont" metaFont="system"/>
- </box>
- <comboBox verticalHuggingPriority="750" id="666">
- <rect key="frame" x="59" y="178" width="133" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" numberOfVisibleItems="5" id="667">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </comboBoxCell>
- <connections>
- <binding destination="674" name="content" keyPath="arrangedObjects" id="707"/>
- <binding destination="674" name="contentValues" keyPath="arrangedObjects" previousBinding="707" id="708"/>
- <binding destination="585" name="value" keyPath="selection.sourceAnchor" previousBinding="708" id="709"/>
- <outlet property="delegate" destination="-2" id="714"/>
- <outlet property="formatter" destination="718" id="726"/>
- </connections>
- </comboBox>
- <comboBox verticalHuggingPriority="750" id="668">
- <rect key="frame" x="59" y="152" width="133" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" numberOfVisibleItems="5" id="669">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </comboBoxCell>
- <connections>
- <binding destination="681" name="content" keyPath="arrangedObjects" id="710"/>
- <binding destination="681" name="contentValues" keyPath="arrangedObjects" previousBinding="710" id="711"/>
- <binding destination="585" name="value" keyPath="selection.targetAnchor" previousBinding="711" id="713"/>
- <outlet property="delegate" destination="-2" id="715"/>
- <outlet property="formatter" destination="718" id="725"/>
- </connections>
- </comboBox>
- </subviews>
- </customView>
- <arrayController objectClassName="Property" id="272" userLabel="Node Data Array Controller">
- <declaredKeys>
- <string>key</string>
- <string>value</string>
- <string>isAtom</string>
- </declaredKeys>
- </arrayController>
- <arrayController objectClassName="Property" id="343" userLabel="Graph Data Array Controller">
- <declaredKeys>
- <string>key</string>
- <string>value</string>
- <string>isAtom</string>
- </declaredKeys>
- </arrayController>
- <arrayController objectClassName="Property" id="360" userLabel="Edge Data Array Controller">
- <declaredKeys>
- <string>key</string>
- <string>value</string>
- <string>isAtom</string>
- </declaredKeys>
- </arrayController>
- <arrayController objectClassName="Property" id="442" userLabel="Edge Node Data Array Controller">
- <declaredKeys>
- <string>key</string>
- <string>value</string>
- <string>isAtom</string>
- </declaredKeys>
- </arrayController>
- <arrayController objectClassName="Node" id="575" userLabel="Selected Nodes Array Controller">
- <declaredKeys>
- <string>label</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="selectedNodes" id="577"/>
- </connections>
- </arrayController>
- <arrayController objectClassName="Edge" id="585" userLabel="Selected Edges Array Controller">
- <declaredKeys>
- <string>edgeNode</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="selectedEdges" id="589"/>
- </connections>
- </arrayController>
- <textField verticalHuggingPriority="750" id="657">
- <rect key="frame" x="0.0" y="0.0" width="51" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Anchors" id="660">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="658">
- <rect key="frame" x="0.0" y="0.0" width="134" height="19"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="659">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <connections>
- <binding destination="585" name="enabled" keyPath="selection.hasEdgeNode" id="661"/>
- <binding destination="585" name="value" keyPath="selection.edgeNode.label" id="662">
- <dictionary key="options">
- <string key="NSValueTransformerName">NilToEmptyStringTransformer</string>
- </dictionary>
- </binding>
- <outlet property="delegate" destination="-2" id="663"/>
- </connections>
- </textField>
- <arrayController id="674" userLabel="Source Anchor Names Array Controller">
- <connections>
- <binding destination="-2" name="contentArray" keyPath="sourceAnchorNames" id="680"/>
- <outlet property="content" destination="666" id="675"/>
- </connections>
- </arrayController>
- <arrayController id="681" userLabel="Target Anchor Names Array Controller">
- <connections>
- <binding destination="-2" name="contentArray" keyPath="targetAnchorNames" id="684"/>
- </connections>
- </arrayController>
- <customFormatter id="718" customClass="TikzFormatter"/>
- </objects>
- <resources>
- <image name="NSAddTemplate" width="8" height="8"/>
- <image name="NSRemoveTemplate" width="8" height="8"/>
- </resources>
-</document>
diff --git a/tikzit-old/English.lproj/StylePalette.xib b/tikzit-old/English.lproj/StylePalette.xib
deleted file mode 100644
index 6385ba8..0000000
--- a/tikzit-old/English.lproj/StylePalette.xib
+++ /dev/null
@@ -1,631 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="StylePaletteController">
- <connections>
- <outlet property="collectionView" destination="23" id="73"/>
- <outlet property="edgeStyleArrayController" destination="654" id="734"/>
- <outlet property="edgeStyleView" destination="649" id="651"/>
- <outlet property="filteredEdgeStyleArrayController" destination="756" id="818"/>
- <outlet property="filteredNodeStyleArrayController" destination="605" id="733"/>
- <outlet property="nodeStyleArrayController" destination="56" id="652"/>
- <outlet property="nodeStyleInspectorView" destination="182" id="653"/>
- <outlet property="nodeStyleView" destination="181" id="650"/>
- <outlet property="shapeDropdown" destination="491" id="497"/>
- <outlet property="window" destination="3" id="5"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
- <window title="Style Inspector" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" showsToolbarButton="NO" animationBehavior="default" id="3" customClass="NSPanel">
- <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" utility="YES" nonactivatingPanel="YES"/>
- <windowPositionMask key="initialPositionMask" rightStrut="YES" bottomStrut="YES"/>
- <rect key="contentRect" x="1005" y="473" width="193" height="313"/>
- <rect key="screenRect" x="0.0" y="0.0" width="1600" height="1200"/>
- <value key="minSize" type="size" width="200" height="230"/>
- <view key="contentView" id="4">
- <rect key="frame" x="0.0" y="0.0" width="193" height="313"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <customView id="182" customClass="SFBInspectorView">
- <rect key="frame" x="0.0" y="0.0" width="193" height="313"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </customView>
- </subviews>
- </view>
- </window>
- <customView wantsLayer="YES" id="52" customClass="SelectableNodeView">
- <rect key="frame" x="0.0" y="0.0" width="33" height="33"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <connections>
- <binding destination="53" name="toolTip" keyPath="representedObject.name" id="504"/>
- </connections>
- </customView>
- <collectionViewItem id="53" customClass="SelectableCollectionViewItem">
- <connections>
- <outlet property="stylePaletteController" destination="-2" id="108"/>
- <outlet property="view" destination="52" id="54"/>
- </connections>
- </collectionViewItem>
- <customView id="181" userLabel="Node Style View">
- <rect key="frame" x="0.0" y="0.0" width="193" height="326"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="8">
- <rect key="frame" x="5" y="34" width="183" height="101"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" id="8qG-p3-vYe">
- <rect key="frame" x="1" y="1" width="181" height="99"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <collectionView selectable="YES" id="23">
- <rect key="frame" x="0.0" y="0.0" width="181" height="99"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="primaryBackgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <binding destination="605" name="content" keyPath="arrangedObjects" id="840"/>
- <binding destination="605" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="840" id="841"/>
- <outlet property="delegate" destination="-2" id="505"/>
- <outlet property="itemPrototype" destination="53" id="55"/>
- </connections>
- </collectionView>
- </subviews>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="24">
- <rect key="frame" x="1" y="144" width="233" height="15"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="25">
- <rect key="frame" x="234" y="1" width="15" height="143"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- <button verticalHuggingPriority="750" id="94">
- <rect key="frame" x="5" y="5" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="95">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="addNodeStyle:" target="-2" id="727"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="96">
- <rect key="frame" x="30" y="5" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="97">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="remove:" target="605" id="821"/>
- <binding destination="605" name="enabled" keyPath="canRemove" id="820"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="229">
- <rect key="frame" x="59" y="5" width="52" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title="Apply" bezelStyle="smallSquare" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="230">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- </buttonCell>
- <connections>
- <action selector="applyActiveNodeStyle:" target="-2" id="729"/>
- <binding destination="605" name="enabled" keyPath="canRemove" id="823"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="233">
- <rect key="frame" x="110" y="5" width="52" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title="Clear" bezelStyle="smallSquare" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="234">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- </buttonCell>
- <connections>
- <action selector="clearActiveNodeStyle:" target="-2" id="731"/>
- </connections>
- </button>
- <textField verticalHuggingPriority="750" id="535">
- <rect key="frame" x="4" y="143" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Show" id="539">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <popUpButton verticalHuggingPriority="750" id="536">
- <rect key="frame" x="64" y="137" width="125" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="537">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- <menu key="menu" title="OtherViews" id="538"/>
- </popUpButtonCell>
- <connections>
- <binding destination="56" name="contentValues" keyPath="arrangedObjects.@distinctUnionOfObjects.category" id="630">
- <dictionary key="options">
- <string key="NSNullPlaceholder">uncategorized</string>
- <bool key="NSInsertsNullPlaceholder" value="YES"/>
- </dictionary>
- </binding>
- <binding destination="-2" name="selectedValue" keyPath="displayedNodeStyleCategory" previousBinding="630" id="631"/>
- </connections>
- </popUpButton>
- <colorWell id="9">
- <rect key="frame" x="67" y="243" width="28" height="23"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/>
- <connections>
- <action selector="refreshCollection:" target="-2" id="74"/>
- <binding destination="605" name="value" keyPath="selection.strokeColor" id="636"/>
- </connections>
- </colorWell>
- <colorWell id="10">
- <rect key="frame" x="67" y="216" width="28" height="23"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/>
- <connections>
- <action selector="refreshCollection:" target="-2" id="75"/>
- <binding destination="605" name="value" keyPath="selection.fillColor" id="638"/>
- </connections>
- </colorWell>
- <textField verticalHuggingPriority="750" id="11">
- <rect key="frame" x="4" y="247" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Stroke" id="22">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="12">
- <rect key="frame" x="4" y="220" width="56" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Fill" id="21">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="13">
- <rect key="frame" x="4" y="275" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Shape" id="20">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="15">
- <rect key="frame" x="4" y="303" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Name" id="18">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="16">
- <rect key="frame" x="67" y="301" width="119" height="19"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="17">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <connections>
- <binding destination="605" name="value" keyPath="selection.name" id="634"/>
- </connections>
- </textField>
- <textField verticalHuggingPriority="750" id="506">
- <rect key="frame" x="5" y="194" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Scale" id="509">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="525">
- <rect key="frame" x="4" y="169" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Category" id="526">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <button toolTip="Set stroke color to closest LaTeX color." id="166">
- <rect key="frame" x="97" y="243" width="21" height="22"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="emblem-important" imagePosition="only" alignment="left" inset="2" id="167">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="setStrokeToClosestHashed:" target="-2" id="176"/>
- <binding destination="605" name="hidden" keyPath="selection.strokeColorIsKnown" id="637"/>
- </connections>
- </button>
- <button toolTip="Set fill color to closest LaTeX color." id="168">
- <rect key="frame" x="97" y="217" width="21" height="22"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="emblem-important" imagePosition="only" alignment="left" inset="2" id="169">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="setFillToClosestHashed:" target="-2" id="177"/>
- <binding destination="605" name="hidden" keyPath="selection.fillColorIsKnown" id="639"/>
- </connections>
- </button>
- <popUpButton verticalHuggingPriority="750" id="491">
- <rect key="frame" x="64" y="269" width="125" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="492">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- <menu key="menu" title="OtherViews" id="493"/>
- </popUpButtonCell>
- <connections>
- <binding destination="605" name="selectedValue" keyPath="selection.shapeName" id="635"/>
- </connections>
- </popUpButton>
- <slider verticalHuggingPriority="750" id="513">
- <rect key="frame" x="101" y="188" width="87" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <sliderCell key="cell" alignment="left" minValue="0.20000000000000001" maxValue="5" doubleValue="1" tickMarkPosition="above" numberOfTickMarks="25" allowsTickMarkValuesOnly="YES" sliderType="linear" id="514"/>
- <connections>
- <binding destination="605" name="value" keyPath="selection.scale" id="641"/>
- </connections>
- </slider>
- <textField verticalHuggingPriority="750" id="515">
- <rect key="frame" x="67" y="193" width="28" height="18"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="516">
- <font key="font" metaFont="system" size="10"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <connections>
- <binding destination="605" name="value" keyPath="selection.scale" id="640"/>
- </connections>
- </textField>
- <comboBox verticalHuggingPriority="750" id="527">
- <rect key="frame" x="67" y="164" width="122" height="23"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="528">
- <font key="font" metaFont="system" size="10"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </comboBoxCell>
- <connections>
- <binding destination="56" name="contentValues" keyPath="arrangedObjects.@distinctUnionOfObjects.category" id="858"/>
- <binding destination="605" name="value" keyPath="selection.category" previousBinding="858" id="859">
- <dictionary key="options">
- <string key="NSNullPlaceholder">uncategorized</string>
- </dictionary>
- </binding>
- </connections>
- </comboBox>
- </subviews>
- </customView>
- <arrayController objectClassName="NodeStyle" id="56" userLabel="Node Style Array Controller">
- <declaredKeys>
- <string>name</string>
- <string>strokeThickness</string>
- <string>strokeColor</string>
- <string>fillColor</string>
- <string>strokeColorIsKnown</string>
- <string>fillColorIsKnown</string>
- <string>representedObject.name</string>
- <string>shapeName</string>
- <string>scale</string>
- <string>@distinctUnionOfObjects.category</string>
- <string>category</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="nodeStyles" id="58"/>
- </connections>
- </arrayController>
- <arrayController id="605" userLabel="Filtered Node Style Array Controller">
- <declaredKeys>
- <string>@distinctUnionOfObjects.category</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="nodeStyles" id="843"/>
- <binding destination="-2" name="filterPredicate" keyPath="displayedNodeStylePredicate" id="626"/>
- </connections>
- </arrayController>
- <customView id="649" userLabel="Edge Style View">
- <rect key="frame" x="0.0" y="0.0" width="193" height="208"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <button verticalHuggingPriority="750" id="655">
- <rect key="frame" x="6" y="4" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="662">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="addEdgeStyle:" target="-2" id="735"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="656">
- <rect key="frame" x="31" y="4" width="26" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="661">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="remove:" target="756" id="860"/>
- <binding destination="756" name="enabled" keyPath="canRemove" id="862"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="657">
- <rect key="frame" x="60" y="4" width="52" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title="Apply" bezelStyle="smallSquare" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="660">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- </buttonCell>
- <connections>
- <action selector="appleActiveEdgeStyle:" target="-2" id="737"/>
- <binding destination="756" name="enabled" keyPath="canRemove" id="864"/>
- </connections>
- </button>
- <button verticalHuggingPriority="750" id="658">
- <rect key="frame" x="111" y="4" width="52" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <buttonCell key="cell" type="smallSquare" title="Clear" bezelStyle="smallSquare" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="659">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- </buttonCell>
- <connections>
- <action selector="clearActiveEdgeStyle:" target="-2" id="738"/>
- </connections>
- </button>
- <textField verticalHuggingPriority="750" id="669">
- <rect key="frame" x="6" y="185" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Name" id="672">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <textField verticalHuggingPriority="750" id="670">
- <rect key="frame" x="69" y="183" width="119" height="19"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="671">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <connections>
- <binding destination="756" name="value" keyPath="selection.name" id="762"/>
- </connections>
- </textField>
- <popUpButton verticalHuggingPriority="750" id="682">
- <rect key="frame" x="59" y="155" width="77" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="685" id="683">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- <menu key="menu" title="Edge Decoration" id="684">
- <items>
- <menuItem state="on" image="ED_none" id="685">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- <menuItem image="ED_arrow" tag="1" id="694">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- <menuItem image="ED_tick" tag="2" id="686">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- </items>
- </menu>
- </popUpButtonCell>
- <connections>
- <binding destination="756" name="selectedTag" keyPath="selection.decorationStyle" id="814"/>
- </connections>
- </popUpButton>
- <textField verticalHuggingPriority="750" id="688">
- <rect key="frame" x="6" y="137" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Category" id="691">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <comboBox verticalHuggingPriority="750" id="689">
- <rect key="frame" x="69" y="132" width="122" height="23"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="690">
- <font key="font" metaFont="system" size="10"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </comboBoxCell>
- <connections>
- <binding destination="654" name="contentValues" keyPath="arrangedObjects.@distinctUnionOfObjects.category" id="787"/>
- <binding destination="756" name="value" keyPath="selection.category" previousBinding="787" id="788">
- <dictionary key="options">
- <string key="NSNullPlaceholder">uncategorized</string>
- </dictionary>
- </binding>
- </connections>
- </comboBox>
- <popUpButton verticalHuggingPriority="750" id="695">
- <rect key="frame" x="2" y="155" width="60" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="698" id="696">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- <menu key="menu" title="OtherViews" id="697">
- <items>
- <menuItem state="on" image="AH_none" id="698">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- <menuItem image="AH_plain_tail" tag="1" id="699">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- <menuItem image="AH_latex_tail" tag="2" id="700">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- </items>
- </menu>
- </popUpButtonCell>
- <connections>
- <binding destination="756" name="selectedTag" keyPath="selection.tailStyle" id="811"/>
- </connections>
- </popUpButton>
- <popUpButton verticalHuggingPriority="750" id="701">
- <rect key="frame" x="133" y="155" width="60" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="right" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="704" id="702">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- <menu key="menu" title="OtherViews" id="703">
- <items>
- <menuItem state="on" image="AH_none" id="704">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- <menuItem image="AH_plain_head" tag="1" id="706">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- <menuItem image="AH_latex_head" tag="2" id="705">
- <modifierMask key="keyEquivalentModifierMask"/>
- </menuItem>
- </items>
- </menu>
- </popUpButtonCell>
- <connections>
- <binding destination="756" name="selectedTag" keyPath="selection.headStyle" id="817"/>
- </connections>
- </popUpButton>
- <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="707">
- <rect key="frame" x="6" y="33" width="182" height="70"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="jNZ-3P-r3y">
- <rect key="frame" x="1" y="1" width="180" height="68"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" id="711" userLabel="Table View">
- <rect key="frame" x="0.0" y="0.0" width="180" height="68"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="177" minWidth="40" maxWidth="1000" id="712">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="715">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="756" name="value" keyPath="arrangedObjects.name" id="780"/>
- </connections>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="756" name="content" keyPath="arrangedObjects" id="759"/>
- <binding destination="756" name="selectionIndexes" keyPath="selectionIndexes" previousBinding="759" id="800"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="710">
- <rect key="frame" x="1" y="73" width="143" height="15"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="708">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- <textField verticalHuggingPriority="750" id="716">
- <rect key="frame" x="6" y="111" width="57" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Show" id="720">
- <font key="font" metaFont="smallSystemBold"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <popUpButton verticalHuggingPriority="750" id="717">
- <rect key="frame" x="66" y="105" width="125" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="718">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="smallSystem"/>
- <menu key="menu" title="OtherViews" id="719"/>
- </popUpButtonCell>
- <connections>
- <binding destination="654" name="contentValues" keyPath="arrangedObjects.@distinctUnionOfObjects.category" id="797">
- <dictionary key="options">
- <string key="NSNullPlaceholder">uncategorized</string>
- <bool key="NSInsertsNullPlaceholder" value="YES"/>
- </dictionary>
- </binding>
- <binding destination="-2" name="selectedValue" keyPath="displayedEdgeStyleCategory" previousBinding="797" id="798"/>
- </connections>
- </popUpButton>
- </subviews>
- </customView>
- <arrayController objectClassName="EdgeStyle" id="654" userLabel="Edge Style Array Controller">
- <declaredKeys>
- <string>name</string>
- <string>headStyle</string>
- <string>tailStyle</string>
- <string>decorationStyle</string>
- <string>category</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="edgeStyles" id="725"/>
- </connections>
- </arrayController>
- <arrayController objectClassName="EdgeStyle" id="756" userLabel="Filtered Edge Style Array Controller">
- <declaredKeys>
- <string>name</string>
- <string>headStyle</string>
- <string>tailStyle</string>
- <string>decorationStyle</string>
- <string>category</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="edgeStyles" id="866"/>
- <binding destination="-2" name="filterPredicate" keyPath="displayedEdgeStylePredicate" id="807"/>
- </connections>
- </arrayController>
- </objects>
- <resources>
- <image name="AH_latex_head" width="26" height="12"/>
- <image name="AH_latex_tail" width="26" height="12"/>
- <image name="AH_none" width="26" height="12"/>
- <image name="AH_plain_head" width="26" height="14"/>
- <image name="AH_plain_tail" width="26" height="14"/>
- <image name="ED_arrow" width="58" height="14"/>
- <image name="ED_none" width="58" height="14"/>
- <image name="ED_tick" width="58" height="14"/>
- <image name="NSAddTemplate" width="8" height="8"/>
- <image name="NSRemoveTemplate" width="8" height="8"/>
- <image name="emblem-important" width="12.800000190734863" height="12.800000190734863"/>
- </resources>
-</document> \ No newline at end of file
diff --git a/tikzit-old/English.lproj/TikzDocument.xib b/tikzit-old/English.lproj/TikzDocument.xib
deleted file mode 100644
index 842b810..0000000
--- a/tikzit-old/English.lproj/TikzDocument.xib
+++ /dev/null
@@ -1,161 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="TikzWindowController">
- <connections>
- <outlet property="graphicsView" destination="100024" id="100031"/>
- <outlet property="tikzSourceController" destination="100037" id="100044"/>
- <outlet property="window" destination="5" id="18"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" wantsToBeColor="NO" visibleAtLaunch="NO" animationBehavior="default" id="5" userLabel="Window">
- <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
- <windowPositionMask key="initialPositionMask" leftStrut="YES" topStrut="YES"/>
- <rect key="contentRect" x="99" y="420" width="447" height="382"/>
- <rect key="screenRect" x="0.0" y="0.0" width="1600" height="1200"/>
- <value key="minSize" type="size" width="94" height="86"/>
- <view key="contentView" id="6">
- <rect key="frame" x="0.0" y="0.0" width="447" height="382"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <splitView id="100021">
- <rect key="frame" x="0.0" y="0.0" width="447" height="382"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <customView id="100022">
- <rect key="frame" x="0.0" y="0.0" width="447" height="373"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <customView wantsLayer="YES" id="100024" customClass="GraphicsView">
- <rect key="frame" x="0.0" y="0.0" width="447" height="372"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <connections>
- <outlet property="application" destination="-3" id="100033"/>
- <outlet property="tikzSourceController" destination="100037" id="100049"/>
- </connections>
- </customView>
- <customView wantsLayer="YES" id="100050" customClass="ParseErrorView">
- <rect key="frame" x="0.0" y="330" width="446" height="42"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <subviews>
- <textField verticalHuggingPriority="750" id="100051">
- <rect key="frame" x="5" y="10" width="438" height="27"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" placeholderString="parser information" allowsEditingTextAttributes="YES" id="100052">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <button wantsLayer="YES" id="100058">
- <rect key="frame" x="425" y="21" width="17" height="19"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="squareTextured" bezelStyle="texturedSquare" image="NSStopProgressFreestandingTemplate" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" id="100059">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="closeParseError:" target="100037" id="100060"/>
- </connections>
- </button>
- </subviews>
- </customView>
- </subviews>
- </customView>
- <customView id="100023">
- <rect key="frame" x="0.0" y="382" width="447" height="0.0"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <scrollView horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" id="100025">
- <rect key="frame" x="0.0" y="0.0" width="447" height="0.0"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" id="pUX-hl-e3N">
- <rect key="frame" x="1" y="1" width="430" height="0.0"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textView importsGraphics="NO" richText="NO" findStyle="panel" allowsUndo="YES" usesRuler="YES" verticallyResizable="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="100028">
- <rect key="frame" x="0.0" y="-14" width="430" height="14"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="430" height="0.0"/>
- <size key="maxSize" width="877" height="10000000"/>
- <attributedString key="textStorage">
- <fragment>
- <string key="content">\begin{tikzpicture}
-
-\end{tikzpicture}</string>
- <attributes>
- <font key="NSFont" metaFont="toolTip"/>
- <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
- </attributes>
- </fragment>
- </attributedString>
- <color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="430" height="0.0"/>
- <size key="maxSize" width="877" height="10000000"/>
- <connections>
- <binding destination="100037" name="attributedString" keyPath="source" id="100041">
- <dictionary key="options">
- <bool key="NSContinuouslyUpdatesValue" value="YES"/>
- </dictionary>
- </binding>
- <outlet property="delegate" destination="100037" id="100042"/>
- </connections>
- </textView>
- </subviews>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="100027">
- <rect key="frame" x="-100" y="-100" width="87" height="18"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="100026">
- <rect key="frame" x="431" y="1" width="15" height="0.0"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- </subviews>
- </customView>
- </subviews>
- <holdingPriorities>
- <real value="250"/>
- <real value="250"/>
- </holdingPriorities>
- </splitView>
- <textField verticalHuggingPriority="750" id="100045">
- <rect key="frame" x="305" y="-184" width="128" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" id="100046">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- </subviews>
- </view>
- <connections>
- <outlet property="delegate" destination="-2" id="17"/>
- </connections>
- </window>
- <customObject id="-3" userLabel="Application"/>
- <userDefaultsController representsSharedInstance="YES" id="100034"/>
- <customObject id="100037" customClass="TikzSourceController">
- <connections>
- <outlet property="closeErrorButton" destination="100058" id="100061"/>
- <outlet property="errorMessage" destination="100051" id="100054"/>
- <outlet property="errorNotification" destination="100050" id="100053"/>
- <outlet property="graphicsView" destination="100024" id="100040"/>
- <outlet property="sourceView" destination="100028" id="100043"/>
- <outlet property="status" destination="100045" id="100048"/>
- </connections>
- </customObject>
- </objects>
- <resources>
- <image name="NSStopProgressFreestandingTemplate" width="83" height="83"/>
- </resources>
-</document> \ No newline at end of file
diff --git a/tikzit-old/English.lproj/UserDefaults.plist b/tikzit-old/English.lproj/UserDefaults.plist
deleted file mode 100644
index cdd5c8f..0000000
--- a/tikzit-old/English.lproj/UserDefaults.plist
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>net.sourceforge.tikzit.pdflatexpath</key>
- <string>/usr/texbin/pdflatex</string>
- <key>net.sourceforge.tikzit.previewfocus</key>
- <false/>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Headers b/tikzit-old/Frameworks/SFBInspectors.framework/Headers
deleted file mode 120000
index a177d2a..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Headers
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Headers \ No newline at end of file
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Resources b/tikzit-old/Frameworks/SFBInspectors.framework/Resources
deleted file mode 120000
index 953ee36..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Resources
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Resources \ No newline at end of file
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/SFBInspectors b/tikzit-old/Frameworks/SFBInspectors.framework/SFBInspectors
deleted file mode 120000
index d0c5a0b..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/SFBInspectors
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/SFBInspectors \ No newline at end of file
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPane.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPane.h
deleted file mode 100644
index b50c12d..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPane.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-#define INSPECTOR_PANE_HEADER_HEIGHT 17
-
-@class SFBInspectorPaneHeader, SFBInspectorPaneBody;
-
-@interface SFBInspectorPane : NSView
-{
-@private
- BOOL _collapsed;
- SFBInspectorPaneHeader *_headerView;
- SFBInspectorPaneBody *_bodyView;
-}
-
-@property (readonly, assign, getter=isCollapsed) BOOL collapsed;
-
-- (NSString *) title;
-- (void) setTitle:(NSString *)title;
-
-- (IBAction) toggleCollapsed:(id)sender;
-- (void) setCollapsed:(BOOL)collapsed animate:(BOOL)animate;
-
-- (SFBInspectorPaneHeader *) headerView;
-- (SFBInspectorPaneBody *) bodyView;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneBody.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneBody.h
deleted file mode 100644
index 250f9e6..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneBody.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-@interface SFBInspectorPaneBody : NSView
-{
-@private
- CGFloat _normalHeight;
-}
-
-@property (readonly, assign) CGFloat normalHeight;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneHeader.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneHeader.h
deleted file mode 100644
index 3512d75..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorPaneHeader.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-@class SFBInspectorPane;
-
-@interface SFBInspectorPaneHeader : NSView
-{
-@private
- BOOL _pressed;
- NSButton *_disclosureButton;
- NSTextField *_titleTextField;
-}
-
-- (NSString *) title;
-- (void) setTitle:(NSString *)title;
-
-- (NSButton *) disclosureButton;
-- (NSTextField *) titleTextField;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorView.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorView.h
deleted file mode 100644
index e7f4b53..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBInspectorView.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-@interface SFBInspectorView : NSView
-{
-@private
- NSSize _initialWindowSize;
-}
-
-- (void) addInspectorPaneController:(NSViewController *)paneController;
-- (void) addInspectorPane:(NSView *)paneBody title:(NSString *)title;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelector.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelector.h
deleted file mode 100644
index 8645914..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelector.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-#define VIEW_SELECTOR_BAR_HEIGHT 25
-
-@class SFBViewSelectorBar;
-
-@interface SFBViewSelector : NSView
-{
-@private
- NSSize _initialWindowSize;
- SFBViewSelectorBar *_selectorBar;
- NSView *_bodyView;
-}
-
-- (SFBViewSelectorBar *) selectorBar;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBar.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBar.h
deleted file mode 100644
index d0c8c30..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBar.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-@class SFBViewSelectorBarItem;
-
-@interface SFBViewSelectorBar : NSView
-{
-@private
- NSInteger _selectedIndex;
- NSInteger _pressedIndex;
- NSMutableArray *_items;
-}
-
-@property (assign) NSInteger selectedIndex;
-@property (readonly) SFBViewSelectorBarItem * selectedItem;
-
-- (void) addItem:(SFBViewSelectorBarItem *)item;
-
-- (BOOL) selectItem:(SFBViewSelectorBarItem *)item;
-- (BOOL) selectItemWithIdentifer:(NSString *)itemIdentifier;
-
-- (SFBViewSelectorBarItem *) itemAtIndex:(NSInteger)itemIndex;
-- (SFBViewSelectorBarItem *) itemWithIdentifier:(NSString *)itemIdentifier;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBarItem.h b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBarItem.h
deleted file mode 100644
index c18cfb3..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Headers/SFBViewSelectorBarItem.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2009 Stephen F. Booth <me@sbooth.org>
- * All Rights Reserved
- */
-
-#import <Cocoa/Cocoa.h>
-
-@interface SFBViewSelectorBarItem : NSObject
-{
-@private
- NSString *_identifier;
- NSString *_label;
- NSString *_tooltip;
- NSImage *_image;
- NSView *_view;
-}
-
-@property (copy) NSString * identifier;
-@property (copy) NSString * label;
-@property (copy) NSString * tooltip;
-@property (copy) NSImage * image;
-@property (retain) NSView * view;
-
-+ (id) itemWithIdentifier:(NSString *)identifier label:(NSString *)label tooltip:(NSString *)tooltip image:(NSImage *)image view:(NSView *)view;
-
-- (id) initWithIdentifier:(NSString *)identifier label:(NSString *)label tooltip:(NSString *)tooltip image:(NSImage *)image view:(NSView *)view;
-
-@end
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/English.lproj/InfoPlist.strings b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
deleted file mode 100644
index dea12de..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/Info.plist b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/Info.plist
deleted file mode 100644
index d3e80f3..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/Resources/Info.plist
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>SFBInspectors</string>
- <key>CFBundleIdentifier</key>
- <string>org.sbooth.Inspectors</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>SFBInspectors</string>
- <key>CFBundlePackageType</key>
- <string>FMWK</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/SFBInspectors b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/SFBInspectors
deleted file mode 100755
index 6174fbb..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/A/SFBInspectors
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/Current b/tikzit-old/Frameworks/SFBInspectors.framework/Versions/Current
deleted file mode 120000
index 8c7e5a6..0000000
--- a/tikzit-old/Frameworks/SFBInspectors.framework/Versions/Current
+++ /dev/null
@@ -1 +0,0 @@
-A \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Headers b/tikzit-old/Frameworks/Sparkle.framework/Headers
deleted file mode 120000
index a177d2a..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Headers
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Headers \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Resources b/tikzit-old/Frameworks/Sparkle.framework/Resources
deleted file mode 120000
index 953ee36..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Resources
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Resources \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Sparkle b/tikzit-old/Frameworks/Sparkle.framework/Sparkle
deleted file mode 120000
index b2c5273..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Sparkle
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Sparkle \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h
deleted file mode 100644
index 171148a..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// SUAppcast.h
-// Sparkle
-//
-// Created by Andy Matuschak on 3/12/06.
-// Copyright 2006 Andy Matuschak. All rights reserved.
-//
-
-#ifndef SUAPPCAST_H
-#define SUAPPCAST_H
-
-@class SUAppcastItem;
-@interface SUAppcast : NSObject {
- NSArray *items;
- NSString *userAgentString;
- id delegate;
- NSMutableData *incrementalData;
-}
-
-- (void)fetchAppcastFromURL:(NSURL *)url;
-- (void)setDelegate:delegate;
-- (void)setUserAgentString:(NSString *)userAgentString;
-
-- (NSArray *)items;
-
-@end
-
-@interface NSObject (SUAppcastDelegate)
-- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
-- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
-@end
-
-#endif
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
deleted file mode 100644
index 7f1ca65..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// SUAppcastItem.h
-// Sparkle
-//
-// Created by Andy Matuschak on 3/12/06.
-// Copyright 2006 Andy Matuschak. All rights reserved.
-//
-
-#ifndef SUAPPCASTITEM_H
-#define SUAPPCASTITEM_H
-
-@interface SUAppcastItem : NSObject {
- NSString *title;
- NSDate *date;
- NSString *itemDescription;
-
- NSURL *releaseNotesURL;
-
- NSString *DSASignature;
- NSString *minimumSystemVersion;
-
- NSURL *fileURL;
- NSString *versionString;
- NSString *displayVersionString;
-
- NSDictionary *propertiesDictionary;
-}
-
-// Initializes with data from a dictionary provided by the RSS class.
-- initWithDictionary:(NSDictionary *)dict;
-
-- (NSString *)title;
-- (NSString *)versionString;
-- (NSString *)displayVersionString;
-- (NSDate *)date;
-- (NSString *)itemDescription;
-- (NSURL *)releaseNotesURL;
-- (NSURL *)fileURL;
-- (NSString *)DSASignature;
-- (NSString *)minimumSystemVersion;
-
-// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
-- (NSDictionary *)propertiesDictionary;
-
-@end
-
-#endif
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h
deleted file mode 100644
index e78c4d3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-// SUUpdater.h
-// Sparkle
-//
-// Created by Andy Matuschak on 1/4/06.
-// Copyright 2006 Andy Matuschak. All rights reserved.
-//
-
-#ifndef SUUPDATER_H
-#define SUUPDATER_H
-
-#import <Sparkle/SUVersionComparisonProtocol.h>
-
-@class SUUpdateDriver, SUAppcastItem, SUHost, SUAppcast;
-@interface SUUpdater : NSObject {
- NSTimer *checkTimer;
- SUUpdateDriver *driver;
-
- SUHost *host;
- IBOutlet id delegate;
-}
-
-+ (SUUpdater *)sharedUpdater;
-+ (SUUpdater *)updaterForBundle:(NSBundle *)bundle;
-- (NSBundle *)hostBundle;
-
-- (void)setDelegate:(id)delegate;
-- delegate;
-
-- (void)setAutomaticallyChecksForUpdates:(BOOL)automaticallyChecks;
-- (BOOL)automaticallyChecksForUpdates;
-
-- (void)setUpdateCheckInterval:(NSTimeInterval)interval;
-- (NSTimeInterval)updateCheckInterval;
-
-- (void)setFeedURL:(NSURL *)feedURL;
-- (NSURL *)feedURL;
-
-- (void)setSendsSystemProfile:(BOOL)sendsSystemProfile;
-- (BOOL)sendsSystemProfile;
-
-- (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyDownloadsUpdates;
-- (BOOL)automaticallyDownloadsUpdates;
-
-// This IBAction is meant for a main menu item. Hook up any menu item to this action,
-// and Sparkle will check for updates and report back its findings verbosely.
-- (IBAction)checkForUpdates:sender;
-
-// This kicks off an update meant to be programmatically initiated. That is, it will display no UI unless it actually finds an update,
-// in which case it proceeds as usual. If the fully automated updating is turned on, however, this will invoke that behavior, and if an
-// update is found, it will be downloaded and prepped for installation.
-- (void)checkForUpdatesInBackground;
-
-// Date of last update check. Returns null if no check has been performed.
-- (NSDate*)lastUpdateCheckDate;
-
-// This begins a "probing" check for updates which will not actually offer to update to that version. The delegate methods, though,
-// (up to updater:didFindValidUpdate: and updaterDidNotFindUpdate:), are called, so you can use that information in your UI.
-- (void)checkForUpdateInformation;
-
-// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks. This call does not change the date of the next check, but only the internal NSTimer.
-- (void)resetUpdateCycle;
-
-- (BOOL)updateInProgress;
-@end
-
-@interface NSObject (SUUpdaterDelegateInformalProtocol)
-// This method allows you to add extra parameters to the appcast URL, potentially based on whether or not Sparkle will also be sending along the system profile. This method should return an array of dictionaries with keys: "key", "value", "displayKey", "displayValue", the latter two being specifically for display to the user.
-- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile;
-
-// Use this to override the default behavior for Sparkle prompting the user about automatic update checks.
-- (BOOL)updaterShouldPromptForPermissionToCheckForUpdates:(SUUpdater *)bundle;
-
-// Implement this if you want to do some special handling with the appcast once it finishes loading.
-- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast;
-
-// If you're using special logic or extensions in your appcast, implement this to use your own logic for finding
-// a valid update, if any, in the given appcast.
-- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)bundle;
-
-// Sent when a valid update is found by the update driver.
-- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update;
-
-// Sent when a valid update is not found.
-- (void)updaterDidNotFindUpdate:(SUUpdater *)update;
-
-// Sent immediately before installing the specified update.
-- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update;
-
-// Return YES to delay the relaunch until you do some processing; invoke the given NSInvocation to continue.
-- (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)update untilInvoking:(NSInvocation *)invocation;
-
-// Called immediately before relaunching.
-- (void)updaterWillRelaunchApplication:(SUUpdater *)updater;
-
-// This method allows you to provide a custom version comparator.
-// If you don't implement this method or return nil, the standard version comparator will be used.
-- (id <SUVersionComparison>)versionComparatorForUpdater:(SUUpdater *)updater;
-
-// Returns the path which is used to relaunch the client after the update is installed. By default, the path of the host bundle.
-- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater;
-
-@end
-
-// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds.
-#ifdef DEBUG
-#define SU_MIN_CHECK_INTERVAL 60
-#else
-#define SU_MIN_CHECK_INTERVAL 60*60
-#endif
-
-#ifdef DEBUG
-#define SU_DEFAULT_CHECK_INTERVAL 60
-#else
-#define SU_DEFAULT_CHECK_INTERVAL 60*60*24
-#endif
-
-#endif
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
deleted file mode 100644
index 3d11ae8..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// SUVersionComparisonProtocol.h
-// Sparkle
-//
-// Created by Andy Matuschak on 12/21/07.
-// Copyright 2007 Andy Matuschak. All rights reserved.
-//
-
-#ifndef SUVERSIONCOMPARISONPROTOCOL_H
-#define SUVERSIONCOMPARISONPROTOCOL_H
-
-/*!
- @protocol
- @abstract Implement this protocol to provide version comparison facilities for Sparkle.
-*/
-@protocol SUVersionComparison
-
-/*!
- @method
- @abstract An abstract method to compare two version strings.
- @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent.
-*/
-- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
-
-@end
-
-#endif
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h
deleted file mode 100644
index 08dd577..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// Sparkle.h
-// Sparkle
-//
-// Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07)
-// Copyright 2006 Andy Matuschak. All rights reserved.
-//
-
-#ifndef SPARKLE_H
-#define SPARKLE_H
-
-// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless
-// there are name-space collisions) so we can list all of them to start with:
-
-#import <Sparkle/SUUpdater.h>
-
-#import <Sparkle/SUAppcast.h>
-#import <Sparkle/SUAppcastItem.h>
-#import <Sparkle/SUVersionComparisonProtocol.h>
-
-#endif
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/Info.plist b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/Info.plist
deleted file mode 100644
index c7f277d..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/Info.plist
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>en</string>
- <key>CFBundleExecutable</key>
- <string>Sparkle</string>
- <key>CFBundleIdentifier</key>
- <string>org.andymatuschak.Sparkle</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>Sparkle</string>
- <key>CFBundlePackageType</key>
- <string>FMWK</string>
- <key>CFBundleShortVersionString</key>
- <string>1.5 Beta 6</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>313</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/License.txt b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/License.txt
deleted file mode 100644
index 20466c4..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/License.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright (c) 2006 Andy Matuschak
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist
deleted file mode 100644
index 92ef947..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>ADP2,1</key>
- <string>Developer Transition Kit</string>
- <key>MacBook1,1</key>
- <string>MacBook (Core Duo)</string>
- <key>MacBook2,1</key>
- <string>MacBook (Core 2 Duo)</string>
- <key>MacBook4,1</key>
- <string>MacBook (Core 2 Duo Feb 2008)</string>
- <key>MacBookAir1,1</key>
- <string>MacBook Air (January 2008)</string>
- <key>MacBookPro1,1</key>
- <string>MacBook Pro Core Duo (15-inch)</string>
- <key>MacBookPro1,2</key>
- <string>MacBook Pro Core Duo (17-inch)</string>
- <key>MacBookPro2,1</key>
- <string>MacBook Pro Core 2 Duo (17-inch)</string>
- <key>MacBookPro2,2</key>
- <string>MacBook Pro Core 2 Duo (15-inch)</string>
- <key>MacBookPro3,1</key>
- <string>MacBook Pro Core 2 Duo (15-inch LED, Core 2 Duo)</string>
- <key>MacBookPro3,2</key>
- <string>MacBook Pro Core 2 Duo (17-inch HD, Core 2 Duo)</string>
- <key>MacBookPro4,1</key>
- <string>MacBook Pro (Core 2 Duo Feb 2008)</string>
- <key>MacPro1,1</key>
- <string>Mac Pro (four-core)</string>
- <key>MacPro2,1</key>
- <string>Mac Pro (eight-core)</string>
- <key>MacPro3,1</key>
- <string>Mac Pro (January 2008 4- or 8- core "Harpertown")</string>
- <key>Macmini1,1</key>
- <string>Mac Mini (Core Solo/Duo)</string>
- <key>PowerBook1,1</key>
- <string>PowerBook G3</string>
- <key>PowerBook2,1</key>
- <string>iBook G3</string>
- <key>PowerBook2,2</key>
- <string>iBook G3 (FireWire)</string>
- <key>PowerBook2,3</key>
- <string>iBook G3</string>
- <key>PowerBook2,4</key>
- <string>iBook G3</string>
- <key>PowerBook3,1</key>
- <string>PowerBook G3 (FireWire)</string>
- <key>PowerBook3,2</key>
- <string>PowerBook G4</string>
- <key>PowerBook3,3</key>
- <string>PowerBook G4 (Gigabit Ethernet)</string>
- <key>PowerBook3,4</key>
- <string>PowerBook G4 (DVI)</string>
- <key>PowerBook3,5</key>
- <string>PowerBook G4 (1GHz / 867MHz)</string>
- <key>PowerBook4,1</key>
- <string>iBook G3 (Dual USB, Late 2001)</string>
- <key>PowerBook4,2</key>
- <string>iBook G3 (16MB VRAM)</string>
- <key>PowerBook4,3</key>
- <string>iBook G3 Opaque 16MB VRAM, 32MB VRAM, Early 2003)</string>
- <key>PowerBook5,1</key>
- <string>PowerBook G4 (17 inch)</string>
- <key>PowerBook5,2</key>
- <string>PowerBook G4 (15 inch FW 800)</string>
- <key>PowerBook5,3</key>
- <string>PowerBook G4 (17-inch 1.33GHz)</string>
- <key>PowerBook5,4</key>
- <string>PowerBook G4 (15 inch 1.5/1.33GHz)</string>
- <key>PowerBook5,5</key>
- <string>PowerBook G4 (17-inch 1.5GHz)</string>
- <key>PowerBook5,6</key>
- <string>PowerBook G4 (15 inch 1.67GHz/1.5GHz)</string>
- <key>PowerBook5,7</key>
- <string>PowerBook G4 (17-inch 1.67GHz)</string>
- <key>PowerBook5,8</key>
- <string>PowerBook G4 (Double layer SD, 15 inch)</string>
- <key>PowerBook5,9</key>
- <string>PowerBook G4 (Double layer SD, 17 inch)</string>
- <key>PowerBook6,1</key>
- <string>PowerBook G4 (12 inch)</string>
- <key>PowerBook6,2</key>
- <string>PowerBook G4 (12 inch, DVI)</string>
- <key>PowerBook6,3</key>
- <string>iBook G4</string>
- <key>PowerBook6,4</key>
- <string>PowerBook G4 (12 inch 1.33GHz)</string>
- <key>PowerBook6,5</key>
- <string>iBook G4 (Early-Late 2004)</string>
- <key>PowerBook6,7</key>
- <string>iBook G4 (Mid 2005)</string>
- <key>PowerBook6,8</key>
- <string>PowerBook G4 (12 inch 1.5GHz)</string>
- <key>PowerMac1,1</key>
- <string>Power Macintosh G3 (Blue &amp; White)</string>
- <key>PowerMac1,2</key>
- <string>Power Macintosh G4 (PCI Graphics)</string>
- <key>PowerMac10,1</key>
- <string>Mac Mini G4</string>
- <key>PowerMac10,2</key>
- <string>Mac Mini (Late 2005)</string>
- <key>PowerMac11,2</key>
- <string>Power Macintosh G5 (Late 2005)</string>
- <key>PowerMac12,1</key>
- <string>iMac G5 (iSight)</string>
- <key>PowerMac2,1</key>
- <string>iMac G3 (Slot-loading CD-ROM)</string>
- <key>PowerMac2,2</key>
- <string>iMac G3 (Summer 2000)</string>
- <key>PowerMac3,1</key>
- <string>Power Macintosh G4 (AGP Graphics)</string>
- <key>PowerMac3,2</key>
- <string>Power Macintosh G4 (AGP Graphics)</string>
- <key>PowerMac3,3</key>
- <string>Power Macintosh G4 (Gigabit Ethernet)</string>
- <key>PowerMac3,4</key>
- <string>Power Macintosh G4 (Digital Audio)</string>
- <key>PowerMac3,5</key>
- <string>Power Macintosh G4 (Quick Silver)</string>
- <key>PowerMac3,6</key>
- <string>Power Macintosh G4 (Mirrored Drive Door)</string>
- <key>PowerMac4,1</key>
- <string>iMac G3 (Early/Summer 2001)</string>
- <key>PowerMac4,2</key>
- <string>iMac G4 (Flat Panel)</string>
- <key>PowerMac4,4</key>
- <string>eMac</string>
- <key>PowerMac4,5</key>
- <string>iMac G4 (17-inch Flat Panel)</string>
- <key>PowerMac5,1</key>
- <string>Power Macintosh G4 Cube</string>
- <key>PowerMac6,1</key>
- <string>iMac G4 (USB 2.0)</string>
- <key>PowerMac6,3</key>
- <string>iMac G4 (20-inch Flat Panel)</string>
- <key>PowerMac6,4</key>
- <string>eMac (USB 2.0, 2005)</string>
- <key>PowerMac7,2</key>
- <string>Power Macintosh G5</string>
- <key>PowerMac7,3</key>
- <string>Power Macintosh G5</string>
- <key>PowerMac8,1</key>
- <string>iMac G5</string>
- <key>PowerMac8,2</key>
- <string>iMac G5 (Ambient Light Sensor)</string>
- <key>PowerMac9,1</key>
- <string>Power Macintosh G5 (Late 2005)</string>
- <key>RackMac1,1</key>
- <string>Xserve G4</string>
- <key>RackMac1,2</key>
- <string>Xserve G4 (slot-loading, cluster node)</string>
- <key>RackMac3,1</key>
- <string>Xserve G5</string>
- <key>Xserve1,1</key>
- <string>Xserve (Intel Xeon)</string>
- <key>Xserve2,1</key>
- <string>Xserve (January 2008 quad-core)</string>
- <key>iMac1,1</key>
- <string>iMac G3 (Rev A-D)</string>
- <key>iMac4,1</key>
- <string>iMac (Core Duo)</string>
- <key>iMac4,2</key>
- <string>iMac for Education (17-inch, Core Duo)</string>
- <key>iMac5,1</key>
- <string>iMac (Core 2 Duo, 17 or 20 inch, SuperDrive)</string>
- <key>iMac5,2</key>
- <string>iMac (Core 2 Duo, 17 inch, Combo Drive)</string>
- <key>iMac6,1</key>
- <string>iMac (Core 2 Duo, 24 inch, SuperDrive)</string>
- <key>iMac8,1</key>
- <string>iMac (April 2008)</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/classes.nib
deleted file mode 100644
index 22f13f8..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/classes.nib
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>SUStatusController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>actionButton</key>
- <string>NSButton</string>
- <key>progressBar</key>
- <string>NSProgressIndicator</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib
deleted file mode 100644
index a9ac867..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>10A96</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib
deleted file mode 100644
index 4f1d598..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 6b92630..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index b4353d2..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index b403a3e..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings
deleted file mode 100644
index b31f928..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index ab36d31..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>658</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9C7010</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 7630390..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index 2fb8a83..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>18</integer>
- </array>
- <key>IBSystem Version</key>
- <string>10A96</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index e7e7497..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index b1cd28e..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- <integer>41</integer>
- </array>
- <key>IBSystem Version</key>
- <string>10A96</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index e8dc5b8..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings
deleted file mode 100644
index 16e0787..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 6b2f938..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index c9b1e7d..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index 3eb7f81..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index 8c54c21..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings
deleted file mode 100644
index f83ea23..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index 33a6020..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>629</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array/>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 4cd529a..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index d2586ea..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>629</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array/>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 65dfc95..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index d2586ea..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>629</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array/>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index 4b7cc90..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings
deleted file mode 100644
index ea175ae..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj
deleted file mode 120000
index 61a7d4e..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/fr_CA.lproj
+++ /dev/null
@@ -1 +0,0 @@
-/Users/andym/Development/Build Products/Release (GC dual-mode; 10.5-only)/Sparkle.framework/Resources/fr.lproj \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 15ba8f4..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index 2e04cfa..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 2984064..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index c493485..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>667</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>5</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index 55cc2c2..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings
deleted file mode 100644
index 5c410d0..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index 3f09790..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>629</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index aa38f86..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index d2586ea..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>629</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array/>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index c82d358..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index d2586ea..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>629</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array/>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index ac298ce..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings
deleted file mode 100644
index 67cf535..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/relaunch b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/relaunch
deleted file mode 100755
index e7b96d6..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/relaunch
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index 2b3d425..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 1d4655c..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 994d4c3..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSApplication</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSResponder</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>installUpdate</key>
- <string>id</string>
- <key>remindMeLater</key>
- <string>id</string>
- <key>skipThisVersion</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>description</key>
- <string>NSTextField</string>
- <key>releaseNotesView</key>
- <string>WebView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index 2b3d425..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 103b1cf..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 0f776c8..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index 5132e29..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array/>
- <key>IBSystem Version</key>
- <string>9E17</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index c09d9e7..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings
deleted file mode 100644
index f3ff9d8..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/classes.nib
deleted file mode 100644
index 4b1ab30..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>doNotInstall</key>
- <string>id</string>
- <key>installLater</key>
- <string>id</string>
- <key>installNow</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUAutomaticUpdateAlert</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/info.nib
deleted file mode 100644
index c5a067e..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>10A96</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 53cb91a..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/classes.nib
deleted file mode 100644
index 018710a..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/classes.nib
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- IBClasses = (
- {
- CLASS = FirstResponder;
- LANGUAGE = ObjC;
- SUPERCLASS = NSObject;
- },
- {
- CLASS = NSApplication;
- LANGUAGE = ObjC;
- SUPERCLASS = NSResponder;
- },
- {
- CLASS = NSObject;
- LANGUAGE = ObjC;
- },
- {
- ACTIONS = {
- installUpdate = id;
- remindMeLater = id;
- skipThisVersion = id;
- };
- CLASS = SUUpdateAlert;
- LANGUAGE = ObjC;
- OUTLETS = {
- delegate = id;
- description = NSTextField;
- releaseNotesView = WebView;
- };
- SUPERCLASS = SUWindowController;
- },
- {
- CLASS = SUWindowController;
- LANGUAGE = ObjC;
- SUPERCLASS = NSWindowController;
- }
- );
- IBVersion = 1;
-} \ No newline at end of file
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/info.nib
deleted file mode 100644
index 6b787d4..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/info.nib
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBDocumentLocation</key>
- <string>69 14 356 240 0 0 1280 778 </string>
- <key>IBFramework Version</key>
- <string>489.0</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBSystem Version</key>
- <string>9D34</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nib
deleted file mode 100644
index 7e6d490..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib
deleted file mode 100644
index 5220a22..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBClasses</key>
- <array>
- <dict>
- <key>CLASS</key>
- <string>SUWindowController</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSWindowController</string>
- </dict>
- <dict>
- <key>ACTIONS</key>
- <dict>
- <key>finishPrompt</key>
- <string>id</string>
- <key>toggleMoreInfo</key>
- <string>id</string>
- </dict>
- <key>CLASS</key>
- <string>SUUpdatePermissionPrompt</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>OUTLETS</key>
- <dict>
- <key>delegate</key>
- <string>id</string>
- <key>descriptionTextField</key>
- <string>NSTextField</string>
- <key>moreInfoButton</key>
- <string>NSButton</string>
- <key>moreInfoView</key>
- <string>NSView</string>
- </dict>
- <key>SUPERCLASS</key>
- <string>SUWindowController</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>FirstResponder</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- <key>SUPERCLASS</key>
- <string>NSObject</string>
- </dict>
- <dict>
- <key>CLASS</key>
- <string>NSObject</string>
- <key>LANGUAGE</key>
- <string>ObjC</string>
- </dict>
- </array>
- <key>IBVersion</key>
- <string>1</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib
deleted file mode 100644
index c5a067e..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBFramework Version</key>
- <string>670</string>
- <key>IBLastKnownRelativeProjectPath</key>
- <string>../Sparkle.xcodeproj</string>
- <key>IBOldestOS</key>
- <integer>5</integer>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- </array>
- <key>IBSystem Version</key>
- <string>10A96</string>
- <key>targetFramework</key>
- <string>IBCocoaFramework</string>
-</dict>
-</plist>
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
deleted file mode 100644
index 64babac..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings
deleted file mode 100644
index b676a4f..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Sparkle b/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Sparkle
deleted file mode 100755
index 2d9bb2a..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/A/Sparkle
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/Frameworks/Sparkle.framework/Versions/Current b/tikzit-old/Frameworks/Sparkle.framework/Versions/Current
deleted file mode 120000
index 8c7e5a6..0000000
--- a/tikzit-old/Frameworks/Sparkle.framework/Versions/Current
+++ /dev/null
@@ -1 +0,0 @@
-A \ No newline at end of file
diff --git a/tikzit-old/INSTALL b/tikzit-old/INSTALL
deleted file mode 100644
index b938f14..0000000
--- a/tikzit-old/INSTALL
+++ /dev/null
@@ -1,34 +0,0 @@
-For building on systems other than MacOS/X:
-
-Dependencies:
- GNUstep (core libraries) >= 1.18.0
- gtk+-2.0 >= 2.18.0
- gdk-pixbuf >= 2.16.0
- poppler >= 0.10
- including glib bindings, which may be in
- a separate poppler-glib package
- Objective C compiler (eg: gcc with ObjC support) with
- support for properties, optional protocols and
- fast enumeration (eg: gcc 4.6 or clang).
- pkg-config
- build-time dependency only
-
-To install, just run:
-
- ./configure
- make
- make install
-
-
-
-To build from subversion (and for development) you will additionally need:
- flex >= 2.5.34
- bison >= 2.3
- autoconf >= 2.60
- automake >= 1.10
-
-and you will need to prepare the source tree by running
- ./autogen.sh
-
-
-
diff --git a/tikzit-old/Makefile.am b/tikzit-old/Makefile.am
deleted file mode 100644
index d9793a4..0000000
--- a/tikzit-old/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
-SUBDIRS = src share
-appdir = $(datarootdir)/tikzit
-nobase_dist_app_DATA = shapes/*.tikz
diff --git a/tikzit-old/NEWS b/tikzit-old/NEWS
deleted file mode 100644
index 827abe7..0000000
--- a/tikzit-old/NEWS
+++ /dev/null
@@ -1,75 +0,0 @@
-tikzit 1.1 (2015-07-22) :
- * Fix bug where copy-and-paste would lose edge anchors
- * Allow tikzit-specific preview code to be omitted from preambles
- * Holding down CTRL allows you to drag the graph
- * Fix parsing bug where property lists would be reversed
- * Better error messages when files can't be opened
-
-tikzit 1.0 (2013-05-07):
- * GIMP-like user interface (multiple documents, separate toolboxes)
- * Preferences now called Configuration, and includes node and edge styles
- * Error-highlighting in the code pane
- * Single-key-shortcuts for tool selection, and <space> to update the preview
- * Edge anchor support
- * Option for drag-select to select nodes, edges or both
- * Memory leak fixes
- * Should now be impossible to use the UI to create a graph that cannot be parsed
-
-tikzit 0.9 (2012-08-24):
- * Compilers without basic Objective C 2 support cannot be
- used to compile TikZiT any more
- * Add support for scale to node styles
- * Add support for editing edge styles
- * Add support for multiple custom preambles
- * The path to pdflatex is now configurable
- * Make everything look a bit better
- * Edges now start from the edge of a node, not the centre,
- which is what tikz does
- * Edges can now have arrow heads and arrow tails
- * Nodes and edges have consistent ordering, and this can be
- changed with Edge->Arrange
- * Edges now have colours
- * Edges can now be reversed easily
- * Fix various crashes
-
-tikzit 0.7 (2011-12-06):
- * Add bounding box support
- * Add support for different node shapes
- * Improved error reporting
- * Add scrolling support (CTRL+mouse wheel)
- * Add a pan tool to move around the graph
- * Add edge and graph property palettes
-
-tikzit 0.6 (2011-02-08):
- * Fix the displaying of colours in the styles editor
- * Cut, copy and paste support
- * More useful buttons on the toolbar
- * Improve how previewing works
- * Allow custom preambles for preview generation
-
-tikzit 0.5 (2010-12-01):
- * Hide font size commands (\small etc) in node labels
- * Always output the "style" node property first
- * Provide a list of recent files
- * Remember the folder for Open and Save As dialogs
- * Remember window dimensions
- * Remember the styles list
- * Add a "Node properties" pane
- * Bring the separate windows into the main application window
- * Improve graphics rendering / remove flicker
- * Shorten the window title to something useful
-
-tikzit 0.4 (2010-09-19):
- * Support for bounding boxes, variable-precision tikz output
- * Fixed stroke width display
- * Updated tikz output to handle separate edge/node layers
- * Using [Graph tikz] for tikz output, attaching style after parse
- * All platforms now use the same lex-based parser
- * Added a menu item for showing node styles if closed
- * Pre-amble support
- * Added test suite
- * Added preview and node labels to GTK version
-
-tikzit 0.3b (2010-05-11):
- * Various build-system fixes on Linux
-
diff --git a/tikzit-old/README b/tikzit-old/README
deleted file mode 100644
index 9b83327..0000000
--- a/tikzit-old/README
+++ /dev/null
@@ -1,7 +0,0 @@
-TikZit is a cross-platform application that allows the creation and modification of TeX diagrams written using the pgf/TikZ macro library. It is especially geared toward rapidly creating "dot"-diagrams for use in academic papers.
-
-For more info, see http://tikzit.sf.net
-
-On OS/X, the Cocoa framework is used.
-
-On other platforms, GTK+ and GNUstep are used. \ No newline at end of file
diff --git a/tikzit-old/README.release b/tikzit-old/README.release
deleted file mode 100644
index a6f1642..0000000
--- a/tikzit-old/README.release
+++ /dev/null
@@ -1,98 +0,0 @@
-Notes on how to make a release
-==============================
-
-Updating doc files
-------------------
-
-Put all the user-visible changes since the last release into NEWS.
-
-Make sure the dependency requirements in INSTALL are correct.
-
-
-
-Making the source tarballs
---------------------------
-
-The version should be set in configure.ac (in AC_INIT)
-and the package should be re-configured
-(run ./configure).
-
-Then run `make dist` to create the source tarball in tar.gz format, and
-`make dist-bzip2` to get it in tar.bz2 format.
-
-
-
-Uploading the source
---------------------
-
-Update /www/sourceforge/README.mkd
-
-Log into sourceforge.net, go to
-https://sourceforge.net/projects/tikzit/files/
-
-Create a folder called tikzit-[version].
-
-Upload README.mkd.
-
-Upload the tar.bz2 and tar.gz files.
-
-Set the tar.bz2 file as default for everything except windows and mac
-(click the (i) symbol on the right for that file to do this).
-
-
-
-Updating the website
---------------------
-
-Edit /www/htdocs/link.php, and update the versions.
-
-sftp to
- [sf-username],tikzit@web.sourceforge.net
-
-Upload link.php into htdocs.
-
-
-
-Updating the packages
----------------------
-
-Contact Gard Spreemann about the new version by sending him a message
-on Launchpad (https://launchpad.net/~gspreemann).
-
-Update tikzit.spec (the version, the changelog and the dependencies).
-
-Test the spec file:
-- if you don't have ~/rpmbuild, run rpmdev-setuptree
-- copy the tar.bz2 file into ~/rpmbuild/SOURCES
-- copy tikzit.spec into ~/rpmbuild/SPECS
-- cd into ~/rpmbuild/SPECS
-- run `rpmbuild -ba tikzit.spec`
-- run `rpmlint ..` and check the warnings (there will be some that are
- not important)
-
-Update the OBS packages:
-- https://build.opensuse.org/package/show?package=tikzit&project=home%3Arandomguy3
-- Upload the tar.bz2 file and the tikzit.spec file.
-- Wait for the build to finish
-
-Update the AUR package:
-- http://aur.archlinux.org/packages.php?ID=37119
-
-
-TODO: find out how the Debian build system works
-
-
-Publishing an OSX Update
------------------------------------------
-In OSX, the steps to publish an update are as follows. Firstly all updates are signed, so you need the private key 'tikzit_dsa_priv.pem' in the root of your working directory. This is not in the repository (for obvious reasons), so ask Aleks for a copy. Also, make sure you have ruby in your $PATH to do the actual signing.
-
-1. Update the SVN and note the revision number
-2. In TikZiT-Info.plist, set the Bundle Version key to (MAJOR).(MINOR).(SVN REVISION + 1)
-3. In the TikZiT working directory, run scripts/prepare_release.sh
-4. Copy and paste the XML output into docs/web/appcast/tikzit.xml
-5. Update the release notes in docs/web/appcast/rnotes.html
-6. Use SFTP to upload the changed files into htdocs/appcast
-7. Commit the SVN
-
-
-
diff --git a/tikzit-old/TODO b/tikzit-old/TODO
deleted file mode 100644
index ca1a1b9..0000000
--- a/tikzit-old/TODO
+++ /dev/null
@@ -1,15 +0,0 @@
-GTK port:
- - Use GooCanvas for the graph display
-
-
-OSX port:
- - node properties toolbox
- - support for more than one custom preamble
-
-
-General:
- - push more code up into common (make use of RenderContext)
- - vi-like mode lines in tikz files
- - use mode lines for preamble knowledge
- - per-document preamble selection?
-
diff --git a/tikzit-old/TikZiT-Info.plist b/tikzit-old/TikZiT-Info.plist
deleted file mode 100644
index a495c5b..0000000
--- a/tikzit-old/TikZiT-Info.plist
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleDocumentTypes</key>
- <array>
- <dict>
- <key>CFBundleTypeExtensions</key>
- <array>
- <string>tikz</string>
- </array>
- <key>CFBundleTypeIconFile</key>
- <string>tikzitdoc.icns</string>
- <key>CFBundleTypeMIMETypes</key>
- <array>
- <string>text/plain</string>
- </array>
- <key>CFBundleTypeName</key>
- <string>DocumentType</string>
- <key>CFBundleTypeOSTypes</key>
- <array>
- <string>????</string>
- </array>
- <key>CFBundleTypeRole</key>
- <string>Editor</string>
- <key>NSDocumentClass</key>
- <string>TikzDocument</string>
- </dict>
- </array>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>tikzit.icns</string>
- <key>CFBundleIdentifier</key>
- <string>net.sourceforge.tikzit.${PRODUCT_NAME:rfc1034identifier}</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>0.8</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.8.398</string>
- <key>LSMinimumSystemVersion</key>
- <string>${MACOSX_DEPLOYMENT_TARGET}</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
- <key>SUFeedURL</key>
- <string>http://tikzit.sourceforge.net/appcast/tikzit.xml</string>
- <key>SUPublicDSAKeyFile</key>
- <string>tikzit_dsa_pub.pem</string>
-</dict>
-</plist>
diff --git a/tikzit-old/TikZiT.xcodeproj/project.pbxproj b/tikzit-old/TikZiT.xcodeproj/project.pbxproj
deleted file mode 100644
index 04a7f3f..0000000
--- a/tikzit-old/TikZiT.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,1322 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1DDD582C0DA1D0D100B32029 /* TikzDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* TikzDocument.xib */; };
- 1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
- 5504C82E11D23595002A1478 /* common.m in Sources */ = {isa = PBXBuildFile; fileRef = 5504C82A11D23595002A1478 /* common.m */; };
- 5504C82F11D23595002A1478 /* parser.m in Sources */ = {isa = PBXBuildFile; fileRef = 5504C82B11D23595002A1478 /* parser.m */; };
- 5504C83011D23595002A1478 /* test.m in Sources */ = {isa = PBXBuildFile; fileRef = 5504C82D11D23595002A1478 /* test.m */; };
- 5504C83211D23685002A1478 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5504C83111D23685002A1478 /* main.m */; };
- 5504C84F11D23945002A1478 /* ColorRGB.m in Sources */ = {isa = PBXBuildFile; fileRef = 559EFB6711CB88E300D020F4 /* ColorRGB.m */; };
- 5504C93F11D39422002A1478 /* osx.m in Sources */ = {isa = PBXBuildFile; fileRef = 5504C93E11D39422002A1478 /* osx.m */; };
- 552202C4135F15FD007EA086 /* MultiField.m in Sources */ = {isa = PBXBuildFile; fileRef = 552202C3135F15FD007EA086 /* MultiField.m */; };
- 552202C5135F15FD007EA086 /* MultiField.m in Sources */ = {isa = PBXBuildFile; fileRef = 552202C3135F15FD007EA086 /* MultiField.m */; };
- 55391AF613D324FE007DBE71 /* Preview.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55391AF513D324FE007DBE71 /* Preview.xib */; };
- 55391AF813D3250F007DBE71 /* Preamble.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55391AF713D3250F007DBE71 /* Preamble.xib */; };
- 55391B0213D32608007DBE71 /* PropertyInspector.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55391B0013D32608007DBE71 /* PropertyInspector.xib */; };
- 55391B0A13D32765007DBE71 /* PropertyInspectorController.m in Sources */ = {isa = PBXBuildFile; fileRef = 55391B0913D32765007DBE71 /* PropertyInspectorController.m */; };
- 55397C7914498C22006942FB /* EdgeStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 55397C7814498C22006942FB /* EdgeStyle.m */; };
- 55397C7C144990EA006942FB /* EdgeStyle+Coder.m in Sources */ = {isa = PBXBuildFile; fileRef = 55397C7B144990EA006942FB /* EdgeStyle+Coder.m */; };
- 55397C7F144999C4006942FB /* PropertyHolder.m in Sources */ = {isa = PBXBuildFile; fileRef = 55397C7E144999C4006942FB /* PropertyHolder.m */; };
- 55397C811449A877006942FB /* ED_arrow.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C801449A877006942FB /* ED_arrow.png */; };
- 55397C831449A8F1006942FB /* ED_tick.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C821449A8F1006942FB /* ED_tick.png */; };
- 55397C851449A9BF006942FB /* ED_none.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C841449A9BF006942FB /* ED_none.png */; };
- 55397C8A1449AB91006942FB /* AH_none.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C871449AB91006942FB /* AH_none.png */; };
- 55397C8B1449AB91006942FB /* AH_plain_tail.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C881449AB91006942FB /* AH_plain_tail.png */; };
- 55397C8D1449ABFC006942FB /* AH_latex_tail.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C8C1449ABFC006942FB /* AH_latex_tail.png */; };
- 55397C901449AC7C006942FB /* AH_latex_head.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C8E1449AC7C006942FB /* AH_latex_head.png */; };
- 55397C911449AC7C006942FB /* AH_plain_head.png in Resources */ = {isa = PBXBuildFile; fileRef = 55397C8F1449AC7C006942FB /* AH_plain_head.png */; };
- 553A4C5A144ED3D500AA6FAC /* NilToEmptyStringTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 553A4C59144ED3D500AA6FAC /* NilToEmptyStringTransformer.m */; };
- 55432E061444BF2D00401BB3 /* GraphElementProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 55432E051444BF2D00401BB3 /* GraphElementProperty.m */; };
- 55598E351635372E0023450A /* DiamondShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55598E341635372E0023450A /* DiamondShape.m */; };
- 555B30F911D8BE3300CAECF5 /* emblem-important.png in Resources */ = {isa = PBXBuildFile; fileRef = 555B30F811D8BE3300CAECF5 /* emblem-important.png */; };
- 555B313511D8C6DA00CAECF5 /* color.m in Sources */ = {isa = PBXBuildFile; fileRef = 555B313411D8C6DA00CAECF5 /* color.m */; };
- 555ECE9B1378A3AA0052DB71 /* CALayer+DrawLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 555ECE9A1378A3AA0052DB71 /* CALayer+DrawLabel.m */; };
- 55652DF913E1F2030023F4C6 /* SupportDir.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652DF813E1F2030023F4C6 /* SupportDir.m */; };
- 55652E3B13E1FAEE0023F4C6 /* CircleShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3413E1FAED0023F4C6 /* CircleShape.m */; };
- 55652E3C13E1FAEE0023F4C6 /* RectangleShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3613E1FAED0023F4C6 /* RectangleShape.m */; };
- 55652E3D13E1FAEE0023F4C6 /* RegularPolyShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3813E1FAED0023F4C6 /* RegularPolyShape.m */; };
- 55652E3E13E1FAEE0023F4C6 /* TikzShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3A13E1FAEE0023F4C6 /* TikzShape.m */; };
- 55652E4113E1FB0A0023F4C6 /* Shape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E4013E1FB0A0023F4C6 /* Shape.m */; };
- 55652E5613E1FC660023F4C6 /* cap.tikz in Copy Shapes */ = {isa = PBXBuildFile; fileRef = 55652E5113E1FC660023F4C6 /* cap.tikz */; };
- 55652E5713E1FC660023F4C6 /* copants.tikz in Copy Shapes */ = {isa = PBXBuildFile; fileRef = 55652E5213E1FC660023F4C6 /* copants.tikz */; };
- 55652E5813E1FC660023F4C6 /* cup.tikz in Copy Shapes */ = {isa = PBXBuildFile; fileRef = 55652E5313E1FC660023F4C6 /* cup.tikz */; };
- 55652E5913E1FC660023F4C6 /* oval.tikz in Copy Shapes */ = {isa = PBXBuildFile; fileRef = 55652E5413E1FC660023F4C6 /* oval.tikz */; };
- 55652E5A13E1FC660023F4C6 /* pants.tikz in Copy Shapes */ = {isa = PBXBuildFile; fileRef = 55652E5513E1FC660023F4C6 /* pants.tikz */; };
- 556979431168747B007E5703 /* StylePalette.xib in Resources */ = {isa = PBXBuildFile; fileRef = 556979421168747B007E5703 /* StylePalette.xib */; };
- 5573B8BA11D9FC8D00B5DC5D /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5573B8B911D9FC8D00B5DC5D /* Quartz.framework */; };
- 5573B8C211D9FD3200B5DC5D /* PreviewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5573B8C111D9FD3200B5DC5D /* PreviewController.m */; };
- 5573B90F11DA231A00B5DC5D /* PreambleController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5573B90E11DA231A00B5DC5D /* PreambleController.m */; };
- 5573B92111DA259C00B5DC5D /* text-x-generic.png in Resources */ = {isa = PBXBuildFile; fileRef = 5573B92011DA259C00B5DC5D /* text-x-generic.png */; };
- 5573B92511DA273400B5DC5D /* format-indent-less.png in Resources */ = {isa = PBXBuildFile; fileRef = 5573B92411DA273400B5DC5D /* format-indent-less.png */; };
- 5573B92911DA292F00B5DC5D /* Preambles.m in Sources */ = {isa = PBXBuildFile; fileRef = 5573B92811DA292F00B5DC5D /* Preambles.m */; };
- 5573B98811DA377C00B5DC5D /* text-x-script.png in Resources */ = {isa = PBXBuildFile; fileRef = 5573B98711DA377C00B5DC5D /* text-x-script.png */; };
- 5573BDCB11DB4D2600B5DC5D /* Preambles+Coder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5573BDCA11DB4D2600B5DC5D /* Preambles+Coder.m */; };
- 5585E5C2117F681800124513 /* NodeStyle+Coder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5585E5C1117F681800124513 /* NodeStyle+Coder.m */; };
- 5589A9FF11C51E780064D310 /* TikzGraphAssembler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5589A9FE11C51E780064D310 /* TikzGraphAssembler.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
- 5589AA6C11C542D30064D310 /* TikzGraphAssembler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5589A9FE11C51E780064D310 /* TikzGraphAssembler.m */; };
- 5589AA6D11C542D30064D310 /* tikzlexer.lm in Sources */ = {isa = PBXBuildFile; fileRef = 5589A9AA11C500060064D310 /* tikzlexer.lm */; };
- 5589AA6E11C542D30064D310 /* tikzparser.ym in Sources */ = {isa = PBXBuildFile; fileRef = 5589A9AB11C500060064D310 /* tikzparser.ym */; };
- 5589AA7211C542E60064D310 /* Edge.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18BA117B031C009863B2 /* Edge.m */; };
- 5589AA7611C542E60064D310 /* Graph.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18BC117B031C009863B2 /* Graph.m */; };
- 5589AA7811C542E60064D310 /* GraphChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18BE117B031C009863B2 /* GraphChange.m */; };
- 5589AA7A11C542E60064D310 /* GraphElementData.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18C0117B031C009863B2 /* GraphElementData.m */; };
- 5589AA7C11C542E60064D310 /* Node.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18C2117B031C009863B2 /* Node.m */; };
- 5589AA8011C542E60064D310 /* NodeStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18C4117B031C009863B2 /* NodeStyle.m */; };
- 5589AA8511C543500064D310 /* util.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18CD117B03DD009863B2 /* util.m */; };
- 5589AD4411C633EE0064D310 /* SelectBoxLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5589AD4311C633EE0064D310 /* SelectBoxLayer.m */; };
- 558F18C5117B031C009863B2 /* Edge.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18BA117B031C009863B2 /* Edge.m */; };
- 558F18C6117B031C009863B2 /* Graph.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18BC117B031C009863B2 /* Graph.m */; };
- 558F18C7117B031C009863B2 /* GraphChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18BE117B031C009863B2 /* GraphChange.m */; };
- 558F18C8117B031C009863B2 /* GraphElementData.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18C0117B031C009863B2 /* GraphElementData.m */; };
- 558F18C9117B031C009863B2 /* Node.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18C2117B031C009863B2 /* Node.m */; };
- 558F18CA117B031C009863B2 /* NodeStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18C4117B031C009863B2 /* NodeStyle.m */; };
- 558F18CE117B03DD009863B2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18CB117B03DD009863B2 /* main.m */; };
- 558F18CF117B03DD009863B2 /* util.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18CD117B03DD009863B2 /* util.m */; };
- 558F18F7117B043C009863B2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18DA117B043B009863B2 /* AppDelegate.m */; };
- 558F18F9117B043C009863B2 /* EdgeControlLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18DE117B043B009863B2 /* EdgeControlLayer.m */; };
- 558F18FA117B043C009863B2 /* GraphicsView.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18E0117B043B009863B2 /* GraphicsView.m */; };
- 558F18FB117B043C009863B2 /* Grid.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18E2117B043B009863B2 /* Grid.m */; };
- 558F18FC117B043C009863B2 /* NodeLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18E4117B043B009863B2 /* NodeLayer.m */; };
- 558F18FD117B043C009863B2 /* NodeSelectionLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18E6117B043B009863B2 /* NodeSelectionLayer.m */; };
- 558F18FF117B043C009863B2 /* SelectableCollectionViewItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18EA117B043B009863B2 /* SelectableCollectionViewItem.m */; };
- 558F1900117B043C009863B2 /* SelectableNodeView.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18EC117B043B009863B2 /* SelectableNodeView.m */; };
- 558F1901117B043C009863B2 /* StylePaletteController.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18EE117B043B009863B2 /* StylePaletteController.m */; };
- 558F1902117B043C009863B2 /* TikzDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18F0117B043B009863B2 /* TikzDocument.m */; };
- 558F1903117B043C009863B2 /* TikzSourceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18F2117B043B009863B2 /* TikzSourceController.m */; };
- 558F1904117B043C009863B2 /* ToolPaletteController.m in Sources */ = {isa = PBXBuildFile; fileRef = 558F18F4117B043B009863B2 /* ToolPaletteController.m */; };
- 55900AA1135FA918002DD28E /* MultiCombo.m in Sources */ = {isa = PBXBuildFile; fileRef = 55900AA0135FA918002DD28E /* MultiCombo.m */; };
- 55900AA2135FA918002DD28E /* MultiCombo.m in Sources */ = {isa = PBXBuildFile; fileRef = 55900AA0135FA918002DD28E /* MultiCombo.m */; };
- 55900AE3135FB305002DD28E /* emblem-unreadable-grey.png in Resources */ = {isa = PBXBuildFile; fileRef = 55900AE2135FB305002DD28E /* emblem-unreadable-grey.png */; };
- 559EFA4811C7D49800D020F4 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 559EFA4711C7D49800D020F4 /* Sparkle.framework */; };
- 559EFA4E11C7D4BD00D020F4 /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 559EFA4711C7D49800D020F4 /* Sparkle.framework */; };
- 559EFA5711C7D95F00D020F4 /* tikzit_dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 559EFA5611C7D95F00D020F4 /* tikzit_dsa_pub.pem */; };
- 559EFB6811CB88E300D020F4 /* ColorRGB.m in Sources */ = {isa = PBXBuildFile; fileRef = 559EFB6711CB88E300D020F4 /* ColorRGB.m */; };
- 55CA98D512EF8FCE008F0368 /* SFBInspectors.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55CA98D412EF8FCE008F0368 /* SFBInspectors.framework */; };
- 55CA98DA12EF9098008F0368 /* SFBInspectors.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 55CA98D412EF8FCE008F0368 /* SFBInspectors.framework */; };
- 55CA98DD12EF910F008F0368 /* SFBInspectors.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55CA98D412EF8FCE008F0368 /* SFBInspectors.framework */; };
- 55CA997212F08281008F0368 /* TikzWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 55CA997112F08281008F0368 /* TikzWindowController.m */; };
- 55CA9AC912F831E5008F0368 /* RColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 55CA9AC812F831E5008F0368 /* RColor.m */; };
- 55CA9ACA12F831E5008F0368 /* RColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 55CA9AC812F831E5008F0368 /* RColor.m */; };
- 55D2E0B21186ED950060B4EC /* Graph+Coder.m in Sources */ = {isa = PBXBuildFile; fileRef = 55D2E0B11186ED950060B4EC /* Graph+Coder.m */; };
- 55D945721165904F0044178C /* tikzitdoc.icns in Resources */ = {isa = PBXBuildFile; fileRef = 55D945701165904F0044178C /* tikzitdoc.icns */; };
- 55D945731165904F0044178C /* tikzit.icns in Resources */ = {isa = PBXBuildFile; fileRef = 55D945711165904F0044178C /* tikzit.icns */; };
- 55D949141165D8870044178C /* draw-ellipse.png in Resources */ = {isa = PBXBuildFile; fileRef = 55D949111165D8870044178C /* draw-ellipse.png */; };
- 55D949151165D8870044178C /* draw-path.png in Resources */ = {isa = PBXBuildFile; fileRef = 55D949121165D8870044178C /* draw-path.png */; };
- 55D949161165D8870044178C /* select-rectangular.png in Resources */ = {isa = PBXBuildFile; fileRef = 55D949131165D8870044178C /* select-rectangular.png */; };
- 55E5E99E1215C8E300256F69 /* transform-crop-and-resize.png in Resources */ = {isa = PBXBuildFile; fileRef = 55E5E99D1215C8E300256F69 /* transform-crop-and-resize.png */; };
- 55F9585C1181B09600F99434 /* PickSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F958591181B09600F99434 /* PickSupport.m */; };
- 55F9585D1181B09600F99434 /* Transformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F9585B1181B09600F99434 /* Transformer.m */; };
- 55F9E04511FF54F000F5659E /* NSString+LatexConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F9E04411FF54F000F5659E /* NSString+LatexConstants.m */; };
- 7F18A321184C577000BC3081 /* UpdatePreferenceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F18A320184C577000BC3081 /* UpdatePreferenceController.m */; };
- 7F18A323184C599100BC3081 /* UpdatePreferencePanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7F18A322184C599100BC3081 /* UpdatePreferencePanel.xib */; };
- 7F6E2C7D16B007F000BFE20D /* EdgeStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 55397C7814498C22006942FB /* EdgeStyle.m */; };
- 7F6E2C7E16B0080400BFE20D /* GraphElementProperty.m in Sources */ = {isa = PBXBuildFile; fileRef = 55432E051444BF2D00401BB3 /* GraphElementProperty.m */; };
- 7F6E2C7F16B0081D00BFE20D /* PropertyHolder.m in Sources */ = {isa = PBXBuildFile; fileRef = 55397C7E144999C4006942FB /* PropertyHolder.m */; };
- 7F6E2C8016B0083300BFE20D /* Shape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E4013E1FB0A0023F4C6 /* Shape.m */; };
- 7F6E2C8116B0084600BFE20D /* Transformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 55F9585B1181B09600F99434 /* Transformer.m */; };
- 7F6E2C8216B008B000BFE20D /* DiamondShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55598E341635372E0023450A /* DiamondShape.m */; };
- 7F6E2C8316B008B000BFE20D /* CircleShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3413E1FAED0023F4C6 /* CircleShape.m */; };
- 7F6E2C8416B008B000BFE20D /* RectangleShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3613E1FAED0023F4C6 /* RectangleShape.m */; };
- 7F6E2C8516B008B000BFE20D /* RegularPolyShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3813E1FAED0023F4C6 /* RegularPolyShape.m */; };
- 7F6E2C8616B008B000BFE20D /* TikzShape.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652E3A13E1FAEE0023F4C6 /* TikzShape.m */; };
- 7F6E2C8916B0091300BFE20D /* maths.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F6E2C8716B0091300BFE20D /* maths.m */; };
- 7F6E2C8A16B0096000BFE20D /* SupportDir.m in Sources */ = {isa = PBXBuildFile; fileRef = 55652DF813E1F2030023F4C6 /* SupportDir.m */; };
- 7F6E2C8C16B00ABA00BFE20D /* SFBInspectors.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 55CA98D412EF8FCE008F0368 /* SFBInspectors.framework */; };
- 7F73438A184AC559002897D0 /* DraggablePDFView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F734389184AC559002897D0 /* DraggablePDFView.m */; };
- 7F781C1A16B5DE1400239826 /* ParseErrorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F781C1916B5DE1400239826 /* ParseErrorView.m */; };
- 7F7B6DED18DE0C9E004F6CA8 /* tikzlexer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F7B6DEA18DE0C9E004F6CA8 /* tikzlexer.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
- 7F7B6DEE18DE0C9E004F6CA8 /* tikzparser.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F7B6DEC18DE0C9E004F6CA8 /* tikzparser.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
- 7F7B6DF418DE0D7A004F6CA8 /* CustomNodeCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F7B6DF118DE0D7A004F6CA8 /* CustomNodeCellView.m */; };
- 7F7B6DF518DE0D7A004F6CA8 /* CustomNodeController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F7B6DF318DE0D7A004F6CA8 /* CustomNodeController.m */; };
- 7F90E88616DD29600069EBCD /* NSString+Tikz.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F90E88516DD29600069EBCD /* NSString+Tikz.m */; };
- 7F90E88D16DD47540069EBCD /* PreferenceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F90E88B16DD47540069EBCD /* PreferenceController.m */; };
- 7F90E88E16DD47540069EBCD /* Preferences.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7F90E88C16DD47540069EBCD /* Preferences.xib */; };
- 7F90E89116DD54440069EBCD /* UserDefaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7F90E88F16DD54440069EBCD /* UserDefaults.plist */; };
- 7F93852E184D176E00FAED38 /* updates.png in Resources */ = {isa = PBXBuildFile; fileRef = 7F93852D184D176E00FAED38 /* updates.png */; };
- 7F938530184D178B00FAED38 /* engine.png in Resources */ = {isa = PBXBuildFile; fileRef = 7F93852F184D178B00FAED38 /* engine.png */; };
- 7F938532184D184700FAED38 /* preamble.png in Resources */ = {isa = PBXBuildFile; fileRef = 7F938531184D184700FAED38 /* preamble.png */; };
- 7FB9BFEE16B57C2E00773146 /* TikzFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FB9BFED16B57C2E00773146 /* TikzFormatter.m */; };
- 7FD5D44B18E1CB5300E2A930 /* CustomNodes.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7FD5D44918E1CB5300E2A930 /* CustomNodes.xib */; };
- 7FD5D44D18E1CC0B00E2A930 /* customshape.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FD5D44C18E1CC0B00E2A930 /* customshape.png */; };
- 7FEED45716B1A7C500B056CB /* StyleManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FEED45616B1A7C500B056CB /* StyleManager.m */; };
- 8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */; };
- 8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165FFE840EACC02AAC07 /* InfoPlist.strings */; };
- 8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5504C91A11D36CD5002A1478 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2A37F4A9FDCFA73011CA2CEA /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = 8D15AC270486D014006FF6A4;
- remoteInfo = TikZiT;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 55652E6613E1FD080023F4C6 /* Copy Shapes */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = shapes;
- dstSubfolderSpec = 7;
- files = (
- 55652E5613E1FC660023F4C6 /* cap.tikz in Copy Shapes */,
- 55652E5713E1FC660023F4C6 /* copants.tikz in Copy Shapes */,
- 55652E5813E1FC660023F4C6 /* cup.tikz in Copy Shapes */,
- 55652E5913E1FC660023F4C6 /* oval.tikz in Copy Shapes */,
- 55652E5A13E1FC660023F4C6 /* pants.tikz in Copy Shapes */,
- );
- name = "Copy Shapes";
- runOnlyForDeploymentPostprocessing = 0;
- };
- 559EFA5511C7D4DD00D020F4 /* Copy Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 55CA98DA12EF9098008F0368 /* SFBInspectors.framework in Copy Frameworks */,
- 559EFA4E11C7D4BD00D020F4 /* Sparkle.framework in Copy Frameworks */,
- );
- name = "Copy Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
- 7F6E2C8B16B00A9200BFE20D /* CopyFiles */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 7F6E2C8C16B00ABA00BFE20D /* SFBInspectors.framework in CopyFiles */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 089C1660FE840EACC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
- 13E42FBA07B3F13500E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
- 1DDD58290DA1D0D100B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/TikzDocument.xib; sourceTree = "<group>"; };
- 1DDD582B0DA1D0D100B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
- 2564AD2C0F5327BB00F57823 /* TikZiT_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TikZiT_Prefix.pch; sourceTree = "<group>"; };
- 2A37F4BAFDCFA73011CA2CEA /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = "<group>"; };
- 2A37F4C4FDCFA73011CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
- 2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
- 5504C82A11D23595002A1478 /* common.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = common.m; path = src/common/test/common.m; sourceTree = "<group>"; };
- 5504C82B11D23595002A1478 /* parser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = parser.m; path = src/common/test/parser.m; sourceTree = "<group>"; };
- 5504C82C11D23595002A1478 /* test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = test.h; path = src/common/test/test.h; sourceTree = "<group>"; };
- 5504C82D11D23595002A1478 /* test.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = test.m; path = src/common/test/test.m; sourceTree = "<group>"; };
- 5504C83111D23685002A1478 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = src/osx/test/main.m; sourceTree = "<group>"; };
- 5504C83711D237F5002A1478 /* tests */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = tests; sourceTree = BUILT_PRODUCTS_DIR; };
- 5504C93E11D39422002A1478 /* osx.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = osx.m; path = src/osx/test/osx.m; sourceTree = "<group>"; };
- 552202C2135F15FD007EA086 /* MultiField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MultiField.h; path = src/osx/MultiField.h; sourceTree = "<group>"; };
- 552202C3135F15FD007EA086 /* MultiField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MultiField.m; path = src/osx/MultiField.m; sourceTree = "<group>"; };
- 55391B0113D32608007DBE71 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/PropertyInspector.xib; sourceTree = "<group>"; };
- 55391B0813D32765007DBE71 /* PropertyInspectorController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PropertyInspectorController.h; path = src/osx/PropertyInspectorController.h; sourceTree = "<group>"; };
- 55391B0913D32765007DBE71 /* PropertyInspectorController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PropertyInspectorController.m; path = src/osx/PropertyInspectorController.m; sourceTree = "<group>"; };
- 55397C7714498C21006942FB /* EdgeStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EdgeStyle.h; path = src/common/EdgeStyle.h; sourceTree = "<group>"; };
- 55397C7814498C22006942FB /* EdgeStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EdgeStyle.m; path = src/common/EdgeStyle.m; sourceTree = "<group>"; };
- 55397C7A144990EA006942FB /* EdgeStyle+Coder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "EdgeStyle+Coder.h"; path = "src/osx/EdgeStyle+Coder.h"; sourceTree = "<group>"; };
- 55397C7B144990EA006942FB /* EdgeStyle+Coder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "EdgeStyle+Coder.m"; path = "src/osx/EdgeStyle+Coder.m"; sourceTree = "<group>"; };
- 55397C7D144999C4006942FB /* PropertyHolder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PropertyHolder.h; path = src/common/PropertyHolder.h; sourceTree = "<group>"; };
- 55397C7E144999C4006942FB /* PropertyHolder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PropertyHolder.m; path = src/common/PropertyHolder.m; sourceTree = "<group>"; };
- 55397C801449A877006942FB /* ED_arrow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ED_arrow.png; sourceTree = "<group>"; };
- 55397C821449A8F1006942FB /* ED_tick.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ED_tick.png; sourceTree = "<group>"; };
- 55397C841449A9BF006942FB /* ED_none.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ED_none.png; sourceTree = "<group>"; };
- 55397C871449AB91006942FB /* AH_none.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AH_none.png; sourceTree = "<group>"; };
- 55397C881449AB91006942FB /* AH_plain_tail.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AH_plain_tail.png; sourceTree = "<group>"; };
- 55397C8C1449ABFC006942FB /* AH_latex_tail.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AH_latex_tail.png; sourceTree = "<group>"; };
- 55397C8E1449AC7C006942FB /* AH_latex_head.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AH_latex_head.png; sourceTree = "<group>"; };
- 55397C8F1449AC7C006942FB /* AH_plain_head.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AH_plain_head.png; sourceTree = "<group>"; };
- 553A4C58144ED3D500AA6FAC /* NilToEmptyStringTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NilToEmptyStringTransformer.h; path = src/osx/NilToEmptyStringTransformer.h; sourceTree = "<group>"; };
- 553A4C59144ED3D500AA6FAC /* NilToEmptyStringTransformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NilToEmptyStringTransformer.m; path = src/osx/NilToEmptyStringTransformer.m; sourceTree = "<group>"; };
- 55432E041444BF2D00401BB3 /* GraphElementProperty.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GraphElementProperty.h; path = src/common/GraphElementProperty.h; sourceTree = "<group>"; };
- 55432E051444BF2D00401BB3 /* GraphElementProperty.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GraphElementProperty.m; path = src/common/GraphElementProperty.m; sourceTree = "<group>"; };
- 55598E331635372E0023450A /* DiamondShape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DiamondShape.h; path = src/common/DiamondShape.h; sourceTree = "<group>"; };
- 55598E341635372E0023450A /* DiamondShape.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DiamondShape.m; path = src/common/DiamondShape.m; sourceTree = "<group>"; };
- 555B30F811D8BE3300CAECF5 /* emblem-important.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "emblem-important.png"; sourceTree = "<group>"; };
- 555B313411D8C6DA00CAECF5 /* color.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = color.m; path = src/common/test/color.m; sourceTree = "<group>"; };
- 555ECE991378A3AA0052DB71 /* CALayer+DrawLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "CALayer+DrawLabel.h"; path = "src/osx/CALayer+DrawLabel.h"; sourceTree = "<group>"; };
- 555ECE9A1378A3AA0052DB71 /* CALayer+DrawLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "CALayer+DrawLabel.m"; path = "src/osx/CALayer+DrawLabel.m"; sourceTree = "<group>"; };
- 555ECF361379E9F80052DB71 /* ShapeNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ShapeNames.h; path = src/common/ShapeNames.h; sourceTree = "<group>"; };
- 55652DF713E1F2030023F4C6 /* SupportDir.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SupportDir.h; path = src/common/SupportDir.h; sourceTree = "<group>"; };
- 55652DF813E1F2030023F4C6 /* SupportDir.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SupportDir.m; path = src/common/SupportDir.m; sourceTree = "<group>"; };
- 55652E3313E1FAED0023F4C6 /* CircleShape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CircleShape.h; path = src/common/CircleShape.h; sourceTree = "<group>"; };
- 55652E3413E1FAED0023F4C6 /* CircleShape.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CircleShape.m; path = src/common/CircleShape.m; sourceTree = "<group>"; };
- 55652E3513E1FAED0023F4C6 /* RectangleShape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RectangleShape.h; path = src/common/RectangleShape.h; sourceTree = "<group>"; };
- 55652E3613E1FAED0023F4C6 /* RectangleShape.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RectangleShape.m; path = src/common/RectangleShape.m; sourceTree = "<group>"; };
- 55652E3713E1FAED0023F4C6 /* RegularPolyShape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegularPolyShape.h; path = src/common/RegularPolyShape.h; sourceTree = "<group>"; };
- 55652E3813E1FAED0023F4C6 /* RegularPolyShape.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RegularPolyShape.m; path = src/common/RegularPolyShape.m; sourceTree = "<group>"; };
- 55652E3913E1FAEE0023F4C6 /* TikzShape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TikzShape.h; path = src/common/TikzShape.h; sourceTree = "<group>"; };
- 55652E3A13E1FAEE0023F4C6 /* TikzShape.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TikzShape.m; path = src/common/TikzShape.m; sourceTree = "<group>"; };
- 55652E3F13E1FB0A0023F4C6 /* Shape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Shape.h; path = src/common/Shape.h; sourceTree = "<group>"; };
- 55652E4013E1FB0A0023F4C6 /* Shape.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Shape.m; path = src/common/Shape.m; sourceTree = "<group>"; };
- 55652E5113E1FC660023F4C6 /* cap.tikz */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = cap.tikz; sourceTree = "<group>"; };
- 55652E5213E1FC660023F4C6 /* copants.tikz */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = copants.tikz; sourceTree = "<group>"; };
- 55652E5313E1FC660023F4C6 /* cup.tikz */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = cup.tikz; sourceTree = "<group>"; };
- 55652E5413E1FC660023F4C6 /* oval.tikz */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = oval.tikz; sourceTree = "<group>"; };
- 55652E5513E1FC660023F4C6 /* pants.tikz */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = pants.tikz; sourceTree = "<group>"; };
- 5573B8B911D9FC8D00B5DC5D /* Quartz.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quartz.framework; path = System/Library/Frameworks/Quartz.framework; sourceTree = SDKROOT; };
- 5573B8BD11D9FCD400B5DC5D /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/Preview.xib; sourceTree = "<group>"; };
- 5573B8C011D9FD3200B5DC5D /* PreviewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PreviewController.h; path = src/osx/PreviewController.h; sourceTree = "<group>"; };
- 5573B8C111D9FD3200B5DC5D /* PreviewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PreviewController.m; path = src/osx/PreviewController.m; sourceTree = "<group>"; };
- 5573B90D11DA231A00B5DC5D /* PreambleController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PreambleController.h; path = src/osx/PreambleController.h; sourceTree = "<group>"; };
- 5573B90E11DA231A00B5DC5D /* PreambleController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PreambleController.m; path = src/osx/PreambleController.m; sourceTree = "<group>"; };
- 5573B91011DA233E00B5DC5D /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/Preamble.xib; sourceTree = "<group>"; };
- 5573B92011DA259C00B5DC5D /* text-x-generic.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "text-x-generic.png"; sourceTree = "<group>"; };
- 5573B92411DA273400B5DC5D /* format-indent-less.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "format-indent-less.png"; sourceTree = "<group>"; };
- 5573B92711DA292F00B5DC5D /* Preambles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Preambles.h; path = src/common/Preambles.h; sourceTree = "<group>"; };
- 5573B92811DA292F00B5DC5D /* Preambles.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Preambles.m; path = src/common/Preambles.m; sourceTree = "<group>"; };
- 5573B98711DA377C00B5DC5D /* text-x-script.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "text-x-script.png"; sourceTree = "<group>"; };
- 5573BDC911DB4D2600B5DC5D /* Preambles+Coder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "Preambles+Coder.h"; path = "src/osx/Preambles+Coder.h"; sourceTree = "<group>"; };
- 5573BDCA11DB4D2600B5DC5D /* Preambles+Coder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "Preambles+Coder.m"; path = "src/osx/Preambles+Coder.m"; sourceTree = "<group>"; };
- 5585E5C0117F681800124513 /* NodeStyle+Coder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NodeStyle+Coder.h"; path = "src/osx/NodeStyle+Coder.h"; sourceTree = "<group>"; };
- 5585E5C1117F681800124513 /* NodeStyle+Coder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NodeStyle+Coder.m"; path = "src/osx/NodeStyle+Coder.m"; sourceTree = "<group>"; };
- 5589A9AA11C500060064D310 /* tikzlexer.lm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.lex; name = tikzlexer.lm; path = src/common/tikzlexer.lm; sourceTree = "<group>"; };
- 5589A9AB11C500060064D310 /* tikzparser.ym */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.yacc; name = tikzparser.ym; path = src/common/tikzparser.ym; sourceTree = "<group>"; };
- 5589A9FD11C51E780064D310 /* TikzGraphAssembler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TikzGraphAssembler.h; path = src/common/TikzGraphAssembler.h; sourceTree = "<group>"; };
- 5589A9FE11C51E780064D310 /* TikzGraphAssembler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TikzGraphAssembler.m; path = src/common/TikzGraphAssembler.m; sourceTree = "<group>"; };
- 5589AD4211C633EE0064D310 /* SelectBoxLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SelectBoxLayer.h; path = src/osx/SelectBoxLayer.h; sourceTree = "<group>"; };
- 5589AD4311C633EE0064D310 /* SelectBoxLayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SelectBoxLayer.m; path = src/osx/SelectBoxLayer.m; sourceTree = "<group>"; };
- 558F18B9117B031C009863B2 /* Edge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Edge.h; path = src/common/Edge.h; sourceTree = "<group>"; };
- 558F18BA117B031C009863B2 /* Edge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Edge.m; path = src/common/Edge.m; sourceTree = "<group>"; };
- 558F18BB117B031C009863B2 /* Graph.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Graph.h; path = src/common/Graph.h; sourceTree = "<group>"; };
- 558F18BC117B031C009863B2 /* Graph.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Graph.m; path = src/common/Graph.m; sourceTree = "<group>"; };
- 558F18BD117B031C009863B2 /* GraphChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GraphChange.h; path = src/common/GraphChange.h; sourceTree = "<group>"; };
- 558F18BE117B031C009863B2 /* GraphChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GraphChange.m; path = src/common/GraphChange.m; sourceTree = "<group>"; };
- 558F18BF117B031C009863B2 /* GraphElementData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GraphElementData.h; path = src/common/GraphElementData.h; sourceTree = "<group>"; };
- 558F18C0117B031C009863B2 /* GraphElementData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GraphElementData.m; path = src/common/GraphElementData.m; sourceTree = "<group>"; };
- 558F18C1117B031C009863B2 /* Node.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Node.h; path = src/common/Node.h; sourceTree = "<group>"; };
- 558F18C2117B031C009863B2 /* Node.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Node.m; path = src/common/Node.m; sourceTree = "<group>"; };
- 558F18C3117B031C009863B2 /* NodeStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NodeStyle.h; path = src/common/NodeStyle.h; sourceTree = "<group>"; };
- 558F18C4117B031C009863B2 /* NodeStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NodeStyle.m; path = src/common/NodeStyle.m; sourceTree = "<group>"; };
- 558F18CB117B03DD009863B2 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = src/osx/main.m; sourceTree = "<group>"; };
- 558F18CC117B03DD009863B2 /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = util.h; path = src/common/util.h; sourceTree = "<group>"; };
- 558F18CD117B03DD009863B2 /* util.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = util.m; path = src/common/util.m; sourceTree = "<group>"; };
- 558F18D9117B043B009863B2 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = src/osx/AppDelegate.h; sourceTree = "<group>"; };
- 558F18DA117B043B009863B2 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = src/osx/AppDelegate.m; sourceTree = "<group>"; };
- 558F18DD117B043B009863B2 /* EdgeControlLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EdgeControlLayer.h; path = src/osx/EdgeControlLayer.h; sourceTree = "<group>"; };
- 558F18DE117B043B009863B2 /* EdgeControlLayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EdgeControlLayer.m; path = src/osx/EdgeControlLayer.m; sourceTree = "<group>"; };
- 558F18DF117B043B009863B2 /* GraphicsView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GraphicsView.h; path = src/osx/GraphicsView.h; sourceTree = "<group>"; };
- 558F18E0117B043B009863B2 /* GraphicsView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GraphicsView.m; path = src/osx/GraphicsView.m; sourceTree = "<group>"; };
- 558F18E1117B043B009863B2 /* Grid.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Grid.h; path = src/osx/Grid.h; sourceTree = "<group>"; };
- 558F18E2117B043B009863B2 /* Grid.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Grid.m; path = src/osx/Grid.m; sourceTree = "<group>"; };
- 558F18E3117B043B009863B2 /* NodeLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NodeLayer.h; path = src/osx/NodeLayer.h; sourceTree = "<group>"; };
- 558F18E4117B043B009863B2 /* NodeLayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NodeLayer.m; path = src/osx/NodeLayer.m; sourceTree = "<group>"; };
- 558F18E5117B043B009863B2 /* NodeSelectionLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NodeSelectionLayer.h; path = src/osx/NodeSelectionLayer.h; sourceTree = "<group>"; };
- 558F18E6117B043B009863B2 /* NodeSelectionLayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NodeSelectionLayer.m; path = src/osx/NodeSelectionLayer.m; sourceTree = "<group>"; };
- 558F18E9117B043B009863B2 /* SelectableCollectionViewItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SelectableCollectionViewItem.h; path = src/osx/SelectableCollectionViewItem.h; sourceTree = "<group>"; };
- 558F18EA117B043B009863B2 /* SelectableCollectionViewItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SelectableCollectionViewItem.m; path = src/osx/SelectableCollectionViewItem.m; sourceTree = "<group>"; };
- 558F18EB117B043B009863B2 /* SelectableNodeView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SelectableNodeView.h; path = src/osx/SelectableNodeView.h; sourceTree = "<group>"; };
- 558F18EC117B043B009863B2 /* SelectableNodeView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SelectableNodeView.m; path = src/osx/SelectableNodeView.m; sourceTree = "<group>"; };
- 558F18ED117B043B009863B2 /* StylePaletteController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StylePaletteController.h; path = src/osx/StylePaletteController.h; sourceTree = "<group>"; };
- 558F18EE117B043B009863B2 /* StylePaletteController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = StylePaletteController.m; path = src/osx/StylePaletteController.m; sourceTree = "<group>"; };
- 558F18EF117B043B009863B2 /* TikzDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TikzDocument.h; path = src/osx/TikzDocument.h; sourceTree = "<group>"; };
- 558F18F0117B043B009863B2 /* TikzDocument.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TikzDocument.m; path = src/osx/TikzDocument.m; sourceTree = "<group>"; };
- 558F18F1117B043B009863B2 /* TikzSourceController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TikzSourceController.h; path = src/osx/TikzSourceController.h; sourceTree = "<group>"; };
- 558F18F2117B043B009863B2 /* TikzSourceController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TikzSourceController.m; path = src/osx/TikzSourceController.m; sourceTree = "<group>"; };
- 558F18F3117B043B009863B2 /* ToolPaletteController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ToolPaletteController.h; path = src/osx/ToolPaletteController.h; sourceTree = "<group>"; };
- 558F18F4117B043B009863B2 /* ToolPaletteController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ToolPaletteController.m; path = src/osx/ToolPaletteController.m; sourceTree = "<group>"; };
- 55900A9F135FA918002DD28E /* MultiCombo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MultiCombo.h; path = src/osx/MultiCombo.h; sourceTree = "<group>"; };
- 55900AA0135FA918002DD28E /* MultiCombo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MultiCombo.m; path = src/osx/MultiCombo.m; sourceTree = "<group>"; };
- 55900AE2135FB305002DD28E /* emblem-unreadable-grey.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "emblem-unreadable-grey.png"; sourceTree = "<group>"; };
- 559EFA4711C7D49800D020F4 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = Frameworks/Sparkle.framework; sourceTree = "<group>"; };
- 559EFA5611C7D95F00D020F4 /* tikzit_dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = tikzit_dsa_pub.pem; sourceTree = "<group>"; };
- 559EFB6611CB88E300D020F4 /* ColorRGB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ColorRGB.h; path = src/common/ColorRGB.h; sourceTree = "<group>"; };
- 559EFB6711CB88E300D020F4 /* ColorRGB.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ColorRGB.m; path = src/common/ColorRGB.m; sourceTree = "<group>"; };
- 55CA98D412EF8FCE008F0368 /* SFBInspectors.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SFBInspectors.framework; path = Frameworks/SFBInspectors.framework; sourceTree = "<group>"; };
- 55CA997012F08281008F0368 /* TikzWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TikzWindowController.h; path = src/osx/TikzWindowController.h; sourceTree = "<group>"; };
- 55CA997112F08281008F0368 /* TikzWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TikzWindowController.m; path = src/osx/TikzWindowController.m; sourceTree = "<group>"; };
- 55CA9AC712F831E5008F0368 /* RColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RColor.h; path = src/common/RColor.h; sourceTree = "<group>"; };
- 55CA9AC812F831E5008F0368 /* RColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RColor.m; path = src/common/RColor.m; sourceTree = "<group>"; };
- 55D2E0B01186ED950060B4EC /* Graph+Coder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "Graph+Coder.h"; path = "src/osx/Graph+Coder.h"; sourceTree = "<group>"; };
- 55D2E0B11186ED950060B4EC /* Graph+Coder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "Graph+Coder.m"; path = "src/osx/Graph+Coder.m"; sourceTree = "<group>"; };
- 55D945701165904F0044178C /* tikzitdoc.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = tikzitdoc.icns; sourceTree = "<group>"; };
- 55D945711165904F0044178C /* tikzit.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = tikzit.icns; sourceTree = "<group>"; };
- 55D947301165A5D40044178C /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/StylePalette.xib; sourceTree = "<group>"; };
- 55D949111165D8870044178C /* draw-ellipse.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "draw-ellipse.png"; sourceTree = "<group>"; };
- 55D949121165D8870044178C /* draw-path.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "draw-path.png"; sourceTree = "<group>"; };
- 55D949131165D8870044178C /* select-rectangular.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "select-rectangular.png"; sourceTree = "<group>"; };
- 55E5E99D1215C8E300256F69 /* transform-crop-and-resize.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "transform-crop-and-resize.png"; sourceTree = "<group>"; };
- 55F958581181B09600F99434 /* PickSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PickSupport.h; path = src/common/PickSupport.h; sourceTree = "<group>"; };
- 55F958591181B09600F99434 /* PickSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PickSupport.m; path = src/common/PickSupport.m; sourceTree = "<group>"; };
- 55F9585A1181B09600F99434 /* Transformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Transformer.h; path = src/common/Transformer.h; sourceTree = "<group>"; };
- 55F9585B1181B09600F99434 /* Transformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Transformer.m; path = src/common/Transformer.m; sourceTree = "<group>"; };
- 55F9E04311FF54F000F5659E /* NSString+LatexConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSString+LatexConstants.h"; path = "src/common/NSString+LatexConstants.h"; sourceTree = "<group>"; };
- 55F9E04411FF54F000F5659E /* NSString+LatexConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSString+LatexConstants.m"; path = "src/common/NSString+LatexConstants.m"; sourceTree = "<group>"; };
- 55FF4E64116A401B000C22B4 /* libicucore.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicucore.dylib; path = usr/lib/libicucore.dylib; sourceTree = SDKROOT; };
- 7F18A31F184C577000BC3081 /* UpdatePreferenceController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UpdatePreferenceController.h; path = src/osx/UpdatePreferenceController.h; sourceTree = "<group>"; };
- 7F18A320184C577000BC3081 /* UpdatePreferenceController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UpdatePreferenceController.m; path = src/osx/UpdatePreferenceController.m; sourceTree = "<group>"; };
- 7F18A322184C599100BC3081 /* UpdatePreferencePanel.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = UpdatePreferencePanel.xib; path = src/osx/UpdatePreferencePanel.xib; sourceTree = "<group>"; };
- 7F6E2C8716B0091300BFE20D /* maths.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = maths.m; path = src/common/test/maths.m; sourceTree = "<group>"; };
- 7F734388184AC559002897D0 /* DraggablePDFView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DraggablePDFView.h; path = src/osx/DraggablePDFView.h; sourceTree = "<group>"; };
- 7F734389184AC559002897D0 /* DraggablePDFView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DraggablePDFView.m; path = src/osx/DraggablePDFView.m; sourceTree = "<group>"; };
- 7F781C1816B5DE1400239826 /* ParseErrorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ParseErrorView.h; path = src/osx/ParseErrorView.h; sourceTree = "<group>"; };
- 7F781C1916B5DE1400239826 /* ParseErrorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ParseErrorView.m; path = src/osx/ParseErrorView.m; sourceTree = "<group>"; };
- 7F7B6DE918DE0C9E004F6CA8 /* tikzlexer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = tikzlexer.h; path = xbuild/TikZiT.build/Debug/TikZiT.build/DerivedSources/tikzlexer.h; sourceTree = "<group>"; };
- 7F7B6DEA18DE0C9E004F6CA8 /* tikzlexer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = tikzlexer.m; path = xbuild/TikZiT.build/Debug/TikZiT.build/DerivedSources/tikzlexer.m; sourceTree = "<group>"; };
- 7F7B6DEB18DE0C9E004F6CA8 /* tikzparser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = tikzparser.h; path = xbuild/TikZiT.build/Debug/TikZiT.build/DerivedSources/tikzparser.h; sourceTree = "<group>"; };
- 7F7B6DEC18DE0C9E004F6CA8 /* tikzparser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = tikzparser.m; path = xbuild/TikZiT.build/Debug/TikZiT.build/DerivedSources/tikzparser.m; sourceTree = "<group>"; };
- 7F7B6DF018DE0D7A004F6CA8 /* CustomNodeCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomNodeCellView.h; path = src/osx/CustomNodeCellView.h; sourceTree = "<group>"; };
- 7F7B6DF118DE0D7A004F6CA8 /* CustomNodeCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CustomNodeCellView.m; path = src/osx/CustomNodeCellView.m; sourceTree = "<group>"; };
- 7F7B6DF218DE0D7A004F6CA8 /* CustomNodeController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomNodeController.h; path = src/osx/CustomNodeController.h; sourceTree = "<group>"; };
- 7F7B6DF318DE0D7A004F6CA8 /* CustomNodeController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CustomNodeController.m; path = src/osx/CustomNodeController.m; sourceTree = "<group>"; };
- 7F90E88416DD29600069EBCD /* NSString+Tikz.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSString+Tikz.h"; path = "src/common/NSString+Tikz.h"; sourceTree = "<group>"; };
- 7F90E88516DD29600069EBCD /* NSString+Tikz.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSString+Tikz.m"; path = "src/common/NSString+Tikz.m"; sourceTree = "<group>"; };
- 7F90E88A16DD47540069EBCD /* PreferenceController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PreferenceController.h; path = src/osx/PreferenceController.h; sourceTree = "<group>"; };
- 7F90E88B16DD47540069EBCD /* PreferenceController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PreferenceController.m; path = src/osx/PreferenceController.m; sourceTree = "<group>"; };
- 7F90E88C16DD47540069EBCD /* Preferences.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = Preferences.xib; path = src/osx/Preferences.xib; sourceTree = "<group>"; };
- 7F90E89016DD54440069EBCD /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = English; path = English.lproj/UserDefaults.plist; sourceTree = "<group>"; };
- 7F93852D184D176E00FAED38 /* updates.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = updates.png; sourceTree = "<group>"; };
- 7F93852F184D178B00FAED38 /* engine.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = engine.png; sourceTree = "<group>"; };
- 7F938531184D184700FAED38 /* preamble.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = preamble.png; sourceTree = "<group>"; };
- 7FB9BFEC16B57C2E00773146 /* TikzFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TikzFormatter.h; path = src/osx/TikzFormatter.h; sourceTree = "<group>"; };
- 7FB9BFED16B57C2E00773146 /* TikzFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TikzFormatter.m; path = src/osx/TikzFormatter.m; sourceTree = "<group>"; };
- 7FD5D44A18E1CB5300E2A930 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/CustomNodes.xib; sourceTree = "<group>"; };
- 7FD5D44C18E1CC0B00E2A930 /* customshape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = customshape.png; sourceTree = "<group>"; };
- 7FEED45516B1A7C400B056CB /* StyleManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StyleManager.h; path = src/common/StyleManager.h; sourceTree = "<group>"; };
- 7FEED45616B1A7C500B056CB /* StyleManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = StyleManager.m; path = src/common/StyleManager.m; sourceTree = "<group>"; };
- 8D15AC360486D014006FF6A4 /* TikZiT-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "TikZiT-Info.plist"; sourceTree = "<group>"; };
- 8D15AC370486D014006FF6A4 /* TikZiT.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TikZiT.app; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5589AA6311C5429C0064D310 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 55CA98DD12EF910F008F0368 /* SFBInspectors.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 8D15AC330486D014006FF6A4 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */,
- 559EFA4811C7D49800D020F4 /* Sparkle.framework in Frameworks */,
- 5573B8BA11D9FC8D00B5DC5D /* Quartz.framework in Frameworks */,
- 55CA98D512EF8FCE008F0368 /* SFBInspectors.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1058C7A6FEA54F5311CA2CBB /* Linked Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */,
- 55FF4E64116A401B000C22B4 /* libicucore.dylib */,
- 559EFA4711C7D49800D020F4 /* Sparkle.framework */,
- 55CA98D412EF8FCE008F0368 /* SFBInspectors.framework */,
- );
- name = "Linked Frameworks";
- sourceTree = "<group>";
- };
- 1058C7A8FEA54F5311CA2CBB /* Other Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2A37F4C4FDCFA73011CA2CEA /* AppKit.framework */,
- 13E42FBA07B3F13500E4EEF1 /* CoreData.framework */,
- 2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */,
- 5573B8B911D9FC8D00B5DC5D /* Quartz.framework */,
- );
- name = "Other Frameworks";
- sourceTree = "<group>";
- };
- 19C28FB0FE9D524F11CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 8D15AC370486D014006FF6A4 /* TikZiT.app */,
- 5504C83711D237F5002A1478 /* tests */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 2A37F4AAFDCFA73011CA2CEA /* TikZiT */ = {
- isa = PBXGroup;
- children = (
- 2A37F4ABFDCFA73011CA2CEA /* TikZiT */,
- 2A37F4AFFDCFA73011CA2CEA /* Other Sources */,
- 2A37F4B8FDCFA73011CA2CEA /* Resources */,
- 2A37F4C3FDCFA73011CA2CEA /* Frameworks */,
- 19C28FB0FE9D524F11CA2CBB /* Products */,
- );
- name = TikZiT;
- sourceTree = "<group>";
- };
- 2A37F4ABFDCFA73011CA2CEA /* TikZiT */ = {
- isa = PBXGroup;
- children = (
- 5504C82611D23477002A1478 /* Test */,
- 55D946141165924F0044178C /* Graph */,
- 55D946071165922F0044178C /* Parser */,
- 55D9467311659F5E0044178C /* Gui */,
- 558F18D9117B043B009863B2 /* AppDelegate.h */,
- 558F18DA117B043B009863B2 /* AppDelegate.m */,
- 55F9E04311FF54F000F5659E /* NSString+LatexConstants.h */,
- 55F9E04411FF54F000F5659E /* NSString+LatexConstants.m */,
- );
- name = TikZiT;
- sourceTree = "<group>";
- };
- 2A37F4AFFDCFA73011CA2CEA /* Other Sources */ = {
- isa = PBXGroup;
- children = (
- 55CA9AC712F831E5008F0368 /* RColor.h */,
- 55CA9AC812F831E5008F0368 /* RColor.m */,
- 558F18CB117B03DD009863B2 /* main.m */,
- 558F18CC117B03DD009863B2 /* util.h */,
- 558F18CD117B03DD009863B2 /* util.m */,
- 2564AD2C0F5327BB00F57823 /* TikZiT_Prefix.pch */,
- 55652DF713E1F2030023F4C6 /* SupportDir.h */,
- 55652DF813E1F2030023F4C6 /* SupportDir.m */,
- );
- name = "Other Sources";
- sourceTree = "<group>";
- };
- 2A37F4B8FDCFA73011CA2CEA /* Resources */ = {
- isa = PBXGroup;
- children = (
- 55397C8E1449AC7C006942FB /* AH_latex_head.png */,
- 55397C8F1449AC7C006942FB /* AH_plain_head.png */,
- 55397C8C1449ABFC006942FB /* AH_latex_tail.png */,
- 55397C871449AB91006942FB /* AH_none.png */,
- 55397C881449AB91006942FB /* AH_plain_tail.png */,
- 55397C841449A9BF006942FB /* ED_none.png */,
- 55397C821449A8F1006942FB /* ED_tick.png */,
- 55397C801449A877006942FB /* ED_arrow.png */,
- 7F93852C184D175400FAED38 /* Icons */,
- 55652E5013E1FC660023F4C6 /* shapes */,
- 55900AE2135FB305002DD28E /* emblem-unreadable-grey.png */,
- 55E5E99D1215C8E300256F69 /* transform-crop-and-resize.png */,
- 5573B98711DA377C00B5DC5D /* text-x-script.png */,
- 8D15AC360486D014006FF6A4 /* TikZiT-Info.plist */,
- 7F90E88F16DD54440069EBCD /* UserDefaults.plist */,
- 089C165FFE840EACC02AAC07 /* InfoPlist.strings */,
- 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */,
- 55D949111165D8870044178C /* draw-ellipse.png */,
- 55D949121165D8870044178C /* draw-path.png */,
- 555B30F811D8BE3300CAECF5 /* emblem-important.png */,
- 5573B92411DA273400B5DC5D /* format-indent-less.png */,
- 55D949131165D8870044178C /* select-rectangular.png */,
- 5573B92011DA259C00B5DC5D /* text-x-generic.png */,
- 559EFA5611C7D95F00D020F4 /* tikzit_dsa_pub.pem */,
- 55D945701165904F0044178C /* tikzitdoc.icns */,
- 55D945711165904F0044178C /* tikzit.icns */,
- 7F90E88C16DD47540069EBCD /* Preferences.xib */,
- 7FD5D44918E1CB5300E2A930 /* CustomNodes.xib */,
- 7F18A322184C599100BC3081 /* UpdatePreferencePanel.xib */,
- 55391AF713D3250F007DBE71 /* Preamble.xib */,
- 55391AF513D324FE007DBE71 /* Preview.xib */,
- 55391B0013D32608007DBE71 /* PropertyInspector.xib */,
- 556979421168747B007E5703 /* StylePalette.xib */,
- 1DDD58280DA1D0D100B32029 /* TikzDocument.xib */,
- 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 2A37F4C3FDCFA73011CA2CEA /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1058C7A6FEA54F5311CA2CBB /* Linked Frameworks */,
- 1058C7A8FEA54F5311CA2CBB /* Other Frameworks */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 5504C82611D23477002A1478 /* Test */ = {
- isa = PBXGroup;
- children = (
- 555B313411D8C6DA00CAECF5 /* color.m */,
- 5504C93E11D39422002A1478 /* osx.m */,
- 5504C82A11D23595002A1478 /* common.m */,
- 5504C83111D23685002A1478 /* main.m */,
- 5504C82B11D23595002A1478 /* parser.m */,
- 5504C82C11D23595002A1478 /* test.h */,
- 5504C82D11D23595002A1478 /* test.m */,
- 7F6E2C8716B0091300BFE20D /* maths.m */,
- );
- name = Test;
- sourceTree = "<group>";
- };
- 55391B0713D326E5007DBE71 /* PropertyInspector */ = {
- isa = PBXGroup;
- children = (
- 552202C2135F15FD007EA086 /* MultiField.h */,
- 552202C3135F15FD007EA086 /* MultiField.m */,
- 55900A9F135FA918002DD28E /* MultiCombo.h */,
- 55900AA0135FA918002DD28E /* MultiCombo.m */,
- 55391B0813D32765007DBE71 /* PropertyInspectorController.h */,
- 55391B0913D32765007DBE71 /* PropertyInspectorController.m */,
- );
- name = PropertyInspector;
- sourceTree = "<group>";
- };
- 55652E5013E1FC660023F4C6 /* shapes */ = {
- isa = PBXGroup;
- children = (
- 55652E5113E1FC660023F4C6 /* cap.tikz */,
- 55652E5213E1FC660023F4C6 /* copants.tikz */,
- 55652E5313E1FC660023F4C6 /* cup.tikz */,
- 55652E5413E1FC660023F4C6 /* oval.tikz */,
- 55652E5513E1FC660023F4C6 /* pants.tikz */,
- );
- path = shapes;
- sourceTree = "<group>";
- };
- 5573B8BF11D9FD1800B5DC5D /* Preview */ = {
- isa = PBXGroup;
- children = (
- 7F734388184AC559002897D0 /* DraggablePDFView.h */,
- 7F734389184AC559002897D0 /* DraggablePDFView.m */,
- 5573B8C011D9FD3200B5DC5D /* PreviewController.h */,
- 5573B8C111D9FD3200B5DC5D /* PreviewController.m */,
- );
- name = Preview;
- sourceTree = "<group>";
- };
- 5573B90C11DA22E500B5DC5D /* Preamble */ = {
- isa = PBXGroup;
- children = (
- 5573B92711DA292F00B5DC5D /* Preambles.h */,
- 5573B92811DA292F00B5DC5D /* Preambles.m */,
- 5573BDC911DB4D2600B5DC5D /* Preambles+Coder.h */,
- 5573BDCA11DB4D2600B5DC5D /* Preambles+Coder.m */,
- );
- name = Preamble;
- sourceTree = "<group>";
- };
- 55900AFC13605498002DD28E /* Shapes */ = {
- isa = PBXGroup;
- children = (
- 55598E331635372E0023450A /* DiamondShape.h */,
- 55598E341635372E0023450A /* DiamondShape.m */,
- 55652E3F13E1FB0A0023F4C6 /* Shape.h */,
- 55652E4013E1FB0A0023F4C6 /* Shape.m */,
- 55652E3313E1FAED0023F4C6 /* CircleShape.h */,
- 55652E3413E1FAED0023F4C6 /* CircleShape.m */,
- 55652E3513E1FAED0023F4C6 /* RectangleShape.h */,
- 55652E3613E1FAED0023F4C6 /* RectangleShape.m */,
- 55652E3713E1FAED0023F4C6 /* RegularPolyShape.h */,
- 55652E3813E1FAED0023F4C6 /* RegularPolyShape.m */,
- 55652E3913E1FAEE0023F4C6 /* TikzShape.h */,
- 55652E3A13E1FAEE0023F4C6 /* TikzShape.m */,
- 555ECF361379E9F80052DB71 /* ShapeNames.h */,
- );
- name = Shapes;
- sourceTree = "<group>";
- };
- 55D946071165922F0044178C /* Parser */ = {
- isa = PBXGroup;
- children = (
- 7F7B6DE218DE0BE1004F6CA8 /* Generated sources */,
- 5589A9AA11C500060064D310 /* tikzlexer.lm */,
- 5589A9AB11C500060064D310 /* tikzparser.ym */,
- 5589A9FD11C51E780064D310 /* TikzGraphAssembler.h */,
- 5589A9FE11C51E780064D310 /* TikzGraphAssembler.m */,
- );
- name = Parser;
- sourceTree = "<group>";
- };
- 55D946141165924F0044178C /* Graph */ = {
- isa = PBXGroup;
- children = (
- 55432E041444BF2D00401BB3 /* GraphElementProperty.h */,
- 55432E051444BF2D00401BB3 /* GraphElementProperty.m */,
- 559EFB6611CB88E300D020F4 /* ColorRGB.h */,
- 559EFB6711CB88E300D020F4 /* ColorRGB.m */,
- 558F18B9117B031C009863B2 /* Edge.h */,
- 558F18BA117B031C009863B2 /* Edge.m */,
- 558F18BB117B031C009863B2 /* Graph.h */,
- 558F18BC117B031C009863B2 /* Graph.m */,
- 55D2E0B01186ED950060B4EC /* Graph+Coder.h */,
- 55D2E0B11186ED950060B4EC /* Graph+Coder.m */,
- 558F18BD117B031C009863B2 /* GraphChange.h */,
- 558F18BE117B031C009863B2 /* GraphChange.m */,
- 7FEED45516B1A7C400B056CB /* StyleManager.h */,
- 7FEED45616B1A7C500B056CB /* StyleManager.m */,
- 558F18BF117B031C009863B2 /* GraphElementData.h */,
- 558F18C0117B031C009863B2 /* GraphElementData.m */,
- 558F18C1117B031C009863B2 /* Node.h */,
- 558F18C2117B031C009863B2 /* Node.m */,
- 7F90E88416DD29600069EBCD /* NSString+Tikz.h */,
- 7F90E88516DD29600069EBCD /* NSString+Tikz.m */,
- 558F18C3117B031C009863B2 /* NodeStyle.h */,
- 558F18C4117B031C009863B2 /* NodeStyle.m */,
- 5585E5C0117F681800124513 /* NodeStyle+Coder.h */,
- 5585E5C1117F681800124513 /* NodeStyle+Coder.m */,
- 55397C7714498C21006942FB /* EdgeStyle.h */,
- 55397C7814498C22006942FB /* EdgeStyle.m */,
- 55397C7A144990EA006942FB /* EdgeStyle+Coder.h */,
- 55397C7B144990EA006942FB /* EdgeStyle+Coder.m */,
- 55397C7D144999C4006942FB /* PropertyHolder.h */,
- 55397C7E144999C4006942FB /* PropertyHolder.m */,
- );
- name = Graph;
- sourceTree = "<group>";
- };
- 55D9467311659F5E0044178C /* Gui */ = {
- isa = PBXGroup;
- children = (
- 7FB9BFE616B54BE300773146 /* Formatter */,
- 55D9468011659FD50044178C /* GraphicsView */,
- 5573B90C11DA22E500B5DC5D /* Preamble */,
- 5573B8BF11D9FD1800B5DC5D /* Preview */,
- 55391B0713D326E5007DBE71 /* PropertyInspector */,
- 55D9468D11659FF00044178C /* StylePalette */,
- 558F18EF117B043B009863B2 /* TikzDocument.h */,
- 7F781C1816B5DE1400239826 /* ParseErrorView.h */,
- 7F781C1916B5DE1400239826 /* ParseErrorView.m */,
- 558F18F0117B043B009863B2 /* TikzDocument.m */,
- 558F18F1117B043B009863B2 /* TikzSourceController.h */,
- 558F18F2117B043B009863B2 /* TikzSourceController.m */,
- 558F18F3117B043B009863B2 /* ToolPaletteController.h */,
- 558F18F4117B043B009863B2 /* ToolPaletteController.m */,
- 55CA997012F08281008F0368 /* TikzWindowController.h */,
- 55CA997112F08281008F0368 /* TikzWindowController.m */,
- 553A4C58144ED3D500AA6FAC /* NilToEmptyStringTransformer.h */,
- 553A4C59144ED3D500AA6FAC /* NilToEmptyStringTransformer.m */,
- 7F18A31E184C563800BC3081 /* Preferences */,
- );
- name = Gui;
- sourceTree = "<group>";
- };
- 55D9468011659FD50044178C /* GraphicsView */ = {
- isa = PBXGroup;
- children = (
- 55900AFC13605498002DD28E /* Shapes */,
- 558F18DD117B043B009863B2 /* EdgeControlLayer.h */,
- 558F18DE117B043B009863B2 /* EdgeControlLayer.m */,
- 558F18DF117B043B009863B2 /* GraphicsView.h */,
- 558F18E0117B043B009863B2 /* GraphicsView.m */,
- 558F18E1117B043B009863B2 /* Grid.h */,
- 558F18E2117B043B009863B2 /* Grid.m */,
- 558F18E3117B043B009863B2 /* NodeLayer.h */,
- 558F18E4117B043B009863B2 /* NodeLayer.m */,
- 558F18E5117B043B009863B2 /* NodeSelectionLayer.h */,
- 558F18E6117B043B009863B2 /* NodeSelectionLayer.m */,
- 55F958581181B09600F99434 /* PickSupport.h */,
- 55F958591181B09600F99434 /* PickSupport.m */,
- 55F9585A1181B09600F99434 /* Transformer.h */,
- 55F9585B1181B09600F99434 /* Transformer.m */,
- 5589AD4211C633EE0064D310 /* SelectBoxLayer.h */,
- 5589AD4311C633EE0064D310 /* SelectBoxLayer.m */,
- 555ECE991378A3AA0052DB71 /* CALayer+DrawLabel.h */,
- 555ECE9A1378A3AA0052DB71 /* CALayer+DrawLabel.m */,
- );
- name = GraphicsView;
- sourceTree = "<group>";
- };
- 55D9468D11659FF00044178C /* StylePalette */ = {
- isa = PBXGroup;
- children = (
- 558F18E9117B043B009863B2 /* SelectableCollectionViewItem.h */,
- 558F18EA117B043B009863B2 /* SelectableCollectionViewItem.m */,
- 558F18EB117B043B009863B2 /* SelectableNodeView.h */,
- 558F18EC117B043B009863B2 /* SelectableNodeView.m */,
- 558F18ED117B043B009863B2 /* StylePaletteController.h */,
- 558F18EE117B043B009863B2 /* StylePaletteController.m */,
- );
- name = StylePalette;
- sourceTree = "<group>";
- };
- 7F18A31E184C563800BC3081 /* Preferences */ = {
- isa = PBXGroup;
- children = (
- 7F7B6DEF18DE0D70004F6CA8 /* CustomNode */,
- 5573B90D11DA231A00B5DC5D /* PreambleController.h */,
- 5573B90E11DA231A00B5DC5D /* PreambleController.m */,
- 7F90E88A16DD47540069EBCD /* PreferenceController.h */,
- 7F90E88B16DD47540069EBCD /* PreferenceController.m */,
- 7F18A31F184C577000BC3081 /* UpdatePreferenceController.h */,
- 7F18A320184C577000BC3081 /* UpdatePreferenceController.m */,
- );
- name = Preferences;
- sourceTree = "<group>";
- };
- 7F7B6DE218DE0BE1004F6CA8 /* Generated sources */ = {
- isa = PBXGroup;
- children = (
- 7F7B6DE918DE0C9E004F6CA8 /* tikzlexer.h */,
- 7F7B6DEA18DE0C9E004F6CA8 /* tikzlexer.m */,
- 7F7B6DEB18DE0C9E004F6CA8 /* tikzparser.h */,
- 7F7B6DEC18DE0C9E004F6CA8 /* tikzparser.m */,
- );
- name = "Generated sources";
- sourceTree = "<group>";
- };
- 7F7B6DEF18DE0D70004F6CA8 /* CustomNode */ = {
- isa = PBXGroup;
- children = (
- 7F7B6DF018DE0D7A004F6CA8 /* CustomNodeCellView.h */,
- 7F7B6DF118DE0D7A004F6CA8 /* CustomNodeCellView.m */,
- 7F7B6DF218DE0D7A004F6CA8 /* CustomNodeController.h */,
- 7F7B6DF318DE0D7A004F6CA8 /* CustomNodeController.m */,
- );
- name = CustomNode;
- sourceTree = "<group>";
- };
- 7F93852C184D175400FAED38 /* Icons */ = {
- isa = PBXGroup;
- children = (
- 7F93852F184D178B00FAED38 /* engine.png */,
- 7F938531184D184700FAED38 /* preamble.png */,
- 7FD5D44C18E1CC0B00E2A930 /* customshape.png */,
- 7F93852D184D176E00FAED38 /* updates.png */,
- );
- name = Icons;
- sourceTree = "<group>";
- };
- 7FB9BFE616B54BE300773146 /* Formatter */ = {
- isa = PBXGroup;
- children = (
- 7FB9BFEC16B57C2E00773146 /* TikzFormatter.h */,
- 7FB9BFED16B57C2E00773146 /* TikzFormatter.m */,
- );
- name = Formatter;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5589AA6411C5429C0064D310 /* tests */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 5589AA8311C543240064D310 /* Build configuration list for PBXNativeTarget "tests" */;
- buildPhases = (
- 5589AA6211C5429C0064D310 /* Sources */,
- 5589AA6311C5429C0064D310 /* Frameworks */,
- 7F6E2C8B16B00A9200BFE20D /* CopyFiles */,
- );
- buildRules = (
- );
- dependencies = (
- 5504C91B11D36CD5002A1478 /* PBXTargetDependency */,
- );
- name = tests;
- productName = testparser;
- productReference = 5504C83711D237F5002A1478 /* tests */;
- productType = "com.apple.product-type.tool";
- };
- 8D15AC270486D014006FF6A4 /* TikZiT */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = C05733C708A9546B00998B17 /* Build configuration list for PBXNativeTarget "TikZiT" */;
- buildPhases = (
- 559EFA5511C7D4DD00D020F4 /* Copy Frameworks */,
- 8D15AC2B0486D014006FF6A4 /* Resources */,
- 55652E6613E1FD080023F4C6 /* Copy Shapes */,
- 7F7B6DE018DE02AC004F6CA8 /* Run Flex */,
- 7F7B6DE118DE0A6E004F6CA8 /* Run Bison */,
- 8D15AC300486D014006FF6A4 /* Sources */,
- 8D15AC330486D014006FF6A4 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = TikZiT;
- productInstallPath = "$(HOME)/Applications";
- productName = TikZiT;
- productReference = 8D15AC370486D014006FF6A4 /* TikZiT.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 2A37F4A9FDCFA73011CA2CEA /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0410;
- ORGANIZATIONNAME = "Aleks Kissinger";
- };
- buildConfigurationList = C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "TikZiT" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- );
- mainGroup = 2A37F4AAFDCFA73011CA2CEA /* TikZiT */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 8D15AC270486D014006FF6A4 /* TikZiT */,
- 5589AA6411C5429C0064D310 /* tests */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 8D15AC2B0486D014006FF6A4 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
- 8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */,
- 7F938532184D184700FAED38 /* preamble.png in Resources */,
- 1DDD582C0DA1D0D100B32029 /* TikzDocument.xib in Resources */,
- 7F938530184D178B00FAED38 /* engine.png in Resources */,
- 1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */,
- 7FD5D44D18E1CC0B00E2A930 /* customshape.png in Resources */,
- 55D945721165904F0044178C /* tikzitdoc.icns in Resources */,
- 55D945731165904F0044178C /* tikzit.icns in Resources */,
- 556979431168747B007E5703 /* StylePalette.xib in Resources */,
- 55D949141165D8870044178C /* draw-ellipse.png in Resources */,
- 55D949151165D8870044178C /* draw-path.png in Resources */,
- 55D949161165D8870044178C /* select-rectangular.png in Resources */,
- 559EFA5711C7D95F00D020F4 /* tikzit_dsa_pub.pem in Resources */,
- 7F93852E184D176E00FAED38 /* updates.png in Resources */,
- 555B30F911D8BE3300CAECF5 /* emblem-important.png in Resources */,
- 55391AF613D324FE007DBE71 /* Preview.xib in Resources */,
- 55391AF813D3250F007DBE71 /* Preamble.xib in Resources */,
- 5573B92111DA259C00B5DC5D /* text-x-generic.png in Resources */,
- 5573B92511DA273400B5DC5D /* format-indent-less.png in Resources */,
- 5573B98811DA377C00B5DC5D /* text-x-script.png in Resources */,
- 55E5E99E1215C8E300256F69 /* transform-crop-and-resize.png in Resources */,
- 55900AE3135FB305002DD28E /* emblem-unreadable-grey.png in Resources */,
- 55391B0213D32608007DBE71 /* PropertyInspector.xib in Resources */,
- 55397C811449A877006942FB /* ED_arrow.png in Resources */,
- 55397C831449A8F1006942FB /* ED_tick.png in Resources */,
- 55397C851449A9BF006942FB /* ED_none.png in Resources */,
- 55397C8A1449AB91006942FB /* AH_none.png in Resources */,
- 55397C8B1449AB91006942FB /* AH_plain_tail.png in Resources */,
- 55397C8D1449ABFC006942FB /* AH_latex_tail.png in Resources */,
- 7FD5D44B18E1CB5300E2A930 /* CustomNodes.xib in Resources */,
- 55397C901449AC7C006942FB /* AH_latex_head.png in Resources */,
- 55397C911449AC7C006942FB /* AH_plain_head.png in Resources */,
- 7F18A323184C599100BC3081 /* UpdatePreferencePanel.xib in Resources */,
- 7F90E88E16DD47540069EBCD /* Preferences.xib in Resources */,
- 7F90E89116DD54440069EBCD /* UserDefaults.plist in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 7F7B6DE018DE02AC004F6CA8 /* Run Flex */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "$(SRCROOT)/src/common/tikzlexer.lm",
- );
- name = "Run Flex";
- outputPaths = (
- "$(DERIVED_SOURCES_DIR)/tikzlexer.m",
- "$(DERIVED_SOURCES_DIR)/tikzlexer.h",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "cd ${SRCROOT}/src/\nexport INPUT_FILE_BASE=`basename \"${SCRIPT_INPUT_FILE_0}\" .lm`\nflex -o common/${INPUT_FILE_BASE}.m common/${INPUT_FILE_BASE}.lm\nmv common/${INPUT_FILE_BASE}.m common/${INPUT_FILE_BASE}.h ${DERIVED_SOURCES_DIR}\n";
- };
- 7F7B6DE118DE0A6E004F6CA8 /* Run Bison */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "$(SRCROOT)/src/common/tikzparser.ym",
- );
- name = "Run Bison";
- outputPaths = (
- "$(DERIVED_SOURCES_DIR)/tikzparser.m",
- "$(DERIVED_SOURCES_DIR)/tikzparser.h",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "cd ${SRCROOT}/src/\nexport INPUT_FILE_BASE=`basename \"${SCRIPT_INPUT_FILE_0}\" .ym`\nbison --defines=common/${INPUT_FILE_BASE}.h --output=common/${INPUT_FILE_BASE}.m common/${INPUT_FILE_BASE}.ym\nmv common/${INPUT_FILE_BASE}.m common/${INPUT_FILE_BASE}.h ${DERIVED_SOURCES_DIR}";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5589AA6211C5429C0064D310 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5504C84F11D23945002A1478 /* ColorRGB.m in Sources */,
- 5589AA8511C543500064D310 /* util.m in Sources */,
- 5589AA7211C542E60064D310 /* Edge.m in Sources */,
- 5589AA7611C542E60064D310 /* Graph.m in Sources */,
- 5589AA7811C542E60064D310 /* GraphChange.m in Sources */,
- 5589AA7A11C542E60064D310 /* GraphElementData.m in Sources */,
- 5589AA7C11C542E60064D310 /* Node.m in Sources */,
- 5589AA8011C542E60064D310 /* NodeStyle.m in Sources */,
- 5589AA6C11C542D30064D310 /* TikzGraphAssembler.m in Sources */,
- 5589AA6D11C542D30064D310 /* tikzlexer.lm in Sources */,
- 7F6E2C8216B008B000BFE20D /* DiamondShape.m in Sources */,
- 7F6E2C8316B008B000BFE20D /* CircleShape.m in Sources */,
- 7F6E2C8A16B0096000BFE20D /* SupportDir.m in Sources */,
- 7F6E2C8416B008B000BFE20D /* RectangleShape.m in Sources */,
- 7F6E2C8516B008B000BFE20D /* RegularPolyShape.m in Sources */,
- 7F6E2C8616B008B000BFE20D /* TikzShape.m in Sources */,
- 7F6E2C8016B0083300BFE20D /* Shape.m in Sources */,
- 7F6E2C8116B0084600BFE20D /* Transformer.m in Sources */,
- 5589AA6E11C542D30064D310 /* tikzparser.ym in Sources */,
- 5504C82E11D23595002A1478 /* common.m in Sources */,
- 5504C82F11D23595002A1478 /* parser.m in Sources */,
- 5504C83011D23595002A1478 /* test.m in Sources */,
- 7F6E2C7F16B0081D00BFE20D /* PropertyHolder.m in Sources */,
- 5504C83211D23685002A1478 /* main.m in Sources */,
- 5504C93F11D39422002A1478 /* osx.m in Sources */,
- 555B313511D8C6DA00CAECF5 /* color.m in Sources */,
- 7F6E2C7E16B0080400BFE20D /* GraphElementProperty.m in Sources */,
- 7F6E2C7D16B007F000BFE20D /* EdgeStyle.m in Sources */,
- 55CA9ACA12F831E5008F0368 /* RColor.m in Sources */,
- 552202C4135F15FD007EA086 /* MultiField.m in Sources */,
- 55900AA1135FA918002DD28E /* MultiCombo.m in Sources */,
- 7F6E2C8916B0091300BFE20D /* maths.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 8D15AC300486D014006FF6A4 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7F7B6DEE18DE0C9E004F6CA8 /* tikzparser.m in Sources */,
- 7F7B6DED18DE0C9E004F6CA8 /* tikzlexer.m in Sources */,
- 558F18C5117B031C009863B2 /* Edge.m in Sources */,
- 558F18C6117B031C009863B2 /* Graph.m in Sources */,
- 558F18C7117B031C009863B2 /* GraphChange.m in Sources */,
- 7F7B6DF418DE0D7A004F6CA8 /* CustomNodeCellView.m in Sources */,
- 558F18C8117B031C009863B2 /* GraphElementData.m in Sources */,
- 558F18C9117B031C009863B2 /* Node.m in Sources */,
- 558F18CA117B031C009863B2 /* NodeStyle.m in Sources */,
- 558F18CE117B03DD009863B2 /* main.m in Sources */,
- 558F18CF117B03DD009863B2 /* util.m in Sources */,
- 558F18F7117B043C009863B2 /* AppDelegate.m in Sources */,
- 558F18F9117B043C009863B2 /* EdgeControlLayer.m in Sources */,
- 558F18FA117B043C009863B2 /* GraphicsView.m in Sources */,
- 7F73438A184AC559002897D0 /* DraggablePDFView.m in Sources */,
- 558F18FB117B043C009863B2 /* Grid.m in Sources */,
- 558F18FC117B043C009863B2 /* NodeLayer.m in Sources */,
- 558F18FD117B043C009863B2 /* NodeSelectionLayer.m in Sources */,
- 558F18FF117B043C009863B2 /* SelectableCollectionViewItem.m in Sources */,
- 558F1900117B043C009863B2 /* SelectableNodeView.m in Sources */,
- 558F1901117B043C009863B2 /* StylePaletteController.m in Sources */,
- 558F1902117B043C009863B2 /* TikzDocument.m in Sources */,
- 558F1903117B043C009863B2 /* TikzSourceController.m in Sources */,
- 558F1904117B043C009863B2 /* ToolPaletteController.m in Sources */,
- 5585E5C2117F681800124513 /* NodeStyle+Coder.m in Sources */,
- 55F9585C1181B09600F99434 /* PickSupport.m in Sources */,
- 55F9585D1181B09600F99434 /* Transformer.m in Sources */,
- 55D2E0B21186ED950060B4EC /* Graph+Coder.m in Sources */,
- 5589A9FF11C51E780064D310 /* TikzGraphAssembler.m in Sources */,
- 7F7B6DF518DE0D7A004F6CA8 /* CustomNodeController.m in Sources */,
- 5589AD4411C633EE0064D310 /* SelectBoxLayer.m in Sources */,
- 559EFB6811CB88E300D020F4 /* ColorRGB.m in Sources */,
- 5573B8C211D9FD3200B5DC5D /* PreviewController.m in Sources */,
- 5573B90F11DA231A00B5DC5D /* PreambleController.m in Sources */,
- 5573B92911DA292F00B5DC5D /* Preambles.m in Sources */,
- 5573BDCB11DB4D2600B5DC5D /* Preambles+Coder.m in Sources */,
- 55F9E04511FF54F000F5659E /* NSString+LatexConstants.m in Sources */,
- 55CA997212F08281008F0368 /* TikzWindowController.m in Sources */,
- 55CA9AC912F831E5008F0368 /* RColor.m in Sources */,
- 552202C5135F15FD007EA086 /* MultiField.m in Sources */,
- 55900AA2135FA918002DD28E /* MultiCombo.m in Sources */,
- 555ECE9B1378A3AA0052DB71 /* CALayer+DrawLabel.m in Sources */,
- 55391B0A13D32765007DBE71 /* PropertyInspectorController.m in Sources */,
- 55652DF913E1F2030023F4C6 /* SupportDir.m in Sources */,
- 55652E3B13E1FAEE0023F4C6 /* CircleShape.m in Sources */,
- 55652E3C13E1FAEE0023F4C6 /* RectangleShape.m in Sources */,
- 55652E3D13E1FAEE0023F4C6 /* RegularPolyShape.m in Sources */,
- 55652E3E13E1FAEE0023F4C6 /* TikzShape.m in Sources */,
- 55652E4113E1FB0A0023F4C6 /* Shape.m in Sources */,
- 55432E061444BF2D00401BB3 /* GraphElementProperty.m in Sources */,
- 55397C7914498C22006942FB /* EdgeStyle.m in Sources */,
- 55397C7C144990EA006942FB /* EdgeStyle+Coder.m in Sources */,
- 55397C7F144999C4006942FB /* PropertyHolder.m in Sources */,
- 553A4C5A144ED3D500AA6FAC /* NilToEmptyStringTransformer.m in Sources */,
- 55598E351635372E0023450A /* DiamondShape.m in Sources */,
- 7FEED45716B1A7C500B056CB /* StyleManager.m in Sources */,
- 7FB9BFEE16B57C2E00773146 /* TikzFormatter.m in Sources */,
- 7F781C1A16B5DE1400239826 /* ParseErrorView.m in Sources */,
- 7F90E88616DD29600069EBCD /* NSString+Tikz.m in Sources */,
- 7F90E88D16DD47540069EBCD /* PreferenceController.m in Sources */,
- 7F18A321184C577000BC3081 /* UpdatePreferenceController.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 5504C91B11D36CD5002A1478 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = 8D15AC270486D014006FF6A4 /* TikZiT */;
- targetProxy = 5504C91A11D36CD5002A1478 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin PBXVariantGroup section */
- 089C165FFE840EACC02AAC07 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 089C1660FE840EACC02AAC07 /* English */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
- 1DDD58280DA1D0D100B32029 /* TikzDocument.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 1DDD58290DA1D0D100B32029 /* English */,
- );
- name = TikzDocument.xib;
- sourceTree = "<group>";
- };
- 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 1DDD582B0DA1D0D100B32029 /* English */,
- );
- name = MainMenu.xib;
- sourceTree = "<group>";
- };
- 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */ = {
- isa = PBXVariantGroup;
- children = (
- 2A37F4BAFDCFA73011CA2CEA /* English */,
- );
- name = Credits.rtf;
- sourceTree = "<group>";
- };
- 55391AF513D324FE007DBE71 /* Preview.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 5573B8BD11D9FCD400B5DC5D /* English */,
- );
- name = Preview.xib;
- sourceTree = "<group>";
- };
- 55391AF713D3250F007DBE71 /* Preamble.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 5573B91011DA233E00B5DC5D /* English */,
- );
- name = Preamble.xib;
- sourceTree = "<group>";
- };
- 55391B0013D32608007DBE71 /* PropertyInspector.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 55391B0113D32608007DBE71 /* English */,
- );
- name = PropertyInspector.xib;
- sourceTree = "<group>";
- };
- 556979421168747B007E5703 /* StylePalette.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 55D947301165A5D40044178C /* English */,
- );
- name = StylePalette.xib;
- sourceTree = "<group>";
- };
- 7F90E88F16DD54440069EBCD /* UserDefaults.plist */ = {
- isa = PBXVariantGroup;
- children = (
- 7F90E89016DD54440069EBCD /* English */,
- );
- name = UserDefaults.plist;
- sourceTree = "<group>";
- };
- 7FD5D44918E1CB5300E2A930 /* CustomNodes.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 7FD5D44A18E1CB5300E2A930 /* English */,
- );
- name = CustomNodes.xib;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 5589AA6711C5429E0064D310 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/Frameworks\"",
- );
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
- INSTALL_PATH = /usr/local/bin;
- OTHER_LDFLAGS = (
- "-framework",
- Foundation,
- "-framework",
- AppKit,
- );
- PRODUCT_NAME = tests;
- SDKROOT = macosx;
- };
- name = Debug;
- };
- 5589AA6811C5429E0064D310 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/Frameworks\"",
- );
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
- INSTALL_PATH = /usr/local/bin;
- OTHER_LDFLAGS = (
- "-framework",
- Foundation,
- "-framework",
- AppKit,
- );
- PRODUCT_NAME = tests;
- SDKROOT = macosx;
- ZERO_LINK = NO;
- };
- name = Release;
- };
- C05733C808A9546B00998B17 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_64_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- COMBINE_HIDPI_IMAGES = YES;
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)\"",
- "\"$(SRCROOT)/Frameworks\"",
- );
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = TikZiT_Prefix.pch;
- INFOPLIST_FILE = "TikZiT-Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
- MACOSX_DEPLOYMENT_TARGET = 10.7;
- PRODUCT_NAME = TikZiT;
- SDKROOT = macosx;
- };
- name = Debug;
- };
- C05733C908A9546B00998B17 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_64_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- COMBINE_HIDPI_IMAGES = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)\"",
- "\"$(SRCROOT)/Frameworks\"",
- );
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = TikZiT_Prefix.pch;
- INFOPLIST_FILE = "TikZiT-Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
- MACOSX_DEPLOYMENT_TARGET = 10.7;
- PRODUCT_NAME = TikZiT;
- SDKROOT = macosx;
- };
- name = Release;
- };
- C05733CC08A9546B00998B17 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.5;
- ONLY_ACTIVE_ARCH = YES;
- PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
- SDKROOT = macosx;
- SYMROOT = xbuild;
- USER_HEADER_SEARCH_PATHS = "src/osx src/common";
- VALID_ARCHS = "i386 x86_64";
- };
- name = Debug;
- };
- C05733CD08A9546B00998B17 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.5;
- ONLY_ACTIVE_ARCH = NO;
- PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
- SDKROOT = macosx;
- SYMROOT = xbuild;
- USER_HEADER_SEARCH_PATHS = "src/osx src/common";
- VALID_ARCHS = "i386 x86_64";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 5589AA8311C543240064D310 /* Build configuration list for PBXNativeTarget "tests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5589AA6711C5429E0064D310 /* Debug */,
- 5589AA6811C5429E0064D310 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- C05733C708A9546B00998B17 /* Build configuration list for PBXNativeTarget "TikZiT" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- C05733C808A9546B00998B17 /* Debug */,
- C05733C908A9546B00998B17 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "TikZiT" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- C05733CC08A9546B00998B17 /* Debug */,
- C05733CD08A9546B00998B17 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 2A37F4A9FDCFA73011CA2CEA /* Project object */;
-}
diff --git a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 82f3c48..0000000
--- a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "self:TikZiT.xcodeproj">
- </FileRef>
-</Workspace>
diff --git a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcshareddata/TikZiT.xccheckout b/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcshareddata/TikZiT.xccheckout
deleted file mode 100644
index c3ec4fe..0000000
--- a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcshareddata/TikZiT.xccheckout
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IDESourceControlProjectFavoriteDictionaryKey</key>
- <false/>
- <key>IDESourceControlProjectIdentifier</key>
- <string>26857C1F-E0FE-4FFB-BDAC-44158C649772</string>
- <key>IDESourceControlProjectOriginsDictionary</key>
- <dict>
- <key>F6FA2C351D428A0F1026539971510A626DEEFF59</key>
- <string>https://github.com/tikzit/tikzit.git</string>
- </dict>
- <key>IDESourceControlProjectRelativeInstallPathDictionary</key>
- <dict>
- <key>F6FA2C351D428A0F1026539971510A626DEEFF59</key>
- <string>TikZiT/</string>
- </dict>
- <key>IDESourceControlProjectURL</key>
- <string>https://github.com/tikzit/tikzit.git</string>
- <key>IDESourceControlProjectVersion</key>
- <integer>111</integer>
- <key>IDESourceControlProjectWCCIdentifier</key>
- <string>F6FA2C351D428A0F1026539971510A626DEEFF59</string>
- <key>IDESourceControlProjectWCConfigurations</key>
- <array>
- <dict>
- <key>IDESourceControlRepositoryExtensionIdentifierKey</key>
- <string>public.vcs.git</string>
- <key>IDESourceControlWCCIdentifierKey</key>
- <string>F6FA2C351D428A0F1026539971510A626DEEFF59</string>
- <key>IDESourceControlWCCName</key>
- <string>TikZiT</string>
- </dict>
- </array>
-</dict>
-</plist>
diff --git a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/UserInterfaceState.xcuserstate b/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/UserInterfaceState.xcuserstate
deleted file mode 100644
index 99a5997..0000000
--- a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/UserInterfaceState.xcuserstate
+++ /dev/null
@@ -1,24539 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>$archiver</key>
- <string>NSKeyedArchiver</string>
- <key>$objects</key>
- <array>
- <string>$null</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>3</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>4</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>5</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>6</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>194</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>441</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>533</integer>
- </dict>
- </array>
- </dict>
- <string>5D4A1A9F-B7F3-4B80-B1F2-42874F168C6C</string>
- <string>FCF6616B-37CA-49A5-B7DD-7EC65F973E7D</string>
- <string>E8D758DD-8E38-40E4-B712-F6B0919F77C9</string>
- <string>IDEWorkspaceDocument</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>7</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>8</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>9</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>10</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>11</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>12</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>13</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>14</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>15</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>192</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>193</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>7</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <string>IDEWorkspaceTabController_255C042C-F813-417B-AD8A-811609B9E1F2</string>
- <string>IDEWindowFrame</string>
- <string>IDEOrderedWorkspaceTabControllers</string>
- <string>IDEWindowInFullscreenMode</string>
- <string>IDEWorkspaceWindowControllerUniqueIdentifier</string>
- <string>IDEActiveWorkspaceTabController</string>
- <string>IDEWindowToolbarIsVisible</string>
- <string>IDEWindowTabBarIsVisible</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>16</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>17</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>18</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>19</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>20</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>21</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>22</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>23</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>24</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>27</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>40</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>78</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>87</integer>
- </dict>
- </array>
- </dict>
- <string>IDETabLabel</string>
- <string>IDEShowNavigator</string>
- <string>AssistantEditorsLayout</string>
- <string>IDEWorkspaceTabControllerUtilityAreaSplitView</string>
- <string>IDENavigatorArea</string>
- <string>IDEWorkspaceTabControllerDesignAreaSplitView</string>
- <string>IDEShowUtilities</string>
- <string>IDEEditorArea</string>
- <string>Graph.m</string>
- <false/>
- <integer>0</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>29</integer>
- </dict>
- </array>
- </dict>
- <string>DVTSplitViewItems</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>30</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>36</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>33</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>34</integer>
- </dict>
- </array>
- </dict>
- <string>DVTIdentifier</string>
- <string>DVTViewMagnitude</string>
- <string></string>
- <real>127</real>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSDictionary</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSDictionary</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>33</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>37</integer>
- </dict>
- </array>
- </dict>
- <real>473</real>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSMutableArray</string>
- <string>NSArray</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSMutableArray</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSMutableDictionary</string>
- <string>NSDictionary</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSMutableDictionary</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>41</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>42</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>42</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>43</integer>
- </dict>
- </array>
- </dict>
- <string>SelectedNavigator</string>
- <string>Xcode.IDEKit.Navigator.Structure</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>44</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>45</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>46</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>47</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>48</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>49</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>50</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>51</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>52</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>54</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>61</integer>
- </dict>
- </array>
- </dict>
- <string>IDEVisibleRect</string>
- <string>IDEUnsavedDocumentFilteringEnabled</string>
- <string>IDENavigatorExpandedItemsBeforeFilteringSet</string>
- <string>IDERecentDocumentFilteringEnabled</string>
- <string>IDESCMStatusFilteringEnabled</string>
- <string>IDESelectedObjects</string>
- <string>IDEExpandedItemsSet</string>
- <string>{{0, 0}, {0, 0}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>53</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSSet</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSSet</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>55</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- </array>
- </dict>
- <string>TikZiT</string>
- <string>TikZiT</string>
- <string>Graph</string>
- <string>Graph.m</string>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSArray</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSArray</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>53</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>62</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>63</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>65</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>66</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>68</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>72</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>73</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>75</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>76</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- </array>
- </dict>
- <string>Resources</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>67</integer>
- </dict>
- </array>
- </dict>
- <string>Parser</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>70</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>71</integer>
- </dict>
- </array>
- </dict>
- <string>Frameworks</string>
- <string>Linked Frameworks</string>
- <string>SFBInspectors.framework</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>74</integer>
- </dict>
- </array>
- </dict>
- <string>shapes</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>70</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>56</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>77</integer>
- </dict>
- </array>
- </dict>
- <string>Other Sources</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>79</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>80</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>82</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>84</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>20</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>81</integer>
- </dict>
- </array>
- </dict>
- <real>225</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>23</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>83</integer>
- </dict>
- </array>
- </dict>
- <real>815</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>85</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>86</integer>
- </dict>
- </array>
- </dict>
- <string>IDEUtilitiesArea</string>
- <real>260</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>88</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>89</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>90</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>91</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>92</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>93</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>94</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>95</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>96</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>116</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>156</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>183</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>191</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <string>layoutTree</string>
- <string>IDEEditorMode_Standard</string>
- <string>IDEEDitorArea_DebugArea</string>
- <string>IDEShowEditor</string>
- <string>EditorMode</string>
- <string>DebuggerSplitView</string>
- <string>DefaultPersistentRepresentations</string>
- <string>ShowDebuggerArea</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>115</integer>
- </dict>
- <key>geniusEditorContextNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>primaryEditorContextNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>97</integer>
- </dict>
- <key>rootLayoutTreeNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>112</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>114</integer>
- </dict>
- <key>children</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>contentType</key>
- <integer>1</integer>
- <key>documentArchivableRepresentation</key>
- <dict>
- <key>CF$UID</key>
- <integer>98</integer>
- </dict>
- <key>orientation</key>
- <integer>0</integer>
- <key>parent</key>
- <dict>
- <key>CF$UID</key>
- <integer>112</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>107</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>99</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>100</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <string>Xcode.IDENavigableItemDomain.WorkspaceStructure</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>101</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>103</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>104</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>105</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>IDEArchivableStringIndexPair</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>IDEArchivableStringIndexPair</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>106</integer>
- </dict>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>110</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>108</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Graph.m</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSMutableString</string>
- <string>NSString</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSMutableString</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>DVTDocumentLocation</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>DVTDocumentLocation</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>IDENavigableItemArchivableRepresentation</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>IDENavigableItemArchivableRepresentation</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>114</integer>
- </dict>
- <key>children</key>
- <dict>
- <key>CF$UID</key>
- <integer>113</integer>
- </dict>
- <key>contentType</key>
- <integer>0</integer>
- <key>documentArchivableRepresentation</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>orientation</key>
- <integer>0</integer>
- <key>parent</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>97</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>IDEWorkspaceTabControllerLayoutTreeNode</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>IDEWorkspaceTabControllerLayoutTreeNode</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>IDEWorkspaceTabControllerLayoutTree</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>IDEWorkspaceTabControllerLayoutTree</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>117</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>118</integer>
- </dict>
- </array>
- </dict>
- <string>EditorLayout_PersistentRepresentation</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>119</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>120</integer>
- </dict>
- </array>
- </dict>
- <string>Main</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>121</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>122</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>123</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>124</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>154</integer>
- </dict>
- </array>
- </dict>
- <string>EditorLayout_StateSavingStateDictionaries</string>
- <string>EditorLayout_Selected</string>
- <string>EditorLayout_Geometry</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>125</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>126</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>127</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>128</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>129</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>130</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>131</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>132</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>133</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>134</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>141</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>149</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>150</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>151</integer>
- </dict>
- </array>
- </dict>
- <string>FileDataType</string>
- <string>ArchivableRepresentation</string>
- <string>EditorState</string>
- <string>NavigableItemName</string>
- <string>DocumentNavigableItemName</string>
- <string>DocumentExtensionIdentifier</string>
- <string>DocumentURL</string>
- <string>public.objective-c-source</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>107</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>99</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>135</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>136</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>137</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>138</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>139</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>140</integer>
- </dict>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>146</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>147</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>148</integer>
- </dict>
- </array>
- </dict>
- <string>PrimaryDocumentTimestamp</string>
- <string>PrimaryDocumentVisibleCharacterRange</string>
- <string>HideAllIssues</string>
- <string>PrimaryDocumentSelectedCharacterRange</string>
- <real>381083683.77450001</real>
- <string>{18089, 1176}</string>
- <string>{19467, 0}</string>
- <string>-tikz</string>
- <string>Xcode.IDEKit.EditorDocument.SourceCode</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>152</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Graph.m</string>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSURL</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSURL</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>155</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {600, 600}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>157</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>158</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>159</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>160</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>161</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>162</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>164</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>166</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>168</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>176</integer>
- </dict>
- </array>
- </dict>
- <string>LayoutFocusMode</string>
- <string>console</string>
- <string>variables</string>
- <string>LayoutMode</string>
- <string>IDEDebugArea_SplitView</string>
- <string>IDEDebuggerAreaSplitView</string>
- <integer>1</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>165</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </array>
- </dict>
- <string>ConsoleFilterMode</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>167</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- </array>
- </dict>
- <string>VariablesViewSelectedScope</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>169</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>170</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>173</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>172</integer>
- </dict>
- </array>
- </dict>
- <string>VariablesView</string>
- <real>301</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>174</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>175</integer>
- </dict>
- </array>
- </dict>
- <string>ConsoleArea</string>
- <real>298</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>177</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>178</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>180</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>179</integer>
- </dict>
- </array>
- </dict>
- <real>301</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>174</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>181</integer>
- </dict>
- </array>
- </dict>
- <real>298</real>
- <true/>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>184</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>185</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>188</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>186</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>187</integer>
- </dict>
- </array>
- </dict>
- <string>IDEEditor</string>
- <real>203</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>189</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>190</integer>
- </dict>
- </array>
- </dict>
- <string>IDEDebuggerArea</string>
- <real>115</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <string>{{264, 446}, {600, 624}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>7</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>8</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>9</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>195</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>10</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>196</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>12</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>13</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>14</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>197</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>198</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>199</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>3</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>195</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <string>IDEWorkspaceTabController_9038AF6D-AD9C-4682-ADF8-6CB1A302CFE7</string>
- <string>IDEWorkspaceWindowControllerUniqueIdentifier</string>
- <string>{{447, 347}, {1300, 786}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>195</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>18</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>17</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>16</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>19</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>20</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>21</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>22</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>23</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>200</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>201</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>207</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>281</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>289</integer>
- </dict>
- </array>
- </dict>
- <string>Graph.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>202</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>203</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>205</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>33</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>204</integer>
- </dict>
- </array>
- </dict>
- <real>403</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>33</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>206</integer>
- </dict>
- </array>
- </dict>
- <real>307</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>208</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>41</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>209</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>210</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>211</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>42</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>212</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>213</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>42</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>224</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>241</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>247</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>258</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>273</integer>
- </dict>
- </array>
- </dict>
- <string>Xcode.IDEKit.Navigator.Symbol</string>
- <string>Xcode.IDEKit.Navigator.Issues</string>
- <string>Xcode.IDEKit.Navigator.Debug</string>
- <string>Xcode.IDEKit.Navigator.Breakpoints</string>
- <string>Xcode.IDEKit.Navigator.Logs</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>214</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>215</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>216</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>217</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>218</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>219</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>220</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>222</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>223</integer>
- </dict>
- </array>
- </dict>
- <string>IDESymbolNavigatorShowWorkspaceOnly</string>
- <string>IDESymbolNavigatorShowHierarchy</string>
- <string>IDESymbolNavigatorShowContainersOnly</string>
- <string>IDESymbolNavigatorShowClassesOnly</string>
- <string>IDESymbolNamePatternString</string>
- <string>IDESymbolNavigatorSelectedSymbols</string>
- <string>IDEExpandedItems</string>
- <string></string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>225</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>226</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>227</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>228</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>229</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>230</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>231</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>232</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>233</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>234</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>235</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>237</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>238</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>239</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>240</integer>
- </dict>
- </array>
- </dict>
- <string>IDEErrorFilteringEnabled</string>
- <string>IDEVisibleRect</string>
- <string>IDECollapsedFiles</string>
- <string>IDEExpandedIssues</string>
- <string>IDESelectedNavigables</string>
- <string>IDEShowsByType</string>
- <string>IDECollapsedTypes</string>
- <string>IDERecentFilteringEnabled</string>
- <string>IDECollapsedGroups</string>
- <string>{{0, 0}, {209, 644}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSMutableSet</string>
- <string>NSSet</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSMutableSet</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>242</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>243</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>244</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>245</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <string>IDEStackCompressionValue</string>
- <string>IDEThreadOrQueueMode</string>
- <string>IDEShowOnlyInterestingContent</string>
- <integer>2</integer>
- <integer>0</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>248</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>249</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>250</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>251</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>52</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>252</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>257</integer>
- </dict>
- </array>
- </dict>
- <string>IDECollapsedtemsSet</string>
- <string>IDEBreakpointNavigatorFilterOnEnabled</string>
- <string>IDESelectedObjects</string>
- <string>IDEVisibleRect</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>253</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>255</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>256</integer>
- </dict>
- </array>
- </dict>
- <string>TikZiT</string>
- <string>SelectableNodeView.m</string>
- <string>-setNodeStyle:</string>
- <string>{{0, 0}, {224, 686}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>44</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>45</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>46</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>47</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>48</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>49</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>50</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>259</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>52</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>260</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>263</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {209, 666}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>261</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- </array>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>53</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>264</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>265</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>266</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>267</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>268</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>269</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>270</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>271</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>272</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>67</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>70</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>71</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>74</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>77</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>70</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>274</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>275</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>276</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>277</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>278</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>279</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>280</integer>
- </dict>
- </array>
- </dict>
- <string>IDELogNavigatorExpandedItemsStateKey</string>
- <string>IDELogNavigatorSelectedObjectsStateKey</string>
- <string>IDELogNavigatorRecentFilterStateKey</string>
- <string>IDELogNavigatorVisibleRectStateKey</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <string>{{0, 0}, {464, 738}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>282</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>283</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>285</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>287</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>20</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>284</integer>
- </dict>
- </array>
- </dict>
- <real>225</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>23</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>286</integer>
- </dict>
- </array>
- </dict>
- <real>815</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>85</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>288</integer>
- </dict>
- </array>
- </dict>
- <real>260</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>95</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>89</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>90</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>91</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>92</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>290</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>93</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>94</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>291</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>88</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>292</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>314</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>329</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>368</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>374</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>375</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>430</integer>
- </dict>
- </array>
- </dict>
- <string>IDEEditorMode_Version</string>
- <string>IDEEditorMode_Genius</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>117</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>293</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>119</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>294</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>121</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>122</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>123</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>295</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>312</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>296</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>126</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>127</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>128</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>129</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>130</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>131</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>132</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>133</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>297</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>306</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>149</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>150</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>310</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>305</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>298</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>299</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <string>Xcode.IDENavigableItemDomain.WorkspaceStructure</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>300</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>301</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>302</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>303</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>304</integer>
- </dict>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>110</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>108</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>307</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>308</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>309</integer>
- </dict>
- </array>
- </dict>
- <real>381083686.29558802</real>
- <string>{18344, 1251}</string>
- <string>{19467, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>311</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Graph.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>313</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {815, 588}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>157</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>158</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>161</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>160</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>162</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>159</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>315</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>316</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>322</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>328</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>165</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>317</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>318</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>320</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>319</integer>
- </dict>
- </array>
- </dict>
- <real>389</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>174</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>321</integer>
- </dict>
- </array>
- </dict>
- <real>425</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>323</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>324</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>326</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>325</integer>
- </dict>
- </array>
- </dict>
- <real>389</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>174</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>327</integer>
- </dict>
- </array>
- </dict>
- <real>425</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>167</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>330</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>331</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>332</integer>
- </dict>
- </array>
- </dict>
- <string>VersionsEditorSubmode</string>
- <string>EditorLayout_PersistentRepresentation</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>333</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>334</integer>
- </dict>
- </array>
- </dict>
- <string>Main</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>335</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>336</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>337</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>338</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>366</integer>
- </dict>
- </array>
- </dict>
- <string>EditorLayout_StateSavingStateDictionaries</string>
- <string>EditorLayout_Selected</string>
- <string>EditorLayout_Geometry</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>339</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>340</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>341</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>342</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>343</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>344</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>345</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>346</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>347</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>348</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>356</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>351</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>351</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>363</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>364</integer>
- </dict>
- </array>
- </dict>
- <string>FileDataType</string>
- <string>ArchivableRepresentation</string>
- <string>EditorState</string>
- <string>NavigableItemName</string>
- <string>DocumentNavigableItemName</string>
- <string>DocumentExtensionIdentifier</string>
- <string>DocumentURL</string>
- <string>com.apple.xml-property-list</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>354</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>298</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>349</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>350</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>352</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>353</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>351</integer>
- </dict>
- </dict>
- <string>TikZiT-Info.plist</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>110</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>355</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT-Info.plist</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>361</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>362</integer>
- </dict>
- </array>
- </dict>
- <string>PrimaryDocumentSelectedCharacterRange</string>
- <string>PrimaryDocumentVisibleCharacterRange</string>
- <string>PrimaryDocumentTimestamp</string>
- <string>{0, 0}</string>
- <string>{0, 1053}</string>
- <real>348502952.18491101</real>
- <string>Xcode.IDEKit.EditorDocument.SourceCode-from-Plist</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>365</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT-Info.plist</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>367</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {815, 602}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>369</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>370</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>372</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>186</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>371</integer>
- </dict>
- </array>
- </dict>
- <real>610</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>189</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>373</integer>
- </dict>
- </array>
- </dict>
- <real>100</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>376</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>331</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>377</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>378</integer>
- </dict>
- </array>
- </dict>
- <string>SplitPosition</string>
- <real>0.4993864893913269</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>379</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>333</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>380</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>409</integer>
- </dict>
- </array>
- </dict>
- <string>Alternate</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>335</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>336</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>337</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>381</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>407</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>382</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>340</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>341</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>342</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>343</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>344</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>345</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>346</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>383</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>384</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>399</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>387</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>387</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>404</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>405</integer>
- </dict>
- </array>
- </dict>
- <string>public.c-header</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>397</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>385</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>386</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>388</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>390</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>391</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>394</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>387</integer>
- </dict>
- </dict>
- <string>Graph.h</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>389</integer>
- </dict>
- </dict>
- <string>Graph</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>392</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>393</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>298</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- </array>
- </dict>
- <string>manualDomainIdentifier</string>
- <string>navigableItem_name</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>395</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>396</integer>
- </dict>
- </array>
- </dict>
- <string>identifier</string>
- <string>Xcode.IDEKit.GeniusCategory.Manual</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>110</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>398</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Graph.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>401</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>402</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>403</integer>
- </dict>
- </array>
- </dict>
- <string>HideAllIssues</string>
- <real>348502936.56562501</real>
- <string>{1735, 943}</string>
- <string>{998, 0}</string>
- <string>Xcode.IDEKit.EditorDocument.SourceCode</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>406</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Graph.h</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>408</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {407, 602}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>335</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>336</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>337</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>410</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>429</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>411</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>340</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>341</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>342</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>343</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>344</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>345</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>346</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>347</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>412</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>419</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>351</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>351</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>427</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>428</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>417</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>298</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>413</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>414</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>415</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>416</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>351</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>110</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>418</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT-Info.plist</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>420</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>421</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>422</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>423</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>425</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>426</integer>
- </dict>
- </array>
- </dict>
- <string>IDE_PLIST_EDITOR_SELECTION_KEY</string>
- <string>IDE_PLIST_EDITOR_EXPANSION_KEY</string>
- <string>IDE_PLIST_EDITOR_VISIBLERECT_KEY</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>424</integer>
- </dict>
- </array>
- </dict>
- <string>CFBundleVersion</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <string>{{0, 0}, {407, 563}}</string>
- <string>Xcode.IDEKit.EditorDocument.PlistEditor</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>365</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>367</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>115</integer>
- </dict>
- <key>geniusEditorContextNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>primaryEditorContextNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>431</integer>
- </dict>
- <key>rootLayoutTreeNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>439</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>114</integer>
- </dict>
- <key>children</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>contentType</key>
- <integer>1</integer>
- <key>documentArchivableRepresentation</key>
- <dict>
- <key>CF$UID</key>
- <integer>432</integer>
- </dict>
- <key>orientation</key>
- <integer>0</integer>
- <key>parent</key>
- <dict>
- <key>CF$UID</key>
- <integer>439</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>305</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>298</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>433</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>434</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>435</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>436</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>437</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>59</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>58</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>438</integer>
- </dict>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>114</integer>
- </dict>
- <key>children</key>
- <dict>
- <key>CF$UID</key>
- <integer>440</integer>
- </dict>
- <key>contentType</key>
- <integer>0</integer>
- <key>documentArchivableRepresentation</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>orientation</key>
- <integer>0</integer>
- <key>parent</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>431</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>8</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>9</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>442</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>10</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>11</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>12</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>13</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>14</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>443</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>444</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>445</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>4</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>442</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <string>IDEWorkspaceTabController_5BA15B20-6E8C-4183-8118-E8E43B2873EF</string>
- <string>{{264, 446}, {600, 624}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>442</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>16</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>17</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>18</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>19</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>20</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>21</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>22</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>23</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>446</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>447</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>453</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>469</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>477</integer>
- </dict>
- </array>
- </dict>
- <string>tikzparser.ym</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>448</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>449</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>451</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>33</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>450</integer>
- </dict>
- </array>
- </dict>
- <real>127</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>33</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>452</integer>
- </dict>
- </array>
- </dict>
- <real>473</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>41</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>42</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>42</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>454</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>44</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>45</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>46</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>47</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>48</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>49</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>50</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>455</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>52</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>456</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>460</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {0, 0}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>457</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>67</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>459</integer>
- </dict>
- </array>
- </dict>
- <string>TikZiT</string>
- <string>tikzparser.ym</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>53</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>461</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>462</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>463</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>464</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>465</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>466</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>467</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>468</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>67</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>77</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>70</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>70</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>71</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>69</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>64</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>74</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>470</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>471</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>473</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>475</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>20</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>472</integer>
- </dict>
- </array>
- </dict>
- <real>225</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>23</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>474</integer>
- </dict>
- </array>
- </dict>
- <real>815</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>85</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>476</integer>
- </dict>
- </array>
- </dict>
- <real>260</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>88</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>89</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>90</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>91</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>92</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>93</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>94</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>95</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>478</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>511</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>526</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>532</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>115</integer>
- </dict>
- <key>geniusEditorContextNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>primaryEditorContextNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>479</integer>
- </dict>
- <key>rootLayoutTreeNode</key>
- <dict>
- <key>CF$UID</key>
- <integer>489</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>114</integer>
- </dict>
- <key>children</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>contentType</key>
- <integer>1</integer>
- <key>documentArchivableRepresentation</key>
- <dict>
- <key>CF$UID</key>
- <integer>480</integer>
- </dict>
- <key>orientation</key>
- <integer>0</integer>
- <key>parent</key>
- <dict>
- <key>CF$UID</key>
- <integer>489</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>487</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>99</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>481</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>482</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>483</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>484</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>485</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>459</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>67</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>486</integer>
- </dict>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>110</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>488</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/tikzparser.ym</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>114</integer>
- </dict>
- <key>children</key>
- <dict>
- <key>CF$UID</key>
- <integer>490</integer>
- </dict>
- <key>contentType</key>
- <integer>0</integer>
- <key>documentArchivableRepresentation</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>orientation</key>
- <integer>0</integer>
- <key>parent</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>479</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>117</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>492</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>119</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>493</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>121</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>122</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>123</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>494</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>509</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>495</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>126</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>127</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>128</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>129</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>130</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>131</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>132</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>496</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>497</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>504</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>459</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>459</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>150</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>507</integer>
- </dict>
- </array>
- </dict>
- <string>public.yacc-source</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>111</integer>
- </dict>
- <key>DocumentLocation</key>
- <dict>
- <key>CF$UID</key>
- <integer>487</integer>
- </dict>
- <key>DomainIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>99</integer>
- </dict>
- <key>IdentifierPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>498</integer>
- </dict>
- <key>IndexOfDocumentIdentifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>499</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>500</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>501</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>502</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>459</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>67</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>102</integer>
- </dict>
- <key>Identifier</key>
- <dict>
- <key>CF$UID</key>
- <integer>503</integer>
- </dict>
- </dict>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>505</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>506</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>381079264.11013299</real>
- <string>{1063, 652}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>508</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/tikzparser.ym</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>510</integer>
- </dict>
- </array>
- </dict>
- <string>{{0, 0}, {600, 600}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>157</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>158</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>159</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>160</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>161</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>162</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>512</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>513</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>514</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>520</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>165</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>167</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>515</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>516</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>518</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>517</integer>
- </dict>
- </array>
- </dict>
- <real>301</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>174</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>519</integer>
- </dict>
- </array>
- </dict>
- <real>298</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>521</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>522</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>524</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>523</integer>
- </dict>
- </array>
- </dict>
- <real>301</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>174</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>525</integer>
- </dict>
- </array>
- </dict>
- <real>298</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>28</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>527</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>528</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>530</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>186</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>529</integer>
- </dict>
- </array>
- </dict>
- <real>203</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>31</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>32</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>189</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>531</integer>
- </dict>
- </array>
- </dict>
- <real>115</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>534</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>535</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>536</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>537</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>538</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>539</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>540</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>541</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>542</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>543</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>544</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>545</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1624</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1629</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1632</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1662</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1663</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1758</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- </array>
- </dict>
- <string>BreakpointsActivated</string>
- <string>DefaultEditorStatesForURLs</string>
- <string>DebuggingWindowBehavior</string>
- <string>ActiveRunDestination</string>
- <string>ActiveScheme</string>
- <string>LastCompletedPersistentSchemeBasedActivityReport</string>
- <string>DocumentWindows</string>
- <string>DefaultEditorFrameSizeForURLs</string>
- <string>RecentEditorDocumentURLs</string>
- <string>AppFocusInMiniDebugging</string>
- <string>MiniDebuggingConsole</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>546</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>427</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>547</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>404</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>548</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>549</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>363</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>550</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>551</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>552</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>576</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>596</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>713</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1449</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1466</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1472</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1475</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1585</integer>
- </dict>
- </array>
- </dict>
- <string>IDEQuickLookEditor.Editor</string>
- <string>Xcode.IDEKit.CocoaIntegration.EditorDocument.Cocoa</string>
- <string>Xcode.IDEKit.EditorDocument.SourceCodeComparisonEditor</string>
- <string>Xcode.IDEKit.EditorDocument.SourceCode-from-NIB</string>
- <string>Xcode.Xcode3ProjectSupport.EditorDocument.Xcode3Project</string>
- <string>Xcode.IDEKit.EditorDocument.LogDocument</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>553</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>555</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>557</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>559</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>566</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>571</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>554</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/AH_latex_tail</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>556</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/AH_latex_head.png</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>558</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/ED_none.png</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>561</integer>
- </dict>
- </array>
- </dict>
- <string>SelectedDocumentLocations</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>562</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>565</integer>
- </dict>
- <key>IDEQuickLookPageNumber</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>563</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>564</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/AH_latex_tail</string>
- <real>340372422.96159899</real>
- <dict>
- <key>$classes</key>
- <array>
- <string>IDEQuickLookDocumentLocation</string>
- <string>DVTDocumentLocation</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>IDEQuickLookDocumentLocation</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>567</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>568</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>565</integer>
- </dict>
- <key>IDEQuickLookPageNumber</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>569</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>570</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/AH_latex_head.png</string>
- <real>340372923.18815899</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>572</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>573</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>565</integer>
- </dict>
- <key>IDEQuickLookPageNumber</key>
- <dict>
- <key>CF$UID</key>
- <integer>26</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>574</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>575</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/ED_none.png</string>
- <real>340371928.114389</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>577</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>579</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>581</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>583</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>587</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>592</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>578</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/TikZiT-Info.plist</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>580</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT-Info.plist</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>582</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/TikZiT-Info.plist</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>420</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>421</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>422</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>584</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>585</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>586</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <string>{{0, 0}, {743, 502}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>420</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>422</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>421</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>588</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>590</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>591</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>589</integer>
- </dict>
- </array>
- </dict>
- <string>CFBundleIconFile</string>
- <string>{{0, 0}, {815, 552}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>420</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>421</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>422</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>593</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>594</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>595</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>589</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>236</integer>
- </dict>
- <key>NS.objects</key>
- <array/>
- </dict>
- <string>{{0, 0}, {815, 550}}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>597</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>599</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>601</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>603</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>605</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>607</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>609</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>611</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>613</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>615</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>617</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>638</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>650</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>657</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>668</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>677</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>685</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>693</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>699</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>705</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>598</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/PropertyInspector.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>600</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/StylePalette.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>602</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/English.lproj/PropertyInspector.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>604</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/English.lproj/StylePalette.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>606</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/TikzDocument.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>608</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/Preview.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>610</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/MainMenu.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>612</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/Preamble.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>614</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/English.lproj/MainMenu.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>616</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/English.lproj/Preamble.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>622</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>584</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>625</integer>
- </dict>
- </array>
- </dict>
- <string>IBDockViewController</string>
- <string>SelectedObjectIDs</string>
- <string>SelectionProvider</string>
- <string>IBCanvasViewController</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>624</integer>
- </dict>
- </array>
- </dict>
- <string>LastKnownOutlineViewWidth</string>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>628</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>637</integer>
- </dict>
- </array>
- </dict>
- <string>ObjectIDToLastKnownCanvasPositionMap</string>
- <string>EditedTopLevelObjectIDs</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>629</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>630</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>631</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>632</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>633</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>634</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>635</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>636</integer>
- </dict>
- </array>
- </dict>
- <integer>301</integer>
- <integer>185</integer>
- <integer>461</integer>
- <integer>361</integer>
- <string>{46, 13}</string>
- <string>{46, 189}</string>
- <string>{318, 118}</string>
- <string>{46, 385}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>629</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>632</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>630</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>631</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>639</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>641</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>643</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>644</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>640</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>642</integer>
- </dict>
- </array>
- </dict>
- <integer>-2</integer>
- <string>IBStructureViewController</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>645</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>646</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>647</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>648</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>649</integer>
- </dict>
- </array>
- </dict>
- <integer>3</integer>
- <integer>649</integer>
- <integer>181</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>651</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>653</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>654</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>652</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>631</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>655</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>656</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>631</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>658</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>584</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>660</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>659</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>661</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>667</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>647</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>649</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>662</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>648</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>663</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>664</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>665</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>666</integer>
- </dict>
- </array>
- </dict>
- <integer>524</integer>
- <string>{306, -2}</string>
- <string>{71, 17}</string>
- <string>{118, 105}</string>
- <string>{71, 359}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>648</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>647</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>649</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>669</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>671</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>643</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>673</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>670</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>672</integer>
- </dict>
- </array>
- </dict>
- <integer>100024</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>674</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>675</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>676</integer>
- </dict>
- </array>
- </dict>
- <integer>5</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>678</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>680</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>682</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>679</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>681</integer>
- </dict>
- </array>
- </dict>
- <integer>11</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>683</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>684</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>686</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>584</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>688</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>687</integer>
- </dict>
- </array>
- </dict>
- <real>200</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>689</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>690</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>691</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>692</integer>
- </dict>
- </array>
- </dict>
- <integer>535</integer>
- <integer>29</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>694</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>584</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>696</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>695</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>697</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>698</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>700</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>584</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>702</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>701</integer>
- </dict>
- </array>
- </dict>
- <real>224</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>703</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>704</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>692</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>618</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>619</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>620</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>706</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>708</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>621</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>710</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>623</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>707</integer>
- </dict>
- </array>
- </dict>
- <real>200</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>709</integer>
- </dict>
- </array>
- </dict>
- <integer>27</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>626</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>627</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>711</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>712</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>647</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>714</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>716</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>718</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>720</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>722</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>724</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>726</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>728</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>730</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>732</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>734</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>736</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>738</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>740</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>742</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>744</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>746</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>748</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>750</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>752</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>754</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>756</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>758</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>760</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>762</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>764</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>766</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>768</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>770</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>772</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>774</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>776</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>778</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>780</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>782</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>784</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>785</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>787</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>789</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>791</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>793</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>795</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>797</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>799</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>801</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>803</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>805</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>807</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>809</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>811</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>813</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>815</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>817</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>819</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>821</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>823</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>825</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>827</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>829</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>831</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>833</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>835</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>837</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>839</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>841</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>843</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>845</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>847</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>849</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>851</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>853</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>855</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>857</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>859</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>861</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>863</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>865</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>867</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>869</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>871</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>873</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>875</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>877</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>879</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>881</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>883</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>885</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>887</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>889</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>891</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>893</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>895</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>897</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>899</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>901</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>903</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>905</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>907</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>908</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>910</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>912</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>914</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>916</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>918</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>920</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>922</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>924</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>926</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>928</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>930</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>932</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>934</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>936</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>938</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>940</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>942</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>944</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>946</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>948</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>950</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>952</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>954</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>956</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>958</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>960</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>962</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>964</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>966</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>968</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>972</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>976</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>980</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>984</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>988</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>992</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>996</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1000</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1003</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1007</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1011</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1015</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1019</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1022</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1025</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1029</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1033</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1037</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1041</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1045</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1049</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1053</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1057</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1061</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1065</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1069</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1073</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1077</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1081</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1085</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1089</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1093</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1097</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1101</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1105</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1109</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1113</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1117</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1120</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1124</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1128</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1132</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1136</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1140</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1147</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1151</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1155</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1158</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1162</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1165</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1168</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1171</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1175</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1178</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1181</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1185</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1189</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1193</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1197</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1200</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1204</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1208</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1212</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1215</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1218</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1225</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1229</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1233</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1236</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1239</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1243</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1247</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1251</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1254</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1257</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1261</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1264</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1268</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1272</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1276</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1280</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1284</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1288</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1292</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1296</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1300</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1304</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1308</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1312</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1316</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1320</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1324</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1327</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1330</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1334</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1338</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1342</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1346</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1350</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1354</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1362</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1366</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1370</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1373</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1376</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1380</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1384</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1388</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1392</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1396</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1404</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1408</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1412</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1415</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1418</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1421</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1425</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1429</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1432</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1436</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1439</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1443</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1446</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>715</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/GraphicsView.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>717</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/GraphicsView.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>719</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/Grid.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>721</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/osx/Grid.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>723</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/SelectBoxLayer.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>725</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/TikzSourceController.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>727</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/EdgeControlLayer.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>729</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Edge.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>731</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Edge.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>733</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/EdgeStyle+Coder.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>735</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/TikzShape.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>737</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/BasicMapTable.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>739</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/GraphChange.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>741</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/-%5BNSWindowController%20window%5D_disassembly_0x00007fff93905981.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>743</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/_objc_empty_vtable_disassembly_0x00007fff760e2f60.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>745</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/SupportDir.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>747</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/AppDelegate.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>749</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/PickSupport.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>751</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeLayer.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>753</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/PropertyInspectorController.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>755</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/TikzDocument.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>757</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/EdgeStyle.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>759</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/EdgeStyle.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>761</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/NodeStyle.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>763</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/NSString+UnicharUtilities.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>765</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/Grid.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>767</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/DiffMatchPatch.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>769</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/CALayer+DrawLabel.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>771</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/NSString+UnicharUtilities.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>773</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/GraphDiff.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>775</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/contrib/DiffMatchPatch/NSString+DiffMatchPatchUtils.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>777</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Graph.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>779</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/EdgeStyle.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>781</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/EdgeStyle.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>783</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Graph.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>108</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>786</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/SelectableNodeView.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>788</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/StylePaletteController.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>790</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/PreviewController.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>792</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Transformer.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>794</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>796</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/DiffMatchPatchCFUtilities.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>798</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/GraphChange.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>800</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/GraphChange.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>802</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/-%5BNSObject%20performSelector:%5D_disassembly_0x00007fff8ce162e1.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>804</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/DiffMatchPatchCFUtilities.c</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>806</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/PreambleController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>808</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/PreambleController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>810</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/CGContextAddPath_disassembly_0x00007fff910e972e.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>812</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/contrib/DiffMatchPatch/NSString+DiffMatchPatchUtils.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>814</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/-%5BNSCustomView%20nibInstantiateWithObjectInstantiator:%5D_disassembly_0x00007fff96b86f29.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>816</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/COPYING.DiffMatchPatch</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>818</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/__cxa_throw_disassembly_0x00007fff933e00e9.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>820</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/AppDelegate.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>822</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/AppDelegate.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>824</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/SelectBoxLayer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>826</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/PropertyHolder.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>828</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/DiffMatchPatch.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>830</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/NSString+JavaSubstring.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>832</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Transformer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>834</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Node.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>836</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/EdgeStyle+Coder.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>838</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/NSMutableDictionary+DMPExtensions.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>840</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/GraphElementProperty.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>842</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/Graph+Coder.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>844</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/test/test.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>846</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/SelectableNodeView.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>848</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Headers/CGColor.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>850</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NilToEmptyStringTransformer.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>852</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeSelectionLayer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>854</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/auto_fatal_disassembly_0x00007fff894d9f6f.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>856</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/GraphElementData.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>858</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/TikzWindowController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>860</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/objc/TestDiff/contrib/DiffMatchPatch/NSString+UriCompatibility.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>862</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/NodeStyle.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>864</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/CABackingStoreUpdate__disassembly_0x00007fff8d778b05.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>866</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/test/common.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>868</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/test/main.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>870</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/main.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>872</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/scratch/SFBInspectors/SFBInspectorView.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>874</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/ToolPaletteController.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>876</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/GraphicsView.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>878</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/GraphicsView.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>880</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/osx/GraphicsView.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>882</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT-Info.plist</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>884</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/TikzGraphAssembler.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>886</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/SelectableCollectionViewItem.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>888</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/SelectableCollectionViewItem.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>890</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/TikzSourceController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>892</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Node.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>894</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/tikzlexer.lm</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>896</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/PickSupport.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>898</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/PickSupport.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>900</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NilToEmptyStringTransformer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>902</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/CFRelease_disassembly_0x00007fff8cc2b07b.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>904</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/GraphElementData.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>906</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeStyle+Coder.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>488</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>909</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/EdgeControlLayer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>911</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeStyle+Coder.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>913</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Edge.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>915</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Edge.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>917</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Edge.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>919</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/TikzDocument.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>921</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/PropertyHolder.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>923</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/TikzGraphAssembler.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>925</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/StylePaletteController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>927</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/StylePaletteController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>929</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/TikzGraphAssembler.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>931</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/PropertyInspectorController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>933</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/PropertyInspectorController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>935</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/PreviewController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>937</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/PreviewController.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>939</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Graph.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>941</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Graph.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>943</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/Graph+Coder.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>945</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/util.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>947</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/-%5BNSCollectionView%20newItemForRepresentedObject:%5D_disassembly_0x00007fff8fa0a94e.s</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>949</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Shape.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>951</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/common/Shape.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>953</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFString.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>955</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/TikzWindowController.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>957</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/GraphDiff.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>959</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeSelectionLayer.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>961</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/GraphElementProperty.h</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>963</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeLayer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>965</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/NodeLayer.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>967</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/ColorRGB.m</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>969</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>970</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>971</integer>
- </dict>
- </array>
- </dict>
- <real>345762860.65236199</real>
- <string>{2200, 1151}</string>
- <string>{2909, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>973</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>974</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>975</integer>
- </dict>
- </array>
- </dict>
- <real>348421987.42822403</real>
- <string>{2200, 1157}</string>
- <string>{3223, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>977</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>978</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>979</integer>
- </dict>
- </array>
- </dict>
- <real>345403783.61108297</real>
- <string>{842, 693}</string>
- <string>{1356, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>981</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>982</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>983</integer>
- </dict>
- </array>
- </dict>
- <real>380738928.58536297</real>
- <string>{2001, 1508}</string>
- <string>{2090, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>985</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>986</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>987</integer>
- </dict>
- </array>
- </dict>
- <real>345416623.559434</real>
- <string>{0, 379}</string>
- <string>{276, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>989</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>990</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>991</integer>
- </dict>
- </array>
- </dict>
- <real>345403324.869367</real>
- <string>{881, 944}</string>
- <string>{1433, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>993</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>994</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>995</integer>
- </dict>
- </array>
- </dict>
- <real>345571191.17329699</real>
- <string>{104, 1058}</string>
- <string>{1155, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>997</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>998</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>999</integer>
- </dict>
- </array>
- </dict>
- <real>345403538.85177398</real>
- <string>{943, 1136}</string>
- <string>{9769, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1001</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1002</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348682214.50559098</real>
- <string>{1692, 820}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1004</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1005</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1006</integer>
- </dict>
- </array>
- </dict>
- <real>340459449.14873803</real>
- <string>{0, 953}</string>
- <string>{898, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1008</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1009</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1010</integer>
- </dict>
- </array>
- </dict>
- <real>345404849.21465802</real>
- <string>{1684, 1007}</string>
- <string>{2065, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1012</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1013</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1014</integer>
- </dict>
- </array>
- </dict>
- <real>345994252.86864501</real>
- <string>{1109, 746}</string>
- <string>{790, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1016</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1017</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1018</integer>
- </dict>
- </array>
- </dict>
- <real>340625465.61212498</real>
- <string>{6290, 1393}</string>
- <string>{7112, 58}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1020</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1021</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348348273.15865397</real>
- <string>{0, 2528}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1023</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1024</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345409605.10440803</real>
- <string>{0, 2496}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1026</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1027</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1028</integer>
- </dict>
- </array>
- </dict>
- <real>348328967.72804999</real>
- <string>{831, 996}</string>
- <string>{1464, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1030</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1031</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1032</integer>
- </dict>
- </array>
- </dict>
- <real>345487190.58582902</real>
- <string>{592, 1437}</string>
- <string>{1769, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1034</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1035</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1036</integer>
- </dict>
- </array>
- </dict>
- <real>348348232.74814701</real>
- <string>{2312, 1269}</string>
- <string>{3305, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1038</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1039</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1040</integer>
- </dict>
- </array>
- </dict>
- <real>345416712.81625599</real>
- <string>{812, 967}</string>
- <string>{1608, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1042</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1043</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1044</integer>
- </dict>
- </array>
- </dict>
- <real>345404437.01901197</real>
- <string>{960, 1373}</string>
- <string>{1257, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1046</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1047</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1048</integer>
- </dict>
- </array>
- </dict>
- <real>340624392.15628898</real>
- <string>{0, 1080}</string>
- <string>{928, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1050</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1051</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1052</integer>
- </dict>
- </array>
- </dict>
- <real>340473820.49560201</real>
- <string>{1062, 1380}</string>
- <string>{19, 768}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1054</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1055</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1056</integer>
- </dict>
- </array>
- </dict>
- <real>348682101.30419898</real>
- <string>{0, 1156}</string>
- <string>{811, 26}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1058</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1059</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1060</integer>
- </dict>
- </array>
- </dict>
- <real>345763213.21294802</real>
- <string>{1210, 686}</string>
- <string>{1261, 115}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1062</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1063</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1064</integer>
- </dict>
- </array>
- </dict>
- <real>340632134.97458899</real>
- <string>{30, 1204}</string>
- <string>{902, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1066</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1067</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1068</integer>
- </dict>
- </array>
- </dict>
- <real>340501555.21261299</real>
- <string>{97, 1322}</string>
- <string>{976, 23}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1070</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1071</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1072</integer>
- </dict>
- </array>
- </dict>
- <real>340631784.15413302</real>
- <string>{4723, 1844}</string>
- <string>{5843, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1074</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1075</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1076</integer>
- </dict>
- </array>
- </dict>
- <real>340706474.47886401</real>
- <string>{298, 1417}</string>
- <string>{624, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1078</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1079</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1080</integer>
- </dict>
- </array>
- </dict>
- <real>340631841.98603201</real>
- <string>{0, 968}</string>
- <string>{841, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1082</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1083</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1084</integer>
- </dict>
- </array>
- </dict>
- <real>340622423.14766902</real>
- <string>{0, 1050}</string>
- <string>{947, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1086</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1087</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1088</integer>
- </dict>
- </array>
- </dict>
- <real>340631322.39264601</real>
- <string>{52, 1607}</string>
- <string>{270, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1090</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1091</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1092</integer>
- </dict>
- </array>
- </dict>
- <real>340925457.76799399</real>
- <string>{2611, 845}</string>
- <string>{3012, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1094</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1095</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1096</integer>
- </dict>
- </array>
- </dict>
- <real>340410882.75886202</real>
- <string>{933, 1045}</string>
- <string>{1918, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1098</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1099</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1100</integer>
- </dict>
- </array>
- </dict>
- <real>348682102.890167</real>
- <string>{0, 1214}</string>
- <string>{964, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1102</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1103</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1104</integer>
- </dict>
- </array>
- </dict>
- <real>348502930.726179</real>
- <string>{13299, 942}</string>
- <string>{13697, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1106</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1107</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1108</integer>
- </dict>
- </array>
- </dict>
- <real>381083509.44221699</real>
- <string>{18344, 1253}</string>
- <string>{19467, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1110</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1111</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1112</integer>
- </dict>
- </array>
- </dict>
- <real>345488697.68925297</real>
- <string>{0, 1055}</string>
- <string>{907, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1114</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1115</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1116</integer>
- </dict>
- </array>
- </dict>
- <real>345487787.078866</real>
- <string>{403, 1549}</string>
- <string>{1655, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1118</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1119</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348489963.85380399</real>
- <string>{288, 1153}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1121</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1122</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1123</integer>
- </dict>
- </array>
- </dict>
- <real>340978354.92465001</real>
- <string>{969, 1145}</string>
- <string>{1174, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1125</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1126</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1127</integer>
- </dict>
- </array>
- </dict>
- <real>340709461.72300398</real>
- <string>{0, 1410}</string>
- <string>{369, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1129</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1130</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1131</integer>
- </dict>
- </array>
- </dict>
- <real>340632182.87597102</real>
- <string>{300, 1742}</string>
- <string>{1087, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1133</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1134</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1135</integer>
- </dict>
- </array>
- </dict>
- <real>340625462.37954402</real>
- <string>{2270, 728}</string>
- <string>{1004, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1137</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1138</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1139</integer>
- </dict>
- </array>
- </dict>
- <real>348419924.36261398</real>
- <string>{3536, 958}</string>
- <string>{353, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1141</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348347980.23595798</real>
- <string>{0, 1071}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1145</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1146</integer>
- </dict>
- </array>
- </dict>
- <real>340632849.17894697</real>
- <string>{0, 1631}</string>
- <string>{914, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1148</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1149</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1150</integer>
- </dict>
- </array>
- </dict>
- <real>345404279.50111699</real>
- <string>{1864, 1059}</string>
- <string>{2502, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1152</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1153</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1154</integer>
- </dict>
- </array>
- </dict>
- <real>348491190.94514698</real>
- <string>{3485, 1369}</string>
- <string>{4064, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1156</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1157</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340734505.19957298</real>
- <string>{0, 1949}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1159</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1160</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1161</integer>
- </dict>
- </array>
- </dict>
- <real>340630944.19481701</real>
- <string>{0, 254}</string>
- <string>{227, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1164</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340715007.520365</real>
- <string>{3185, 2419}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1166</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1167</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340634798.489407</real>
- <string>{0, 1840}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1169</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1170</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340645018.90256602</real>
- <string>{0, 1609}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1172</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1173</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1174</integer>
- </dict>
- </array>
- </dict>
- <real>345487388.13644803</real>
- <string>{912, 1366}</string>
- <string>{1795, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1176</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1177</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348348274.649975</real>
- <string>{784, 1230}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1179</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1180</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345416620.55954498</real>
- <string>{175, 713}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1182</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1183</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1184</integer>
- </dict>
- </array>
- </dict>
- <real>340588857.98394001</real>
- <string>{0, 1072}</string>
- <string>{24, 767}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1186</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1187</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1188</integer>
- </dict>
- </array>
- </dict>
- <real>340631785.03849697</real>
- <string>{28409, 1632}</string>
- <string>{29398, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1190</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1191</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1192</integer>
- </dict>
- </array>
- </dict>
- <real>340632146.36382198</real>
- <string>{0, 1162}</string>
- <string>{1153, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1194</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1195</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1196</integer>
- </dict>
- </array>
- </dict>
- <real>340978419.60591</real>
- <string>{392, 1123}</string>
- <string>{5521, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1198</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1199</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345763164.73803198</real>
- <string>{1306, 858}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1201</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1202</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1203</integer>
- </dict>
- </array>
- </dict>
- <real>340459404.56984299</real>
- <string>{0, 1634}</string>
- <string>{1293, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1205</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1206</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1207</integer>
- </dict>
- </array>
- </dict>
- <real>340632182.02007103</real>
- <string>{2123, 1102}</string>
- <string>{358, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1209</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1210</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1211</integer>
- </dict>
- </array>
- </dict>
- <real>345407440.14106703</real>
- <string>{980, 563}</string>
- <string>{1308, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1213</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1214</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345570963.43227798</real>
- <string>{0, 307}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1216</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1217</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348493987.74653798</real>
- <string>{1400, 772}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1219</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1220</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345762938.27138197</real>
- <string>{1967, 722}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1222</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1223</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1224</integer>
- </dict>
- </array>
- </dict>
- <real>340715018.37839699</real>
- <string>{732, 1720}</string>
- <string>{1614, 68}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1226</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1227</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1228</integer>
- </dict>
- </array>
- </dict>
- <real>340710896.240381</real>
- <string>{0, 907}</string>
- <string>{71, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1230</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1231</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1232</integer>
- </dict>
- </array>
- </dict>
- <real>340978941.82531101</real>
- <string>{1271, 874}</string>
- <string>{1724, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1234</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1235</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340743258.14034998</real>
- <string>{332, 2129}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1237</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1238</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345570916.35617101</real>
- <string>{1868, 787}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1240</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1241</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1242</integer>
- </dict>
- </array>
- </dict>
- <real>340624895.44772601</real>
- <string>{0, 956}</string>
- <string>{1590, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1244</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1245</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1246</integer>
- </dict>
- </array>
- </dict>
- <real>340632090.00535399</real>
- <string>{855, 1347}</string>
- <string>{2165, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1248</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1249</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1250</integer>
- </dict>
- </array>
- </dict>
- <real>345763208.75864798</real>
- <string>{2157, 874}</string>
- <string>{2538, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1252</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1253</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340734675.59256703</real>
- <string>{2612, 2357}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1255</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1256</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348493972.20554298</real>
- <string>{0, 948}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1258</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1259</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1260</integer>
- </dict>
- </array>
- </dict>
- <real>348494575.91981101</real>
- <string>{202, 1322}</string>
- <string>{1013, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1262</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1263</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340643026.22692502</real>
- <string>{0, 760}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1265</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1266</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1267</integer>
- </dict>
- </array>
- </dict>
- <real>345993841.814812</real>
- <string>{4603, 1030}</string>
- <string>{5559, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1269</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1270</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1271</integer>
- </dict>
- </array>
- </dict>
- <real>345403242.32928503</real>
- <string>{47, 1110}</string>
- <string>{798, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1273</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1274</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1275</integer>
- </dict>
- </array>
- </dict>
- <real>345994942.28171802</real>
- <string>{0, 1189}</string>
- <string>{176, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1277</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1278</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1279</integer>
- </dict>
- </array>
- </dict>
- <real>348769524.87817502</real>
- <string>{27280, 1795}</string>
- <string>{28593, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1281</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1282</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1283</integer>
- </dict>
- </array>
- </dict>
- <real>376240707.96911001</real>
- <string>{2531, 1228}</string>
- <string>{23808, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1285</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1286</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1287</integer>
- </dict>
- </array>
- </dict>
- <real>348605533.47624701</real>
- <string>{0, 1341}</string>
- <string>{605, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1289</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1290</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1291</integer>
- </dict>
- </array>
- </dict>
- <real>340567695.969051</real>
- <string>{0, 1207}</string>
- <string>{830, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1293</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1294</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1295</integer>
- </dict>
- </array>
- </dict>
- <real>345489807.49887401</real>
- <string>{0, 1229}</string>
- <string>{1146, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1297</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1298</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1299</integer>
- </dict>
- </array>
- </dict>
- <real>345489863.78087598</real>
- <string>{476, 1185}</string>
- <string>{1510, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1301</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1302</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1303</integer>
- </dict>
- </array>
- </dict>
- <real>345404020.64375901</real>
- <string>{4401, 1141}</string>
- <string>{5428, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1305</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1306</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1307</integer>
- </dict>
- </array>
- </dict>
- <real>345489170.70111698</real>
- <string>{709, 717}</string>
- <string>{1130, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1309</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1310</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1311</integer>
- </dict>
- </array>
- </dict>
- <real>381079266.26616299</real>
- <string>{1088, 2047}</string>
- <string>{2268, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1313</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1314</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1315</integer>
- </dict>
- </array>
- </dict>
- <real>340715684.42909598</real>
- <string>{3334, 813}</string>
- <string>{3831, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1317</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1318</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1319</integer>
- </dict>
- </array>
- </dict>
- <real>348348259.35793602</real>
- <string>{592, 833}</string>
- <string>{3224, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1321</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1322</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1323</integer>
- </dict>
- </array>
- </dict>
- <real>340710918.149167</real>
- <string>{413, 867}</string>
- <string>{1123, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1325</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1326</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340979058.26628602</real>
- <string>{0, 2158}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1328</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1329</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345763100.69483101</real>
- <string>{1412, 1093}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1331</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1332</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1333</integer>
- </dict>
- </array>
- </dict>
- <real>345401288.84783798</real>
- <string>{0, 1034}</string>
- <string>{948, 79}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1335</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1336</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1337</integer>
- </dict>
- </array>
- </dict>
- <real>381083143.218243</real>
- <string>{1711, 1286}</string>
- <string>{2266, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1339</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1340</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1341</integer>
- </dict>
- </array>
- </dict>
- <real>345571135.33805102</real>
- <string>{3644, 993}</string>
- <string>{4607, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1343</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1344</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1345</integer>
- </dict>
- </array>
- </dict>
- <real>345763340.54909998</real>
- <string>{1782, 1377}</string>
- <string>{1408, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1347</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1348</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1349</integer>
- </dict>
- </array>
- </dict>
- <real>345403635.98861599</real>
- <string>{9317, 1036}</string>
- <string>{9522, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1351</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1352</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1353</integer>
- </dict>
- </array>
- </dict>
- <real>348682251.432365</real>
- <string>{5303, 1025}</string>
- <string>{5439, 6}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1355</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1356</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1357</integer>
- </dict>
- </array>
- </dict>
- <real>381083685.054461</real>
- <string>{1472, 1140}</string>
- <string>{1127, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1361</integer>
- </dict>
- </array>
- </dict>
- <real>345403910.70446801</real>
- <string>{898, 1274}</string>
- <string>{1480, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1363</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1364</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1365</integer>
- </dict>
- </array>
- </dict>
- <real>340408281.394584</real>
- <string>{0, 1070}</string>
- <string>{818, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1367</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1368</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1369</integer>
- </dict>
- </array>
- </dict>
- <real>340567709.72924697</real>
- <string>{111, 1169}</string>
- <string>{2498, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1371</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1372</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345993841.44873297</real>
- <string>{6640, 969}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1374</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1375</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348492100.48254102</real>
- <string>{984, 1424}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>142</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>143</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>144</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>145</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1377</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1378</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1379</integer>
- </dict>
- </array>
- </dict>
- <real>381079265.50655103</real>
- <string>{0, 1180}</string>
- <string>{652, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1381</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1382</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1383</integer>
- </dict>
- </array>
- </dict>
- <real>345996220.58187401</real>
- <string>{4812, 1832}</string>
- <string>{5468, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1385</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1386</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1387</integer>
- </dict>
- </array>
- </dict>
- <real>348328941.80720401</real>
- <string>{4812, 1747}</string>
- <string>{5015, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1389</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1390</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1391</integer>
- </dict>
- </array>
- </dict>
- <real>345404215.00799</real>
- <string>{2896, 1165}</string>
- <string>{3929, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1393</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1394</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1395</integer>
- </dict>
- </array>
- </dict>
- <real>352300514.86549997</real>
- <string>{1565, 1736}</string>
- <string>{2412, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1397</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1398</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1399</integer>
- </dict>
- </array>
- </dict>
- <real>340724015.08366603</real>
- <string>{2833, 942}</string>
- <string>{6706, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1401</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1402</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1403</integer>
- </dict>
- </array>
- </dict>
- <real>348425521.71969801</real>
- <string>{5676, 932}</string>
- <string>{6233, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1405</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1406</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1407</integer>
- </dict>
- </array>
- </dict>
- <real>345570983.01814902</real>
- <string>{0, 528}</string>
- <string>{521, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1409</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1410</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1411</integer>
- </dict>
- </array>
- </dict>
- <real>340497412.20933402</real>
- <string>{1831, 988}</string>
- <string>{2427, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1413</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1414</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345407318.56900901</real>
- <string>{0, 2329}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1416</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1417</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345406868.72379202</real>
- <string>{2708, 1368}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1419</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1420</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348682639.65947402</real>
- <string>{2316, 1465}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1422</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1423</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1424</integer>
- </dict>
- </array>
- </dict>
- <real>340629051.56177503</real>
- <string>{10183, 1616}</string>
- <string>{10616, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1426</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1427</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1428</integer>
- </dict>
- </array>
- </dict>
- <real>345403358.18671203</real>
- <string>{0, 778}</string>
- <string>{177, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1430</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1431</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340628546.57123297</real>
- <string>{644, 1063}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1433</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1434</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1435</integer>
- </dict>
- </array>
- </dict>
- <real>345403253.67140001</real>
- <string>{106, 1057}</string>
- <string>{1029, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1437</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1438</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>345407415.72300202</real>
- <string>{798, 781}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1440</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1441</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1442</integer>
- </dict>
- </array>
- </dict>
- <real>345488818.74460101</real>
- <string>{35, 1246}</string>
- <string>{1367, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1444</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1445</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348682657.38014698</real>
- <string>{3283, 1343}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1447</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1448</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340411515.847987</real>
- <string>{0, 1981}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>948</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>787</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>924</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1450</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>950</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1452</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1456</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1458</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1461</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1464</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1451</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/TikZiT.xcodeproj/aleks.mode1v3</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1453</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1454</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1455</integer>
- </dict>
- </array>
- </dict>
- <real>340366198.37379301</real>
- <string>{1726, 1368}</string>
- <string>{1954, 0}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1457</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>340393968.41070002</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1459</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1460</integer>
- </dict>
- </array>
- </dict>
- <real>340394097.732535</real>
- <string>{4237, 1279}</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1462</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1463</integer>
- </dict>
- </array>
- </dict>
- <string>{0, 1026}</string>
- <real>340539479.94429201</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>400</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1465</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>25</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- </array>
- </dict>
- <real>348502939.40997303</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1467</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1469</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1468</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/var/folders/y0/_h88tzh153vdf2wysdw2tjjr0000gp/T/StylePalette-fPGoyqLn.xib</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1470</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1471</integer>
- </dict>
- </array>
- </dict>
- <string>{89564, 1173}</string>
- <real>340370036.79549003</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>881</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1473</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>357</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>358</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>359</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>360</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>361</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1474</integer>
- </dict>
- </array>
- </dict>
- <real>348502941.57143199</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1476</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1478</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1480</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1482</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1506</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1551</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1477</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/TikZiT.xcodeproj/</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1479</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/TikZiT.xcodeproj</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1481</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT.xcodeproj/</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1483</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1484</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1485</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1486</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1487</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1496</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1497</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1505</integer>
- </dict>
- </array>
- </dict>
- <string>Xcode3ProjectEditor.sourceList.splitview</string>
- <string>Xcode3ProjectEditorPreviousTargetEditorClass</string>
- <string>Xcode3ProjectEditorSelectedDocumentLocations</string>
- <string>Xcode3ProjectEditor_Xcode3TargetEditor</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1488</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1489</integer>
- </dict>
- </array>
- </dict>
- <string>DVTSplitViewItems</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1490</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1494</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1492</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1493</integer>
- </dict>
- </array>
- </dict>
- <string>DVTIdentifier</string>
- <string>DVTViewMagnitude</string>
- <real>170</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1492</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1495</integer>
- </dict>
- </array>
- </dict>
- <real>645</real>
- <string>Xcode3TargetEditor</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1498</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1504</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1499</integer>
- </dict>
- <key>selection</key>
- <dict>
- <key>CF$UID</key>
- <integer>1501</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>1500</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/TikZiT.xcodeproj/</string>
- <real>380738961.54778898</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1502</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1503</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1496</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- </array>
- </dict>
- <string>Editor</string>
- <string>Target</string>
- <dict>
- <key>$classes</key>
- <array>
- <string>Xcode3ProjectDocumentLocation</string>
- <string>DVTDocumentLocation</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>Xcode3ProjectDocumentLocation</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1507</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1483</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1484</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1485</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1508</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1509</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1510</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1509</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1516</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1550</integer>
- </dict>
- </array>
- </dict>
- <string>Xcode3ProjectEditorPreviousProjectEditorClass</string>
- <string>Xcode3ProjectEditor_Xcode3BuildSettingsEditor</string>
- <string>Xcode3BuildSettingsEditor</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1488</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1511</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1512</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1514</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1492</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1513</integer>
- </dict>
- </array>
- </dict>
- <real>170</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1492</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1515</integer>
- </dict>
- </array>
- </dict>
- <real>645</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1517</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1504</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1518</integer>
- </dict>
- <key>selection</key>
- <dict>
- <key>CF$UID</key>
- <integer>1520</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>1519</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/TikZiT.xcodeproj/</string>
- <real>345993840.88442099</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1521</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1502</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1522</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1509</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1523</integer>
- </dict>
- </array>
- </dict>
- <string>Project</string>
- <string>Xcode3BuildSettingsEditorLocations</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1524</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1525</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1526</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1527</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1528</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1529</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1530</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1531</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1548</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- </array>
- </dict>
- <string>Collapsed Build Property Categories</string>
- <string>Selected Build Properties</string>
- <string>Xcode3BuildSettingsEditorDisplayMode</string>
- <string>Xcode3BuildPropertyValueDisplayMode</string>
- <string>Xcode3BuildSettingsEditorMode</string>
- <string>Xcode3BuildPropertyNameDisplayMode</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1532</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1533</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1534</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1535</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1536</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1537</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1538</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1539</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1540</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1541</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1542</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1543</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1544</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1545</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1546</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1547</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||ARCHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||SDKROOT</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||VALID_ARCHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Build Locations||SYMROOT</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Build Options||PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Deployment||INSTALL_PATH</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Deployment||MACOSX_DEPLOYMENT_TARGET</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Deployment||STRIP_INSTALLED_PRODUCT</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Packaging||INFOPLIST_FILE</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Packaging||PRODUCT_NAME</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Search Paths||HEADER_SEARCH_PATHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Search Paths||USER_HEADER_SEARCH_PATHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Code Generation||GCC_ENABLE_OBJC_GC</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Language||GCC_C_LANGUAGE_STANDARD</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Warnings||GCC_WARN_ABOUT_RETURN_TYPE</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Warnings||GCC_WARN_UNUSED_VARIABLE</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1549</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Code Generation||GCC_ENABLE_OBJC_GC</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1507</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1483</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1484</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1485</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1508</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1509</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1552</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1509</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1558</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1584</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1488</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1553</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1554</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1556</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1492</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1555</integer>
- </dict>
- </array>
- </dict>
- <real>170</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1491</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1492</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>221</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1557</integer>
- </dict>
- </array>
- </dict>
- <real>645</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1559</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1504</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1560</integer>
- </dict>
- <key>selection</key>
- <dict>
- <key>CF$UID</key>
- <integer>1562</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>1561</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/TikZiT.xcodeproj/</string>
- <real>348348307.809012</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1521</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1502</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1522</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>254</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1509</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1563</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1564</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1530</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1526</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1527</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1528</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1529</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1525</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1565</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>246</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1567</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1566</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||VALID_ARCHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1568</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1569</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1570</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1571</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1572</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1573</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1574</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1575</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1576</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1577</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1578</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1579</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1580</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1581</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1582</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1583</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||ARCHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||SDKROOT</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Architectures||VALID_ARCHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Build Locations||SYMROOT</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Build Options||PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Deployment||INSTALL_PATH</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Deployment||MACOSX_DEPLOYMENT_TARGET</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Deployment||STRIP_INSTALLED_PRODUCT</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Packaging||INFOPLIST_FILE</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Packaging||PRODUCT_NAME</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Search Paths||HEADER_SEARCH_PATHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>Search Paths||USER_HEADER_SEARCH_PATHS</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Code Generation||GCC_ENABLE_OBJC_GC</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Language||GCC_C_LANGUAGE_STANDARD</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Warnings||GCC_WARN_ABOUT_RETURN_TYPE</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>109</integer>
- </dict>
- <key>NS.string</key>
- <string>LLVM GCC 4.2 - Warnings||GCC_WARN_UNUSED_VARIABLE</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array/>
- <key>NS.objects</key>
- <array/>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1586</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1588</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1590</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1592</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1594</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1596</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1604</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1609</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1614</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1619</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1587</integer>
- </dict>
- </dict>
- <string>x-xcode-log://93BF0A7E-9B8F-4127-9E53-6FD4359563C8</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1589</integer>
- </dict>
- </dict>
- <string>x-xcode-log://E16FA7B2-DE55-4431-89C7-43D8A6C6BE2B</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1591</integer>
- </dict>
- </dict>
- <string>x-xcode-log://541A0579-23A7-4735-AC53-0CA54C1CC926</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1593</integer>
- </dict>
- </dict>
- <string>x-xcode-log://4E6ECE08-C292-42A5-9EB8-F1D770002C74</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1595</integer>
- </dict>
- </dict>
- <string>x-xcode-log://56055AA1-9319-4181-AD73-7A2BA288B024</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1597</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1598</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1603</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1587</integer>
- </dict>
- <key>expandTranscript</key>
- <false/>
- <key>indexPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>1599</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1602</integer>
- </dict>
- <key>NSIndexPathData</key>
- <dict>
- <key>CF$UID</key>
- <integer>1600</integer>
- </dict>
- <key>NSIndexPathLength</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1601</integer>
- </dict>
- <key>NS.data</key>
- <data>
- AEc=
- </data>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSMutableData</string>
- <string>NSData</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSMutableData</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSIndexPath</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSIndexPath</string>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>IDELogDocumentLocation</string>
- <string>DVTDocumentLocation</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>IDELogDocumentLocation</string>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1605</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1606</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1603</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1589</integer>
- </dict>
- <key>expandTranscript</key>
- <false/>
- <key>indexPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>1607</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1602</integer>
- </dict>
- <key>NSIndexPathData</key>
- <dict>
- <key>CF$UID</key>
- <integer>1608</integer>
- </dict>
- <key>NSIndexPathLength</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1601</integer>
- </dict>
- <key>NS.data</key>
- <data>
- AEc=
- </data>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1610</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1611</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1603</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1591</integer>
- </dict>
- <key>expandTranscript</key>
- <false/>
- <key>indexPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>1612</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1602</integer>
- </dict>
- <key>NSIndexPathData</key>
- <dict>
- <key>CF$UID</key>
- <integer>1613</integer>
- </dict>
- <key>NSIndexPathLength</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1601</integer>
- </dict>
- <key>NS.data</key>
- <data>
- AEc=
- </data>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1615</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1616</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1603</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1593</integer>
- </dict>
- <key>expandTranscript</key>
- <false/>
- <key>indexPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>1617</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1602</integer>
- </dict>
- <key>NSIndexPathData</key>
- <dict>
- <key>CF$UID</key>
- <integer>1618</integer>
- </dict>
- <key>NSIndexPathLength</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1601</integer>
- </dict>
- <key>NS.data</key>
- <data>
- AEc=
- </data>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>560</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1620</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>60</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1621</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1603</integer>
- </dict>
- <key>documentURL</key>
- <dict>
- <key>CF$UID</key>
- <integer>1595</integer>
- </dict>
- <key>expandTranscript</key>
- <false/>
- <key>indexPath</key>
- <dict>
- <key>CF$UID</key>
- <integer>1622</integer>
- </dict>
- <key>timestamp</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1602</integer>
- </dict>
- <key>NSIndexPathData</key>
- <dict>
- <key>CF$UID</key>
- <integer>1623</integer>
- </dict>
- <key>NSIndexPathLength</key>
- <integer>2</integer>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1601</integer>
- </dict>
- <key>NS.data</key>
- <data>
- AEg=
- </data>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1625</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1626</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1627</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1628</integer>
- </dict>
- </array>
- </dict>
- <string>IDEDeviceLocation</string>
- <string>IDEDeviceArchitecture</string>
- <string>dvtdevice-local-computer:localhost</string>
- <string>i386</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1630</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1631</integer>
- </dict>
- </array>
- </dict>
- <string>IDENameString</string>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1633</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1634</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1635</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1636</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1661</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>57</integer>
- </dict>
- </array>
- </dict>
- <string>IDEActivityReportCompletionSummaryStringSegments</string>
- <string>IDEActivityReportOptions</string>
- <string>IDEActivityReportTitle</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1637</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1644</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1648</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1652</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1638</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1639</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1640</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1641</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1642</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1643</integer>
- </dict>
- </array>
- </dict>
- <string>IDEActivityReportStringSegmentPriority</string>
- <string>IDEActivityReportStringSegmentBackSeparator</string>
- <string>IDEActivityReportStringSegmentStringValue</string>
- <real>2</real>
- <string> </string>
- <string>Build</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1638</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1639</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1640</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1645</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1646</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1647</integer>
- </dict>
- </array>
- </dict>
- <real>4</real>
- <string>: </string>
- <string>TikZiT</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1638</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1639</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1640</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1649</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1650</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1651</integer>
- </dict>
- </array>
- </dict>
- <real>1</real>
- <string> │ </string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1601</integer>
- </dict>
- <key>NS.data</key>
- <data>
- YnBsaXN0MDDUAQIDBAUGOzxYJHZlcnNpb25YJG9iamVjdHNZJGFy
- Y2hpdmVyVCR0b3ASAAGGoK0HCA8QGhscJCUrMTQ3VSRudWxs0wkK
- CwwNDlxOU0F0dHJpYnV0ZXNWJGNsYXNzWE5TU3RyaW5ngAOADIAC
- WVN1Y2NlZWRlZNMKERITFBdXTlMua2V5c1pOUy5vYmplY3RzgAui
- FRaABIAFohgZgAaACVZOU0ZvbnRXTlNDb2xvctQKHR4fICEiI1ZO
- U05hbWVWTlNTaXplWE5TZkZsYWdzgAiAByNAJgAAAAAAABENEF8Q
- EUx1Y2lkYUdyYW5kZS1Cb2xk0iYnKClaJGNsYXNzbmFtZVgkY2xh
- c3Nlc1ZOU0ZvbnSiKCpYTlNPYmplY3TTCiwtLi8wXE5TQ29sb3JT
- cGFjZVdOU1doaXRlgAoQA0IwANImJzIzV05TQ29sb3KiMirSJic1
- NlxOU0RpY3Rpb25hcnmiNSrSJic4OV8QEk5TQXR0cmlidXRlZFN0
- cmluZ6I6Kl8QEk5TQXR0cmlidXRlZFN0cmluZ18QD05TS2V5ZWRB
- cmNoaXZlctE9PlRyb290gAEACAARABoAIwAtADIANwBFAEsAUgBf
- AGYAbwBxAHMAdQB/AIYAjgCZAJsAngCgAKIApQCnAKkAsAC4AMEA
- yADPANgA2gDcAOUA6AD8AQEBDAEVARwBHwEoAS8BPAFEAUYBSAFL
- AVABWAFbAWABbQFwAXUBigGNAaIBtAG3AbwAAAAAAAACAQAAAAAA
- AAA/AAAAAAAAAAAAAAAAAAABvg==
- </data>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1638</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1653</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1654</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1640</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1655</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1656</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1657</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1658</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1660</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>163</integer>
- </dict>
- </array>
- </dict>
- <string>IDEActivityReportStringSegmentType</string>
- <string>IDEActivityReportStringSegmentDate</string>
- <string>IDEActivityReportStringSegmentDateStyle</string>
- <string>IDEActivityReportStringSegmentTimeStyle</string>
- <real>3</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>1659</integer>
- </dict>
- <key>NS.time</key>
- <real>381083546.00637001</real>
- </dict>
- <dict>
- <key>$classes</key>
- <array>
- <string>NSDate</string>
- <string>NSObject</string>
- </array>
- <key>$classname</key>
- <string>NSDate</string>
- </dict>
- <string>Today at 16:32</string>
- <integer>234</integer>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>3</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>39</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1664</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1666</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1668</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1670</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1672</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1674</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1676</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1678</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1680</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1682</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>784</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1684</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1685</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1687</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1689</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1691</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1693</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1695</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>907</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1697</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1702</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1705</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1708</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1711</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1714</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1717</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1720</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1723</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1726</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1729</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1734</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1737</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1740</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1743</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1746</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1749</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1752</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1755</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1665</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/GraphicsView.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1667</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/NodeStyle.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1669</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/TikzDocument.xib</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1671</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/src/common/Node.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1673</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/PropertyInspectorController.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1675</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/osx/GraphicsView.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1677</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/StylePalette.xib</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1679</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/StylePaletteController.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1681</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Edge.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1683</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/osx/Grid.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1518</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1686</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/PropertyInspector.xib</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1688</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/tikzit/src/osx/PreviewController.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1690</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/TikzGraphAssembler.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1692</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/tikzlexer.lm</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1694</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/src/osx/NodeLayer.h</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1696</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/svn/tikzit/English.lproj/Preview.xib</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1700</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1701</integer>
- </dict>
- </array>
- </dict>
- <string>width</string>
- <string>height</string>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1703</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1704</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1706</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1707</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1709</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1710</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1712</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1713</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1715</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1716</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1718</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1719</integer>
- </dict>
- </array>
- </dict>
- <real>1133</real>
- <real>763</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1721</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1722</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1724</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1725</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1727</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1728</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1730</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1731</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1732</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1733</integer>
- </dict>
- </array>
- </dict>
- <string>width</string>
- <string>height</string>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1735</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1736</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1738</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1739</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1741</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1742</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1744</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1745</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1747</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1748</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1750</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1751</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1698</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1699</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1753</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1754</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>35</integer>
- </dict>
- <key>NS.keys</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1730</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1731</integer>
- </dict>
- </array>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1756</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1757</integer>
- </dict>
- </array>
- </dict>
- <real>600</real>
- <real>600</real>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>38</integer>
- </dict>
- <key>NS.objects</key>
- <array>
- <dict>
- <key>CF$UID</key>
- <integer>1759</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1761</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1763</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1765</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1767</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1769</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1771</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1772</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1773</integer>
- </dict>
- <dict>
- <key>CF$UID</key>
- <integer>1774</integer>
- </dict>
- </array>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1760</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Graph.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1762</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/Edge.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1764</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/tikzparser.ym</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1766</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/tikzlexer.lm</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1768</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/src/common/TikzGraphAssembler.m</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1770</integer>
- </dict>
- </dict>
- <string>file://localhost/Users/aleks/git/tikzit/tikzit/TikZiT-Info.plist</string>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1499</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1683</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>1675</integer>
- </dict>
- </dict>
- <dict>
- <key>$class</key>
- <dict>
- <key>CF$UID</key>
- <integer>153</integer>
- </dict>
- <key>NS.base</key>
- <dict>
- <key>CF$UID</key>
- <integer>0</integer>
- </dict>
- <key>NS.relative</key>
- <dict>
- <key>CF$UID</key>
- <integer>365</integer>
- </dict>
- </dict>
- </array>
- <key>$top</key>
- <dict>
- <key>State</key>
- <dict>
- <key>CF$UID</key>
- <integer>1</integer>
- </dict>
- </dict>
- <key>$version</key>
- <integer>100000</integer>
-</dict>
-</plist>
diff --git a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/WorkspaceSettings.xcsettings b/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/WorkspaceSettings.xcsettings
deleted file mode 100644
index c1034ce..0000000
--- a/tikzit-old/TikZiT.xcodeproj/project.xcworkspace/xcuserdata/aleks.xcuserdatad/WorkspaceSettings.xcsettings
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IDEWorkspaceUserSettings_BuildLocationStyle</key>
- <integer>2</integer>
- <key>IDEWorkspaceUserSettings_BuildSubfolderNameStyle</key>
- <integer>0</integer>
- <key>IDEWorkspaceUserSettings_DerivedDataLocationStyle</key>
- <integer>0</integer>
- <key>IDEWorkspaceUserSettings_HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
- <true/>
- <key>IDEWorkspaceUserSettings_IssueFilterStyle</key>
- <integer>0</integer>
- <key>IDEWorkspaceUserSettings_LiveSourceIssuesEnabled</key>
- <true/>
- <key>IDEWorkspaceUserSettings_SnapshotAutomaticallyBeforeSignificantChanges</key>
- <false/>
- <key>IDEWorkspaceUserSettings_SnapshotLocationStyle</key>
- <integer>0</integer>
-</dict>
-</plist>
diff --git a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist b/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
deleted file mode 100644
index 5a56e60..0000000
--- a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Bucket
- type = "1"
- version = "1.0">
- <FileBreakpoints>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/common/Graph.m"
- timestampString = "348347940.878462"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "58"
- endingLineNumber = "58"
- landmarkName = "-dealloc"
- landmarkType = "5">
- </FileBreakpoint>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/osx/GraphicsView.m"
- timestampString = "345405739.814208"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "540"
- endingLineNumber = "540"
- landmarkName = "-mouseDragged:"
- landmarkType = "5">
- </FileBreakpoint>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/common/Edge.m"
- timestampString = "340642791.649296"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "59"
- endingLineNumber = "59"
- landmarkName = "@implementation Edge"
- landmarkType = "3">
- </FileBreakpoint>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/osx/NilToEmptyStringTransformer.m"
- timestampString = "340711086.235151"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "46"
- endingLineNumber = "46"
- landmarkName = "-transformedValue:"
- landmarkType = "5">
- </FileBreakpoint>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/osx/GraphicsView.m"
- timestampString = "341236981.112055"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "106"
- endingLineNumber = "106"
- landmarkName = "-setupLayers"
- landmarkType = "5">
- </FileBreakpoint>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/osx/GraphicsView.m"
- timestampString = "345405739.814208"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "361"
- endingLineNumber = "361"
- landmarkName = "-mouseDown:"
- landmarkType = "5">
- </FileBreakpoint>
- <FileBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "1"
- filePath = "src/osx/SelectableNodeView.m"
- timestampString = "345488889.20949"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "83"
- endingLineNumber = "83"
- landmarkName = "-setNodeStyle:"
- landmarkType = "5">
- </FileBreakpoint>
- </FileBreakpoints>
- <SymbolicBreakpoints>
- <SymbolicBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- symbolName = "auto_refcount_underflow_error"
- moduleName = "">
- </SymbolicBreakpoint>
- </SymbolicBreakpoints>
- <ExceptionBreakpoints>
- <ExceptionBreakpoint
- shouldBeEnabled = "No"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- scope = "0"
- stopOnStyle = "0">
- </ExceptionBreakpoint>
- </ExceptionBreakpoints>
-</Bucket>
diff --git a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/TikZiT.xcscheme b/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/TikZiT.xcscheme
deleted file mode 100644
index 86e70a8..0000000
--- a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/TikZiT.xcscheme
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
- version = "1.3">
- <BuildAction
- parallelizeBuildables = "YES"
- buildImplicitDependencies = "YES">
- <BuildActionEntries>
- <BuildActionEntry
- buildForTesting = "YES"
- buildForRunning = "YES"
- buildForProfiling = "YES"
- buildForArchiving = "YES"
- buildForAnalyzing = "YES">
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "8D15AC270486D014006FF6A4"
- BuildableName = "TikZiT.app"
- BlueprintName = "TikZiT"
- ReferencedContainer = "container:TikZiT.xcodeproj">
- </BuildableReference>
- </BuildActionEntry>
- </BuildActionEntries>
- </BuildAction>
- <TestAction
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
- shouldUseLaunchSchemeArgsEnv = "YES"
- buildConfiguration = "Debug">
- <Testables>
- </Testables>
- </TestAction>
- <LaunchAction
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
- launchStyle = "0"
- useCustomWorkingDirectory = "NO"
- buildConfiguration = "Release">
- <BuildableProductRunnable>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "8D15AC270486D014006FF6A4"
- BuildableName = "TikZiT.app"
- BlueprintName = "TikZiT"
- ReferencedContainer = "container:TikZiT.xcodeproj">
- </BuildableReference>
- </BuildableProductRunnable>
- <AdditionalOptions>
- </AdditionalOptions>
- </LaunchAction>
- <ProfileAction
- shouldUseLaunchSchemeArgsEnv = "YES"
- savedToolIdentifier = ""
- useCustomWorkingDirectory = "NO"
- buildConfiguration = "Release">
- <BuildableProductRunnable>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "8D15AC270486D014006FF6A4"
- BuildableName = "TikZiT.app"
- BlueprintName = "TikZiT"
- ReferencedContainer = "container:TikZiT.xcodeproj">
- </BuildableReference>
- </BuildableProductRunnable>
- </ProfileAction>
- <AnalyzeAction
- buildConfiguration = "Debug">
- </AnalyzeAction>
- <ArchiveAction
- buildConfiguration = "Release"
- revealArchiveInOrganizer = "YES">
- </ArchiveAction>
-</Scheme>
diff --git a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/tests.xcscheme b/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/tests.xcscheme
deleted file mode 100644
index 9e1a430..0000000
--- a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/tests.xcscheme
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
- version = "1.3">
- <BuildAction
- parallelizeBuildables = "YES"
- buildImplicitDependencies = "YES">
- <BuildActionEntries>
- <BuildActionEntry
- buildForTesting = "YES"
- buildForRunning = "YES"
- buildForProfiling = "YES"
- buildForArchiving = "YES"
- buildForAnalyzing = "YES">
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "5589AA6411C5429C0064D310"
- BuildableName = "tests"
- BlueprintName = "tests"
- ReferencedContainer = "container:TikZiT.xcodeproj">
- </BuildableReference>
- </BuildActionEntry>
- </BuildActionEntries>
- </BuildAction>
- <TestAction
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
- shouldUseLaunchSchemeArgsEnv = "YES"
- buildConfiguration = "Debug">
- <Testables>
- </Testables>
- </TestAction>
- <LaunchAction
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
- launchStyle = "0"
- useCustomWorkingDirectory = "NO"
- buildConfiguration = "Debug">
- <BuildableProductRunnable>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "5589AA6411C5429C0064D310"
- BuildableName = "tests"
- BlueprintName = "tests"
- ReferencedContainer = "container:TikZiT.xcodeproj">
- </BuildableReference>
- </BuildableProductRunnable>
- <AdditionalOptions>
- </AdditionalOptions>
- </LaunchAction>
- <ProfileAction
- shouldUseLaunchSchemeArgsEnv = "YES"
- savedToolIdentifier = ""
- useCustomWorkingDirectory = "NO"
- buildConfiguration = "Release">
- <BuildableProductRunnable>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "5589AA6411C5429C0064D310"
- BuildableName = "tests"
- BlueprintName = "tests"
- ReferencedContainer = "container:TikZiT.xcodeproj">
- </BuildableReference>
- </BuildableProductRunnable>
- </ProfileAction>
- <AnalyzeAction
- buildConfiguration = "Debug">
- </AnalyzeAction>
- <ArchiveAction
- buildConfiguration = "Release"
- revealArchiveInOrganizer = "YES">
- </ArchiveAction>
-</Scheme>
diff --git a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/xcschememanagement.plist b/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/xcschememanagement.plist
deleted file mode 100644
index 3291a35..0000000
--- a/tikzit-old/TikZiT.xcodeproj/xcuserdata/aleks.xcuserdatad/xcschemes/xcschememanagement.plist
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>SchemeUserState</key>
- <dict>
- <key>TikZiT.xcscheme</key>
- <dict>
- <key>orderHint</key>
- <integer>1</integer>
- </dict>
- <key>tests.xcscheme</key>
- <dict>
- <key>orderHint</key>
- <integer>0</integer>
- </dict>
- </dict>
- <key>SuppressBuildableAutocreation</key>
- <dict>
- <key>5589AA6411C5429C0064D310</key>
- <dict>
- <key>primary</key>
- <true/>
- </dict>
- <key>8D15AC270486D014006FF6A4</key>
- <dict>
- <key>primary</key>
- <true/>
- </dict>
- </dict>
-</dict>
-</plist>
diff --git a/tikzit-old/TikZiT_Prefix.pch b/tikzit-old/TikZiT_Prefix.pch
deleted file mode 100644
index 78e4d0f..0000000
--- a/tikzit-old/TikZiT_Prefix.pch
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// TikZiT_Prefix.pch
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-//
-// Prefix header for all source files of the 'TikZiT' target in the 'TikZiT' project
-//
-
-#ifdef __OBJC__
- #import <Cocoa/Cocoa.h>
-#endif
diff --git a/tikzit-old/autogen.sh b/tikzit-old/autogen.sh
deleted file mode 100755
index 132ecd0..0000000
--- a/tikzit-old/autogen.sh
+++ /dev/null
@@ -1,1578 +0,0 @@
-#!/bin/sh
-# a u t o g e n . s h
-#
-# Copyright (c) 2005-2009 United States Government as represented by
-# the U.S. Army Research Laboratory.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-#
-# 3. The name of the author may not be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-###
-#
-# Script for automatically preparing the sources for compilation by
-# performing the myriad of necessary steps. The script attempts to
-# detect proper version support, and outputs warnings about particular
-# systems that have autotool peculiarities.
-#
-# Basically, if everything is set up and installed correctly, the
-# script will validate that minimum versions of the GNU Build System
-# tools are installed, account for several common configuration
-# issues, and then simply run autoreconf for you.
-#
-# If autoreconf fails, which can happen for many valid configurations,
-# this script proceeds to run manual preparation steps effectively
-# providing a POSIX shell script (mostly complete) reimplementation of
-# autoreconf.
-#
-# The AUTORECONF, AUTOCONF, AUTOMAKE, LIBTOOLIZE, ACLOCAL, AUTOHEADER
-# environment variables and corresponding _OPTIONS variables (e.g.
-# AUTORECONF_OPTIONS) may be used to override the default automatic
-# detection behaviors. Similarly the _VERSION variables will override
-# the minimum required version numbers.
-#
-# Examples:
-#
-# To obtain help on usage:
-# ./autogen.sh --help
-#
-# To obtain verbose output:
-# ./autogen.sh --verbose
-#
-# To skip autoreconf and prepare manually:
-# AUTORECONF=false ./autogen.sh
-#
-# To verbosely try running with an older (unsupported) autoconf:
-# AUTOCONF_VERSION=2.50 ./autogen.sh --verbose
-#
-# Author:
-# Christopher Sean Morrison <morrison@brlcad.org>
-#
-# Patches:
-# Sebastian Pipping <sebastian@pipping.org>
-#
-######################################################################
-
-# set to minimum acceptable version of autoconf
-if [ "x$AUTOCONF_VERSION" = "x" ] ; then
- AUTOCONF_VERSION=2.60
-fi
-# set to minimum acceptable version of automake
-if [ "x$AUTOMAKE_VERSION" = "x" ] ; then
- AUTOMAKE_VERSION=1.6.0
-fi
-# set to minimum acceptable version of libtool
-if [ "x$LIBTOOL_VERSION" = "x" ] ; then
- LIBTOOL_VERSION=1.4.2
-fi
-
-
-##################
-# ident function #
-##################
-ident ( ) {
- # extract copyright from header
- __copyright="`grep Copyright $AUTOGEN_SH | head -${HEAD_N}1 | awk '{print $4}'`"
- if [ "x$__copyright" = "x" ] ; then
- __copyright="`date +%Y`"
- fi
-
- # extract version from CVS Id string
- __id="$Id: autogen.sh 33925 2009-03-01 23:27:06Z brlcad $"
- __version="`echo $__id | sed 's/.*\([0-9][0-9][0-9][0-9]\)[-\/]\([0-9][0-9]\)[-\/]\([0-9][0-9]\).*/\1\2\3/'`"
- if [ "x$__version" = "x" ] ; then
- __version=""
- fi
-
- echo "autogen.sh build preparation script by Christopher Sean Morrison"
- echo " + config.guess download patch by Sebastian Pipping (2008-12-03)"
- echo "revised 3-clause BSD-style license, copyright (c) $__copyright"
- echo "script version $__version, ISO/IEC 9945 POSIX shell script"
-}
-
-
-##################
-# USAGE FUNCTION #
-##################
-usage ( ) {
- echo "Usage: $AUTOGEN_SH [-h|--help] [-v|--verbose] [-q|--quiet] [-d|--download] [--version]"
- echo " --help Help on $NAME_OF_AUTOGEN usage"
- echo " --verbose Verbose progress output"
- echo " --quiet Quiet suppressed progress output"
- echo " --download Download the latest config.guess from gnulib"
- echo " --version Only perform GNU Build System version checks"
- echo
- echo "Description: This script will validate that minimum versions of the"
- echo "GNU Build System tools are installed and then run autoreconf for you."
- echo "Should autoreconf fail, manual preparation steps will be run"
- echo "potentially accounting for several common preparation issues. The"
-
- echo "AUTORECONF, AUTOCONF, AUTOMAKE, LIBTOOLIZE, ACLOCAL, AUTOHEADER,"
- echo "PROJECT, & CONFIGURE environment variables and corresponding _OPTIONS"
- echo "variables (e.g. AUTORECONF_OPTIONS) may be used to override the"
- echo "default automatic detection behavior."
- echo
-
- ident
-
- return 0
-}
-
-
-##########################
-# VERSION_ERROR FUNCTION #
-##########################
-version_error ( ) {
- if [ "x$1" = "x" ] ; then
- echo "INTERNAL ERROR: version_error was not provided a version"
- exit 1
- fi
- if [ "x$2" = "x" ] ; then
- echo "INTERNAL ERROR: version_error was not provided an application name"
- exit 1
- fi
- $ECHO
- $ECHO "ERROR: To prepare the ${PROJECT} build system from scratch,"
- $ECHO " at least version $1 of $2 must be installed."
- $ECHO
- $ECHO "$NAME_OF_AUTOGEN does not need to be run on the same machine that will"
- $ECHO "run configure or make. Either the GNU Autotools will need to be installed"
- $ECHO "or upgraded on this system, or $NAME_OF_AUTOGEN must be run on the source"
- $ECHO "code on another system and then transferred to here. -- Cheers!"
- $ECHO
-}
-
-##########################
-# VERSION_CHECK FUNCTION #
-##########################
-version_check ( ) {
- if [ "x$1" = "x" ] ; then
- echo "INTERNAL ERROR: version_check was not provided a minimum version"
- exit 1
- fi
- _min="$1"
- if [ "x$2" = "x" ] ; then
- echo "INTERNAL ERROR: version check was not provided a comparison version"
- exit 1
- fi
- _cur="$2"
-
- # needed to handle versions like 1.10 and 1.4-p6
- _min="`echo ${_min}. | sed 's/[^0-9]/./g' | sed 's/\.\././g'`"
- _cur="`echo ${_cur}. | sed 's/[^0-9]/./g' | sed 's/\.\././g'`"
-
- _min_major="`echo $_min | cut -d. -f1`"
- _min_minor="`echo $_min | cut -d. -f2`"
- _min_patch="`echo $_min | cut -d. -f3`"
-
- _cur_major="`echo $_cur | cut -d. -f1`"
- _cur_minor="`echo $_cur | cut -d. -f2`"
- _cur_patch="`echo $_cur | cut -d. -f3`"
-
- if [ "x$_min_major" = "x" ] ; then
- _min_major=0
- fi
- if [ "x$_min_minor" = "x" ] ; then
- _min_minor=0
- fi
- if [ "x$_min_patch" = "x" ] ; then
- _min_patch=0
- fi
- if [ "x$_cur_minor" = "x" ] ; then
- _cur_major=0
- fi
- if [ "x$_cur_minor" = "x" ] ; then
- _cur_minor=0
- fi
- if [ "x$_cur_patch" = "x" ] ; then
- _cur_patch=0
- fi
-
- $VERBOSE_ECHO "Checking if ${_cur_major}.${_cur_minor}.${_cur_patch} is greater than ${_min_major}.${_min_minor}.${_min_patch}"
-
- if [ $_min_major -lt $_cur_major ] ; then
- return 0
- elif [ $_min_major -eq $_cur_major ] ; then
- if [ $_min_minor -lt $_cur_minor ] ; then
- return 0
- elif [ $_min_minor -eq $_cur_minor ] ; then
- if [ $_min_patch -lt $_cur_patch ] ; then
- return 0
- elif [ $_min_patch -eq $_cur_patch ] ; then
- return 0
- fi
- fi
- fi
- return 1
-}
-
-
-######################################
-# LOCATE_CONFIGURE_TEMPLATE FUNCTION #
-######################################
-locate_configure_template ( ) {
- _pwd="`pwd`"
- if test -f "./configure.ac" ; then
- echo "./configure.ac"
- elif test -f "./configure.in" ; then
- echo "./configure.in"
- elif test -f "$_pwd/configure.ac" ; then
- echo "$_pwd/configure.ac"
- elif test -f "$_pwd/configure.in" ; then
- echo "$_pwd/configure.in"
- elif test -f "$PATH_TO_AUTOGEN/configure.ac" ; then
- echo "$PATH_TO_AUTOGEN/configure.ac"
- elif test -f "$PATH_TO_AUTOGEN/configure.in" ; then
- echo "$PATH_TO_AUTOGEN/configure.in"
- fi
-}
-
-
-##################
-# argument check #
-##################
-ARGS="$*"
-PATH_TO_AUTOGEN="`dirname $0`"
-NAME_OF_AUTOGEN="`basename $0`"
-AUTOGEN_SH="$PATH_TO_AUTOGEN/$NAME_OF_AUTOGEN"
-
-LIBTOOL_M4="${PATH_TO_AUTOGEN}/misc/libtool.m4"
-
-if [ "x$HELP" = "x" ] ; then
- HELP=no
-fi
-if [ "x$QUIET" = "x" ] ; then
- QUIET=no
-fi
-if [ "x$VERBOSE" = "x" ] ; then
- VERBOSE=no
-fi
-if [ "x$VERSION_ONLY" = "x" ] ; then
- VERSION_ONLY=no
-fi
-if [ "x$DOWNLOAD" = "x" ] ; then
- DOWNLOAD=no
-fi
-if [ "x$AUTORECONF_OPTIONS" = "x" ] ; then
- AUTORECONF_OPTIONS="-i -f"
-fi
-if [ "x$AUTOCONF_OPTIONS" = "x" ] ; then
- AUTOCONF_OPTIONS="-f"
-fi
-if [ "x$AUTOMAKE_OPTIONS" = "x" ] ; then
- AUTOMAKE_OPTIONS="-a -c -f"
-fi
-ALT_AUTOMAKE_OPTIONS="-a -c"
-if [ "x$LIBTOOLIZE_OPTIONS" = "x" ] ; then
- LIBTOOLIZE_OPTIONS="--automake -c -f"
-fi
-ALT_LIBTOOLIZE_OPTIONS="--automake --copy --force"
-if [ "x$ACLOCAL_OPTIONS" = "x" ] ; then
- ACLOCAL_OPTIONS=""
-fi
-if [ "x$AUTOHEADER_OPTIONS" = "x" ] ; then
- AUTOHEADER_OPTIONS=""
-fi
-if [ "x$CONFIG_GUESS_URL" = "x" ] ; then
- CONFIG_GUESS_URL="http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=build-aux/config.guess;hb=HEAD"
-fi
-for arg in $ARGS ; do
- case "x$arg" in
- x--help) HELP=yes ;;
- x-[hH]) HELP=yes ;;
- x--quiet) QUIET=yes ;;
- x-[qQ]) QUIET=yes ;;
- x--verbose) VERBOSE=yes ;;
- x-[dD]) DOWNLOAD=yes ;;
- x--download) DOWNLOAD=yes ;;
- x-[vV]) VERBOSE=yes ;;
- x--version) VERSION_ONLY=yes ;;
- *)
- echo "Unknown option: $arg"
- echo
- usage
- exit 1
- ;;
- esac
-done
-
-
-#####################
-# environment check #
-#####################
-
-# sanity check before recursions potentially begin
-if [ ! -f "$AUTOGEN_SH" ] ; then
- echo "INTERNAL ERROR: $AUTOGEN_SH does not exist"
- if [ ! "x$0" = "x$AUTOGEN_SH" ] ; then
- echo "INTERNAL ERROR: dirname/basename inconsistency: $0 != $AUTOGEN_SH"
- fi
- exit 1
-fi
-
-# force locale setting to C so things like date output as expected
-LC_ALL=C
-
-# commands that this script expects
-for __cmd in echo head tail pwd ; do
- echo "test" | $__cmd > /dev/null 2>&1
- if [ $? != 0 ] ; then
- echo "INTERNAL ERROR: '${__cmd}' command is required"
- exit 2
- fi
-done
-echo "test" | grep "test" > /dev/null 2>&1
-if test ! x$? = x0 ; then
- echo "INTERNAL ERROR: grep command is required"
- exit 1
-fi
-echo "test" | sed "s/test/test/" > /dev/null 2>&1
-if test ! x$? = x0 ; then
- echo "INTERNAL ERROR: sed command is required"
- exit 1
-fi
-
-
-# determine the behavior of echo
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
-esac
-
-# determine the behavior of head
-case "x`echo 'head' | head -n 1 2>&1`" in
- *xhead*) HEAD_N="n " ;;
- *) HEAD_N="" ;;
-esac
-
-# determine the behavior of tail
-case "x`echo 'tail' | tail -n 1 2>&1`" in
- *xtail*) TAIL_N="n " ;;
- *) TAIL_N="" ;;
-esac
-
-VERBOSE_ECHO=:
-ECHO=:
-if [ "x$QUIET" = "xyes" ] ; then
- if [ "x$VERBOSE" = "xyes" ] ; then
- echo "Verbose output quelled by quiet option. Further output disabled."
- fi
-else
- ECHO=echo
- if [ "x$VERBOSE" = "xyes" ] ; then
- echo "Verbose output enabled"
- VERBOSE_ECHO=echo
- fi
-fi
-
-
-# allow a recursive run to disable further recursions
-if [ "x$RUN_RECURSIVE" = "x" ] ; then
- RUN_RECURSIVE=yes
-fi
-
-
-################################################
-# check for help arg and bypass version checks #
-################################################
-if [ "x`echo $ARGS | sed 's/.*[hH][eE][lL][pP].*/help/'`" = "xhelp" ] ; then
- HELP=yes
-fi
-if [ "x$HELP" = "xyes" ] ; then
- usage
- $ECHO "---"
- $ECHO "Help was requested. No preparation or configuration will be performed."
- exit 0
-fi
-
-
-#######################
-# set up signal traps #
-#######################
-untrap_abnormal ( ) {
- for sig in 1 2 13 15; do
- trap - $sig
- done
-}
-
-# do this cleanup whenever we exit.
-trap '
- # start from the root
- if test -d "$START_PATH" ; then
- cd "$START_PATH"
- fi
-
- # restore/delete backup files
- if test "x$PFC_INIT" = "x1" ; then
- recursive_restore
- fi
-' 0
-
-# trap SIGHUP (1), SIGINT (2), SIGPIPE (13), SIGTERM (15)
-for sig in 1 2 13 15; do
- trap '
- $ECHO ""
- $ECHO "Aborting $NAME_OF_AUTOGEN: caught signal '$sig'"
-
- # start from the root
- if test -d "$START_PATH" ; then
- cd "$START_PATH"
- fi
-
- # clean up on abnormal exit
- $VERBOSE_ECHO "rm -rf autom4te.cache"
- rm -rf autom4te.cache
-
- if test -f "acinclude.m4.$$.backup" ; then
- $VERBOSE_ECHO "cat acinclude.m4.$$.backup > acinclude.m4"
- chmod u+w acinclude.m4
- cat acinclude.m4.$$.backup > acinclude.m4
-
- $VERBOSE_ECHO "rm -f acinclude.m4.$$.backup"
- rm -f acinclude.m4.$$.backup
- fi
-
- { (exit 1); exit 1; }
-' $sig
-done
-
-
-#############################
-# look for a configure file #
-#############################
-if [ "x$CONFIGURE" = "x" ] ; then
- CONFIGURE="`locate_configure_template`"
- if [ ! "x$CONFIGURE" = "x" ] ; then
- $VERBOSE_ECHO "Found a configure template: $CONFIGURE"
- fi
-else
- $ECHO "Using CONFIGURE environment variable override: $CONFIGURE"
-fi
-if [ "x$CONFIGURE" = "x" ] ; then
- if [ "x$VERSION_ONLY" = "xyes" ] ; then
- CONFIGURE=/dev/null
- else
- $ECHO
- $ECHO "A configure.ac or configure.in file could not be located implying"
- $ECHO "that the GNU Build System is at least not used in this directory. In"
- $ECHO "any case, there is nothing to do here without one of those files."
- $ECHO
- $ECHO "ERROR: No configure.in or configure.ac file found in `pwd`"
- exit 1
- fi
-fi
-
-####################
-# get project name #
-####################
-if [ "x$PROJECT" = "x" ] ; then
- PROJECT="`grep AC_INIT $CONFIGURE | grep -v '.*#.*AC_INIT' | tail -${TAIL_N}1 | sed 's/^[ ]*AC_INIT(\([^,)]*\).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- if [ "x$PROJECT" = "xAC_INIT" ] ; then
- # projects might be using the older/deprecated arg-less AC_INIT .. look for AM_INIT_AUTOMAKE instead
- PROJECT="`grep AM_INIT_AUTOMAKE $CONFIGURE | grep -v '.*#.*AM_INIT_AUTOMAKE' | tail -${TAIL_N}1 | sed 's/^[ ]*AM_INIT_AUTOMAKE(\([^,)]*\).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- fi
- if [ "x$PROJECT" = "xAM_INIT_AUTOMAKE" ] ; then
- PROJECT="project"
- fi
- if [ "x$PROJECT" = "x" ] ; then
- PROJECT="project"
- fi
-else
- $ECHO "Using PROJECT environment variable override: $PROJECT"
-fi
-$ECHO "Preparing the $PROJECT build system...please wait"
-$ECHO
-
-
-########################
-# check for autoreconf #
-########################
-HAVE_AUTORECONF=no
-if [ "x$AUTORECONF" = "x" ] ; then
- for AUTORECONF in autoreconf ; do
- $VERBOSE_ECHO "Checking autoreconf version: $AUTORECONF --version"
- $AUTORECONF --version > /dev/null 2>&1
- if [ $? = 0 ] ; then
- HAVE_AUTORECONF=yes
- break
- fi
- done
-else
- HAVE_AUTORECONF=yes
- $ECHO "Using AUTORECONF environment variable override: $AUTORECONF"
-fi
-
-
-##########################
-# autoconf version check #
-##########################
-_acfound=no
-if [ "x$AUTOCONF" = "x" ] ; then
- for AUTOCONF in autoconf ; do
- $VERBOSE_ECHO "Checking autoconf version: $AUTOCONF --version"
- $AUTOCONF --version > /dev/null 2>&1
- if [ $? = 0 ] ; then
- _acfound=yes
- break
- fi
- done
-else
- _acfound=yes
- $ECHO "Using AUTOCONF environment variable override: $AUTOCONF"
-fi
-
-_report_error=no
-if [ ! "x$_acfound" = "xyes" ] ; then
- $ECHO "ERROR: Unable to locate GNU Autoconf."
- _report_error=yes
-else
- _version="`$AUTOCONF --version | head -${HEAD_N}1 | sed 's/[^0-9]*\([0-9\.][0-9\.]*\)/\1/'`"
- if [ "x$_version" = "x" ] ; then
- _version="0.0.0"
- fi
- $ECHO "Found GNU Autoconf version $_version"
- version_check "$AUTOCONF_VERSION" "$_version"
- if [ $? -ne 0 ] ; then
- _report_error=yes
- fi
-fi
-if [ "x$_report_error" = "xyes" ] ; then
- version_error "$AUTOCONF_VERSION" "GNU Autoconf"
- exit 1
-fi
-
-
-##########################
-# automake version check #
-##########################
-_amfound=no
-if [ "x$AUTOMAKE" = "x" ] ; then
- for AUTOMAKE in automake ; do
- $VERBOSE_ECHO "Checking automake version: $AUTOMAKE --version"
- $AUTOMAKE --version > /dev/null 2>&1
- if [ $? = 0 ] ; then
- _amfound=yes
- break
- fi
- done
-else
- _amfound=yes
- $ECHO "Using AUTOMAKE environment variable override: $AUTOMAKE"
-fi
-
-
-_report_error=no
-if [ ! "x$_amfound" = "xyes" ] ; then
- $ECHO
- $ECHO "ERROR: Unable to locate GNU Automake."
- _report_error=yes
-else
- _version="`$AUTOMAKE --version | head -${HEAD_N}1 | sed 's/[^0-9]*\([0-9\.][0-9\.]*\)/\1/'`"
- if [ "x$_version" = "x" ] ; then
- _version="0.0.0"
- fi
- $ECHO "Found GNU Automake version $_version"
- version_check "$AUTOMAKE_VERSION" "$_version"
- if [ $? -ne 0 ] ; then
- _report_error=yes
- fi
-fi
-if [ "x$_report_error" = "xyes" ] ; then
- version_error "$AUTOMAKE_VERSION" "GNU Automake"
- exit 1
-fi
-
-
-########################
-# check for libtoolize #
-########################
-HAVE_LIBTOOLIZE=yes
-HAVE_ALT_LIBTOOLIZE=no
-_ltfound=no
-if [ "x$LIBTOOLIZE" = "x" ] ; then
- LIBTOOLIZE=libtoolize
- $VERBOSE_ECHO "Checking libtoolize version: $LIBTOOLIZE --version"
- $LIBTOOLIZE --version > /dev/null 2>&1
- if [ ! $? = 0 ] ; then
- HAVE_LIBTOOLIZE=no
- $ECHO
- if [ "x$HAVE_AUTORECONF" = "xno" ] ; then
- $ECHO "Warning: libtoolize does not appear to be available."
- else
- $ECHO "Warning: libtoolize does not appear to be available. This means that"
- $ECHO "the automatic build preparation via autoreconf will probably not work."
- $ECHO "Preparing the build by running each step individually, however, should"
- $ECHO "work and will be done automatically for you if autoreconf fails."
- fi
-
- # look for some alternates
- for tool in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
- $VERBOSE_ECHO "Checking libtoolize alternate: $tool --version"
- _glibtoolize="`$tool --version > /dev/null 2>&1`"
- if [ $? = 0 ] ; then
- $VERBOSE_ECHO "Found $tool --version"
- _glti="`which $tool`"
- if [ "x$_glti" = "x" ] ; then
- $VERBOSE_ECHO "Cannot find $tool with which"
- continue;
- fi
- if test ! -f "$_glti" ; then
- $VERBOSE_ECHO "Cannot use $tool, $_glti is not a file"
- continue;
- fi
- _gltidir="`dirname $_glti`"
- if [ "x$_gltidir" = "x" ] ; then
- $VERBOSE_ECHO "Cannot find $tool path with dirname of $_glti"
- continue;
- fi
- if test ! -d "$_gltidir" ; then
- $VERBOSE_ECHO "Cannot use $tool, $_gltidir is not a directory"
- continue;
- fi
- HAVE_ALT_LIBTOOLIZE=yes
- LIBTOOLIZE="$tool"
- $ECHO
- $ECHO "Fortunately, $tool was found which means that your system may simply"
- $ECHO "have a non-standard or incomplete GNU Autotools install. If you have"
- $ECHO "sufficient system access, it may be possible to quell this warning by"
- $ECHO "running:"
- $ECHO
- sudo -V > /dev/null 2>&1
- if [ $? = 0 ] ; then
- $ECHO " sudo ln -s $_glti $_gltidir/libtoolize"
- $ECHO
- else
- $ECHO " ln -s $_glti $_gltidir/libtoolize"
- $ECHO
- $ECHO "Run that as root or with proper permissions to the $_gltidir directory"
- $ECHO
- fi
- _ltfound=yes
- break
- fi
- done
- else
- _ltfound=yes
- fi
-else
- _ltfound=yes
- $ECHO "Using LIBTOOLIZE environment variable override: $LIBTOOLIZE"
-fi
-
-
-############################
-# libtoolize version check #
-############################
-_report_error=no
-if [ ! "x$_ltfound" = "xyes" ] ; then
- $ECHO
- $ECHO "ERROR: Unable to locate GNU Libtool."
- _report_error=yes
-else
- _version="`$LIBTOOLIZE --version | head -${HEAD_N}1 | sed 's/[^0-9]*\([0-9\.][0-9\.]*\)/\1/'`"
- if [ "x$_version" = "x" ] ; then
- _version="0.0.0"
- fi
- $ECHO "Found GNU Libtool version $_version"
- version_check "$LIBTOOL_VERSION" "$_version"
- if [ $? -ne 0 ] ; then
- _report_error=yes
- fi
-fi
-if [ "x$_report_error" = "xyes" ] ; then
- version_error "$LIBTOOL_VERSION" "GNU Libtool"
- exit 1
-fi
-
-
-#####################
-# check for aclocal #
-#####################
-if [ "x$ACLOCAL" = "x" ] ; then
- for ACLOCAL in aclocal ; do
- $VERBOSE_ECHO "Checking aclocal version: $ACLOCAL --version"
- $ACLOCAL --version > /dev/null 2>&1
- if [ $? = 0 ] ; then
- break
- fi
- done
-else
- $ECHO "Using ACLOCAL environment variable override: $ACLOCAL"
-fi
-
-
-########################
-# check for autoheader #
-########################
-if [ "x$AUTOHEADER" = "x" ] ; then
- for AUTOHEADER in autoheader ; do
- $VERBOSE_ECHO "Checking autoheader version: $AUTOHEADER --version"
- $AUTOHEADER --version > /dev/null 2>&1
- if [ $? = 0 ] ; then
- break
- fi
- done
-else
- $ECHO "Using AUTOHEADER environment variable override: $AUTOHEADER"
-fi
-
-
-#########################
-# check if version only #
-#########################
-$VERBOSE_ECHO "Checking whether to only output version information"
-if [ "x$VERSION_ONLY" = "xyes" ] ; then
- $ECHO
- ident
- $ECHO "---"
- $ECHO "Version requested. No preparation or configuration will be performed."
- exit 0
-fi
-
-
-#################################
-# PROTECT_FROM_CLOBBER FUNCTION #
-#################################
-protect_from_clobber ( ) {
- PFC_INIT=1
-
- # protect COPYING & INSTALL from overwrite by automake. the
- # automake force option will (inappropriately) ignore the existing
- # contents of a COPYING and/or INSTALL files (depending on the
- # version) instead of just forcing *missing* files like it does
- # for AUTHORS, NEWS, and README. this is broken but extremely
- # prevalent behavior, so we protect against it by keeping a backup
- # of the file that can later be restored.
-
- for file in COPYING INSTALL ; do
- if test -f ${file} ; then
- if test -f ${file}.$$.protect_from_automake.backup ; then
- $VERBOSE_ECHO "Already backed up ${file} in `pwd`"
- else
- $VERBOSE_ECHO "Backing up ${file} in `pwd`"
- $VERBOSE_ECHO "cp -p ${file} ${file}.$$.protect_from_automake.backup"
- cp -p ${file} ${file}.$$.protect_from_automake.backup
- fi
- fi
- done
-}
-
-
-##############################
-# RECURSIVE_PROTECT FUNCTION #
-##############################
-recursive_protect ( ) {
-
- # for projects using recursive configure, run the build
- # preparation steps for the subdirectories. this function assumes
- # START_PATH was set to pwd before recursion begins so that
- # relative paths work.
-
- # git 'r done, protect COPYING and INSTALL from being clobbered
- protect_from_clobber
-
- if test -d autom4te.cache ; then
- $VERBOSE_ECHO "Found an autom4te.cache directory, deleting it"
- $VERBOSE_ECHO "rm -rf autom4te.cache"
- rm -rf autom4te.cache
- fi
-
- # find configure template
- _configure="`locate_configure_template`"
- if [ "x$_configure" = "x" ] ; then
- return
- fi
- # $VERBOSE_ECHO "Looking for configure template found `pwd`/$_configure"
-
- # look for subdirs
- # $VERBOSE_ECHO "Looking for subdirs in `pwd`"
- _det_config_subdirs="`grep AC_CONFIG_SUBDIRS $_configure | grep -v '.*#.*AC_CONFIG_SUBDIRS' | sed 's/^[ ]*AC_CONFIG_SUBDIRS(\(.*\)).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- CHECK_DIRS=""
- for dir in $_det_config_subdirs ; do
- if test -d "`pwd`/$dir" ; then
- CHECK_DIRS="$CHECK_DIRS \"`pwd`/$dir\""
- fi
- done
-
- # process subdirs
- if [ ! "x$CHECK_DIRS" = "x" ] ; then
- $VERBOSE_ECHO "Recursively scanning the following directories:"
- $VERBOSE_ECHO " $CHECK_DIRS"
- for dir in $CHECK_DIRS ; do
- $VERBOSE_ECHO "Protecting files from automake in $dir"
- cd "$START_PATH"
- eval "cd $dir"
-
- # recursively git 'r done
- recursive_protect
- done
- fi
-} # end of recursive_protect
-
-
-#############################
-# RESTORE_CLOBBERED FUNCION #
-#############################
-restore_clobbered ( ) {
-
- # The automake (and autoreconf by extension) -f/--force-missing
- # option may overwrite COPYING and INSTALL even if they do exist.
- # Here we restore the files if necessary.
-
- spacer=no
-
- for file in COPYING INSTALL ; do
- if test -f ${file}.$$.protect_from_automake.backup ; then
- if test -f ${file} ; then
- # compare entire content, restore if needed
- if test "x`cat ${file}`" != "x`cat ${file}.$$.protect_from_automake.backup`" ; then
- if test "x$spacer" = "xno" ; then
- $VERBOSE_ECHO
- spacer=yes
- fi
- # restore the backup
- $VERBOSE_ECHO "Restoring ${file} from backup (automake -f likely clobbered it)"
- $VERBOSE_ECHO "rm -f ${file}"
- rm -f ${file}
- $VERBOSE_ECHO "mv ${file}.$$.protect_from_automake.backup ${file}"
- mv ${file}.$$.protect_from_automake.backup ${file}
- fi # check contents
- elif test -f ${file}.$$.protect_from_automake.backup ; then
- $VERBOSE_ECHO "mv ${file}.$$.protect_from_automake.backup ${file}"
- mv ${file}.$$.protect_from_automake.backup ${file}
- fi # -f ${file}
-
- # just in case
- $VERBOSE_ECHO "rm -f ${file}.$$.protect_from_automake.backup"
- rm -f ${file}.$$.protect_from_automake.backup
- fi # -f ${file}.$$.protect_from_automake.backup
- done
-
- CONFIGURE="`locate_configure_template`"
- if [ "x$CONFIGURE" = "x" ] ; then
- return
- fi
-
- _aux_dir="`grep AC_CONFIG_AUX_DIR $CONFIGURE | grep -v '.*#.*AC_CONFIG_AUX_DIR' | tail -${TAIL_N}1 | sed 's/^[ ]*AC_CONFIG_AUX_DIR(\(.*\)).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- if test ! -d "$_aux_dir" ; then
- _aux_dir=.
- fi
-
- for file in config.guess config.sub ltmain.sh ; do
- if test -f "${_aux_dir}/${file}" ; then
- $VERBOSE_ECHO "rm -f \"${_aux_dir}/${file}.backup\""
- rm -f "${_aux_dir}/${file}.backup"
- fi
- done
-} # end of restore_clobbered
-
-
-##############################
-# RECURSIVE_RESTORE FUNCTION #
-##############################
-recursive_restore ( ) {
-
- # restore COPYING and INSTALL from backup if they were clobbered
- # for each directory recursively.
-
- # git 'r undone
- restore_clobbered
-
- # find configure template
- _configure="`locate_configure_template`"
- if [ "x$_configure" = "x" ] ; then
- return
- fi
-
- # look for subdirs
- _det_config_subdirs="`grep AC_CONFIG_SUBDIRS $_configure | grep -v '.*#.*AC_CONFIG_SUBDIRS' | sed 's/^[ ]*AC_CONFIG_SUBDIRS(\(.*\)).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- CHECK_DIRS=""
- for dir in $_det_config_subdirs ; do
- if test -d "`pwd`/$dir" ; then
- CHECK_DIRS="$CHECK_DIRS \"`pwd`/$dir\""
- fi
- done
-
- # process subdirs
- if [ ! "x$CHECK_DIRS" = "x" ] ; then
- $VERBOSE_ECHO "Recursively scanning the following directories:"
- $VERBOSE_ECHO " $CHECK_DIRS"
- for dir in $CHECK_DIRS ; do
- $VERBOSE_ECHO "Checking files for automake damage in $dir"
- cd "$START_PATH"
- eval "cd $dir"
-
- # recursively git 'r undone
- recursive_restore
- done
- fi
-} # end of recursive_restore
-
-
-#######################
-# INITIALIZE FUNCTION #
-#######################
-initialize ( ) {
-
- # this routine performs a variety of directory-specific
- # initializations. some are sanity checks, some are preventive,
- # and some are necessary setup detection.
- #
- # this function sets:
- # CONFIGURE
- # SEARCH_DIRS
- # CONFIG_SUBDIRS
-
- ##################################
- # check for a configure template #
- ##################################
- CONFIGURE="`locate_configure_template`"
- if [ "x$CONFIGURE" = "x" ] ; then
- $ECHO
- $ECHO "A configure.ac or configure.in file could not be located implying"
- $ECHO "that the GNU Build System is at least not used in this directory. In"
- $ECHO "any case, there is nothing to do here without one of those files."
- $ECHO
- $ECHO "ERROR: No configure.in or configure.ac file found in `pwd`"
- exit 1
- fi
-
- #####################
- # detect an aux dir #
- #####################
- _aux_dir="`grep AC_CONFIG_AUX_DIR $CONFIGURE | grep -v '.*#.*AC_CONFIG_AUX_DIR' | tail -${TAIL_N}1 | sed 's/^[ ]*AC_CONFIG_AUX_DIR(\(.*\)).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- if test ! -d "$_aux_dir" ; then
- _aux_dir=.
- else
- $VERBOSE_ECHO "Detected auxillary directory: $_aux_dir"
- fi
-
- ################################
- # detect a recursive configure #
- ################################
- CONFIG_SUBDIRS=""
- _det_config_subdirs="`grep AC_CONFIG_SUBDIRS $CONFIGURE | grep -v '.*#.*AC_CONFIG_SUBDIRS' | sed 's/^[ ]*AC_CONFIG_SUBDIRS(\(.*\)).*/\1/' | sed 's/.*\[\(.*\)\].*/\1/'`"
- for dir in $_det_config_subdirs ; do
- if test -d "`pwd`/$dir" ; then
- $VERBOSE_ECHO "Detected recursive configure directory: `pwd`/$dir"
- CONFIG_SUBDIRS="$CONFIG_SUBDIRS `pwd`/$dir"
- fi
- done
-
- ###########################################################
- # make sure certain required files exist for GNU projects #
- ###########################################################
- _marker_found=""
- _marker_found_message_intro='Detected non-GNU marker "'
- _marker_found_message_mid='" in '
- for marker in foreign cygnus ; do
- _marker_found_message=${_marker_found_message_intro}${marker}${_marker_found_message_mid}
- _marker_found="`grep 'AM_INIT_AUTOMAKE.*'${marker} $CONFIGURE`"
- if [ ! "x$_marker_found" = "x" ] ; then
- $VERBOSE_ECHO "${_marker_found_message}`basename \"$CONFIGURE\"`"
- break
- fi
- if test -f "`dirname \"$CONFIGURE\"/Makefile.am`" ; then
- _marker_found="`grep 'AUTOMAKE_OPTIONS.*'${marker} Makefile.am`"
- if [ ! "x$_marker_found" = "x" ] ; then
- $VERBOSE_ECHO "${_marker_found_message}Makefile.am"
- break
- fi
- fi
- done
- if [ "x${_marker_found}" = "x" ] ; then
- _suggest_foreign=no
- for file in AUTHORS COPYING ChangeLog INSTALL NEWS README ; do
- if [ ! -f $file ] ; then
- $VERBOSE_ECHO "Touching ${file} since it does not exist"
- _suggest_foreign=yes
- touch $file
- fi
- done
-
- if [ "x${_suggest_foreign}" = "xyes" ] ; then
- $ECHO
- $ECHO "Warning: Several files expected of projects that conform to the GNU"
- $ECHO "coding standards were not found. The files were automatically added"
- $ECHO "for you since you do not have a 'foreign' declaration specified."
- $ECHO
- $ECHO "Considered adding 'foreign' to AM_INIT_AUTOMAKE in `basename \"$CONFIGURE\"`"
- if test -f "`dirname \"$CONFIGURE\"/Makefile.am`" ; then
- $ECHO "or to AUTOMAKE_OPTIONS in your top-level Makefile.am file."
- fi
- $ECHO
- fi
- fi
-
- ##################################################
- # make sure certain generated files do not exist #
- ##################################################
- for file in config.guess config.sub ltmain.sh ; do
- if test -f "${_aux_dir}/${file}" ; then
- $VERBOSE_ECHO "mv -f \"${_aux_dir}/${file}\" \"${_aux_dir}/${file}.backup\""
- mv -f "${_aux_dir}/${file}" "${_aux_dir}/${file}.backup"
- fi
- done
-
- ############################
- # search alternate m4 dirs #
- ############################
- SEARCH_DIRS=""
- for dir in m4 ; do
- if [ -d $dir ] ; then
- $VERBOSE_ECHO "Found extra aclocal search directory: $dir"
- SEARCH_DIRS="$SEARCH_DIRS -I $dir"
- fi
- done
-
- ######################################
- # remove any previous build products #
- ######################################
- if test -d autom4te.cache ; then
- $VERBOSE_ECHO "Found an autom4te.cache directory, deleting it"
- $VERBOSE_ECHO "rm -rf autom4te.cache"
- rm -rf autom4te.cache
- fi
-# tcl/tk (and probably others) have a customized aclocal.m4, so can't delete it
-# if test -f aclocal.m4 ; then
-# $VERBOSE_ECHO "Found an aclocal.m4 file, deleting it"
-# $VERBOSE_ECHO "rm -f aclocal.m4"
-# rm -f aclocal.m4
-# fi
-
-} # end of initialize()
-
-
-##############
-# initialize #
-##############
-
-# stash path
-START_PATH="`pwd`"
-
-# Before running autoreconf or manual steps, some prep detection work
-# is necessary or useful. Only needs to occur once per directory, but
-# does need to traverse the entire subconfigure hierarchy to protect
-# files from being clobbered even by autoreconf.
-recursive_protect
-
-# start from where we started
-cd "$START_PATH"
-
-# get ready to process
-initialize
-
-
-#########################################
-# DOWNLOAD_GNULIB_CONFIG_GUESS FUNCTION #
-#########################################
-
-# TODO - should make sure wget/curl exist and/or work before trying to
-# use them.
-
-download_gnulib_config_guess () {
- # abuse gitweb to download gnulib's latest config.guess via HTTP
- config_guess_temp="config.guess.$$.download"
- ret=1
- for __cmd in wget curl fetch ; do
- $VERBOSE_ECHO "Checking for command ${__cmd}"
- ${__cmd} --version > /dev/null 2>&1
- ret=$?
- if [ ! $ret = 0 ] ; then
- continue
- fi
-
- __cmd_version=`${__cmd} --version | head -n 1 | sed -e 's/^[^0-9]\+//' -e 's/ .*//'`
- $VERBOSE_ECHO "Found ${__cmd} ${__cmd_version}"
-
- opts=""
- case ${__cmd} in
- wget)
- opts="-O"
- ;;
- curl)
- opts="-o"
- ;;
- fetch)
- opts="-t 5 -f"
- ;;
- esac
-
- $VERBOSE_ECHO "Running $__cmd \"${CONFIG_GUESS_URL}\" $opts \"${config_guess_temp}\""
- eval "$__cmd \"${CONFIG_GUESS_URL}\" $opts \"${config_guess_temp}\"" > /dev/null 2>&1
- if [ $? = 0 ] ; then
- mv -f "${config_guess_temp}" ${_aux_dir}/config.guess
- ret=0
- break
- fi
- done
-
- if [ ! $ret = 0 ] ; then
- $ECHO "Warning: config.guess download failed from: $CONFIG_GUESS_URL"
- rm -f "${config_guess_temp}"
- fi
-}
-
-
-##############################
-# LIBTOOLIZE_NEEDED FUNCTION #
-##############################
-libtoolize_needed () {
- ret=1 # means no, don't need libtoolize
- for feature in AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT ; do
- $VERBOSE_ECHO "Searching for $feature in $CONFIGURE"
- found="`grep \"^$feature.*\" $CONFIGURE`"
- if [ ! "x$found" = "x" ] ; then
- ret=0 # means yes, need to run libtoolize
- break
- fi
- done
- return ${ret}
-}
-
-
-
-############################################
-# prepare build via autoreconf or manually #
-############################################
-reconfigure_manually=no
-if [ "x$HAVE_AUTORECONF" = "xyes" ] ; then
- $ECHO
- $ECHO $ECHO_N "Automatically preparing build ... $ECHO_C"
-
- $VERBOSE_ECHO "$AUTORECONF $SEARCH_DIRS $AUTORECONF_OPTIONS"
- autoreconf_output="`$AUTORECONF $SEARCH_DIRS $AUTORECONF_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$autoreconf_output"
-
- if [ ! $ret = 0 ] ; then
- if [ "x$HAVE_ALT_LIBTOOLIZE" = "xyes" ] ; then
- if [ ! "x`echo \"$autoreconf_output\" | grep libtoolize | grep \"No such file or directory\"`" = "x" ] ; then
- $ECHO
- $ECHO "Warning: autoreconf failed but due to what is usually a common libtool"
- $ECHO "misconfiguration issue. This problem is encountered on systems that"
- $ECHO "have installed libtoolize under a different name without providing a"
- $ECHO "symbolic link or without setting the LIBTOOLIZE environment variable."
- $ECHO
- $ECHO "Restarting the preparation steps with LIBTOOLIZE set to $LIBTOOLIZE"
-
- export LIBTOOLIZE
- RUN_RECURSIVE=no
- export RUN_RECURSIVE
- untrap_abnormal
-
- $VERBOSE_ECHO sh $AUTOGEN_SH "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
- sh "$AUTOGEN_SH" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
- exit $?
- fi
- fi
-
- $ECHO "Warning: $AUTORECONF failed"
-
- if test -f ltmain.sh ; then
- $ECHO "libtoolize being run by autoreconf is not creating ltmain.sh in the auxillary directory like it should"
- fi
-
- $ECHO "Attempting to run the preparation steps individually"
- reconfigure_manually=yes
- else
- if [ "x$DOWNLOAD" = "xyes" ] ; then
- if libtoolize_needed ; then
- download_gnulib_config_guess
- fi
- fi
- fi
-else
- reconfigure_manually=yes
-fi
-
-
-############################
-# LIBTOOL_FAILURE FUNCTION #
-############################
-libtool_failure ( ) {
-
- # libtool is rather error-prone in comparison to the other
- # autotools and this routine attempts to compensate for some
- # common failures. the output after a libtoolize failure is
- # parsed for an error related to AC_PROG_LIBTOOL and if found, we
- # attempt to inject a project-provided libtool.m4 file.
-
- _autoconf_output="$1"
-
- if [ "x$RUN_RECURSIVE" = "xno" ] ; then
- # we already tried the libtool.m4, don't try again
- return 1
- fi
-
- if test -f "$LIBTOOL_M4" ; then
- found_libtool="`$ECHO $_autoconf_output | grep AC_PROG_LIBTOOL`"
- if test ! "x$found_libtool" = "x" ; then
- if test -f acinclude.m4 ; then
- rm -f acinclude.m4.$$.backup
- $VERBOSE_ECHO "cat acinclude.m4 > acinclude.m4.$$.backup"
- cat acinclude.m4 > acinclude.m4.$$.backup
- fi
- $VERBOSE_ECHO "cat \"$LIBTOOL_M4\" >> acinclude.m4"
- chmod u+w acinclude.m4
- cat "$LIBTOOL_M4" >> acinclude.m4
-
- # don't keep doing this
- RUN_RECURSIVE=no
- export RUN_RECURSIVE
- untrap_abnormal
-
- $ECHO
- $ECHO "Restarting the preparation steps with libtool macros in acinclude.m4"
- $VERBOSE_ECHO sh $AUTOGEN_SH "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
- sh "$AUTOGEN_SH" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
- exit $?
- fi
- fi
-}
-
-
-###########################
-# MANUAL_AUTOGEN FUNCTION #
-###########################
-manual_autogen ( ) {
-
- ##################################################
- # Manual preparation steps taken are as follows: #
- # aclocal [-I m4] #
- # libtoolize --automake -c -f #
- # aclocal [-I m4] #
- # autoconf -f #
- # autoheader #
- # automake -a -c -f #
- ##################################################
-
- ###########
- # aclocal #
- ###########
- $VERBOSE_ECHO "$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS"
- aclocal_output="`$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$aclocal_output"
- if [ ! $ret = 0 ] ; then $ECHO "ERROR: $ACLOCAL failed" && exit 2 ; fi
-
- ##############
- # libtoolize #
- ##############
- if libtoolize_needed ; then
- if [ "x$HAVE_LIBTOOLIZE" = "xyes" ] ; then
- $VERBOSE_ECHO "$LIBTOOLIZE $LIBTOOLIZE_OPTIONS"
- libtoolize_output="`$LIBTOOLIZE $LIBTOOLIZE_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$libtoolize_output"
-
- if [ ! $ret = 0 ] ; then $ECHO "ERROR: $LIBTOOLIZE failed" && exit 2 ; fi
- else
- if [ "x$HAVE_ALT_LIBTOOLIZE" = "xyes" ] ; then
- $VERBOSE_ECHO "$LIBTOOLIZE $ALT_LIBTOOLIZE_OPTIONS"
- libtoolize_output="`$LIBTOOLIZE $ALT_LIBTOOLIZE_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$libtoolize_output"
-
- if [ ! $ret = 0 ] ; then $ECHO "ERROR: $LIBTOOLIZE failed" && exit 2 ; fi
- fi
- fi
-
- ###########
- # aclocal #
- ###########
- # re-run again as instructed by libtoolize
- $VERBOSE_ECHO "$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS"
- aclocal_output="`$ACLOCAL $SEARCH_DIRS $ACLOCAL_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$aclocal_output"
-
- # libtoolize might put ltmain.sh in the wrong place
- if test -f ltmain.sh ; then
- if test ! -f "${_aux_dir}/ltmain.sh" ; then
- $ECHO
- $ECHO "Warning: $LIBTOOLIZE is creating ltmain.sh in the wrong directory"
- $ECHO
- $ECHO "Fortunately, the problem can be worked around by simply copying the"
- $ECHO "file to the appropriate location (${_aux_dir}/). This has been done for you."
- $ECHO
- $VERBOSE_ECHO "cp -p ltmain.sh \"${_aux_dir}/ltmain.sh\""
- cp -p ltmain.sh "${_aux_dir}/ltmain.sh"
- $ECHO $ECHO_N "Continuing build preparation ... $ECHO_C"
- fi
- fi # ltmain.sh
-
- if [ "x$DOWNLOAD" = "xyes" ] ; then
- download_gnulib_config_guess
- fi
- fi # libtoolize_needed
-
- ############
- # autoconf #
- ############
- $VERBOSE_ECHO
- $VERBOSE_ECHO "$AUTOCONF $AUTOCONF_OPTIONS"
- autoconf_output="`$AUTOCONF $AUTOCONF_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$autoconf_output"
-
- if [ ! $ret = 0 ] ; then
- # retry without the -f and check for usage of macros that are too new
- ac2_59_macros="AC_C_RESTRICT AC_INCLUDES_DEFAULT AC_LANG_ASSERT AC_LANG_WERROR AS_SET_CATFILE"
- ac2_55_macros="AC_COMPILER_IFELSE AC_FUNC_MBRTOWC AC_HEADER_STDBOOL AC_LANG_CONFTEST AC_LANG_SOURCE AC_LANG_PROGRAM AC_LANG_CALL AC_LANG_FUNC_TRY_LINK AC_MSG_FAILURE AC_PREPROC_IFELSE"
- ac2_54_macros="AC_C_BACKSLASH_A AC_CONFIG_LIBOBJ_DIR AC_GNU_SOURCE AC_PROG_EGREP AC_PROG_FGREP AC_REPLACE_FNMATCH AC_FUNC_FNMATCH_GNU AC_FUNC_REALLOC AC_TYPE_MBSTATE_T"
-
- macros_to_search=""
- ac_major="`echo ${AUTOCONF_VERSION}. | cut -d. -f1 | sed 's/[^0-9]//g'`"
- ac_minor="`echo ${AUTOCONF_VERSION}. | cut -d. -f2 | sed 's/[^0-9]//g'`"
-
- if [ $ac_major -lt 2 ] ; then
- macros_to_search="$ac2_59_macros $ac2_55_macros $ac2_54_macros"
- else
- if [ $ac_minor -lt 54 ] ; then
- macros_to_search="$ac2_59_macros $ac2_55_macros $ac2_54_macros"
- elif [ $ac_minor -lt 55 ] ; then
- macros_to_search="$ac2_59_macros $ac2_55_macros"
- elif [ $ac_minor -lt 59 ] ; then
- macros_to_search="$ac2_59_macros"
- fi
- fi
-
- configure_ac_macros=__none__
- for feature in $macros_to_search ; do
- $VERBOSE_ECHO "Searching for $feature in $CONFIGURE"
- found="`grep \"^$feature.*\" $CONFIGURE`"
- if [ ! "x$found" = "x" ] ; then
- if [ "x$configure_ac_macros" = "x__none__" ] ; then
- configure_ac_macros="$feature"
- else
- configure_ac_macros="$feature $configure_ac_macros"
- fi
- fi
- done
- if [ ! "x$configure_ac_macros" = "x__none__" ] ; then
- $ECHO
- $ECHO "Warning: Unsupported macros were found in $CONFIGURE"
- $ECHO
- $ECHO "The `basename \"$CONFIGURE\"` file was scanned in order to determine if any"
- $ECHO "unsupported macros are used that exceed the minimum version"
- $ECHO "settings specified within this file. As such, the following macros"
- $ECHO "should be removed from configure.ac or the version numbers in this"
- $ECHO "file should be increased:"
- $ECHO
- $ECHO "$configure_ac_macros"
- $ECHO
- $ECHO $ECHO_N "Ignorantly continuing build preparation ... $ECHO_C"
- fi
-
- ###################
- # autoconf, retry #
- ###################
- $VERBOSE_ECHO
- $VERBOSE_ECHO "$AUTOCONF"
- autoconf_output="`$AUTOCONF 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$autoconf_output"
-
- if [ ! $ret = 0 ] ; then
- # test if libtool is busted
- libtool_failure "$autoconf_output"
-
- # let the user know what went wrong
- cat <<EOF
-$autoconf_output
-EOF
- $ECHO "ERROR: $AUTOCONF failed"
- exit 2
- else
- # autoconf sans -f and possibly sans unsupported options succeed so warn verbosely
- $ECHO
- $ECHO "Warning: autoconf seems to have succeeded by removing the following options:"
- $ECHO " AUTOCONF_OPTIONS=\"$AUTOCONF_OPTIONS\""
- $ECHO
- $ECHO "Removing those options should not be necessary and indicate some other"
- $ECHO "problem with the build system. The build preparation is highly suspect"
- $ECHO "and may result in configuration or compilation errors. Consider"
- if [ "x$VERBOSE_ECHO" = "x:" ] ; then
- $ECHO "rerunning the build preparation with verbose output enabled."
- $ECHO " $AUTOGEN_SH --verbose"
- else
- $ECHO "reviewing the minimum GNU Autotools version settings contained in"
- $ECHO "this script along with the macros being used in your `basename \"$CONFIGURE\"` file."
- fi
- $ECHO
- $ECHO $ECHO_N "Continuing build preparation ... $ECHO_C"
- fi # autoconf ret = 0
- fi # autoconf ret = 0
-
- ##############
- # autoheader #
- ##############
- need_autoheader=no
- for feature in AM_CONFIG_HEADER AC_CONFIG_HEADER ; do
- $VERBOSE_ECHO "Searching for $feature in $CONFIGURE"
- found="`grep \"^$feature.*\" $CONFIGURE`"
- if [ ! "x$found" = "x" ] ; then
- need_autoheader=yes
- break
- fi
- done
- if [ "x$need_autoheader" = "xyes" ] ; then
- $VERBOSE_ECHO "$AUTOHEADER $AUTOHEADER_OPTIONS"
- autoheader_output="`$AUTOHEADER $AUTOHEADER_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$autoheader_output"
- if [ ! $ret = 0 ] ; then $ECHO "ERROR: $AUTOHEADER failed" && exit 2 ; fi
- fi # need_autoheader
-
- ############
- # automake #
- ############
- need_automake=no
- for feature in AM_INIT_AUTOMAKE ; do
- $VERBOSE_ECHO "Searching for $feature in $CONFIGURE"
- found="`grep \"^$feature.*\" $CONFIGURE`"
- if [ ! "x$found" = "x" ] ; then
- need_automake=yes
- break
- fi
- done
-
- if [ "x$need_automake" = "xyes" ] ; then
- $VERBOSE_ECHO "$AUTOMAKE $AUTOMAKE_OPTIONS"
- automake_output="`$AUTOMAKE $AUTOMAKE_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$automake_output"
-
- if [ ! $ret = 0 ] ; then
-
- ###################
- # automake, retry #
- ###################
- $VERBOSE_ECHO
- $VERBOSE_ECHO "$AUTOMAKE $ALT_AUTOMAKE_OPTIONS"
- # retry without the -f
- automake_output="`$AUTOMAKE $ALT_AUTOMAKE_OPTIONS 2>&1`"
- ret=$?
- $VERBOSE_ECHO "$automake_output"
-
- if [ ! $ret = 0 ] ; then
- # test if libtool is busted
- libtool_failure "$automake_output"
-
- # let the user know what went wrong
- cat <<EOF
-$automake_output
-EOF
- $ECHO "ERROR: $AUTOMAKE failed"
- exit 2
- fi # automake retry
- fi # automake ret = 0
- fi # need_automake
-} # end of manual_autogen
-
-
-#####################################
-# RECURSIVE_MANUAL_AUTOGEN FUNCTION #
-#####################################
-recursive_manual_autogen ( ) {
-
- # run the build preparation steps manually for this directory
- manual_autogen
-
- # for projects using recursive configure, run the build
- # preparation steps for the subdirectories.
- if [ ! "x$CONFIG_SUBDIRS" = "x" ] ; then
- $VERBOSE_ECHO "Recursively configuring the following directories:"
- $VERBOSE_ECHO " $CONFIG_SUBDIRS"
- for dir in $CONFIG_SUBDIRS ; do
- $VERBOSE_ECHO "Processing recursive configure in $dir"
- cd "$START_PATH"
- cd "$dir"
-
- # new directory, prepare
- initialize
-
- # run manual steps for the subdir and any others below
- recursive_manual_autogen
- done
- fi
-}
-
-
-################################
-# run manual preparation steps #
-################################
-if [ "x$reconfigure_manually" = "xyes" ] ; then
- $ECHO
- $ECHO $ECHO_N "Preparing build ... $ECHO_C"
-
- recursive_manual_autogen
-fi
-
-
-#########################
-# restore and summarize #
-#########################
-cd "$START_PATH"
-
-# restore COPYING and INSTALL from backup if necessary
-recursive_restore
-
-# make sure we end up with a configure script
-config_ac="`locate_configure_template`"
-config="`echo $config_ac | sed 's/\.ac$//' | sed 's/\.in$//'`"
-if [ "x$config" = "x" ] ; then
- $VERBOSE_ECHO "Could not locate the configure template (from `pwd`)"
-fi
-
-# summarize
-$ECHO "done"
-$ECHO
-if test "x$config" = "x" -o ! -f "$config" ; then
- $ECHO "WARNING: The $PROJECT build system should now be prepared but there"
- $ECHO "does not seem to be a resulting configure file. This is unexpected"
- $ECHO "and likely the result of an error. You should run $NAME_OF_AUTOGEN"
- $ECHO "with the --verbose option to get more details on a potential"
- $ECHO "misconfiguration."
-else
- $ECHO "The $PROJECT build system is now prepared. To build here, run:"
- $ECHO " $config"
- $ECHO " make"
-fi
-
-
-# Local Variables:
-# mode: sh
-# tab-width: 8
-# sh-basic-offset: 4
-# sh-indentation: 4
-# indent-tabs-mode: t
-# End:
-# ex: shiftwidth=4 tabstop=8
diff --git a/tikzit-old/build/DEBIAN/control b/tikzit-old/build/DEBIAN/control
deleted file mode 100644
index 25d2f07..0000000
--- a/tikzit-old/build/DEBIAN/control
+++ /dev/null
@@ -1,11 +0,0 @@
-Package: tikzit
-Version: 0.3
-Section: tex
-Priority: optional
-Architecture: all
-Essential: no
-Depends: libgtk2.0-0
-Installed-Size: 156kB
-Maintainer: Chris Heunen <chrisheunen@gmail.com>
-Provides: tikzit
-Description: TikZiT is a GTK+ application that allows the creation and modification of TeX diagrams written using the pgf/TikZ macro library. It is especially geared toward rapidly creating "dot"-diagrams for use in academic papers.
diff --git a/tikzit-old/configure.ac b/tikzit-old/configure.ac
deleted file mode 100644
index a86156b..0000000
--- a/tikzit-old/configure.ac
+++ /dev/null
@@ -1,141 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ([2.60])
-AC_INIT([TikZiT], [1.1],
- [http://sourceforge.net/apps/trac/tikzit],
- [tikzit],
- [http://tikzit.sourceforge.net])
-AM_INIT_AUTOMAKE([1.10 foreign subdir-objects -Wall -Werror])
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-AC_OUTPUT(Makefile
- src/Makefile
- share/Makefile
-)
-AC_CONFIG_SRCDIR([src/gtk/main.m])
-
-m4_include([m4/objc.m4])
-
-# Checks for programs.
-AC_PROG_OBJC([gcc clang objc objcc])
-AC_LANG([Objective C])
-
-AC_CHECK_PROGS([FLEX], [flex lex], [flex])
-AS_IF([$FLEX --version 2>/dev/null | grep "^flex" >/dev/null 2>/dev/null],[],
- [
- AC_MSG_WARN([flex not found; this may cause problems for developers])
- # in case a lex that wasn't flex was found
- FLEX=flex
- ])
-AM_MISSING_PROG([LEX], [$FLEX])
-
-AC_CHECK_PROGS([BISON], [bison yacc], [bison])
-AS_IF([$BISON --version 2>/dev/null | grep "^bison" >/dev/null 2>/dev/null],[],
- [
- AC_MSG_WARN([bison not found; this may cause problems for developers])
- # in case a yacc that wasn't bison was found
- BISON=bison
- ])
-AM_MISSING_PROG([YACC], [$BISON])
-
-# Checks for libraries.
-FOUNDATION_OBJCFLAGS=`eval "gnustep-config --objc-flags"`
-AS_IF([test "x$FOUNDATION_OBJCFLAGS" = "x"],
- [AC_MSG_ERROR([GNUstep not found])])
-FOUNDATION_LIBS=`eval "gnustep-config --base-libs"`
-AS_IF([test "x$FOUNDATION_LIBS" = "x"],
- [AC_MSG_ERROR([GNUstep not found])])
-AC_SUBST([FOUNDATION_OBJCFLAGS])
-AC_SUBST([FOUNDATION_LIBS])
-
-TZ_TEST_OBJCFLAGS="$FOUNDATION_OBJCFLAGS"
-TZ_TEST_LDFLAGS="$FOUNDATION_LIBS"
-
-TZ_OBJC_FOUNDATION
-AS_IF([test "x$tz_cv_objc_foundation" != "xyes"],
- [AC_MSG_ERROR([Objective C Foundation not found -- missing gnustep-base(-devel)?])])
-
-AC_ARG_WITH([poppler], AS_HELP_STRING([--without-poppler], [Ignore presence of poppler, disabling preview support]))
-
-AS_IF([test "x$with_poppler" != "xno"],
- [
- AC_MSG_CHECKING([for poppler-glib])
- PKG_CHECK_EXISTS([poppler-glib >= 0.10],
- [have_poppler=yes],
- [have_poppler=no])
- AS_IF([test "x$have_poppler" = "xyes"],
- [
- AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_POPPLER, 1)
- ],
- [
- AC_MSG_RESULT([no])
- AS_IF([test "x$with_poppler" = "xyes"],
- [AC_MSG_ERROR([poppler requested but not found (note that poppler-glib is required)])]
- )
- ])
- ],
- [have_poppler=no])
-AM_CONDITIONAL([HAVE_POPPLER],[test "x$have_poppler" = "xyes"])
-
-# Test all the pkg-config stuff together, so that
-# dependencies and duplicate flags are correctly handled
-AS_IF([test "x$have_poppler" = "xyes"],
- [PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.18.0 gdk-pixbuf-2.0 >= 2.16.0 pango >= 1.16 cairo >= 1.4 poppler-glib >= 0.10])],
- [PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.18.0 gdk-pixbuf-2.0 >= 2.16.0 pango >= 1.16 cairo >= 1.4])])
-
-# Checks for header files.
-AC_FUNC_ALLOCA
-AC_CHECK_HEADERS([inttypes.h libintl.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h unistd.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_TYPE_INT16_T
-AC_TYPE_INT32_T
-AC_TYPE_INT8_T
-AC_TYPE_SIZE_T
-AC_TYPE_UINT16_T
-AC_TYPE_UINT32_T
-AC_TYPE_UINT64_T
-AC_TYPE_UINT8_T
-AC_HEADER_STDBOOL
-AC_HEADER_STAT
-AC_CHECK_HEADERS([stdint.h inttypes.h unistd.h sys/time.h time.h])
-
-# Checks for library functions.
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
-AC_CHECK_FUNCS([floor gettimeofday memset mkdtemp sqrt strdup])
-
-TZ_OBJC2_FEATURES
-AS_IF([test "x$tz_cv_objc_properties$tz_cv_objc_fast_enumeration$tz_cv_objc_optional_keyword" != "xyesyesyes"],
- [AC_MSG_ERROR([Your Objective C compiler does not support the required Objective C 2 features])])
-
-dnl ----------------------------------------------------------------------------
-dnl
-dnl platform-specific stuff.
-
-AC_CANONICAL_HOST
-have_msw="no"
-case $host_os in
-
- *mingw32*)
- have_msw="yes"
- OBJCFLAGS="$OBJCFLAGS -mwindows"
- AC_SUBST([WINDOWS])
- AC_SUBST([WIN32])
- AC_SUBST([_WIN32])
- ;;
-
-esac
-
-AM_CONDITIONAL([WINDOWS],[test "x$have_msw" = "xyes"])
-
-AS_IF([test "x$with_poppler" != "xno"],
- [AS_IF([test "x$have_poppler" != "xyes"],
- AC_MSG_WARN([poppler-glib was not found; preview support will be disabled])
- )]
- )
-
-AC_OUTPUT
-
-# vi:sts=2:sw=2:et
diff --git a/tikzit-old/customshape.png b/tikzit-old/customshape.png
deleted file mode 100755
index cff8275..0000000
--- a/tikzit-old/customshape.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/docs/Doxyfile b/tikzit-old/docs/Doxyfile
deleted file mode 100644
index 70a27f7..0000000
--- a/tikzit-old/docs/Doxyfile
+++ /dev/null
@@ -1,1600 +0,0 @@
-# Doxyfile 1.6.3
-
-# This file describes the settings to be used by the documentation system
-# doxygen (www.doxygen.org) for a project
-#
-# All text after a hash (#) is considered a comment and will be ignored
-# The format is:
-# TAG = value [value, ...]
-# For lists items can also be appended using:
-# TAG += value [value, ...]
-# Values that contain spaces should be placed between quotes (" ")
-
-#---------------------------------------------------------------------------
-# Project related configuration options
-#---------------------------------------------------------------------------
-
-# This tag specifies the encoding used for all characters in the config file
-# that follow. The default is UTF-8 which is also the encoding used for all
-# text before the first occurrence of this tag. Doxygen uses libiconv (or the
-# iconv built into libc) for the transcoding. See
-# http://www.gnu.org/software/libiconv for the list of possible encodings.
-
-DOXYFILE_ENCODING = UTF-8
-
-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
-# by quotes) that should identify the project.
-
-PROJECT_NAME = TikZiT
-
-# The PROJECT_NUMBER tag can be used to enter a project or revision number.
-# This could be handy for archiving the generated documentation or
-# if some version control system is used.
-
-PROJECT_NUMBER = 0.3
-
-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
-# base path where the generated documentation will be put.
-# If a relative path is entered, it will be relative to the location
-# where doxygen was started. If left blank the current directory will be used.
-
-OUTPUT_DIRECTORY = doxygen
-
-# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
-# 4096 sub-directories (in 2 levels) under the output directory of each output
-# format and will distribute the generated files over these directories.
-# Enabling this option can be useful when feeding doxygen a huge amount of
-# source files, where putting all generated files in the same directory would
-# otherwise cause performance problems for the file system.
-
-CREATE_SUBDIRS = NO
-
-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all constant output in the proper language.
-# The default language is English, other supported languages are:
-# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
-# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
-# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
-# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
-# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
-# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
-
-OUTPUT_LANGUAGE = English
-
-# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
-# include brief member descriptions after the members that are listed in
-# the file and class documentation (similar to JavaDoc).
-# Set to NO to disable this.
-
-BRIEF_MEMBER_DESC = YES
-
-# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
-# the brief description of a member or function before the detailed description.
-# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
-# brief descriptions will be completely suppressed.
-
-REPEAT_BRIEF = YES
-
-# This tag implements a quasi-intelligent brief description abbreviator
-# that is used to form the text in various listings. Each string
-# in this list, if found as the leading text of the brief description, will be
-# stripped from the text and the result after processing the whole list, is
-# used as the annotated text. Otherwise, the brief description is used as-is.
-# If left blank, the following values are used ("$name" is automatically
-# replaced with the name of the entity): "The $name class" "The $name widget"
-# "The $name file" "is" "provides" "specifies" "contains"
-# "represents" "a" "an" "the"
-
-ABBREVIATE_BRIEF = "The $name class" \
- "The $name widget" \
- "The $name file" \
- is \
- provides \
- specifies \
- contains \
- represents \
- a \
- an \
- the
-
-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
-# Doxygen will generate a detailed section even if there is only a brief
-# description.
-
-ALWAYS_DETAILED_SEC = NO
-
-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
-# inherited members of a class in the documentation of that class as if those
-# members were ordinary class members. Constructors, destructors and assignment
-# operators of the base classes will not be shown.
-
-INLINE_INHERITED_MEMB = NO
-
-# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
-# path before files name in the file list and in the header files. If set
-# to NO the shortest path that makes the file name unique will be used.
-
-FULL_PATH_NAMES = YES
-
-# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
-# can be used to strip a user-defined part of the path. Stripping is
-# only done if one of the specified strings matches the left-hand part of
-# the path. The tag can be used to show relative paths in the file list.
-# If left blank the directory from which doxygen is run is used as the
-# path to strip.
-
-STRIP_FROM_PATH = /Applications/
-
-# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
-# the path mentioned in the documentation of a class, which tells
-# the reader which header file to include in order to use a class.
-# If left blank only the name of the header file containing the class
-# definition is used. Otherwise one should specify the include paths that
-# are normally passed to the compiler using the -I flag.
-
-STRIP_FROM_INC_PATH =
-
-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
-# (but less readable) file names. This can be useful is your file systems
-# doesn't support long names like on DOS, Mac, or CD-ROM.
-
-SHORT_NAMES = NO
-
-# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
-# will interpret the first line (until the first dot) of a JavaDoc-style
-# comment as the brief description. If set to NO, the JavaDoc
-# comments will behave just like regular Qt-style comments
-# (thus requiring an explicit @brief command for a brief description.)
-
-JAVADOC_AUTOBRIEF = NO
-
-# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
-# interpret the first line (until the first dot) of a Qt-style
-# comment as the brief description. If set to NO, the comments
-# will behave just like regular Qt-style comments (thus requiring
-# an explicit \brief command for a brief description.)
-
-QT_AUTOBRIEF = NO
-
-# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
-# treat a multi-line C++ special comment block (i.e. a block of //! or ///
-# comments) as a brief description. This used to be the default behaviour.
-# The new default is to treat a multi-line C++ comment block as a detailed
-# description. Set this tag to YES if you prefer the old behaviour instead.
-
-MULTILINE_CPP_IS_BRIEF = NO
-
-# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
-# member inherits the documentation from any documented member that it
-# re-implements.
-
-INHERIT_DOCS = YES
-
-# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
-# a new page for each member. If set to NO, the documentation of a member will
-# be part of the file/class/namespace that contains it.
-
-SEPARATE_MEMBER_PAGES = NO
-
-# The TAB_SIZE tag can be used to set the number of spaces in a tab.
-# Doxygen uses this value to replace tabs by spaces in code fragments.
-
-TAB_SIZE = 8
-
-# This tag can be used to specify a number of aliases that acts
-# as commands in the documentation. An alias has the form "name=value".
-# For example adding "sideeffect=\par Side Effects:\n" will allow you to
-# put the command \sideeffect (or @sideeffect) in the documentation, which
-# will result in a user-defined paragraph with heading "Side Effects:".
-# You can put \n's in the value part of an alias to insert newlines.
-
-ALIASES =
-
-# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
-# sources only. Doxygen will then generate output that is more tailored for C.
-# For instance, some of the names that are used will be different. The list
-# of all members will be omitted, etc.
-
-OPTIMIZE_OUTPUT_FOR_C = NO
-
-# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
-# sources only. Doxygen will then generate output that is more tailored for
-# Java. For instance, namespaces will be presented as packages, qualified
-# scopes will look different, etc.
-
-OPTIMIZE_OUTPUT_JAVA = NO
-
-# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
-# sources only. Doxygen will then generate output that is more tailored for
-# Fortran.
-
-OPTIMIZE_FOR_FORTRAN = NO
-
-# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
-# sources. Doxygen will then generate output that is tailored for
-# VHDL.
-
-OPTIMIZE_OUTPUT_VHDL = NO
-
-# Doxygen selects the parser to use depending on the extension of the files it parses.
-# With this tag you can assign which parser to use for a given extension.
-# Doxygen has a built-in mapping, but you can override or extend it using this tag.
-# The format is ext=language, where ext is a file extension, and language is one of
-# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
-# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
-# use: inc=Fortran f=C. Note that for custom extensions you also need to set
-# FILE_PATTERNS otherwise the files are not read by doxygen.
-
-EXTENSION_MAPPING =
-
-# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
-# to include (a tag file for) the STL sources as input, then you should
-# set this tag to YES in order to let doxygen match functions declarations and
-# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
-# func(std::string) {}). This also make the inheritance and collaboration
-# diagrams that involve STL classes more complete and accurate.
-
-BUILTIN_STL_SUPPORT = NO
-
-# If you use Microsoft's C++/CLI language, you should set this option to YES to
-# enable parsing support.
-
-CPP_CLI_SUPPORT = NO
-
-# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
-# Doxygen will parse them like normal C++ but will assume all classes use public
-# instead of private inheritance when no explicit protection keyword is present.
-
-SIP_SUPPORT = NO
-
-# For Microsoft's IDL there are propget and propput attributes to indicate getter
-# and setter methods for a property. Setting this option to YES (the default)
-# will make doxygen to replace the get and set methods by a property in the
-# documentation. This will only work if the methods are indeed getting or
-# setting a simple type. If this is not the case, or you want to show the
-# methods anyway, you should set this option to NO.
-
-IDL_PROPERTY_SUPPORT = YES
-
-# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
-# tag is set to YES, then doxygen will reuse the documentation of the first
-# member in the group (if any) for the other members of the group. By default
-# all members of a group must be documented explicitly.
-
-DISTRIBUTE_GROUP_DOC = NO
-
-# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
-# the same type (for instance a group of public functions) to be put as a
-# subgroup of that type (e.g. under the Public Functions section). Set it to
-# NO to prevent subgrouping. Alternatively, this can be done per class using
-# the \nosubgrouping command.
-
-SUBGROUPING = YES
-
-# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
-# is documented as struct, union, or enum with the name of the typedef. So
-# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
-# with name TypeT. When disabled the typedef will appear as a member of a file,
-# namespace, or class. And the struct will be named TypeS. This can typically
-# be useful for C code in case the coding convention dictates that all compound
-# types are typedef'ed and only the typedef is referenced, never the tag name.
-
-TYPEDEF_HIDES_STRUCT = NO
-
-# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
-# determine which symbols to keep in memory and which to flush to disk.
-# When the cache is full, less often used symbols will be written to disk.
-# For small to medium size projects (<1000 input files) the default value is
-# probably good enough. For larger projects a too small cache size can cause
-# doxygen to be busy swapping symbols to and from disk most of the time
-# causing a significant performance penality.
-# If the system has enough physical memory increasing the cache will improve the
-# performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
-# memory usage. The cache size is given by this formula:
-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
-# corresponding to a cache size of 2^16 = 65536 symbols
-
-SYMBOL_CACHE_SIZE = 0
-
-#---------------------------------------------------------------------------
-# Build related configuration options
-#---------------------------------------------------------------------------
-
-# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
-# documentation are documented, even if no documentation was available.
-# Private class members and static file members will be hidden unless
-# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
-
-EXTRACT_ALL = YES
-
-# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
-# will be included in the documentation.
-
-EXTRACT_PRIVATE = NO
-
-# If the EXTRACT_STATIC tag is set to YES all static members of a file
-# will be included in the documentation.
-
-EXTRACT_STATIC = NO
-
-# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
-# defined locally in source files will be included in the documentation.
-# If set to NO only classes defined in header files are included.
-
-EXTRACT_LOCAL_CLASSES = YES
-
-# This flag is only useful for Objective-C code. When set to YES local
-# methods, which are defined in the implementation section but not in
-# the interface are included in the documentation.
-# If set to NO (the default) only methods in the interface are included.
-
-EXTRACT_LOCAL_METHODS = NO
-
-# If this flag is set to YES, the members of anonymous namespaces will be
-# extracted and appear in the documentation as a namespace called
-# 'anonymous_namespace{file}', where file will be replaced with the base
-# name of the file that contains the anonymous namespace. By default
-# anonymous namespace are hidden.
-
-EXTRACT_ANON_NSPACES = NO
-
-# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
-# undocumented members of documented classes, files or namespaces.
-# If set to NO (the default) these members will be included in the
-# various overviews, but no documentation section is generated.
-# This option has no effect if EXTRACT_ALL is enabled.
-
-HIDE_UNDOC_MEMBERS = YES
-
-# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
-# undocumented classes that are normally visible in the class hierarchy.
-# If set to NO (the default) these classes will be included in the various
-# overviews. This option has no effect if EXTRACT_ALL is enabled.
-
-HIDE_UNDOC_CLASSES = YES
-
-# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
-# friend (class|struct|union) declarations.
-# If set to NO (the default) these declarations will be included in the
-# documentation.
-
-HIDE_FRIEND_COMPOUNDS = NO
-
-# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
-# documentation blocks found inside the body of a function.
-# If set to NO (the default) these blocks will be appended to the
-# function's detailed documentation block.
-
-HIDE_IN_BODY_DOCS = NO
-
-# The INTERNAL_DOCS tag determines if documentation
-# that is typed after a \internal command is included. If the tag is set
-# to NO (the default) then the documentation will be excluded.
-# Set it to YES to include the internal documentation.
-
-INTERNAL_DOCS = NO
-
-# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
-# file names in lower-case letters. If set to YES upper-case letters are also
-# allowed. This is useful if you have classes or files whose names only differ
-# in case and if your file system supports case sensitive file names. Windows
-# and Mac users are advised to set this option to NO.
-
-CASE_SENSE_NAMES = NO
-
-# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
-# will show members with their full class and namespace scopes in the
-# documentation. If set to YES the scope will be hidden.
-
-HIDE_SCOPE_NAMES = NO
-
-# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
-# will put a list of the files that are included by a file in the documentation
-# of that file.
-
-SHOW_INCLUDE_FILES = YES
-
-# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
-# will list include files with double quotes in the documentation
-# rather than with sharp brackets.
-
-FORCE_LOCAL_INCLUDES = NO
-
-# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
-# is inserted in the documentation for inline members.
-
-INLINE_INFO = YES
-
-# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
-# will sort the (detailed) documentation of file and class members
-# alphabetically by member name. If set to NO the members will appear in
-# declaration order.
-
-SORT_MEMBER_DOCS = YES
-
-# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
-# brief documentation of file, namespace and class members alphabetically
-# by member name. If set to NO (the default) the members will appear in
-# declaration order.
-
-SORT_BRIEF_DOCS = NO
-
-# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
-# will sort the (brief and detailed) documentation of class members so that
-# constructors and destructors are listed first. If set to NO (the default)
-# the constructors will appear in the respective orders defined by
-# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
-# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
-# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
-
-SORT_MEMBERS_CTORS_1ST = NO
-
-# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
-# hierarchy of group names into alphabetical order. If set to NO (the default)
-# the group names will appear in their defined order.
-
-SORT_GROUP_NAMES = NO
-
-# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
-# sorted by fully-qualified names, including namespaces. If set to
-# NO (the default), the class list will be sorted only by class name,
-# not including the namespace part.
-# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
-# Note: This option applies only to the class list, not to the
-# alphabetical list.
-
-SORT_BY_SCOPE_NAME = NO
-
-# The GENERATE_TODOLIST tag can be used to enable (YES) or
-# disable (NO) the todo list. This list is created by putting \todo
-# commands in the documentation.
-
-GENERATE_TODOLIST = YES
-
-# The GENERATE_TESTLIST tag can be used to enable (YES) or
-# disable (NO) the test list. This list is created by putting \test
-# commands in the documentation.
-
-GENERATE_TESTLIST = YES
-
-# The GENERATE_BUGLIST tag can be used to enable (YES) or
-# disable (NO) the bug list. This list is created by putting \bug
-# commands in the documentation.
-
-GENERATE_BUGLIST = YES
-
-# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
-# disable (NO) the deprecated list. This list is created by putting
-# \deprecated commands in the documentation.
-
-GENERATE_DEPRECATEDLIST= YES
-
-# The ENABLED_SECTIONS tag can be used to enable conditional
-# documentation sections, marked by \if sectionname ... \endif.
-
-ENABLED_SECTIONS =
-
-# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
-# the initial value of a variable or define consists of for it to appear in
-# the documentation. If the initializer consists of more lines than specified
-# here it will be hidden. Use a value of 0 to hide initializers completely.
-# The appearance of the initializer of individual variables and defines in the
-# documentation can be controlled using \showinitializer or \hideinitializer
-# command in the documentation regardless of this setting.
-
-MAX_INITIALIZER_LINES = 30
-
-# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
-# at the bottom of the documentation of classes and structs. If set to YES the
-# list will mention the files that were used to generate the documentation.
-
-SHOW_USED_FILES = YES
-
-# If the sources in your project are distributed over multiple directories
-# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
-# in the documentation. The default is NO.
-
-SHOW_DIRECTORIES = NO
-
-# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
-# This will remove the Files entry from the Quick Index and from the
-# Folder Tree View (if specified). The default is YES.
-
-SHOW_FILES = YES
-
-# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
-# Namespaces page. This will remove the Namespaces entry from the Quick Index
-# and from the Folder Tree View (if specified). The default is YES.
-
-SHOW_NAMESPACES = YES
-
-# The FILE_VERSION_FILTER tag can be used to specify a program or script that
-# doxygen should invoke to get the current version for each file (typically from
-# the version control system). Doxygen will invoke the program by executing (via
-# popen()) the command <command> <input-file>, where <command> is the value of
-# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
-# provided by doxygen. Whatever the program writes to standard output
-# is used as the file version. See the manual for examples.
-
-FILE_VERSION_FILTER =
-
-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
-# doxygen. The layout file controls the global structure of the generated output files
-# in an output format independent way. The create the layout file that represents
-# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
-# file name after the option, if omitted DoxygenLayout.xml will be used as the name
-# of the layout file.
-
-LAYOUT_FILE =
-
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-
-# The QUIET tag can be used to turn on/off the messages that are generated
-# by doxygen. Possible values are YES and NO. If left blank NO is used.
-
-QUIET = NO
-
-# The WARNINGS tag can be used to turn on/off the warning messages that are
-# generated by doxygen. Possible values are YES and NO. If left blank
-# NO is used.
-
-WARNINGS = YES
-
-# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
-# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
-# automatically be disabled.
-
-WARN_IF_UNDOCUMENTED = YES
-
-# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
-# potential errors in the documentation, such as not documenting some
-# parameters in a documented function, or documenting parameters that
-# don't exist or using markup commands wrongly.
-
-WARN_IF_DOC_ERROR = YES
-
-# This WARN_NO_PARAMDOC option can be abled to get warnings for
-# functions that are documented, but have no documentation for their parameters
-# or return value. If set to NO (the default) doxygen will only warn about
-# wrong or incomplete parameter documentation, but not about the absence of
-# documentation.
-
-WARN_NO_PARAMDOC = YES
-
-# The WARN_FORMAT tag determines the format of the warning messages that
-# doxygen can produce. The string should contain the $file, $line, and $text
-# tags, which will be replaced by the file and line number from which the
-# warning originated and the warning text. Optionally the format may contain
-# $version, which will be replaced by the version of the file (if it could
-# be obtained via FILE_VERSION_FILTER)
-
-WARN_FORMAT = "$file:$line: $text"
-
-# The WARN_LOGFILE tag can be used to specify a file to which warning
-# and error messages should be written. If left blank the output is written
-# to stderr.
-
-WARN_LOGFILE =
-
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-
-# The INPUT tag can be used to specify the files and/or directories that contain
-# documented source files. You may enter file names like "myfile.cpp" or
-# directories like "/usr/src/myproject". Separate the files or directories
-# with spaces.
-
-INPUT = ../src
-
-# This tag can be used to specify the character encoding of the source files
-# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
-# also the default input encoding. Doxygen uses libiconv (or the iconv built
-# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
-# the list of possible encodings.
-
-INPUT_ENCODING = UTF-8
-
-# If the value of the INPUT tag contains directories, you can use the
-# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
-# blank the following patterns are tested:
-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
-# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
-
-FILE_PATTERNS = *.c \
- *.cc \
- *.cxx \
- *.cpp \
- *.c++ \
- *.d \
- *.java \
- *.ii \
- *.ixx \
- *.ipp \
- *.i++ \
- *.inl \
- *.h \
- *.hh \
- *.hxx \
- *.hpp \
- *.h++ \
- *.idl \
- *.odl \
- *.cs \
- *.php \
- *.php3 \
- *.inc \
- *.m \
- *.mm \
- *.dox \
- *.py \
- *.f90 \
- *.f \
- *.vhd \
- *.vhdl
-
-# The RECURSIVE tag can be used to turn specify whether or not subdirectories
-# should be searched for input files as well. Possible values are YES and NO.
-# If left blank NO is used.
-
-RECURSIVE = YES
-
-# The EXCLUDE tag can be used to specify files and/or directories that should
-# excluded from the INPUT source files. This way you can easily exclude a
-# subdirectory from a directory tree whose root is specified with the INPUT tag.
-
-EXCLUDE = ../src/ParseKit
-
-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
-# directories that are symbolic links (a Unix filesystem feature) are excluded
-# from the input.
-
-EXCLUDE_SYMLINKS = NO
-
-# If the value of the INPUT tag contains directories, you can use the
-# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
-# certain files from those directories. Note that the wildcards are matched
-# against the file with absolute path, so to exclude all test directories
-# for example use the pattern */test/*
-
-EXCLUDE_PATTERNS =
-
-# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
-# (namespaces, classes, functions, etc.) that should be excluded from the
-# output. The symbol name can be a fully qualified name, a word, or if the
-# wildcard * is used, a substring. Examples: ANamespace, AClass,
-# AClass::ANamespace, ANamespace::*Test
-
-EXCLUDE_SYMBOLS =
-
-# The EXAMPLE_PATH tag can be used to specify one or more files or
-# directories that contain example code fragments that are included (see
-# the \include command).
-
-EXAMPLE_PATH =
-
-# If the value of the EXAMPLE_PATH tag contains directories, you can use the
-# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
-# blank all files are included.
-
-EXAMPLE_PATTERNS = *
-
-# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
-# searched for input files to be used with the \include or \dontinclude
-# commands irrespective of the value of the RECURSIVE tag.
-# Possible values are YES and NO. If left blank NO is used.
-
-EXAMPLE_RECURSIVE = NO
-
-# The IMAGE_PATH tag can be used to specify one or more files or
-# directories that contain image that are included in the documentation (see
-# the \image command).
-
-IMAGE_PATH =
-
-# The INPUT_FILTER tag can be used to specify a program that doxygen should
-# invoke to filter for each input file. Doxygen will invoke the filter program
-# by executing (via popen()) the command <filter> <input-file>, where <filter>
-# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
-# input file. Doxygen will then use the output that the filter program writes
-# to standard output. If FILTER_PATTERNS is specified, this tag will be
-# ignored.
-
-INPUT_FILTER =
-
-# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
-# basis. Doxygen will compare the file name with each pattern and apply the
-# filter if there is a match. The filters are a list of the form:
-# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
-# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
-# is applied to all files.
-
-FILTER_PATTERNS =
-
-# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
-# INPUT_FILTER) will be used to filter the input files when producing source
-# files to browse (i.e. when SOURCE_BROWSER is set to YES).
-
-FILTER_SOURCE_FILES = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-
-# If the SOURCE_BROWSER tag is set to YES then a list of source files will
-# be generated. Documented entities will be cross-referenced with these sources.
-# Note: To get rid of all source code in the generated output, make sure also
-# VERBATIM_HEADERS is set to NO.
-
-SOURCE_BROWSER = YES
-
-# Setting the INLINE_SOURCES tag to YES will include the body
-# of functions and classes directly in the documentation.
-
-INLINE_SOURCES = NO
-
-# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
-# doxygen to hide any special comment blocks from generated source code
-# fragments. Normal C and C++ comments will always remain visible.
-
-STRIP_CODE_COMMENTS = YES
-
-# If the REFERENCED_BY_RELATION tag is set to YES
-# then for each documented function all documented
-# functions referencing it will be listed.
-
-REFERENCED_BY_RELATION = NO
-
-# If the REFERENCES_RELATION tag is set to YES
-# then for each documented function all documented entities
-# called/used by that function will be listed.
-
-REFERENCES_RELATION = NO
-
-# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
-# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
-# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
-# link to the source code. Otherwise they will link to the documentation.
-
-REFERENCES_LINK_SOURCE = YES
-
-# If the USE_HTAGS tag is set to YES then the references to source code
-# will point to the HTML generated by the htags(1) tool instead of doxygen
-# built-in source browser. The htags tool is part of GNU's global source
-# tagging system (see http://www.gnu.org/software/global/global.html). You
-# will need version 4.8.6 or higher.
-
-USE_HTAGS = NO
-
-# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
-# will generate a verbatim copy of the header file for each class for
-# which an include is specified. Set to NO to disable this.
-
-VERBATIM_HEADERS = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-
-# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
-# of all compounds will be generated. Enable this if the project
-# contains a lot of classes, structs, unions or interfaces.
-
-ALPHABETICAL_INDEX = NO
-
-# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
-# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
-# in which this list will be split (can be a number in the range [1..20])
-
-COLS_IN_ALPHA_INDEX = 5
-
-# In case all classes in a project start with a common prefix, all
-# classes will be put under the same header in the alphabetical index.
-# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
-# should be ignored while generating the index headers.
-
-IGNORE_PREFIX =
-
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
-# generate HTML output.
-
-GENERATE_HTML = YES
-
-# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `html' will be used as the default path.
-
-HTML_OUTPUT = html
-
-# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
-# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
-# doxygen will generate files with .html extension.
-
-HTML_FILE_EXTENSION = .html
-
-# The HTML_HEADER tag can be used to specify a personal HTML header for
-# each generated HTML page. If it is left blank doxygen will generate a
-# standard header.
-
-HTML_HEADER =
-
-# The HTML_FOOTER tag can be used to specify a personal HTML footer for
-# each generated HTML page. If it is left blank doxygen will generate a
-# standard footer.
-
-HTML_FOOTER =
-
-# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
-# style sheet that is used by each HTML page. It can be used to
-# fine-tune the look of the HTML output. If the tag is left blank doxygen
-# will generate a default style sheet. Note that doxygen will try to copy
-# the style sheet file to the HTML output directory, so don't put your own
-# stylesheet in the HTML output directory as well, or it will be erased!
-
-HTML_STYLESHEET =
-
-# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
-# page will contain the date and time when the page was generated. Setting
-# this to NO can help when comparing the output of multiple runs.
-
-HTML_TIMESTAMP = YES
-
-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
-# files or namespaces will be aligned in HTML using tables. If set to
-# NO a bullet list will be used.
-
-HTML_ALIGN_MEMBERS = YES
-
-# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
-# documentation will contain sections that can be hidden and shown after the
-# page has loaded. For this to work a browser that supports
-# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
-# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
-
-HTML_DYNAMIC_SECTIONS = NO
-
-# If the GENERATE_DOCSET tag is set to YES, additional index files
-# will be generated that can be used as input for Apple's Xcode 3
-# integrated development environment, introduced with OSX 10.5 (Leopard).
-# To create a documentation set, doxygen will generate a Makefile in the
-# HTML output directory. Running make will produce the docset in that
-# directory and running "make install" will install the docset in
-# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
-# it at startup.
-# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
-
-GENERATE_DOCSET = NO
-
-# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
-# feed. A documentation feed provides an umbrella under which multiple
-# documentation sets from a single provider (such as a company or product suite)
-# can be grouped.
-
-DOCSET_FEEDNAME = "Doxygen generated docs"
-
-# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
-# should uniquely identify the documentation set bundle. This should be a
-# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
-# will append .docset to the name.
-
-DOCSET_BUNDLE_ID = org.doxygen.Project
-
-# If the GENERATE_HTMLHELP tag is set to YES, additional index files
-# will be generated that can be used as input for tools like the
-# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
-# of the generated HTML documentation.
-
-GENERATE_HTMLHELP = NO
-
-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
-# be used to specify the file name of the resulting .chm file. You
-# can add a path in front of the file if the result should not be
-# written to the html output directory.
-
-CHM_FILE =
-
-# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
-# be used to specify the location (absolute path including file name) of
-# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
-# the HTML help compiler on the generated index.hhp.
-
-HHC_LOCATION =
-
-# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
-# controls if a separate .chi index file is generated (YES) or that
-# it should be included in the master .chm file (NO).
-
-GENERATE_CHI = NO
-
-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
-# is used to encode HtmlHelp index (hhk), content (hhc) and project file
-# content.
-
-CHM_INDEX_ENCODING =
-
-# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
-# controls whether a binary table of contents is generated (YES) or a
-# normal table of contents (NO) in the .chm file.
-
-BINARY_TOC = NO
-
-# The TOC_EXPAND flag can be set to YES to add extra items for group members
-# to the contents of the HTML help documentation and to the tree view.
-
-TOC_EXPAND = NO
-
-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
-# are set, an additional index file will be generated that can be used as input for
-# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
-# HTML documentation.
-
-GENERATE_QHP = NO
-
-# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
-# be used to specify the file name of the resulting .qch file.
-# The path specified is relative to the HTML output folder.
-
-QCH_FILE =
-
-# The QHP_NAMESPACE tag specifies the namespace to use when generating
-# Qt Help Project output. For more information please see
-# http://doc.trolltech.com/qthelpproject.html#namespace
-
-QHP_NAMESPACE = org.doxygen.Project
-
-# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
-# Qt Help Project output. For more information please see
-# http://doc.trolltech.com/qthelpproject.html#virtual-folders
-
-QHP_VIRTUAL_FOLDER = doc
-
-# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
-# For more information please see
-# http://doc.trolltech.com/qthelpproject.html#custom-filters
-
-QHP_CUST_FILTER_NAME =
-
-# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
-# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
-
-QHP_CUST_FILTER_ATTRS =
-
-# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's
-# filter section matches.
-# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
-
-QHP_SECT_FILTER_ATTRS =
-
-# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
-# be used to specify the location of Qt's qhelpgenerator.
-# If non-empty doxygen will try to run qhelpgenerator on the generated
-# .qhp file.
-
-QHG_LOCATION =
-
-# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
-# will be generated, which together with the HTML files, form an Eclipse help
-# plugin. To install this plugin and make it available under the help contents
-# menu in Eclipse, the contents of the directory containing the HTML and XML
-# files needs to be copied into the plugins directory of eclipse. The name of
-# the directory within the plugins directory should be the same as
-# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
-# the help appears.
-
-GENERATE_ECLIPSEHELP = NO
-
-# A unique identifier for the eclipse help plugin. When installing the plugin
-# the directory name containing the HTML and XML files should also have
-# this name.
-
-ECLIPSE_DOC_ID = org.doxygen.Project
-
-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
-# top of each HTML page. The value NO (the default) enables the index and
-# the value YES disables it.
-
-DISABLE_INDEX = NO
-
-# This tag can be used to set the number of enum values (range [1..20])
-# that doxygen will group on one line in the generated HTML documentation.
-
-ENUM_VALUES_PER_LINE = 4
-
-# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
-# structure should be generated to display hierarchical information.
-# If the tag value is set to YES, a side panel will be generated
-# containing a tree-like index structure (just like the one that
-# is generated for HTML Help). For this to work a browser that supports
-# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
-# Windows users are probably better off using the HTML help feature.
-
-GENERATE_TREEVIEW = NO
-
-# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
-# and Class Hierarchy pages using a tree view instead of an ordered list.
-
-USE_INLINE_TREES = NO
-
-# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
-# used to set the initial width (in pixels) of the frame in which the tree
-# is shown.
-
-TREEVIEW_WIDTH = 250
-
-# Use this tag to change the font size of Latex formulas included
-# as images in the HTML documentation. The default is 10. Note that
-# when you change the font size after a successful doxygen run you need
-# to manually remove any form_*.png images from the HTML output directory
-# to force them to be regenerated.
-
-FORMULA_FONTSIZE = 10
-
-# When the SEARCHENGINE tag is enabled doxygen will generate a search box
-# for the HTML output. The underlying search engine uses javascript
-# and DHTML and should work on any modern browser. Note that when using
-# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
-# (GENERATE_DOCSET) there is already a search function so this one should
-# typically be disabled. For large projects the javascript based search engine
-# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
-
-SEARCHENGINE = NO
-
-# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a PHP enabled web server instead of at the web client
-# using Javascript. Doxygen will generate the search PHP script and index
-# file to put on the web server. The advantage of the server
-# based approach is that it scales better to large projects and allows
-# full text search. The disadvances is that it is more difficult to setup
-# and does not have live searching capabilities.
-
-SERVER_BASED_SEARCH = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
-# generate Latex output.
-
-GENERATE_LATEX = NO
-
-# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `latex' will be used as the default path.
-
-LATEX_OUTPUT = latex
-
-# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
-# invoked. If left blank `latex' will be used as the default command name.
-# Note that when enabling USE_PDFLATEX this option is only used for
-# generating bitmaps for formulas in the HTML output, but not in the
-# Makefile that is written to the output directory.
-
-LATEX_CMD_NAME = latex
-
-# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
-# generate index for LaTeX. If left blank `makeindex' will be used as the
-# default command name.
-
-MAKEINDEX_CMD_NAME = makeindex
-
-# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
-# LaTeX documents. This may be useful for small projects and may help to
-# save some trees in general.
-
-COMPACT_LATEX = NO
-
-# The PAPER_TYPE tag can be used to set the paper type that is used
-# by the printer. Possible values are: a4, a4wide, letter, legal and
-# executive. If left blank a4wide will be used.
-
-PAPER_TYPE = a4wide
-
-# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
-# packages that should be included in the LaTeX output.
-
-EXTRA_PACKAGES =
-
-# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
-# the generated latex document. The header should contain everything until
-# the first chapter. If it is left blank doxygen will generate a
-# standard header. Notice: only use this tag if you know what you are doing!
-
-LATEX_HEADER =
-
-# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
-# is prepared for conversion to pdf (using ps2pdf). The pdf file will
-# contain links (just like the HTML output) instead of page references
-# This makes the output suitable for online browsing using a pdf viewer.
-
-PDF_HYPERLINKS = YES
-
-# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
-# plain latex in the generated Makefile. Set this option to YES to get a
-# higher quality PDF documentation.
-
-USE_PDFLATEX = YES
-
-# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
-# command to the generated LaTeX files. This will instruct LaTeX to keep
-# running if errors occur, instead of asking the user for help.
-# This option is also used when generating formulas in HTML.
-
-LATEX_BATCHMODE = NO
-
-# If LATEX_HIDE_INDICES is set to YES then doxygen will not
-# include the index chapters (such as File Index, Compound Index, etc.)
-# in the output.
-
-LATEX_HIDE_INDICES = NO
-
-# If LATEX_SOURCE_CODE is set to YES then doxygen will include
-# source code with syntax highlighting in the LaTeX output.
-# Note that which sources are shown also depends on other settings
-# such as SOURCE_BROWSER.
-
-LATEX_SOURCE_CODE = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
-# The RTF output is optimized for Word 97 and may not look very pretty with
-# other RTF readers or editors.
-
-GENERATE_RTF = NO
-
-# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `rtf' will be used as the default path.
-
-RTF_OUTPUT = rtf
-
-# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
-# RTF documents. This may be useful for small projects and may help to
-# save some trees in general.
-
-COMPACT_RTF = NO
-
-# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
-# will contain hyperlink fields. The RTF file will
-# contain links (just like the HTML output) instead of page references.
-# This makes the output suitable for online browsing using WORD or other
-# programs which support those fields.
-# Note: wordpad (write) and others do not support links.
-
-RTF_HYPERLINKS = NO
-
-# Load stylesheet definitions from file. Syntax is similar to doxygen's
-# config file, i.e. a series of assignments. You only have to provide
-# replacements, missing definitions are set to their default value.
-
-RTF_STYLESHEET_FILE =
-
-# Set optional variables used in the generation of an rtf document.
-# Syntax is similar to doxygen's config file.
-
-RTF_EXTENSIONS_FILE =
-
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
-# generate man pages
-
-GENERATE_MAN = NO
-
-# The MAN_OUTPUT tag is used to specify where the man pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `man' will be used as the default path.
-
-MAN_OUTPUT = man
-
-# The MAN_EXTENSION tag determines the extension that is added to
-# the generated man pages (default is the subroutine's section .3)
-
-MAN_EXTENSION = .3
-
-# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
-# then it will generate one additional man file for each entity
-# documented in the real man page(s). These additional files
-# only source the real man page, but without them the man command
-# would be unable to find the correct page. The default is NO.
-
-MAN_LINKS = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_XML tag is set to YES Doxygen will
-# generate an XML file that captures the structure of
-# the code including all documentation.
-
-GENERATE_XML = YES
-
-# The XML_OUTPUT tag is used to specify where the XML pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `xml' will be used as the default path.
-
-XML_OUTPUT = xml
-
-# The XML_SCHEMA tag can be used to specify an XML schema,
-# which can be used by a validating XML parser to check the
-# syntax of the XML files.
-
-XML_SCHEMA =
-
-# The XML_DTD tag can be used to specify an XML DTD,
-# which can be used by a validating XML parser to check the
-# syntax of the XML files.
-
-XML_DTD =
-
-# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
-# dump the program listings (including syntax highlighting
-# and cross-referencing information) to the XML output. Note that
-# enabling this will significantly increase the size of the XML output.
-
-XML_PROGRAMLISTING = YES
-
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
-# generate an AutoGen Definitions (see autogen.sf.net) file
-# that captures the structure of the code including all
-# documentation. Note that this feature is still experimental
-# and incomplete at the moment.
-
-GENERATE_AUTOGEN_DEF = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_PERLMOD tag is set to YES Doxygen will
-# generate a Perl module file that captures the structure of
-# the code including all documentation. Note that this
-# feature is still experimental and incomplete at the
-# moment.
-
-GENERATE_PERLMOD = NO
-
-# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
-# the necessary Makefile rules, Perl scripts and LaTeX code to be able
-# to generate PDF and DVI output from the Perl module output.
-
-PERLMOD_LATEX = NO
-
-# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
-# nicely formatted so it can be parsed by a human reader. This is useful
-# if you want to understand what is going on. On the other hand, if this
-# tag is set to NO the size of the Perl module output will be much smaller
-# and Perl will parse it just the same.
-
-PERLMOD_PRETTY = YES
-
-# The names of the make variables in the generated doxyrules.make file
-# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
-# This is useful so different doxyrules.make files included by the same
-# Makefile don't overwrite each other's variables.
-
-PERLMOD_MAKEVAR_PREFIX =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-
-# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
-# evaluate all C-preprocessor directives found in the sources and include
-# files.
-
-ENABLE_PREPROCESSING = YES
-
-# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
-# names in the source code. If set to NO (the default) only conditional
-# compilation will be performed. Macro expansion can be done in a controlled
-# way by setting EXPAND_ONLY_PREDEF to YES.
-
-MACRO_EXPANSION = NO
-
-# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
-# then the macro expansion is limited to the macros specified with the
-# PREDEFINED and EXPAND_AS_DEFINED tags.
-
-EXPAND_ONLY_PREDEF = NO
-
-# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
-# in the INCLUDE_PATH (see below) will be search if a #include is found.
-
-SEARCH_INCLUDES = YES
-
-# The INCLUDE_PATH tag can be used to specify one or more directories that
-# contain include files that are not input files but should be processed by
-# the preprocessor.
-
-INCLUDE_PATH =
-
-# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
-# patterns (like *.h and *.hpp) to filter out the header-files in the
-# directories. If left blank, the patterns specified with FILE_PATTERNS will
-# be used.
-
-INCLUDE_FILE_PATTERNS =
-
-# The PREDEFINED tag can be used to specify one or more macro names that
-# are defined before the preprocessor is started (similar to the -D option of
-# gcc). The argument of the tag is a list of macros of the form: name
-# or name=definition (no spaces). If the definition and the = are
-# omitted =1 is assumed. To prevent a macro definition from being
-# undefined via #undef or recursively expanded use the := operator
-# instead of the = operator.
-
-PREDEFINED = __APPLE__
-
-# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
-# this tag can be used to specify a list of macro names that should be expanded.
-# The macro definition that is found in the sources will be used.
-# Use the PREDEFINED tag if you want to use a different macro definition.
-
-EXPAND_AS_DEFINED =
-
-# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
-# doxygen's preprocessor will remove all function-like macros that are alone
-# on a line, have an all uppercase name, and do not end with a semicolon. Such
-# function macros are typically used for boiler-plate code, and will confuse
-# the parser if not removed.
-
-SKIP_FUNCTION_MACROS = YES
-
-#---------------------------------------------------------------------------
-# Configuration::additions related to external references
-#---------------------------------------------------------------------------
-
-# The TAGFILES option can be used to specify one or more tagfiles.
-# Optionally an initial location of the external documentation
-# can be added for each tagfile. The format of a tag file without
-# this location is as follows:
-# TAGFILES = file1 file2 ...
-# Adding location for the tag files is done as follows:
-# TAGFILES = file1=loc1 "file2 = loc2" ...
-# where "loc1" and "loc2" can be relative or absolute paths or
-# URLs. If a location is present for each tag, the installdox tool
-# does not have to be run to correct the links.
-# Note that each tag file must have a unique name
-# (where the name does NOT include the path)
-# If a tag file is not located in the directory in which doxygen
-# is run, you must also specify the path to the tagfile here.
-
-TAGFILES =
-
-# When a file name is specified after GENERATE_TAGFILE, doxygen will create
-# a tag file that is based on the input files it reads.
-
-GENERATE_TAGFILE =
-
-# If the ALLEXTERNALS tag is set to YES all external classes will be listed
-# in the class index. If set to NO only the inherited external classes
-# will be listed.
-
-ALLEXTERNALS = NO
-
-# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
-# in the modules index. If set to NO, only the current project's groups will
-# be listed.
-
-EXTERNAL_GROUPS = YES
-
-# The PERL_PATH should be the absolute path and name of the perl script
-# interpreter (i.e. the result of `which perl').
-
-PERL_PATH = /usr/bin/perl
-
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-
-# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
-# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
-# or super classes. Setting the tag to NO turns the diagrams off. Note that
-# this option is superseded by the HAVE_DOT option below. This is only a
-# fallback. It is recommended to install and use dot, since it yields more
-# powerful graphs.
-
-CLASS_DIAGRAMS = NO
-
-# You can define message sequence charts within doxygen comments using the \msc
-# command. Doxygen will then run the mscgen tool (see
-# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
-# documentation. The MSCGEN_PATH tag allows you to specify the directory where
-# the mscgen tool resides. If left empty the tool is assumed to be found in the
-# default search path.
-
-MSCGEN_PATH = /Applications/Doxygen.app/Contents/Resources/
-
-# If set to YES, the inheritance and collaboration graphs will hide
-# inheritance and usage relations if the target is undocumented
-# or is not a class.
-
-HIDE_UNDOC_RELATIONS = YES
-
-# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
-# available from the path. This tool is part of Graphviz, a graph visualization
-# toolkit from AT&T and Lucent Bell Labs. The other options in this section
-# have no effect if this option is set to NO (the default)
-
-HAVE_DOT = YES
-
-# By default doxygen will write a font called FreeSans.ttf to the output
-# directory and reference it in all dot files that doxygen generates. This
-# font does not include all possible unicode characters however, so when you need
-# these (or just want a differently looking font) you can specify the font name
-# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
-# which can be done by putting it in a standard location or by setting the
-# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
-# containing the font.
-
-DOT_FONTNAME = FreeSans
-
-# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
-# The default size is 10pt.
-
-DOT_FONTSIZE = 10
-
-# By default doxygen will tell dot to use the output directory to look for the
-# FreeSans.ttf font (which doxygen will put there itself). If you specify a
-# different font using DOT_FONTNAME you can set the path where dot
-# can find it using this tag.
-
-DOT_FONTPATH =
-
-# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect inheritance relations. Setting this tag to YES will force the
-# the CLASS_DIAGRAMS tag to NO.
-
-CLASS_GRAPH = YES
-
-# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect implementation dependencies (inheritance, containment, and
-# class references variables) of the class with other documented classes.
-
-COLLABORATION_GRAPH = YES
-
-# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for groups, showing the direct groups dependencies
-
-GROUP_GRAPHS = YES
-
-# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
-# collaboration diagrams in a style similar to the OMG's Unified Modeling
-# Language.
-
-UML_LOOK = NO
-
-# If set to YES, the inheritance and collaboration graphs will show the
-# relations between templates and their instances.
-
-TEMPLATE_RELATIONS = NO
-
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
-# tags are set to YES then doxygen will generate a graph for each documented
-# file showing the direct and indirect include dependencies of the file with
-# other documented files.
-
-INCLUDE_GRAPH = YES
-
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
-# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
-# documented header file showing the documented files that directly or
-# indirectly include this file.
-
-INCLUDED_BY_GRAPH = YES
-
-# If the CALL_GRAPH and HAVE_DOT options are set to YES then
-# doxygen will generate a call dependency graph for every global function
-# or class method. Note that enabling this option will significantly increase
-# the time of a run. So in most cases it will be better to enable call graphs
-# for selected functions only using the \callgraph command.
-
-CALL_GRAPH = YES
-
-# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
-# doxygen will generate a caller dependency graph for every global function
-# or class method. Note that enabling this option will significantly increase
-# the time of a run. So in most cases it will be better to enable caller
-# graphs for selected functions only using the \callergraph command.
-
-CALLER_GRAPH = NO
-
-# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
-# will graphical hierarchy of all classes instead of a textual one.
-
-GRAPHICAL_HIERARCHY = YES
-
-# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
-# then doxygen will show the dependencies a directory has on other directories
-# in a graphical way. The dependency relations are determined by the #include
-# relations between the files in the directories.
-
-DIRECTORY_GRAPH = YES
-
-# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
-# generated by dot. Possible values are png, jpg, or gif
-# If left blank png will be used.
-
-DOT_IMAGE_FORMAT = png
-
-# The tag DOT_PATH can be used to specify the path where the dot tool can be
-# found. If left blank, it is assumed the dot tool can be found in the path.
-
-DOT_PATH = /Applications/Doxygen.app/Contents/Resources/
-
-# The DOTFILE_DIRS tag can be used to specify one or more directories that
-# contain dot files that are included in the documentation (see the
-# \dotfile command).
-
-DOTFILE_DIRS =
-
-# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
-# nodes that will be shown in the graph. If the number of nodes in a graph
-# becomes larger than this value, doxygen will truncate the graph, which is
-# visualized by representing a node as a red box. Note that doxygen if the
-# number of direct children of the root node in a graph is already larger than
-# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
-# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
-
-DOT_GRAPH_MAX_NODES = 50
-
-# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
-# graphs generated by dot. A depth value of 3 means that only nodes reachable
-# from the root by following a path via at most 3 edges will be shown. Nodes
-# that lay further from the root node will be omitted. Note that setting this
-# option to 1 or 2 may greatly reduce the computation time needed for large
-# code bases. Also note that the size of a graph can be further restricted by
-# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
-
-MAX_DOT_GRAPH_DEPTH = 1000
-
-# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
-# background. This is disabled by default, because dot on Windows does not
-# seem to support this out of the box. Warning: Depending on the platform used,
-# enabling this option may lead to badly anti-aliased labels on the edges of
-# a graph (i.e. they become hard to read).
-
-DOT_TRANSPARENT = NO
-
-# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
-# files in one run (i.e. multiple -o and -T options on the command line). This
-# makes dot run faster, but since only newer versions of dot (>1.8.10)
-# support this, this feature is disabled by default.
-
-DOT_MULTI_TARGETS = NO
-
-# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
-# generate a legend page explaining the meaning of the various boxes and
-# arrows in the dot generated graphs.
-
-GENERATE_LEGEND = YES
-
-# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
-# remove the intermediate dot files that are used to generate
-# the various graphs.
-
-DOT_CLEANUP = YES
diff --git a/tikzit-old/draw-ellipse.png b/tikzit-old/draw-ellipse.png
deleted file mode 100644
index d8e3e6f..0000000
--- a/tikzit-old/draw-ellipse.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/draw-path.png b/tikzit-old/draw-path.png
deleted file mode 100644
index ec5e691..0000000
--- a/tikzit-old/draw-path.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/emblem-important.png b/tikzit-old/emblem-important.png
deleted file mode 100644
index 81e9ed2..0000000
--- a/tikzit-old/emblem-important.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/emblem-unreadable-grey.png b/tikzit-old/emblem-unreadable-grey.png
deleted file mode 100644
index 09572ab..0000000
--- a/tikzit-old/emblem-unreadable-grey.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/engine.png b/tikzit-old/engine.png
deleted file mode 100755
index 1e45370..0000000
--- a/tikzit-old/engine.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/format-indent-less.png b/tikzit-old/format-indent-less.png
deleted file mode 100644
index 7ced16f..0000000
--- a/tikzit-old/format-indent-less.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/m4/objc.m4 b/tikzit-old/m4/objc.m4
deleted file mode 100644
index 8c7cc78..0000000
--- a/tikzit-old/m4/objc.m4
+++ /dev/null
@@ -1,135 +0,0 @@
-# Checks for a working Foundation
-# tz_cv_objc_foundation
-# to either "yes" or "no"
-#
-AC_DEFUN([TZ_OBJC_FOUNDATION],
-[
-AC_LANG_ASSERT([Objective C])
-tz_old_objcflags="$OBJCFLAGS"
-OBJCFLAGS="$OBJCFLAGS $TZ_TEST_OBJCFLAGS"
-
-AC_CACHE_CHECK([for Objective C Foundation],
- [tz_cv_objc_foundation],
-[AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE([[
-#import <Foundation/Foundation.h>
-
-@interface TestObj : NSObject {
- int intVar;
- NSObject *objVar;
- NSString *strVar;
-}
--(id)init;
-@end
-
-@implementation TestObj
--(id)init {
- self = [super init];
- intVar = 0;
- objVar = nil;
- strVar = @"Foo";
- return self;
-}
-@end
-
-int main(void) {
- TestObj *obj = [[TestObj alloc] init];
- [obj release];
- return 0;
-}
- ]])],
- [tz_cv_objc_foundation=yes],
- [tz_cv_objc_foundation=no])])
-
-OBJCFLAGS="$tz_old_objcflags"
-])
-
-
-# Checks for Objective C 2 feature support
-# and sets the shell variables
-# tz_cv_objc_properties
-# tz_cv_objc_fast_enumeration
-# tz_cv_objc_optional_keyword
-# to either "yes" or "no"
-#
-AC_DEFUN([TZ_OBJC2_FEATURES],
-[
-AC_LANG_ASSERT([Objective C])
-tz_old_objcflags="$OBJCFLAGS"
-OBJCFLAGS="$OBJCFLAGS $TZ_TEST_OBJCFLAGS"
-
-AC_CACHE_CHECK([for Objective C 2 @property support],
- [tz_cv_objc_properties],
-[AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE([[
-#import <Foundation/Foundation.h>
-
-@interface TestObj : NSObject {
- int intProp1;
- NSObject *copyObjProp;
- NSObject *fooProp;
-}
-@property (assign,nonatomic) int intProp;
-@property (retain,readonly) NSObject *retainObjProp;
-@property (copy,readwrite) NSObject *copyObjProp;
-@property (retain,getter=foo,setter=foo1:) NSObject *fooProp;
-@end
-
-@implementation TestObj
-@synthesize intProp=intProp1;
-@dynamic retainObjProp;
-- (NSObject*) retainObjProp { return nil; }
-@synthesize copyObjProp;
-@synthesize fooProp;
-@end
-
-int main(void) {
- TestObj *obj = [[TestObj alloc] init];
- obj.intProp = 4;
- NSObject *result = obj.retainObjProp;
- return 0;
-}
- ]])],
- [tz_cv_objc_properties=yes],
- [tz_cv_objc_properties=no])])
-
-
-AC_CACHE_CHECK([for Objective C 2 fast enumeration support],
- [tz_cv_objc_fast_enumeration],
-[AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE([[
-#import <Foundation/Foundation.h>
-
-int main(void) {
- NSArray *array = [NSArray arrayWithObjects: @"One", @"Two", @"Three", @"Four", nil];
- for (NSString *element in array) {
- NSLog(@"element: %@", element);
- }
- return 0;
-}
- ]])],
- [tz_cv_objc_fast_enumeration=yes],
- [tz_cv_objc_fast_enumeration=no])])
-
-AC_CACHE_CHECK([for Objective C 2 @optional support],
- [tz_cv_objc_optional_keyword],
-[AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE([[
-#import <Foundation/Foundation.h>
-
-@protocol Foo
-@optional
-- (void) foo;
-@required
-- (void) bar;
-@end
-
-int main(void) {
- return 0;
-}
- ]])],
- [tz_cv_objc_optional_keyword=yes],
- [tz_cv_objc_optional_keyword=no])])
-
-OBJCFLAGS="$tz_old_objcflags"
-])
diff --git a/tikzit-old/preamble.png b/tikzit-old/preamble.png
deleted file mode 100755
index d940d24..0000000
--- a/tikzit-old/preamble.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/scripts/generate_keys.rb b/tikzit-old/scripts/generate_keys.rb
deleted file mode 100755
index b22439c..0000000
--- a/tikzit-old/scripts/generate_keys.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/ruby
-["dsaparam.pem", "dsa_priv.pem", "dsa_pub.pem"].each do |file|
- if File.exist? file
- puts "There's already a #{file} here! Move it aside or be more careful!"
- end
-end
-`openssl dsaparam 2048 < /dev/urandom > dsaparam.pem`
-`openssl gendsa dsaparam.pem -out dsa_priv.pem`
-`openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem`
-`rm dsaparam.pem`
-puts "\nGenerated private and public keys: dsa_priv.pem and dsa_pub.pem.\n
-BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!\n
-If you lose it, your users will be unable to upgrade!\n" \ No newline at end of file
diff --git a/tikzit-old/scripts/prepare_release.sh b/tikzit-old/scripts/prepare_release.sh
deleted file mode 100755
index 5f5edfc..0000000
--- a/tikzit-old/scripts/prepare_release.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-set -o errexit
-
-PROJECT_NAME=TikZiT
-APP_BUNDLE=xbuild/Release/$PROJECT_NAME.app
-
-VERSION=$(defaults read "$(pwd)/$APP_BUNDLE/Contents/Info" CFBundleVersion)
-DOWNLOAD_BASE_URL="http://tikzit.sourceforge.net/appcast"
-RELEASENOTES_URL="$DOWNLOAD_BASE_URL/rnotes.html"
-
-ARCHIVE_FILENAME="$PROJECT_NAME $VERSION.tar.bz2"
-ARCHIVE_PATH="../www/htdocs/appcast/files/$ARCHIVE_FILENAME"
-DOWNLOAD_URL="$DOWNLOAD_BASE_URL/files/$ARCHIVE_FILENAME"
-
-if [ -e "$ARCHIVE_PATH" ]; then
- echo 'Archive already exists. Either remove this archive or increment version.'
- exit 1
-fi
-
-tar cjf "$ARCHIVE_PATH" "$APP_BUNDLE"
-
-SIZE=$(stat -f %z "$ARCHIVE_PATH")
-PUBDATE=$(LC_TIME=en_US date +"%a, %d %b %G %T %z")
-SIGNATURE=$(scripts/sign_update.rb "$ARCHIVE_PATH" tikzit_dsa_priv.pem)
-
-cat <<EOF
- <item>
- <title>Version $VERSION</title>
- <sparkle:releaseNotesLink>
- $RELEASENOTES_URL
- </sparkle:releaseNotesLink>
- <pubDate>$PUBDATE</pubDate>
- <enclosure
- url="$DOWNLOAD_URL"
- sparkle:version="$VERSION"
- type="application/octet-stream"
- length="$SIZE"
- sparkle:dsaSignature="$SIGNATURE"
- />
- </item>
-EOF
diff --git a/tikzit-old/scripts/sign_update.rb b/tikzit-old/scripts/sign_update.rb
deleted file mode 100755
index 6d03e2e..0000000
--- a/tikzit-old/scripts/sign_update.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/ruby
-if ARGV.length < 2
- puts "Usage: ruby sign_update.rb update_archive private_key"
- exit
-end
-
-puts `openssl dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64` \ No newline at end of file
diff --git a/tikzit-old/select-rectangular.png b/tikzit-old/select-rectangular.png
deleted file mode 100644
index 866b602..0000000
--- a/tikzit-old/select-rectangular.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/shapes/cap.tikz b/tikzit-old/shapes/cap.tikz
deleted file mode 100644
index a98ff39..0000000
--- a/tikzit-old/shapes/cap.tikz
+++ /dev/null
@@ -1,13 +0,0 @@
-\begin{tikzpicture}
- \path [use as bounding box] (-2,-2) rectangle (2,2);
- \begin{pgfonlayer}{nodelayer}
- \node [style=none] (0) at (0, 0.75) {};
- \node [style=none] (1) at (-0.5, 0) {};
- \node [style=none] (2) at (0.5, 0) {};
- \end{pgfonlayer}
- \begin{pgfonlayer}{edgelayer}
- \draw [in=0, out=90] (2.center) to (0.center);
- \draw [in=270, out=-90, looseness=0.75] (1.center) to (2.center);
- \draw [in=90, out=180] (0.center) to (1.center);
- \end{pgfonlayer}
-\end{tikzpicture} \ No newline at end of file
diff --git a/tikzit-old/shapes/copants.tikz b/tikzit-old/shapes/copants.tikz
deleted file mode 100644
index d2b8e3c..0000000
--- a/tikzit-old/shapes/copants.tikz
+++ /dev/null
@@ -1,19 +0,0 @@
-\begin{tikzpicture}
- \path [use as bounding box] (-2,-2) rectangle (2,2);
- \begin{pgfonlayer}{nodelayer}
- \node [style=none] (0) at (-1.5, 1) {};
- \node [style=none] (1) at (-0.5, 1) {};
- \node [style=none] (2) at (0.5, 1) {};
- \node [style=none] (3) at (1.5, 1) {};
- \node [style=none] (4) at (-0.5, -1) {};
- \node [style=none] (5) at (0.5, -1) {};
- \end{pgfonlayer}
- \begin{pgfonlayer}{edgelayer}
- \draw [in=-90, out=90, looseness=0.75] (5.center) to (3.center);
- \draw [in=90, out=90, looseness=0.75] (4.center) to (5.center);
- \draw [in=270, out=-90, looseness=0.75] (1.center) to (0.center);
- \draw [in=270, out=-90, looseness=0.75] (3.center) to (2.center);
- \draw [in=-270, out=-90, looseness=0.75] (0.center) to (4.center);
- \draw [in=-90, out=-90, looseness=1.75] (2.center) to (1.center);
- \end{pgfonlayer}
-\end{tikzpicture} \ No newline at end of file
diff --git a/tikzit-old/shapes/cup.tikz b/tikzit-old/shapes/cup.tikz
deleted file mode 100644
index 1dc1faa..0000000
--- a/tikzit-old/shapes/cup.tikz
+++ /dev/null
@@ -1,13 +0,0 @@
-\begin{tikzpicture}
- \path [use as bounding box] (-2,-2) rectangle (2,2);
- \begin{pgfonlayer}{nodelayer}
- \node [style=none] (0) at (-0.5, 0) {};
- \node [style=none] (1) at (0.5, 0) {};
- \node [style=none] (2) at (0, -0.75) {};
- \end{pgfonlayer}
- \begin{pgfonlayer}{edgelayer}
- \draw [in=0, out=-90] (1.center) to (2.center);
- \draw [in=-270, out=90, looseness=0.75] (0.center) to (1.center);
- \draw [in=-90, out=-180] (2.center) to (0.center);
- \end{pgfonlayer}
-\end{tikzpicture} \ No newline at end of file
diff --git a/tikzit-old/shapes/oval.tikz b/tikzit-old/shapes/oval.tikz
deleted file mode 100644
index b5d2891..0000000
--- a/tikzit-old/shapes/oval.tikz
+++ /dev/null
@@ -1,11 +0,0 @@
-\begin{tikzpicture}
- \path [use as bounding box] (-2,-2) rectangle (2,2);
- \begin{pgfonlayer}{nodelayer}
- \node [style=none] (0) at (-0.5, 0) {};
- \node [style=none] (1) at (0.5, 0) {};
- \end{pgfonlayer}
- \begin{pgfonlayer}{edgelayer}
- \draw [in=90, out=90, looseness=0.75] (0.center) to (1.center);
- \draw [in=-90, out=270, looseness=0.75] (1.center) to (0.center);
- \end{pgfonlayer}
-\end{tikzpicture} \ No newline at end of file
diff --git a/tikzit-old/shapes/pants.tikz b/tikzit-old/shapes/pants.tikz
deleted file mode 100644
index c2c15c2..0000000
--- a/tikzit-old/shapes/pants.tikz
+++ /dev/null
@@ -1,19 +0,0 @@
-\begin{tikzpicture}
- \path [use as bounding box] (-2,-2) rectangle (2,2);
- \begin{pgfonlayer}{nodelayer}
- \node [style=none] (0) at (-0.5, 1) {};
- \node [style=none] (1) at (0.5, 1) {};
- \node [style=none] (2) at (-1.5, -1) {};
- \node [style=none] (3) at (-0.5, -1) {};
- \node [style=none] (4) at (0.5, -1) {};
- \node [style=none] (5) at (1.5, -1) {};
- \end{pgfonlayer}
- \begin{pgfonlayer}{edgelayer}
- \draw [in=90, out=90, looseness=1.75] (4.center) to (3.center);
- \draw [in=270, out=90, looseness=0.75] (2.center) to (0.center);
- \draw [in=-90, out=-90, looseness=0.75] (0.center) to (1.center);
- \draw [in=90, out=-90, looseness=0.75] (1.center) to (5.center);
- \draw [in=-270, out=90, looseness=0.75] (5.center) to (4.center);
- \draw [in=-270, out=90, looseness=0.75] (3.center) to (2.center);
- \end{pgfonlayer}
-\end{tikzpicture} \ No newline at end of file
diff --git a/tikzit-old/share/Makefile.am b/tikzit-old/share/Makefile.am
deleted file mode 100644
index 658b4d9..0000000
--- a/tikzit-old/share/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-if WINDOWS
-else
-sharedir = $(datarootdir)
-nobase_dist_share_DATA = \
- applications/tikzit.desktop \
- mime/packages/tikzit.xml \
- icons/hicolor/*/*/*.png \
- icons/hicolor/scalable/*/*.svg
-endif
-
diff --git a/tikzit-old/share/applications/tikzit.desktop b/tikzit-old/share/applications/tikzit.desktop
deleted file mode 100644
index 12b6fa5..0000000
--- a/tikzit-old/share/applications/tikzit.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=TikZit
-Comment=Editor for PGF/TikZ-based node-and-edge graphs for LaTeX documents
-GenericName=TikZ Graph Editor
-MimeType=text/x-tikz
-Exec=tikzit
-Icon=tikzit
-Categories=GTK;Graphics;Education;Science;
-StartupNotify=false
diff --git a/tikzit-old/share/icons/hicolor/128x128/apps/tikzit.png b/tikzit-old/share/icons/hicolor/128x128/apps/tikzit.png
deleted file mode 100644
index e8ee92b..0000000
--- a/tikzit-old/share/icons/hicolor/128x128/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/128x128/mimetypes/text-x-tikz.png b/tikzit-old/share/icons/hicolor/128x128/mimetypes/text-x-tikz.png
deleted file mode 100644
index 6b3bbe6..0000000
--- a/tikzit-old/share/icons/hicolor/128x128/mimetypes/text-x-tikz.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/16x16/apps/tikzit.png b/tikzit-old/share/icons/hicolor/16x16/apps/tikzit.png
deleted file mode 100644
index 9b7a377..0000000
--- a/tikzit-old/share/icons/hicolor/16x16/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/16x16/mimetypes/text-x-tikz.png b/tikzit-old/share/icons/hicolor/16x16/mimetypes/text-x-tikz.png
deleted file mode 100644
index 364e831..0000000
--- a/tikzit-old/share/icons/hicolor/16x16/mimetypes/text-x-tikz.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/22x22/apps/tikzit.png b/tikzit-old/share/icons/hicolor/22x22/apps/tikzit.png
deleted file mode 100644
index be803da..0000000
--- a/tikzit-old/share/icons/hicolor/22x22/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/22x22/mimetypes/text-x-tikz.png b/tikzit-old/share/icons/hicolor/22x22/mimetypes/text-x-tikz.png
deleted file mode 100644
index 6436a9e..0000000
--- a/tikzit-old/share/icons/hicolor/22x22/mimetypes/text-x-tikz.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/24x24/apps/tikzit.png b/tikzit-old/share/icons/hicolor/24x24/apps/tikzit.png
deleted file mode 100644
index 478aeab..0000000
--- a/tikzit-old/share/icons/hicolor/24x24/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/32x32/apps/tikzit.png b/tikzit-old/share/icons/hicolor/32x32/apps/tikzit.png
deleted file mode 100644
index 75174e1..0000000
--- a/tikzit-old/share/icons/hicolor/32x32/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/32x32/mimetypes/text-x-tikz.png b/tikzit-old/share/icons/hicolor/32x32/mimetypes/text-x-tikz.png
deleted file mode 100644
index 7faaded..0000000
--- a/tikzit-old/share/icons/hicolor/32x32/mimetypes/text-x-tikz.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/48x48/apps/tikzit.png b/tikzit-old/share/icons/hicolor/48x48/apps/tikzit.png
deleted file mode 100644
index 7186458..0000000
--- a/tikzit-old/share/icons/hicolor/48x48/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/48x48/mimetypes/text-x-tikz.png b/tikzit-old/share/icons/hicolor/48x48/mimetypes/text-x-tikz.png
deleted file mode 100644
index d061ed9..0000000
--- a/tikzit-old/share/icons/hicolor/48x48/mimetypes/text-x-tikz.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/64x64/apps/tikzit.png b/tikzit-old/share/icons/hicolor/64x64/apps/tikzit.png
deleted file mode 100644
index 1641e85..0000000
--- a/tikzit-old/share/icons/hicolor/64x64/apps/tikzit.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/64x64/mimetypes/text-x-tikz.png b/tikzit-old/share/icons/hicolor/64x64/mimetypes/text-x-tikz.png
deleted file mode 100644
index 2197553..0000000
--- a/tikzit-old/share/icons/hicolor/64x64/mimetypes/text-x-tikz.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/share/icons/hicolor/scalable/apps/tikzit.svg b/tikzit-old/share/icons/hicolor/scalable/apps/tikzit.svg
deleted file mode 100644
index dc5cc84..0000000
--- a/tikzit-old/share/icons/hicolor/scalable/apps/tikzit.svg
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- version="1.1"
- width="640"
- height="640"
- id="svg2837"
- xml:space="preserve"><metadata
- id="metadata2843"><rdf:RDF><cc:Work
- rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
- id="defs2841"><linearGradient
- x1="0"
- y1="0"
- x2="1"
- y2="0"
- id="linearGradient33921"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(-1.53e-5,-446.50488,-446.50488,1.53e-5,261.01562,484.2124)"
- spreadMethod="pad"><stop
- id="stop33923"
- style="stop-color:#ffffff;stop-opacity:1"
- offset="0" /><stop
- id="stop33925"
- style="stop-color:#616264;stop-opacity:1"
- offset="0.86813402" /><stop
- id="stop33927"
- style="stop-color:#8e9092;stop-opacity:1"
- offset="1" /></linearGradient><filter
- x="-0.17975496"
- y="-0.19057155"
- width="1.3595099"
- height="1.3811431"
- color-interpolation-filters="sRGB"
- id="filter34971"><feGaussianBlur
- id="feGaussianBlur34973"
- stdDeviation="35.454644" /></filter><linearGradient
- x1="0"
- y1="0"
- x2="1"
- y2="0"
- id="linearGradient35685"
- xlink:href="#linearGradient33921"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(-1.53e-5,-446.50488,-446.50488,1.53e-5,261.01562,484.2124)"
- spreadMethod="pad" /><clipPath
- id="clipPath35801"><path
- d="m 392.42766,225.43729 c -3.74981,0 -7.51523,-0.14136 -11.05624,0.92584 -21.41291,-75.54824 -71.13038,-124.92904 -129.17769,-124.92904 -77.58673,0 -140.4832,94.60943 -140.4832,211.31612 0,47.62467 10.47671,91.56379 28.14834,126.90225 -8.56488,14.68555 -13.76772,33.91447 -13.76772,54.98507 0,46.07995 24.83318,83.43531 55.46718,83.43531 24.19047,0 44.75115,-23.30223 52.33595,-55.79054 5.99045,1.17296 12.09737,1.78401 18.29945,1.78401 6.04939,0 12.0093,-0.5758 17.85699,-1.69214 7.53582,32.62291 28.14054,56.04907 52.39418,56.04907 30.63402,0 55.4672,-37.35429 55.4672,-83.43425 0,-20.97873 -5.15952,-40.13501 -13.65906,-54.79597 7.15303,-14.20804 13.13707,-29.81871 17.74266,-46.50939 3.37978,0.96784 6.86469,1.49556 10.43196,1.49556 30.63399,0 55.46719,-37.35535 55.46719,-83.43423 0,-46.07996 -24.8332,-86.30767 -55.46719,-86.30767 z"
- id="path35803"
- style="fill:none;stroke:#ff0d0d;stroke-width:0.69681585;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /></clipPath></defs><g
- transform="matrix(1.25,0,0,-1.25,0,640)"
- id="g2847"><g
- id="g35655"><path
- d="m 0,0 c -5.28,0 -10.435,-0.531 -15.421,-1.53 -30.151,70.72 -100.304,120.297 -182.039,120.297 -109.248,0 -197.811,-88.563 -197.811,-197.811 0,-44.581 14.752,-85.712 39.635,-118.792 -12.06,-13.747 -19.386,-31.747 -19.386,-51.471 0,-43.135 34.967,-78.103 78.102,-78.103 34.062,0 63.013,21.813 73.693,52.225 8.435,-1.098 17.034,-1.67 25.767,-1.67 8.518,0 16.91,0.539 25.144,1.584 10.611,-30.538 39.624,-52.467 73.775,-52.467 43.135,0 78.102,34.967 78.102,78.102 0,19.638 -7.265,37.57 -19.233,51.294 10.072,13.3 18.498,27.913 24.983,43.537 4.759,-0.906 9.666,-1.4 14.689,-1.4 43.135,0 78.102,34.968 78.102,78.102 C 78.102,-34.968 43.135,0 0,0 z"
- transform="matrix(0.77717341,0,0,0.10093952,375.05839,59.806437)"
- id="path34177"
- style="opacity:0.53036439;fill:#000000;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter34971)" /><g
- id="g35635"><path
- d="m 24.329,286.402 c 0,-44.581 14.752,-85.713 39.634,-118.792 l 0,0 C 51.904,153.863 44.578,135.862 44.578,116.139 l 0,0 c 0,-43.136 34.967,-78.103 78.102,-78.103 l 0,0 c 34.061,0 63.012,21.812 73.693,52.225 l 0,0 c 8.434,-1.098 17.033,-1.67 25.767,-1.67 l 0,0 c 8.517,0 16.909,0.539 25.143,1.584 l 0,0 c 10.611,-30.538 39.624,-52.467 73.776,-52.467 l 0,0 c 43.134,0 78.101,34.967 78.101,78.101 l 0,0 c 0,19.639 -7.265,37.571 -19.232,51.295 l 0,0 c 10.072,13.3 18.498,27.912 24.982,43.537 l 0,0 c 4.76,-0.907 9.666,-1.4 14.69,-1.4 l 0,0 c 43.134,0 78.101,34.968 78.101,78.102 l 0,0 c 0,43.135 -34.967,78.103 -78.101,78.103 l 0,0 c -5.281,0 -10.435,-0.531 -15.422,-1.53 l 0,0 C 374.027,434.636 303.875,484.213 222.14,484.213 l 0,0 c -109.248,0 -197.811,-88.564 -197.811,-197.811"
- id="path33929"
- style="fill:url(#linearGradient35685);stroke:none" /><path
- d="m 419.5996,365.4458 c -5.28,0 -10.435,-0.531 -15.421,-1.53 -30.151,70.72 -100.304,120.297 -182.039,120.297 -109.248,0 -197.811,-88.563 -197.811,-197.811 0,-44.581 14.752,-85.712 39.635,-118.792 -12.06,-13.747 -19.386,-31.747 -19.386,-51.471 0,-43.135 34.967,-78.103 78.102,-78.103 34.062,0 63.013,21.813 73.693,52.225 8.435,-1.098 17.034,-1.67 25.767,-1.67 8.518,0 16.91,0.539 25.144,1.584 10.611,-30.538 39.624,-52.467 73.775,-52.467 43.135,0 78.102,34.967 78.102,78.102 0,19.638 -7.265,37.57 -19.233,51.294 10.072,13.3 18.498,27.913 24.983,43.537 4.759,-0.906 9.666,-1.4 14.689,-1.4 43.135,0 78.102,34.968 78.102,78.102 0,43.135 -34.967,78.103 -78.102,78.103 z"
- id="path33941"
- style="fill:none;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /></g><path
- d="m 220.95,365.65 c -43.695,0 -78.725,-35.03 -78.725,-78.725 0,-18.9875 7.65963,-35.55178 17.675,-49.9 11.49378,-16.46621 5.21023,-37.25634 -2.24996,-50.45 -2.00834,-3.475 -4.01666,-6.95 -6.025,-10.425 -4.94453,-8.55547 -10.02666,-15.18231 -18.675,-14.675 -3.42396,0.20085 -6.80941,0.875 -10.4,0.875 -24.579,0 -44.3,-19.696 -44.3,-44.275 0,-24.577 19.721,-44.3 44.3,-44.3 24.578,0 44.275,19.723 44.275,44.3 -1.20683,11.29901 -4.97811,21.46896 -10.82496,29.1 -5.97331,7.79609 -2.86902,15.90266 2.425,25.025 l 6.05,10.425 c 10.71235,18.45889 27.30646,29.1309 42.65,26.77496 4.50614,-0.6919 9.09838,-1.2 13.825,-1.2 5.52479,0 10.83798,0.96662 16.1,1.625 18.10951,2.26586 30.39723,-10.81404 39.925,-27.3 L 283,172.1 c 5.39746,-9.33926 8.60892,-17.62976 2.25,-25.725 -6.14891,-7.82789 -10.175,-17.49618 -10.175,-28.3 0,-24.577 19.721,-44.3 44.3,-44.3 24.578,0 44.275,19.723 44.275,44.3 0,24.579 -19.697,44.275 -44.275,44.275 -2.89725,0 -5.71232,-0.43152 -8.475,-0.8 -10.16226,-1.35543 -15.71326,5.17938 -21.1,14.5 l -6.025,10.425 c -10.69522,18.50585 -11.5283,38.35398 -2.05,50.2 5.65581,7.06865 10.33731,14.99971 13.425,23.725 6.61391,18.68978 24.16896,23.46495 43.975,23.625 4.125,0.0334 8.25,0.0666 12.375,0.1 10.36356,0.0837 20.66997,-0.15441 24.075,-9.1 6.68456,-17.56145 22.3333,-30.775 42.2,-30.775 24.578,0 44.3,19.697 44.3,44.275 0,24.579 -19.722,44.275 -44.3,44.275 -19.97044,0 -35.86343,-13.27474 -42.3,-31.05 -3.33498,-9.20988 -13.56604,-9.74028 -24.05,-9.825 -4.125,-0.0334 -8.25,-0.0666 -12.375,-0.1 -19.58614,-0.15827 -37.31589,4.08182 -44.125,22.25 -11.27542,30.08527 -39.83828,51.575 -73.975,51.575 z"
- id="path33957"
- style="fill:#000000;fill-opacity:1;stroke:none" /><path
- d="m 541.0918,183.6165 a 264.9606,162.99411 0 1 1 -529.921207,0 264.9606,162.99411 0 1 1 529.921207,0 z"
- transform="matrix(1.4366299,0,0,-0.95740149,-140.89006,585.91684)"
- clip-path="url(#clipPath35801)"
- id="path35470"
- style="opacity:0.16599193;fill:#ffffff;fill-opacity:1;stroke:none" /></g></g></svg> \ No newline at end of file
diff --git a/tikzit-old/share/icons/hicolor/scalable/mimetypes/text-x-tikz.svg b/tikzit-old/share/icons/hicolor/scalable/mimetypes/text-x-tikz.svg
deleted file mode 100644
index 1642e87..0000000
--- a/tikzit-old/share/icons/hicolor/scalable/mimetypes/text-x-tikz.svg
+++ /dev/null
@@ -1,488 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- inkscape:export-ydpi="240.00000"
- inkscape:export-xdpi="240.00000"
- inkscape:export-filename="/home/jimmac/gfx/novell/pdes/trunk/docs/BIGmime-text.png"
- sodipodi:docname="text-x-script.svg"
- inkscape:version="0.48.4 r9939"
- sodipodi:version="0.32"
- id="svg249"
- height="48.000000px"
- width="48.000000px"
- inkscape:output_extension="org.inkscape.output.svg.inkscape"
- version="1.1">
- <defs
- id="defs3">
- <inkscape:perspective
- sodipodi:type="inkscape:persp3d"
- inkscape:vp_x="0 : 24 : 1"
- inkscape:vp_y="0 : 1000 : 0"
- inkscape:vp_z="48 : 24 : 1"
- inkscape:persp3d-origin="24 : 16 : 1"
- id="perspective76" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient5060"
- id="radialGradient6719"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
- cx="605.71429"
- cy="486.64789"
- fx="605.71429"
- fy="486.64789"
- r="117.14286" />
- <linearGradient
- inkscape:collect="always"
- id="linearGradient5060">
- <stop
- style="stop-color:black;stop-opacity:1;"
- offset="0"
- id="stop5062" />
- <stop
- style="stop-color:black;stop-opacity:0;"
- offset="1"
- id="stop5064" />
- </linearGradient>
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient5060"
- id="radialGradient6717"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
- cx="605.71429"
- cy="486.64789"
- fx="605.71429"
- fy="486.64789"
- r="117.14286" />
- <linearGradient
- id="linearGradient5048">
- <stop
- style="stop-color:black;stop-opacity:0;"
- offset="0"
- id="stop5050" />
- <stop
- id="stop5056"
- offset="0.5"
- style="stop-color:black;stop-opacity:1;" />
- <stop
- style="stop-color:black;stop-opacity:0;"
- offset="1"
- id="stop5052" />
- </linearGradient>
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient5048"
- id="linearGradient6715"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
- x1="302.85715"
- y1="366.64789"
- x2="302.85715"
- y2="609.50507" />
- <linearGradient
- inkscape:collect="always"
- id="linearGradient3082">
- <stop
- style="stop-color:#ffffff;stop-opacity:1;"
- offset="0"
- id="stop3084" />
- <stop
- style="stop-color:#ffffff;stop-opacity:0;"
- offset="1"
- id="stop3086" />
- </linearGradient>
- <linearGradient
- id="aigrd1"
- gradientUnits="userSpaceOnUse"
- x1="99.7773"
- y1="15.4238"
- x2="153.0005"
- y2="248.6311">
- <stop
- offset="0"
- style="stop-color:#464646;stop-opacity:1"
- id="stop53300" />
- <stop
- offset="1"
- style="stop-color:#cdcdcd;stop-opacity:1"
- id="stop53302" />
- </linearGradient>
- <linearGradient
- inkscape:collect="always"
- id="linearGradient4542">
- <stop
- style="stop-color:#000000;stop-opacity:1;"
- offset="0"
- id="stop4544" />
- <stop
- style="stop-color:#000000;stop-opacity:0;"
- offset="1"
- id="stop4546" />
- </linearGradient>
- <linearGradient
- id="linearGradient15662">
- <stop
- id="stop15664"
- offset="0.0000000"
- style="stop-color:#ffffff;stop-opacity:1.0000000;" />
- <stop
- id="stop15666"
- offset="1.0000000"
- style="stop-color:#f8f8f8;stop-opacity:1.0000000;" />
- </linearGradient>
- <radialGradient
- id="aigrd3"
- cx="20.8921"
- cy="64.5679"
- r="5.257"
- fx="20.8921"
- fy="64.5679"
- gradientUnits="userSpaceOnUse">
- <stop
- offset="0"
- style="stop-color:#F0F0F0"
- id="stop15573" />
- <stop
- offset="1.0000000"
- style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
- id="stop15575" />
- </radialGradient>
- <radialGradient
- id="aigrd2"
- cx="20.8921"
- cy="114.5684"
- r="5.256"
- fx="20.8921"
- fy="114.5684"
- gradientUnits="userSpaceOnUse">
- <stop
- offset="0"
- style="stop-color:#F0F0F0"
- id="stop15566" />
- <stop
- offset="1.0000000"
- style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
- id="stop15568" />
- </radialGradient>
- <linearGradient
- id="linearGradient269">
- <stop
- id="stop270"
- offset="0.0000000"
- style="stop-color:#a3a3a3;stop-opacity:1.0000000;" />
- <stop
- id="stop271"
- offset="1.0000000"
- style="stop-color:#4c4c4c;stop-opacity:1.0000000;" />
- </linearGradient>
- <linearGradient
- id="linearGradient259">
- <stop
- id="stop260"
- offset="0.0000000"
- style="stop-color:#fafafa;stop-opacity:1.0000000;" />
- <stop
- id="stop261"
- offset="1.0000000"
- style="stop-color:#bbbbbb;stop-opacity:1.0000000;" />
- </linearGradient>
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient269"
- id="radialGradient15656"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(0.968273,0.000000,0.000000,1.032767,3.353553,0.646447)"
- cx="8.8244190"
- cy="3.7561285"
- fx="8.8244190"
- fy="3.7561285"
- r="37.751713" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient259"
- id="radialGradient15658"
- gradientUnits="userSpaceOnUse"
- gradientTransform="scale(0.960493,1.041132)"
- cx="33.966679"
- cy="35.736916"
- fx="33.966679"
- fy="35.736916"
- r="86.708450" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient15662"
- id="radialGradient15668"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(0.968273,0.000000,0.000000,1.032767,3.353553,0.646447)"
- cx="8.1435566"
- cy="7.2678967"
- fx="8.1435566"
- fy="7.2678967"
- r="38.158695" />
- <radialGradient
- r="5.256"
- fy="114.5684"
- fx="20.8921"
- cy="114.5684"
- cx="20.8921"
- gradientTransform="matrix(0.229703,0.000000,0.000000,0.229703,4.613529,3.979808)"
- gradientUnits="userSpaceOnUse"
- id="radialGradient2283"
- xlink:href="#aigrd2"
- inkscape:collect="always" />
- <radialGradient
- r="5.257"
- fy="64.5679"
- fx="20.8921"
- cy="64.5679"
- cx="20.8921"
- gradientTransform="matrix(0.229703,0.000000,0.000000,0.229703,4.613529,3.979808)"
- gradientUnits="userSpaceOnUse"
- id="radialGradient2285"
- xlink:href="#aigrd3"
- inkscape:collect="always" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient4542"
- id="radialGradient4548"
- cx="24.306795"
- cy="42.07798"
- fx="24.306795"
- fy="42.07798"
- r="15.821514"
- gradientTransform="matrix(1.000000,0.000000,0.000000,0.284916,0.000000,30.08928)"
- gradientUnits="userSpaceOnUse" />
- <linearGradient
- inkscape:collect="always"
- xlink:href="#aigrd1"
- id="linearGradient2193"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(0.200685,0,0,0.200685,25.33302,3.157373)"
- x1="99.7773"
- y1="15.4238"
- x2="153.0005"
- y2="248.6311" />
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient3082"
- id="linearGradient3088"
- x1="44.592766"
- y1="9.9124937"
- x2="65.862885"
- y2="43.31715"
- gradientUnits="userSpaceOnUse" />
- <linearGradient
- inkscape:collect="always"
- xlink:href="#aigrd1"
- id="linearGradient4856"
- x1="11.944736"
- y1="34.855717"
- x2="46.078125"
- y2="34.855717"
- gradientUnits="userSpaceOnUse" />
- </defs>
- <sodipodi:namedview
- inkscape:window-y="24"
- inkscape:window-x="-2"
- inkscape:window-height="721"
- inkscape:window-width="1366"
- inkscape:document-units="px"
- inkscape:grid-bbox="true"
- showgrid="false"
- inkscape:current-layer="layer5"
- inkscape:cy="16.674404"
- inkscape:cx="4.0535488"
- inkscape:zoom="7.9999999"
- inkscape:pageshadow="2"
- inkscape:pageopacity="0.0"
- borderopacity="0.25490196"
- bordercolor="#666666"
- pagecolor="#ffffff"
- id="base"
- inkscape:showpageshadow="false"
- inkscape:window-maximized="1" />
- <metadata
- id="metadata4">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- <dc:subject>
- <rdf:Bag>
- <rdf:li>text</rdf:li>
- <rdf:li>plaintext</rdf:li>
- <rdf:li>regular</rdf:li>
- <rdf:li>script</rdf:li>
- <rdf:li>shell</rdf:li>
- <rdf:li>bash</rdf:li>
- <rdf:li>python</rdf:li>
- <rdf:li>perl</rdf:li>
- <rdf:li>php</rdf:li>
- <rdf:li>ruby</rdf:li>
- </rdf:Bag>
- </dc:subject>
- <cc:license
- rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
- <dc:creator>
- <cc:Agent>
- <dc:title>Jakub Steiner</dc:title>
- </cc:Agent>
- </dc:creator>
- <dc:source>http://jimmac.musichall.cz</dc:source>
- </cc:Work>
- <cc:License
- rdf:about="http://creativecommons.org/licenses/publicdomain/">
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Reproduction" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Distribution" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
- </cc:License>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:groupmode="layer"
- id="layer6"
- inkscape:label="Shadow">
- <g
- style="display:inline"
- transform="matrix(2.105461e-2,0,0,2.086758e-2,42.85172,41.1536)"
- id="g6707">
- <rect
- style="opacity:0.40206185;color:black;fill:url(#linearGradient6715);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
- id="rect6709"
- width="1339.6335"
- height="478.35718"
- x="-1559.2523"
- y="-150.69685" />
- <path
- style="opacity:0.40206185;color:black;fill:url(#radialGradient6717);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
- d="M -219.61876,-150.68038 C -219.61876,-150.68038 -219.61876,327.65041 -219.61876,327.65041 C -76.744594,328.55086 125.78146,220.48075 125.78138,88.454235 C 125.78138,-43.572302 -33.655436,-150.68036 -219.61876,-150.68038 z "
- id="path6711"
- sodipodi:nodetypes="cccc" />
- <path
- sodipodi:nodetypes="cccc"
- id="path6713"
- d="M -1559.2523,-150.68038 C -1559.2523,-150.68038 -1559.2523,327.65041 -1559.2523,327.65041 C -1702.1265,328.55086 -1904.6525,220.48075 -1904.6525,88.454235 C -1904.6525,-43.572302 -1745.2157,-150.68036 -1559.2523,-150.68038 z "
- style="opacity:0.40206185;color:black;fill:url(#radialGradient6719);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" />
- </g>
- </g>
- <g
- style="display:inline"
- inkscape:groupmode="layer"
- inkscape:label="Base"
- id="layer1">
- <rect
- style="color:#000000;fill:url(#radialGradient15658);fill-opacity:1.0000000;fill-rule:nonzero;stroke:url(#radialGradient15656);stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible"
- id="rect15391"
- width="34.875000"
- height="40.920494"
- x="6.6035528"
- y="3.6464462"
- ry="1.1490486" />
- <rect
- style="color:#000000;fill:none;fill-opacity:1.0000000;fill-rule:nonzero;stroke:url(#radialGradient15668);stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible"
- id="rect15660"
- width="32.775887"
- height="38.946384"
- x="7.6660538"
- y="4.5839462"
- ry="0.14904857"
- rx="0.14904857" />
- <g
- transform="translate(0.646447,-3.798933e-2)"
- id="g2270">
- <g
- id="g1440"
- style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-miterlimit:4.0000000"
- transform="matrix(0.229703,0.000000,0.000000,0.229703,4.967081,4.244972)">
- <radialGradient
- id="radialGradient1442"
- cx="20.892099"
- cy="114.56840"
- r="5.2560000"
- fx="20.892099"
- fy="114.56840"
- gradientUnits="userSpaceOnUse">
- <stop
- offset="0"
- style="stop-color:#F0F0F0"
- id="stop1444" />
- <stop
- offset="1"
- style="stop-color:#474747"
- id="stop1446" />
- </radialGradient>
- <path
- style="stroke:none"
- d="M 23.428000,113.07000 C 23.428000,115.04300 21.828000,116.64200 19.855000,116.64200 C 17.881000,116.64200 16.282000,115.04200 16.282000,113.07000 C 16.282000,111.09600 17.882000,109.49700 19.855000,109.49700 C 21.828000,109.49700 23.428000,111.09700 23.428000,113.07000 z "
- id="path1448" />
- <radialGradient
- id="radialGradient1450"
- cx="20.892099"
- cy="64.567902"
- r="5.2570000"
- fx="20.892099"
- fy="64.567902"
- gradientUnits="userSpaceOnUse">
- <stop
- offset="0"
- style="stop-color:#F0F0F0"
- id="stop1452" />
- <stop
- offset="1"
- style="stop-color:#474747"
- id="stop1454" />
- </radialGradient>
- <path
- style="stroke:none"
- d="M 23.428000,63.070000 C 23.428000,65.043000 21.828000,66.643000 19.855000,66.643000 C 17.881000,66.643000 16.282000,65.043000 16.282000,63.070000 C 16.282000,61.096000 17.882000,59.497000 19.855000,59.497000 C 21.828000,59.497000 23.428000,61.097000 23.428000,63.070000 z "
- id="path1456" />
- </g>
- <path
- style="fill:url(#radialGradient2283);fill-rule:nonzero;stroke:none;stroke-miterlimit:4.0000000"
- d="M 9.9950109,29.952326 C 9.9950109,30.405530 9.6274861,30.772825 9.1742821,30.772825 C 8.7208483,30.772825 8.3535532,30.405301 8.3535532,29.952326 C 8.3535532,29.498892 8.7210780,29.131597 9.1742821,29.131597 C 9.6274861,29.131597 9.9950109,29.499122 9.9950109,29.952326 z "
- id="path15570" />
- <path
- style="fill:url(#radialGradient2285);fill-rule:nonzero;stroke:none;stroke-miterlimit:4.0000000"
- d="M 9.9950109,18.467176 C 9.9950109,18.920380 9.6274861,19.287905 9.1742821,19.287905 C 8.7208483,19.287905 8.3535532,18.920380 8.3535532,18.467176 C 8.3535532,18.013742 8.7210780,17.646447 9.1742821,17.646447 C 9.6274861,17.646447 9.9950109,18.013972 9.9950109,18.467176 z "
- id="path15577" />
- </g>
- <path
- style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.98855311;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:0.017543854"
- d="M 11.505723,5.4942766 L 11.505723,43.400869"
- id="path15672"
- sodipodi:nodetypes="cc" />
- <path
- style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.0000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:0.20467831"
- d="M 12.500000,5.0205154 L 12.500000,43.038228"
- id="path15674"
- sodipodi:nodetypes="cc" />
- </g>
- <g
- inkscape:groupmode="layer"
- id="layer5"
- inkscape:label="Text"
- style="display:inline">
- <path
- sodipodi:nodetypes="sscscszzzsssssssszzzsssssssszzzsssss"
- inkscape:connector-curvature="0"
- id="path33957"
- d="m 24.65625,22.375 c -3.383931,-0.07538 -6.682424,2.981169 -6.682424,6.635948 0,1.811029 0.618642,2.969305 1.16167,3.94901 0.320526,0.761743 0.481484,1.628975 0.145758,2.415042 -0.334995,0.886416 -0.799361,1.723303 -1.288354,2.544038 -0.549825,0.76092 -1.083516,1.515746 -2.432904,1.749015 -0.790575,0.136667 -1.873943,0.561465 -2.720843,1.948704 -0.8469,1.387239 -0.321452,4.176331 1.49445,5.17758 1.815902,1.001249 4.030913,0.652493 5.260151,-1.325587 1.229238,-1.97808 0.315407,-3.044531 0.15625,-3.90625 -0.165418,-0.895622 0.0582,-1.752262 0.343746,-2.375 0.344076,-0.750385 0.784786,-1.282259 1.34375,-1.96875 0.867619,-1.065564 1.164957,-1.711597 2.291421,-1.450646 0.887325,0.205553 1.520839,0.17181 2.319062,0.0038 1.025938,-0.21592 1.476629,0.552745 2.143385,1.382642 0.377881,0.47034 1.048613,1.53902 1.371132,2.439189 0.269823,0.753092 0.32475,1.473031 0.14098,2.145538 -0.127093,0.465097 -0.654726,1.753431 0.202773,3.385712 0.857499,1.632281 3.175442,2.604873 5.354698,1.442576 2.179256,-1.162297 2.123211,-4.311784 1.097199,-5.587687 -1.026012,-1.275903 -1.815467,-1.371061 -2.352609,-1.491004 -0.659106,-0.147178 -1.707577,-0.663235 -2.289651,-1.297253 -0.930456,-1.01349 -1.331937,-2.147851 -1.606835,-3.002926 -0.28881,-0.898347 -0.204964,-1.806343 0.307772,-2.411584 0.421456,-0.497494 0.532641,-0.944704 0.743818,-1.337594 0.281571,-0.523855 1.043748,-1.211867 1.894213,-1.440975 1.067902,-0.287684 2.107243,-0.310125 3.174824,-0.139173 0.877444,0.140505 1.376643,0.404572 1.907121,0.799383 0.685067,0.509865 1.277825,1.950617 3.644447,1.950617 2.366622,0 3.796875,-2.20703 3.796875,-4.109375 0,-1.902345 -1.910169,-3.62476 -3.890625,-3.625 -1.980456,-2.4e-4 -2.577671,1.013331 -3.223763,1.685643 -0.536298,0.558062 -1.376191,0.971889 -2.302212,1.049779 -1.017499,0.08559 -2.066296,0.184857 -3.058401,0.06722 -0.946503,-0.112228 -1.686815,-0.906731 -2.184088,-1.635974 -1.86718,-2.73819 -3.628497,-3.607984 -6.262786,-3.666668 z"
- style="fill:url(#linearGradient4856);stroke:#3e3e3e;stroke-opacity:1;fill-opacity:1.0" />
- </g>
-</svg>
diff --git a/tikzit-old/share/mime/packages/tikzit.xml b/tikzit-old/share/mime/packages/tikzit.xml
deleted file mode 100644
index c6e7c0c..0000000
--- a/tikzit-old/share/mime/packages/tikzit.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
- <mime-type type="text/x-tikz">
- <comment xml:lang="en"></comment>
- <magic priority="50">
- <match type="string" value="\\begin{tikzpicture}" offset="0"/>
- </magic>
- <glob pattern="*.tikz"/>
- </mime-type>
-</mime-info>
diff --git a/tikzit-old/share/tikzit b/tikzit-old/share/tikzit
deleted file mode 120000
index a96aa0e..0000000
--- a/tikzit-old/share/tikzit
+++ /dev/null
@@ -1 +0,0 @@
-.. \ No newline at end of file
diff --git a/tikzit-old/src/Makefile.am b/tikzit-old/src/Makefile.am
deleted file mode 100644
index 5108e9c..0000000
--- a/tikzit-old/src/Makefile.am
+++ /dev/null
@@ -1,178 +0,0 @@
-if WINDOWS
-sharedir = ../
-else
-sharedir = @datarootdir@/tikzit
-endif
-
-AM_OBJCFLAGS = @FOUNDATION_OBJCFLAGS@ \
- @GTK_CFLAGS@ \
- -I common \
- -I gtk \
- -DTIKZITSHAREDIR=\"$(sharedir)\" \
- -std=c99 \
- -D_GNU_SOURCE
-LIBS = @FOUNDATION_LIBS@ \
- @GTK_LIBS@
-AM_YFLAGS = -d
-PARSERFILES = common/tikzlexer.m common/tikzlexer.h common/tikzparser.m common/tikzparser.h
-ICONFILES = ../draw-ellipse.png \
- ../draw-path.png \
- ../select-rectangular.png \
- ../transform-crop-and-resize.png \
- ../transform-move.png
-EDGEDECFILES = ../AH_*.png ../ED_*.png
-
-bin_PROGRAMS = tikzit
-BUILT_SOURCES = $(PARSERFILES)
-tikzit_SOURCES = gtk/Application.m \
- gtk/BoundingBoxTool.m \
- gtk/CairoRenderContext.m \
- gtk/ColorRGB+IntegerListStorage.m \
- gtk/ColorRGB+Gtk.m \
- gtk/Configuration.m \
- gtk/ContextWindow.m \
- gtk/CreateEdgeTool.m \
- gtk/CreateNodeTool.m \
- gtk/Edge+Render.m \
- gtk/EdgeStyle+Gtk.m \
- gtk/EdgeStyle+Storage.m \
- gtk/EdgeStyleEditor.m \
- gtk/EdgeStyleSelector.m \
- gtk/EdgeStylesModel.m \
- gtk/EdgeStylesPalette.m \
- gtk/FileChooserDialog.m \
- gtk/HandTool.m \
- gtk/GraphEditorPanel.m \
- gtk/GraphRenderer.m \
- gtk/Menu.m \
- gtk/Node+Render.m \
- gtk/NodeStyle+Gtk.m \
- gtk/NodeStyle+Storage.m \
- gtk/NodeStyleEditor.m \
- gtk/NodeStylesModel.m \
- gtk/NodeStyleSelector.m \
- gtk/NodeStylesPalette.m \
- gtk/NSError+Glib.m \
- gtk/NSFileManager+Glib.m \
- gtk/NSString+Glib.m \
- gtk/PropertiesPane.m \
- gtk/PropertyListEditor.m \
- gtk/RecentManager.m \
- gtk/SelectTool.m \
- gtk/SelectionPane.m \
- gtk/SettingsDialog.m \
- gtk/Shape+Render.m \
- gtk/StyleManager+Storage.m \
- gtk/TikzDocument.m \
- gtk/ToolBox.m \
- gtk/WidgetSurface.m \
- gtk/Window.m \
- gtk/cairo_helpers.m \
- gtk/clipboard.m \
- gtk/gtkhelpers.m \
- gtk/logo.m \
- gtk/mkdtemp.m \
- gtk/main.m \
- gtk/tzstockitems.m \
- gtk/tztoolpalette.m \
- common/CircleShape.m \
- common/ColorRGB.m \
- common/DiamondShape.m \
- common/Edge.m \
- common/EdgeStyle.m \
- common/GraphChange.m \
- common/GraphElementData.m \
- common/Graph.m \
- common/Grid.m \
- common/Node.m \
- common/NodeStyle.m \
- common/NSError+Tikzit.m \
- common/NSFileManager+Utils.m \
- common/NSString+LatexConstants.m \
- common/NSString+Tikz.m \
- common/NSString+Util.m \
- common/PickSupport.m \
- common/PropertyHolder.m \
- common/GraphElementProperty.m \
- common/RColor.m \
- common/RectangleShape.m \
- common/RegularPolyShape.m \
- common/Shape.m \
- common/StyleManager.m \
- common/SupportDir.m \
- common/TikzGraphAssembler.m \
- common/TikzShape.m \
- common/Transformer.m \
- common/tikzparser.m \
- common/tikzlexer.m \
- common/util.m
-
-if HAVE_POPPLER
-tikzit_SOURCES += \
- common/Preambles.m \
- gtk/PreambleEditor.m \
- gtk/Preambles+Storage.m \
- gtk/PreviewRenderer.m \
- gtk/PreviewWindow.m
-endif
-
-if WINDOWS
-tikzit.res: tikzit.rc
- $(AM_V_GEN)windres $^ -O coff -o $@
-
-tikzit_LDADD = tikzit.res
-CLEANFILES = tikzit.res
-endif
-
-common/tikzlexer.m common/tikzlexer.h: common/tikzlexer.lm
- $(AM_V_GEN)$(LEX) -o common/tikzlexer.m $^
-# ordering hack for parallel builds
-common/tikzlexer.h: common/tikzlexer.m
-
-common/tikzparser.m common/tikzparser.h: common/tikzparser.ym
- $(AM_V_GEN)$(YACC) --defines=common/tikzparser.h --output=common/tikzparser.m $^
-# ordering hack for parallel builds
-common/tikzparser.h: common/tikzparser.m
-
-gtk/icondata.m: $(ICONFILES)
- $(AM_V_GEN)gdk-pixbuf-csource --struct --static --raw --build-list \
- draw_ellipse ../draw-ellipse.png \
- draw_path ../draw-path.png \
- select_rectangular ../select-rectangular.png \
- transform_crop_and_resize ../transform-crop-and-resize.png \
- transform_move ../transform-move.png \
- > $@
-
-gtk/logodata.m: ../share/icons/hicolor/*/apps/tikzit.png
- $(AM_V_GEN)gdk-pixbuf-csource --struct --static --raw --build-list \
- logo16 ../share/icons/hicolor/16x16/apps/tikzit.png \
- logo24 ../share/icons/hicolor/24x24/apps/tikzit.png \
- logo32 ../share/icons/hicolor/32x32/apps/tikzit.png \
- logo48 ../share/icons/hicolor/48x48/apps/tikzit.png \
- logo64 ../share/icons/hicolor/64x64/apps/tikzit.png \
- logo128 ../share/icons/hicolor/128x128/apps/tikzit.png \
- > $@
-
-gtk/edgedecdata.m: $(EDGEDECFILES)
- $(AM_V_GEN)gdk-pixbuf-csource --struct --static --raw --build-list \
- AH_none_pixdata ../AH_none.png \
- AH_latex_head_pixdata ../AH_latex_head.png \
- AH_latex_tail_pixdata ../AH_latex_tail.png \
- AH_plain_head_pixdata ../AH_plain_head.png \
- AH_plain_tail_pixdata ../AH_plain_tail.png \
- ED_none_pixdata ../ED_none.png \
- ED_arrow_pixdata ../ED_arrow.png \
- ED_tick_pixdata ../ED_tick.png \
- > $@
-
-gtk/Menu.m: gtk/icondata.m
-gtk/logo.m: gtk/logodata.m
-gtk/EdgeStyleEditor.m: gtk/edgedecdata.m
-
-EXTRA_DIST = gtk/*.h common/*.h \
- $(PARSERFILES) common/tikzlexer.lm common/tikzparser.ym \
- $(ICONFILES) gtk/icondata.m \
- gtk/logodata.m \
- $(EDGEDECFILES) gtk/edgedecdata.m \
- tikzit.rc ../tikzit.ico
-MAINTAINERCLEANFILES = $(PARSERFILES) gtk/icondata.m gtk/logodata.m gtk/edgedecdata.m
diff --git a/tikzit-old/src/common/CircleShape.h b/tikzit-old/src/common/CircleShape.h
deleted file mode 100644
index 8215b92..0000000
--- a/tikzit-old/src/common/CircleShape.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// CircleShape.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Shape.h"
-
-@interface CircleShape : Shape {
-}
-
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/CircleShape.m b/tikzit-old/src/common/CircleShape.m
deleted file mode 100644
index f2d1d52..0000000
--- a/tikzit-old/src/common/CircleShape.m
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// CircleShape.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "CircleShape.h"
-#import "Node.h"
-#import "Edge.h"
-
-@implementation CircleShape
-
-- (id)init {
- self = [super init];
- if (self) {
- Node *n0,*n1,*n2,*n3;
-
- n0 = [Node nodeWithPoint:NSMakePoint( 0.0f, 0.2f)];
- n1 = [Node nodeWithPoint:NSMakePoint( 0.2f, 0.0f)];
- n2 = [Node nodeWithPoint:NSMakePoint( 0.0f, -0.2f)];
- n3 = [Node nodeWithPoint:NSMakePoint(-0.2f, 0.0f)];
-
- Edge *e0,*e1,*e2,*e3;
-
- e0 = [Edge edgeWithSource:n0 andTarget:n1]; [e0 setBend:-45];
- e1 = [Edge edgeWithSource:n1 andTarget:n2]; [e1 setBend:-45];
- e2 = [Edge edgeWithSource:n2 andTarget:n3]; [e2 setBend:-45];
- e3 = [Edge edgeWithSource:n3 andTarget:n0]; [e3 setBend:-45];
-
- paths = [[NSSet alloc] initWithObjects:[NSArray arrayWithObjects:e0,e1,e2,e3,nil],nil];
-
- styleTikz = @"circle";
- }
- return self;
-}
-
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/ColorRGB.h b/tikzit-old/src/common/ColorRGB.h
deleted file mode 100644
index 607ba64..0000000
--- a/tikzit-old/src/common/ColorRGB.h
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// ColorRGB.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "RColor.h"
-
-@interface ColorRGB : NSObject<NSCopying> {
- unsigned short red, green, blue;
-}
-
-@property (assign) unsigned short red;
-@property (assign) unsigned short green;
-@property (assign) unsigned short blue;
-
-@property (assign) float redFloat;
-@property (assign) float greenFloat;
-@property (assign) float blueFloat;
-
-@property (readonly) NSString *name;
-
-- (RColor)rColor;
-- (RColor)rColorWithAlpha:(CGFloat)alpha;
-
-- (NSString*)hexName;
-- (BOOL)isEqual:(id)col;
-- (float)distanceFromColor:(ColorRGB*)col;
-- (int)hash;
-
-- (id)initWithRed:(unsigned short)r green:(unsigned short)g blue:(unsigned short)b;
-- (id)initWithFloatRed:(float)r green:(float)g blue:(float)b;
-- (id)initWithRColor:(RColor)color;
-
-- (void)setToClosestHashed;
-
-+ (ColorRGB*)colorWithRed:(unsigned short)r green:(unsigned short)g blue:(unsigned short)b;
-+ (ColorRGB*)colorWithFloatRed:(float)r green:(float)g blue:(float)b;
-+ (ColorRGB*)colorWithRColor:(RColor)color;
-
-+ (void)makeColorHash;
-+ (void)releaseColorHash;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/ColorRGB.m b/tikzit-old/src/common/ColorRGB.m
deleted file mode 100644
index 840d716..0000000
--- a/tikzit-old/src/common/ColorRGB.m
+++ /dev/null
@@ -1,353 +0,0 @@
-//
-// ColorRGB.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "ColorRGB.h"
-#import "util.h"
-
-typedef struct {
-#if __has_feature(objc_arc)
- __unsafe_unretained NSString *name;
-#else
- NSString *name;
-#endif
- unsigned short r, g, b;
-} ColorRGBEntry;
-
-static const ColorRGBEntry kColors[147] = {
- { @"AliceBlue", 240, 248, 255 },
- { @"AntiqueWhite", 250, 235, 215 },
- { @"Aqua", 0, 255, 255 },
- { @"Aquamarine", 127, 255, 212 },
- { @"Azure", 240, 255, 255 },
- { @"Beige", 245, 245, 220 },
- { @"Bisque", 255, 228, 196 },
- { @"Black", 0, 0, 0 },
- { @"BlanchedAlmond", 255, 235, 205 },
- { @"Blue", 0, 0, 255 },
- { @"BlueViolet", 138, 43, 226 },
- { @"Brown", 165, 42, 42 },
- { @"BurlyWood", 222, 184, 135 },
- { @"CadetBlue", 95, 158, 160 },
- { @"Chartreuse", 127, 255, 0 },
- { @"Chocolate", 210, 105, 30 },
- { @"Coral", 255, 127, 80 },
- { @"CornflowerBlue", 100, 149, 237 },
- { @"Cornsilk", 255, 248, 220 },
- { @"Crimson", 220, 20, 60 },
- { @"Cyan", 0, 255, 255 },
- { @"DarkBlue", 0, 0, 139 },
- { @"DarkCyan", 0, 139, 139 },
- { @"DarkGoldenrod", 184, 134, 11 },
- { @"DarkGray", 169, 169, 169 },
- { @"DarkGreen", 0, 100, 0 },
- { @"DarkGrey", 169, 169, 169 },
- { @"DarkKhaki", 189, 183, 107 },
- { @"DarkMagenta", 139, 0, 139 },
- { @"DarkOliveGreen", 85, 107, 47 },
- { @"DarkOrange", 255, 140, 0 },
- { @"DarkOrchid", 153, 50, 204 },
- { @"DarkRed", 139, 0, 0 },
- { @"DarkSalmon", 233, 150, 122 },
- { @"DarkSeaGreen", 143, 188, 143 },
- { @"DarkSlateBlue", 72, 61, 139 },
- { @"DarkSlateGray", 47, 79, 79 },
- { @"DarkSlateGrey", 47, 79, 79 },
- { @"DarkTurquoise", 0, 206, 209 },
- { @"DarkViolet", 148, 0, 211 },
- { @"DeepPink", 255, 20, 147 },
- { @"DeepSkyBlue", 0, 191, 255 },
- { @"DimGray", 105, 105, 105 },
- { @"DimGrey", 105, 105, 105 },
- { @"DodgerBlue", 30, 144, 255 },
- { @"FireBrick", 178, 34, 34 },
- { @"FloralWhite", 255, 250, 240 },
- { @"ForestGreen", 34, 139, 34 },
- { @"Fuchsia", 255, 0, 255 },
- { @"Gainsboro", 220, 220, 220 },
- { @"GhostWhite", 248, 248, 255 },
- { @"Gold", 255, 215, 0 },
- { @"Goldenrod", 218, 165, 32 },
- { @"Gray", 128, 128, 128 },
- { @"Grey", 128, 128, 128 },
- { @"Green", 0, 128, 0 },
- { @"GreenYellow", 173, 255, 47 },
- { @"Honeydew", 240, 255, 240 },
- { @"HotPink", 255, 105, 180 },
- { @"IndianRed", 205, 92, 92 },
- { @"Indigo", 75, 0, 130 },
- { @"Ivory", 255, 255, 240 },
- { @"Khaki", 240, 230, 140 },
- { @"Lavender", 230, 230, 250 },
- { @"LavenderBlush", 255, 240, 245 },
- { @"LawnGreen", 124, 252, 0 },
- { @"LemonChiffon", 255, 250, 205 },
- { @"LightBlue", 173, 216, 230 },
- { @"LightCoral", 240, 128, 128 },
- { @"LightCyan", 224, 255, 255 },
- { @"LightGoldenrodYellow", 250, 250, 210 },
- { @"LightGray", 211, 211, 211 },
- { @"LightGreen", 144, 238, 144 },
- { @"LightGrey", 211, 211, 211 },
- { @"LightPink", 255, 182, 193 },
- { @"LightSalmon", 255, 160, 122 },
- { @"LightSeaGreen", 32, 178, 170 },
- { @"LightSkyBlue", 135, 206, 250 },
- { @"LightSlateGray", 119, 136, 153 },
- { @"LightSlateGrey", 119, 136, 153 },
- { @"LightSteelBlue", 176, 196, 222 },
- { @"LightYellow", 255, 255, 224 },
- { @"Lime", 0, 255, 0 },
- { @"LimeGreen", 50, 205, 50 },
- { @"Linen", 250, 240, 230 },
- { @"Magenta", 255, 0, 255 },
- { @"Maroon", 128, 0, 0 },
- { @"MediumAquamarine", 102, 205, 170 },
- { @"MediumBlue", 0, 0, 205 },
- { @"MediumOrchid", 186, 85, 211 },
- { @"MediumPurple", 147, 112, 219 },
- { @"MediumSeaGreen", 60, 179, 113 },
- { @"MediumSlateBlue", 123, 104, 238 },
- { @"MediumSpringGreen", 0, 250, 154 },
- { @"MediumTurquoise", 72, 209, 204 },
- { @"MediumVioletRed", 199, 21, 133 },
- { @"MidnightBlue", 25, 25, 112 },
- { @"MintCream", 245, 255, 250 },
- { @"MistyRose", 255, 228, 225 },
- { @"Moccasin", 255, 228, 181 },
- { @"NavajoWhite", 255, 222, 173 },
- { @"Navy", 0, 0, 128 },
- { @"OldLace", 253, 245, 230 },
- { @"Olive", 128, 128, 0 },
- { @"OliveDrab", 107, 142, 35 },
- { @"Orange", 255, 165, 0 },
- { @"OrangeRed", 255, 69, 0 },
- { @"Orchid", 218, 112, 214 },
- { @"PaleGoldenrod", 238, 232, 170 },
- { @"PaleGreen", 152, 251, 152 },
- { @"PaleTurquoise", 175, 238, 238 },
- { @"PaleVioletRed", 219, 112, 147 },
- { @"PapayaWhip", 255, 239, 213 },
- { @"PeachPuff", 255, 218, 185 },
- { @"Peru", 205, 133, 63 },
- { @"Pink", 255, 192, 203 },
- { @"Plum", 221, 160, 221 },
- { @"PowderBlue", 176, 224, 230 },
- { @"Purple", 128, 0, 128 },
- { @"Red", 255, 0, 0 },
- { @"RosyBrown", 188, 143, 143 },
- { @"RoyalBlue", 65, 105, 225 },
- { @"SaddleBrown", 139, 69, 19 },
- { @"Salmon", 250, 128, 114 },
- { @"SandyBrown", 244, 164, 96 },
- { @"SeaGreen", 46, 139, 87 },
- { @"Seashell", 255, 245, 238 },
- { @"Sienna", 160, 82, 45 },
- { @"Silver", 192, 192, 192 },
- { @"SkyBlue", 135, 206, 235 },
- { @"SlateBlue", 106, 90, 205 },
- { @"SlateGray", 112, 128, 144 },
- { @"SlateGrey", 112, 128, 144 },
- { @"Snow", 255, 250, 250 },
- { @"SpringGreen", 0, 255, 127 },
- { @"SteelBlue", 70, 130, 180 },
- { @"Tan", 210, 180, 140 },
- { @"Teal", 0, 128, 128 },
- { @"Thistle", 216, 191, 216 },
- { @"Tomato", 255, 99, 71 },
- { @"Turquoise", 64, 224, 208 },
- { @"Violet", 238, 130, 238 },
- { @"Wheat", 245, 222, 179 },
- { @"White", 255, 255, 255 },
- { @"WhiteSmoke", 245, 245, 245 },
- { @"Yellow", 255, 255, 0 },
- { @"YellowGreen", 154, 205, 50 }
-};
-
-static NSMapTable *colorHash = nil;
-
-@implementation ColorRGB
-
-+ (void)initialize {
- [self setKeys:[NSArray arrayWithObject:@"red"] triggerChangeNotificationsForDependentKey:@"redFloat"];
- [self setKeys:[NSArray arrayWithObject:@"green"] triggerChangeNotificationsForDependentKey:@"greenFloat"];
- [self setKeys:[NSArray arrayWithObject:@"blue"] triggerChangeNotificationsForDependentKey:@"blueFloat"];
- [self setKeys:[NSArray arrayWithObjects:@"red", @"green", @"blue", nil]
- triggerChangeNotificationsForDependentKey:@"name"];
-}
-
-@synthesize red, green, blue;
-
-- (float)redFloat { return ((float)red)/255.0f; }
-- (void)setRedFloat:(float)r { [self setRed:round(r*255.0f)]; }
-- (float)greenFloat { return ((float)green)/255.0f; }
-- (void)setGreenFloat:(float)g { [self setGreen:round(g*255.0f)]; }
-- (float)blueFloat { return ((float)blue)/255.0f; }
-- (void)setBlueFloat:(float)b { [self setBlue:round(b*255.0f)]; }
-
-- (int)hash {
- return (red<<4) + (green<<2) + blue;
-}
-
-- (id)initWithRed:(unsigned short)r green:(unsigned short)g blue:(unsigned short)b {
- self = [super init];
- if (self) {
- red = r;
- green = g;
- blue = b;
- }
- return self;
-}
-
-- (id)initWithFloatRed:(float)r green:(float)g blue:(float)b {
- self = [super init];
- if (self) {
- red = round(r*255.0f);
- green = round(g*255.0f);
- blue = round(b*255.0f);
- }
- return self;
-}
-
-- (id) initWithRColor:(RColor)color {
- return [self initWithFloatRed:color.red green:color.green blue:color.blue];
-}
-
-- (RColor) rColor {
- return MakeSolidRColor ([self redFloat], [self greenFloat], [self blueFloat]);
-}
-
-- (RColor) rColorWithAlpha:(CGFloat)alpha {
- return MakeRColor ([self redFloat], [self greenFloat], [self blueFloat], alpha);
-}
-
-- (NSString*)name {
- if (colorHash == nil)
- [ColorRGB makeColorHash];
- return [colorHash objectForKey:self];
-}
-
-- (NSString*)hexName {
- return [NSString stringWithFormat:@"hexcolor0x%.2x%.2x%.2x", red, green, blue];
-}
-
-- (NSComparisonResult)compare:(ColorRGB*)col {
- if (red > [col red]) return NSOrderedDescending;
- else if (red < [col red]) return NSOrderedAscending;
- else {
- if (green > [col green]) return NSOrderedDescending;
- else if (green < [col green]) return NSOrderedAscending;
- else {
- if (blue > [col blue]) return NSOrderedDescending;
- else if (blue < [col blue]) return NSOrderedAscending;
- else return NSOrderedSame;
- }
- }
-}
-
-- (BOOL)isEqual:(id)col {
- return [self compare:col] == NSOrderedSame;
-}
-
-- (float)distanceFromColor:(ColorRGB *)col {
- float dr = (float)(red - [col red]);
- float dg = (float)(green - [col green]);
- float db = (float)(blue - [col blue]);
- return dr*dr + dg*dg + db*db;
-}
-
-- (id)copyWithZone:(NSZone*)zone {
- ColorRGB *col = [[ColorRGB allocWithZone:zone] initWithRed:red green:green blue:blue];
- return col;
-}
-
-+ (ColorRGB*)colorWithRed:(unsigned short)r green:(unsigned short)g blue:(unsigned short)b {
- ColorRGB *col = [[ColorRGB alloc] initWithRed:r green:g blue:b];
-#if __has_feature(objc_arc)
- return col;
-#else
- return [col autorelease];
-#endif
-}
-
-
-+ (ColorRGB*)colorWithFloatRed:(float)r green:(float)g blue:(float)b {
- ColorRGB *col = [[ColorRGB alloc] initWithFloatRed:r green:g blue:b];
-#if __has_feature(objc_arc)
- return col;
-#else
- return [col autorelease];
-#endif
-}
-
-+ (ColorRGB*) colorWithRColor:(RColor)color {
-#if __has_feature(objc_arc)
- return [[self alloc] initWithRColor:color];
-#else
- return [[[self alloc] initWithRColor:color] autorelease];
-#endif
-}
-
-+ (void)makeColorHash {
- NSMapTable *h = [[NSMapTable alloc] init];
- int i;
- for (i = 0; i < 147; ++i) {
- ColorRGB *col = [[ColorRGB alloc] initWithRed:kColors[i].r
- green:kColors[i].g
- blue:kColors[i].b];
- [h setObject:kColors[i].name forKey:col];
- //NSLog(@"adding color %@ (%d)", kColors[i].name, [col hash]);
-#if ! __has_feature(objc_arc)
- [col release];
-#endif
- }
- colorHash = h;
-}
-
-+ (void)releaseColorHash {
-#if ! __has_feature(objc_arc)
- [colorHash release];
-#endif
-}
-
-- (void)setToClosestHashed {
- if (colorHash == nil)
- [ColorRGB makeColorHash];
- float bestDist = -1;
- ColorRGB *bestColor = nil;
- NSEnumerator *enumerator = [colorHash keyEnumerator];
- ColorRGB *tryColor;
- while ((tryColor = [enumerator nextObject]) != nil) {
- float dist = [self distanceFromColor:tryColor];
- if (bestDist<0 || dist<bestDist) {
- bestDist = dist;
- bestColor = tryColor;
- }
- }
- [self setRed:[bestColor red]];
- [self setGreen:[bestColor green]];
- [self setBlue:[bestColor blue]];
-}
-
-@end
-
-// vi:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/DiamondShape.h b/tikzit-old/src/common/DiamondShape.h
deleted file mode 100644
index 8f63386..0000000
--- a/tikzit-old/src/common/DiamondShape.h
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// DiamondShape.h
-// TikZiT
-//
-// Copyright 2012 Alex Merry
-// All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Shape.h"
-
-@interface DiamondShape : Shape {
-}
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
-
diff --git a/tikzit-old/src/common/DiamondShape.m b/tikzit-old/src/common/DiamondShape.m
deleted file mode 100644
index 1a578b8..0000000
--- a/tikzit-old/src/common/DiamondShape.m
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-// DiamondShape.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger
-// Copyright 2012 Alex Merry
-// All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "DiamondShape.h"
-
-#import "Node.h"
-#import "Edge.h"
-
-@implementation DiamondShape
-
-- (id)init {
- self = [super init];
-
- if (!self)
- return nil;
-
- Node *n0,*n1,*n2,*n3;
- float sz = 0.25f;
-
- n0 = [Node nodeWithPoint:NSMakePoint(0, sz)];
- n1 = [Node nodeWithPoint:NSMakePoint(sz, 0)];
- n2 = [Node nodeWithPoint:NSMakePoint(0,-sz)];
- n3 = [Node nodeWithPoint:NSMakePoint(-sz,0)];
-
- Edge *e0,*e1,*e2,*e3;
-
- e0 = [Edge edgeWithSource:n0 andTarget:n1];
- e1 = [Edge edgeWithSource:n1 andTarget:n2];
- e2 = [Edge edgeWithSource:n2 andTarget:n3];
- e3 = [Edge edgeWithSource:n3 andTarget:n0];
-
- paths = [[NSSet alloc] initWithObjects:[NSArray arrayWithObjects:e0,e1,e2,e3,nil],nil];
-
- styleTikz = @"shape=diamond";
-
- return self;
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/Edge.h b/tikzit-old/src/common/Edge.h
deleted file mode 100644
index accf38c..0000000
--- a/tikzit-old/src/common/Edge.h
+++ /dev/null
@@ -1,401 +0,0 @@
-//
-// Edge.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-// Edge : store the data associated with an edge. Also, lazily compute
-// bezier curve control points based on bend and the coordinates of
-// the endpoints.
-
-#import "Node.h"
-#import "EdgeStyle.h"
-
-/*!
- @typedef enum EdgeBendMode
- @brief Indicates the type of edge bend.
- @var EdgeBendModeBasic A basic, one-angle bend. Positive values will be interpreted
- as bend left, negative as bend right.
- @var EdgeBendModeInOut A two-angle bend mode, using inAngle and outAngle.
- */
-typedef enum {
- EdgeBendModeBasic,
- EdgeBendModeInOut
-} EdgeBendMode;
-
-/*!
- @class Edge
- @brief A graph edge, with associated bend and style data.
- @details A graph edge, with associated bend and style data. This class
- also contains methods for computing the bezier control points
- and the midpoint of the curve.
- */
-@interface Edge : NSObject<NSCopying> {
- Node *source;
- Node *target;
- Node *edgeNode;
- int bend;
- int inAngle, outAngle;
- EdgeBendMode bendMode;
- float weight;
- EdgeStyle *style;
- GraphElementData *data;
- NSString *sourceAnchor;
- NSString *targetAnchor;
-
- // When set to YES, lazily create the edge node, and keep it around when set
- // to NO (at least until saved/loaded).
- BOOL hasEdgeNode;
- BOOL dirty;
-
- // these are all cached values computed from the above
- NSPoint src;
- NSPoint targ;
- NSPoint head;
- NSPoint tail;
- NSPoint cp1;
- NSPoint cp2;
- NSPoint mid;
- NSPoint midTan;
- NSPoint headTan;
- NSPoint tailTan;
-}
-
-/*!
- @property data
- @brief Associated edge data.
- */
-@property (copy) GraphElementData *data;
-
-// KVC methods
-- (void) insertObject:(GraphElementProperty*)gep
- inDataAtIndex:(NSUInteger)index;
-- (void) removeObjectFromDataAtIndex:(NSUInteger)index;
-- (void) replaceObjectInDataAtIndex:(NSUInteger)index
- withObject:(GraphElementProperty*)gep;
-
-/*!
- @property style
- @brief Edge style.
- */
-@property (retain) EdgeStyle *style;
-
-/*!
- @property source
- @brief Source node.
- */
-@property (retain) Node *source;
-
-/*!
- @property target
- @brief Target node.
- */
-@property (retain) Node *target;
-
-/*!
- @property edgeNode
- @brief A node attached to this edge, as in a label or tick.
- */
-@property (retain) Node *edgeNode;
-
-/*!
- @property sourceAnchor
- @brief The source node anchor point, as in north or center.
- */
-@property (copy) NSString *sourceAnchor;
-
-/*!
- @property targetAnchor
- @brief The target node anchor point, as in north or center.
- */
-@property (copy) NSString *targetAnchor;
-
-/*!
- @property hasEdgeNode
- @brief A read/write property. When set to true, a new edge node is actually constructed.
-*/
-@property (assign) BOOL hasEdgeNode;
-
-/*!
- @property bend
- @brief The degrees by which the edge bends.
- */
-@property (assign) int bend;
-
-/*!
- @property weight
- @brief How close the edge will pass to control points.
- */
-@property (assign) float weight;
-
-/*!
- @property inAngle
- @brief The angle by which the edge enters its target.
- */
-@property (assign) int inAngle;
-
-/*!
- @property outAngle
- @brief The angle by which the edge leaves its target.
- */
-@property (assign) int outAngle;
-
-/*!
- @property bendMode
- @brief The mode of the edge bend. Either simple bend in in/out style.
- */
-@property (assign) EdgeBendMode bendMode;
-
-/*!
- @property head
- @brief The starting point of the edge.
- @detail This value is computed based on the source, target and
- either bend or in/out angles. It is where the edge
- makes contact with the source node.
- */
-@property (readonly) NSPoint head;
-
-/*!
- @property tail
- @brief The ending point of the edge.
- @detail This value is computed based on the source, target and
- either bend or in/out angles. It is where the edge
- makes contact with the target node.
- */
-@property (readonly) NSPoint tail;
-
-/*!
- @property cp1
- @brief The first control point of the edge.
- @detail This value is computed based on the source, target and
- either bend or in/out angles.
- */
-@property (readonly) NSPoint cp1;
-
-/*!
- @property cp2
- @brief The second control point of the edge.
- @detail This value is computed based on the source, target and
- either bend or in/out angles.
- */
-@property (readonly) NSPoint cp2;
-
-/*!
- @property mid
- @brief The midpoint of the curve. Computed from the source, target, and control points.
- */
-@property (readonly) NSPoint mid;
-
-/*!
- @property mid_tan
- @brief The second point of a line tangent to the midpoint. (The first is the midpoint itself.)
- */
-@property (readonly) NSPoint midTan;
-
-/*!
- @property left_normal
- @brief The second point in a line perp. to the edge coming from mid-point. (left side)
- */
-@property (readonly) NSPoint leftNormal;
-
-/*!
- @property left_normal
- @brief The second point in a line perp. to the edge coming from mid-point. (right side)
- */
-@property (readonly) NSPoint rightNormal;
-
-@property (readonly) NSPoint headTan;
-
-/*!
- @property leftHeadNormal
- */
-@property (readonly) NSPoint leftHeadNormal;
-
-/*!
- @property rightHeadNormal
- */
-@property (readonly) NSPoint rightHeadNormal;
-
-@property (readonly) NSPoint tailTan;
-
-/*!
- @property leftTailNormal
- */
-@property (readonly) NSPoint leftTailNormal;
-
-/*!
- @property rightTailNormal
- */
-@property (readonly) NSPoint rightTailNormal;
-
-/*!
- @property isSelfLoop
- @brief Returns YES if this edge is a self loop.
- */
-@property (readonly) BOOL isSelfLoop;
-
-/*!
- @property isStraight
- @brief Returns YES if this edge can be drawn as a straight line (as opposed to a bezier curve).
- */
-@property (readonly) BOOL isStraight;
-
-
-/*!
- @brief Construct a blank edge.
- @result An edge.
- */
-- (id)init;
-
-/*!
- @brief Construct an edge with the given source and target.
- @param s the source node.
- @param t the target node.
- @result An edge.
- */
-- (id)initWithSource:(Node*)s andTarget:(Node*)t;
-
-/*!
- @brief Force the recalculation of the derived properties.
- */
-- (void)recalculateProperties;
-
-/*!
- @brief Recompute the control points and midpoint.
- */
-- (void)updateControls;
-
-/*!
- @brief Push edge properties back into its <tt>GraphElementData</tt>.
- */
-- (void)updateData;
-
-/*!
- @brief Set edge properties from fields in <tt>GraphElementData</tt>.
- */
-- (void)setAttributesFromData;
-
-/*!
- @brief Use data.style to find and attach the <tt>EdgeStyle</tt> object from the given array.
- */
-- (BOOL)attachStyleFromTable:(NSArray*)styles;
-
-/*!
- @brief Convert the bend angle to an inAngle and outAngle.
- */
-- (void)convertBendToAngles;
-
-/*!
- @brief Set the bend angle to the average of the in and out angles.
- */
-- (void)convertAnglesToBend;
-
-/*!
- @brief Update this edge to look just like the given edge.
- @param e an edge to mimic.
- */
-- (void)setPropertiesFromEdge:(Edge *)e;
-
-/*!
- @brief Get a bounding rect for this edge.
- @detail Note that this may not be a tight bound.
- */
-- (NSRect)boundingRect;
-
-/*!
- @brief Moves the first control point, updating edge properties as necessary
- @detail This will move a control point and adjust the weight and
- bend (or outAngle) to fit.
-
- A courseness can be specified for both the weight and the
- bend, allowing them to be constrained to certain values. For
- example, passing 10 as the bend courseness will force the bend
- to be a multiple of 5. Passing 0 for either of these will
- cause the relevant value to be unconstrained.
- @param point the new position of the control point
- @param wc force the weight to be a multiple of this value (unless 0)
- @param bc force the bend (or outAngle) to be a multiple of this value (unless 0)
- @param link when in EdgeBendModeInOut, change both the in and out angles at once
- */
-- (void) moveCp1To:(NSPoint)point withWeightCourseness:(float)wc andBendCourseness:(int)bc forceLinkControlPoints:(BOOL)link;
-
-/*!
- @brief Moves the first control point, updating edge properties as necessary
- @detail This will move a control point and adjust the weight and
- bend (or outAngle) to fit.
-
- The same as moveCp1To:point withWeightCourseness:0.0f andBendCourseness:0 forceLinkControlPoints:No
- @param point the new position of the control point
- @param wc force the weight to be a multiple of this value (unless 0)
- @param bc force the bend (or outAngle) to be a multiple of this value (unless 0)
- @param link when in EdgeBendModeInOut, change both the in and out angles at once
- */
-- (void) moveCp1To:(NSPoint)point;
-
-/*!
- @brief Moves the first control point, updating edge properties as necessary
- @detail This will move a control point and adjust the weight and
- bend (or inAngle) to fit.
-
- A courseness can be specified for both the weight and the
- bend, allowing them to be constrained to certain values. For
- example, passing 10 as the bend courseness will force the bend
- to be a multiple of 5. Passing 0 for either of these will
- cause the relevant value to be unconstrained.
- @param point the new position of the control point
- @param wc force the weight to be a multiple of this value (unless 0)
- @param bc force the bend (or inAngle) to be a multiple of this value (unless 0)
- @param link when in EdgeBendModeInOut, change both the in and out angles at once
- */
-- (void) moveCp2To:(NSPoint)point withWeightCourseness:(float)wc andBendCourseness:(int)bc forceLinkControlPoints:(BOOL)link;
-
-/*!
- @brief Moves the first control point, updating edge properties as necessary
- @detail This will move a control point and adjust the weight and
- bend (or inAngle) to fit.
-
- The same as moveCp2To:point withWeightCourseness:0.0f andBendCourseness:0 forceLinkControlPoints:No
- @param point the new position of the control point
- */
-- (void) moveCp2To:(NSPoint)point;
-
-/*!
- @brief Reverse edge direction, updating bend/inAngle/outAngle/etc
- */
-- (void)reverse;
-
-/*!
- @brief Factory method to make a blank edge.
- @result An edge.
- */
-+ (Edge*)edge;
-
-/*!
- @brief Factory method to make an edge with the given source and target.
- @param s a source node.
- @param t a target node.
- @result An edge.
- */
-+ (Edge*)edgeWithSource:(Node*)s andTarget:(Node*)t;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Edge.m b/tikzit-old/src/common/Edge.m
deleted file mode 100644
index 0c88e9d..0000000
--- a/tikzit-old/src/common/Edge.m
+++ /dev/null
@@ -1,757 +0,0 @@
-//
-// Edge.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Edge.h"
-#import "Shape.h"
-#import "util.h"
-
-@implementation Edge
-
-- (id)init {
- self = [super init];
- if (self) {
- data = [[GraphElementData alloc] init];
- bend = 0;
- inAngle = 135;
- outAngle = 45;
- bendMode = EdgeBendModeBasic;
- weight = 0.4f;
- dirty = YES;
- source = nil;
- target = nil;
- edgeNode = nil;
- sourceAnchor = @"";
- targetAnchor = @"";
- }
- return self;
-}
-
-- (id)initWithSource:(Node*)s andTarget:(Node*)t {
- self = [self init];
- if (self) {
- [self setSource:s];
- [self setTarget:t];
- edgeNode = nil;
-
- dirty = YES;
- }
- return self;
-}
-
-- (BOOL)attachStyleFromTable:(NSArray*)styles {
- NSString *style_name = [data propertyForKey:@"style"];
-
- [self setStyle:nil];
- if (style_name == nil) return YES;
-
- for (EdgeStyle *s in styles) {
- if ([[s name] compare:style_name]==NSOrderedSame) {
- [self setStyle:s];
- return YES;
- }
- }
-
- // if we didn't find a style, fill in a default one
-#if __has_feature(objc_arc)
- style = [EdgeStyle defaultEdgeStyleWithName:style_name];
-#else
- style = [[EdgeStyle defaultEdgeStyleWithName:style_name] retain];
-#endif
- return NO;
-}
-
-- (NSPoint) _findContactPointOn:(Node*)node at:(float)angle {
- NSPoint rayStart = [node point];
- Shape *shape = [node shape];
- if (shape == nil) {
- return rayStart;
- }
-
- Transformer *shapeTrans = [node shapeTransformer];
- // rounding errors are a pain
- NSRect searchArea = NSInsetRect([node boundsUsingShapeTransform:shapeTrans],-0.01,-0.01);
- if (!NSPointInRect(rayStart, searchArea)) {
- return rayStart;
- }
-
- NSPoint rayEnd = findExitPointOfRay (rayStart, angle, searchArea);
-
- for (NSArray *path in [shape paths]) {
- for (Edge *curve in path) {
- NSPoint intersect;
- [curve updateControls];
- if (lineSegmentIntersectsBezier (rayStart, rayEnd,
- [shapeTrans toScreen:curve->tail],
- [shapeTrans toScreen:curve->cp1],
- [shapeTrans toScreen:curve->cp2],
- [shapeTrans toScreen:curve->head],
- &intersect)) {
- // we just keep shortening the line
- rayStart = intersect;
- }
- }
- }
-
- return rayStart;
-}
-
-- (NSPoint) _findTanFor:(NSPoint)pt usingSpanFrom:(float)t1 to:(float)t2 {
- float dx = bezierInterpolate(t2, tail.x, cp1.x, cp2.x, head.x) -
- bezierInterpolate(t1, tail.x, cp1.x, cp2.x, head.x);
- float dy = bezierInterpolate(t2, tail.y, cp1.y, cp2.y, head.y) -
- bezierInterpolate(t1, tail.y, cp1.y, cp2.y, head.y);
-
- // normalise
- float len = sqrt(dx*dx+dy*dy);
- if (len != 0) {
- dx = (dx/len) * 0.1f;
- dy = (dy/len) * 0.1f;
- }
-
- return NSMakePoint (pt.x + dx, pt.y + dy);
-}
-
-- (void)recalculateProperties {
- dirty = YES;
-}
-
-- (void)updateControls {
- // check for external modification to the node locations
- if (src.x != [source point].x || src.y != [source point].y ||
- targ.x != [target point].x || targ.y != [target point].y)
- {
- dirty = YES;
- }
-
- if (dirty) {
- src = [source point];
- targ = [target point];
-
- float dx = (targ.x - src.x);
- float dy = (targ.y - src.y);
-
- float angleSrc = 0.0f;
- float angleTarg = 0.0f;
-
- if (bendMode == EdgeBendModeBasic) {
- float angle = good_atan(dx, dy);
- float bnd = (float)bend * (M_PI / 180.0f);
- angleSrc = angle - bnd;
- angleTarg = M_PI + angle + bnd;
- } else if (bendMode == EdgeBendModeInOut) {
- angleSrc = (float)outAngle * (M_PI / 180.0f);
- angleTarg = (float)inAngle * (M_PI / 180.0f);
- }
-
- tail = [self _findContactPointOn:source at:angleSrc];
- head = [self _findContactPointOn:target at:angleTarg];
-
- // give a default distance for self-loops
- float cdist = (dx==0.0f && dy==0.0f) ? weight : sqrt(dx*dx + dy*dy) * weight;
-
- cp1 = NSMakePoint(src.x + (cdist * cos(angleSrc)),
- src.y + (cdist * sin(angleSrc)));
-
- cp2 = NSMakePoint(targ.x + (cdist * cos(angleTarg)),
- targ.y + (cdist * sin(angleTarg)));
-
- mid = bezierInterpolateFull (0.5f, tail, cp1, cp2, head);
- midTan = [self _findTanFor:mid usingSpanFrom:0.4f to:0.6f];
-
- tailTan = [self _findTanFor:tail usingSpanFrom:0.0f to:0.1f];
- headTan = [self _findTanFor:head usingSpanFrom:1.0f to:0.9f];
- }
- dirty = NO;
-}
-
-- (void)convertBendToAngles {
- float dx = (targ.x - src.x);
- float dy = (targ.y - src.y);
- float angle = good_atan(dx, dy);
- float bnd = (float)bend * (M_PI / 180.0f);
-
- [self setOutAngle:round((angle - bnd) * (180.0f/M_PI))];
- [self setInAngle:round((M_PI + angle + bnd) * (180.0f/M_PI))];
- dirty = YES;
-}
-
-- (void)convertAnglesToBend {
- float dx = (targ.x - src.x);
- float dy = (targ.y - src.y);
- int angle = round((180.0f/M_PI) * good_atan(dx, dy));
-
- // compute bend1 and bend2 to match inAngle and outAngle, resp.
- int bend1, bend2;
-
- bend1 = outAngle - angle;
- bend2 = angle - inAngle;
-
- [self setBend:(bend1 + bend2) / 2];
-}
-
-- (BOOL)isSelfLoop {
- return (source == target);
-}
-
-- (BOOL)isStraight {
- return (bendMode == EdgeBendModeBasic && bend == 0);
-}
-
-- (NSPoint)mid {
- [self updateControls];
- return mid;
-}
-
-- (NSPoint)midTan {
- [self updateControls];
- return midTan;
-}
-
-- (NSPoint)leftNormal {
- [self updateControls];
- return NSMakePoint(mid.x + (mid.y - midTan.y), mid.y - (mid.x - midTan.x));
-}
-
-- (NSPoint)rightNormal {
- [self updateControls];
- return NSMakePoint(mid.x - (mid.y - midTan.y), mid.y + (mid.x - midTan.x));
-}
-
-- (NSPoint)headTan {
- [self updateControls];
- return headTan;
-}
-
-- (NSPoint)leftHeadNormal {
- [self updateControls];
- return NSMakePoint(headTan.x + (head.y - headTan.y), headTan.y - (head.x - headTan.x));
-}
-
-- (NSPoint)rightHeadNormal {
- [self updateControls];
- return NSMakePoint(headTan.x - (head.y - headTan.y), headTan.y + (head.x - headTan.x));
-}
-
-- (NSPoint)tailTan {
- [self updateControls];
- return tailTan;
-}
-
-- (NSPoint)leftTailNormal {
- [self updateControls];
- return NSMakePoint(tailTan.x + (tail.y - tailTan.y), tailTan.y - (tail.x - tailTan.x));
-}
-
-- (NSPoint)rightTailNormal {
- [self updateControls];
- return NSMakePoint(tailTan.x - (tail.y - tailTan.y), tailTan.y + (tail.x - tailTan.x));
-}
-
-- (NSPoint) head {
- [self updateControls];
- return head;
-}
-
-- (NSPoint) tail {
- [self updateControls];
- return tail;
-}
-
-- (NSPoint)cp1 {
- [self updateControls];
- return cp1;
-}
-
-- (NSPoint)cp2 {
- [self updateControls];
- return cp2;
-}
-
-- (int)inAngle {return inAngle;}
-- (void)setInAngle:(int)a {
- inAngle = normaliseAngleDeg (a);
- dirty = YES;
-}
-
-- (int)outAngle {return outAngle;}
-- (void)setOutAngle:(int)a {
- outAngle = normaliseAngleDeg (a);
- dirty = YES;
-}
-
-- (EdgeBendMode)bendMode {return bendMode;}
-- (void)setBendMode:(EdgeBendMode)mode {
- bendMode = mode;
- dirty = YES;
-}
-
-- (int)bend {return bend;}
-- (void)setBend:(int)b {
- bend = normaliseAngleDeg (b);
- dirty = YES;
-}
-
-- (float)weight {return weight;}
-- (void)setWeight:(float)w {
-// if (source == target) weight = 1.0f;
-// else weight = w;
- weight = w;
- dirty = YES;
-}
-
-- (EdgeStyle*)style {return style;}
-- (void)setStyle:(EdgeStyle*)s {
- if (style != s) {
-#if __has_feature(objc_arc)
- style = s;
-#else
- [style release];
- style = [s retain];
-#endif
- }
-}
-
-- (Node*)source {return source;}
-- (void)setSource:(Node *)s {
- if (source != s) {
- [source removeObserver:self
- forKeyPath:@"style"];
-
- if ([s style] == nil) {
- [self setSourceAnchor:@"center"];
- } else if ([sourceAnchor isEqual:@"center"]) {
- [self setSourceAnchor:@""];
- }
-
-#if __has_feature(objc_arc)
- source = s;
-#else
- [source release];
- source = [s retain];
-#endif
-
- if (source==target) {
- bendMode = EdgeBendModeInOut;
- weight = 1.0f;
- }
-
- [source addObserver:self
- forKeyPath:@"style"
- options:NSKeyValueObservingOptionNew
- | NSKeyValueObservingOptionOld
- context:NULL];
-
- dirty = YES;
- }
-}
-
-- (Node*)target {return target;}
-- (void)setTarget:(Node *)t {
- if (target != t) {
- [target removeObserver:self
- forKeyPath:@"style"];
-
- if ([t style] == nil) {
- [self setTargetAnchor:@"center"];
- } else if ([targetAnchor isEqual:@"center"]) {
- [self setTargetAnchor:@""];
- }
-
-#if __has_feature(objc_arc)
- target = t;
-#else
- [target release];
- target = [t retain];
-#endif
-
- if (source==target) {
- bendMode = EdgeBendModeInOut;
- weight = 1.0f;
- }
-
- [target addObserver:self
- forKeyPath:@"style"
- options:NSKeyValueObservingOptionNew
- | NSKeyValueObservingOptionOld
- context:NULL];
-
- dirty = YES;
- }
-}
-
-- (void)observeValueForKeyPath:(NSString *)keyPath
- ofObject:(id)object
- change:(NSDictionary *)change
- context:(void *)context
-
-{
- if ([keyPath isEqual:@"style"]) {
- id oldStyle = [change objectForKey:NSKeyValueChangeOldKey];
- id newStyle = [change objectForKey:NSKeyValueChangeNewKey];
- id none = [NSNull null];
- if (object == source) {
- if (oldStyle != none && newStyle == none) {
- [self setSourceAnchor:@"center"];
- } else if (oldStyle == none && newStyle != none &&
- [sourceAnchor isEqual:@"center"]) {
- [self setSourceAnchor:@""];
- }
- }
- if (object == target) {
- if (oldStyle != none && newStyle == none) {
- [self setTargetAnchor:@"center"];
- } else if (oldStyle == none && newStyle != none &&
- [targetAnchor isEqual:@"center"]) {
- [self setTargetAnchor:@""];
- }
- }
- }
- dirty = YES;
-}
-
-
-// edgeNode and hasEdgeNode use a bit of key-value observing to help the mac GUI keep up
-
-- (Node*)edgeNode {return edgeNode;}
-- (void)setEdgeNode:(Node *)n {
- [self willChangeValueForKey:@"edgeNode"];
- [self willChangeValueForKey:@"hasEdgeNode"];
- if (edgeNode != n) {
- hasEdgeNode = (n != nil);
-#if __has_feature(objc_arc)
- edgeNode = n;
-#else
- [edgeNode release];
- edgeNode = [n retain];
-#endif
- // don't set dirty bit, because control points don't need update
- }
- [self didChangeValueForKey:@"edgeNode"];
- [self didChangeValueForKey:@"hasEdgeNode"];
-}
-
-- (BOOL)hasEdgeNode { return hasEdgeNode; }
-- (void)setHasEdgeNode:(BOOL)b {
- [self willChangeValueForKey:@"edgeNode"];
- [self willChangeValueForKey:@"hasEdgeNode"];
- hasEdgeNode = b;
- if (hasEdgeNode && edgeNode == nil) {
- edgeNode = [[Node alloc] init];
- }
- [self didChangeValueForKey:@"edgeNode"];
- [self didChangeValueForKey:@"hasEdgeNode"];
-}
-
-- (NSString*) sourceAnchor { return sourceAnchor; }
-- (void)setSourceAnchor:(NSString *)_sourceAnchor{
- NSString *oldSourceAnchor = sourceAnchor;
- if(_sourceAnchor != nil){
- sourceAnchor = [_sourceAnchor copy];
- }else{
- sourceAnchor = @"";
- }
-#if ! __has_feature(objc_arc)
- [oldSourceAnchor release];
-#endif
-}
-
-- (NSString*) targetAnchor { return targetAnchor; }
-- (void)setTargetAnchor:(NSString *)_targetAnchor{
- NSString *oldTargetAnchor = targetAnchor;
- if(_targetAnchor != nil){
- targetAnchor = [_targetAnchor copy];
- }else{
- targetAnchor = @"";
- }
-#if ! __has_feature(objc_arc)
- [oldTargetAnchor release];
-#endif
-}
-
-@synthesize data;
-- (void) insertObject:(GraphElementProperty*)gep
- inDataAtIndex:(NSUInteger)index {
- [data insertObject:gep atIndex:index];
-}
-- (void) removeObjectFromDataAtIndex:(NSUInteger)index {
- [data removeObjectAtIndex:index];
-}
-- (void) replaceObjectInDataAtIndex:(NSUInteger)index
- withObject:(GraphElementProperty*)gep {
- [data replaceObjectAtIndex:index withObject:gep];
-}
-
-- (void)updateData {
- // unset everything to avoid redundant defs
- [data unsetAtom:@"loop"];
- [data unsetProperty:@"in"];
- [data unsetProperty:@"out"];
- [data unsetAtom:@"bend left"];
- [data unsetAtom:@"bend right"];
- [data unsetProperty:@"bend left"];
- [data unsetProperty:@"bend right"];
- [data unsetProperty:@"looseness"];
-
- if (style == nil) {
- [data unsetProperty:@"style"];
- } else {
- [data setProperty:[style name] forKey:@"style"];
- }
-
- if (bendMode == EdgeBendModeBasic && bend != 0) {
- NSString *bendkey = @"bend right";
- int b = [self bend];
- if (b < 0) {
- bendkey = @"bend left";
- b = -b;
- }
-
- if (b == 30) {
- [data setAtom:bendkey];
- } else {
- [data setProperty:[NSString stringWithFormat:@"%d",b] forKey:bendkey];
- }
-
- } else if (bendMode == EdgeBendModeInOut) {
- [data setProperty:[NSString stringWithFormat:@"%d",inAngle]
- forKey:@"in"];
- [data setProperty:[NSString stringWithFormat:@"%d",outAngle]
- forKey:@"out"];
- }
-
- // loop needs to come after in/out
- if (source == target) [data setAtom:@"loop"];
-
- if (![self isSelfLoop] && ![self isStraight])
- {
- [data setProperty:[NSString stringWithFormat:@"%.2f",weight*2.5f]
- forKey:@"looseness"];
- }
-}
-
-- (void)setAttributesFromData {
- bendMode = EdgeBendModeBasic;
-
- if ([data isAtomSet:@"bend left"]) {
- [self setBend:-30];
- } else if ([data isAtomSet:@"bend right"]) {
- [self setBend:30];
- } else if ([data propertyForKey:@"bend left"] != nil) {
- NSString *bnd = [data propertyForKey:@"bend left"];
- [self setBend:-[bnd intValue]];
- } else if ([data propertyForKey:@"bend right"] != nil) {
- NSString *bnd = [data propertyForKey:@"bend right"];
- [self setBend:[bnd intValue]];
- } else {
- [self setBend:0];
-
- if ([data propertyForKey:@"in"] != nil && [data propertyForKey:@"out"] != nil) {
- bendMode = EdgeBendModeInOut;
- [self setInAngle:[[data propertyForKey:@"in"] intValue]];
- [self setOutAngle:[[data propertyForKey:@"out"] intValue]];
- }
- }
-
- if ([data propertyForKey:@"looseness"] != nil) {
- weight = [[data propertyForKey:@"looseness"] floatValue] / 2.5f;
- } else {
- weight = ([self isSelfLoop]) ? 1.0f : 0.4f;
- }
-}
-
-- (void)setPropertiesFromEdge:(Edge*)e {
- Node *en = [[e edgeNode] copy];
- [self setEdgeNode:en];
-#if ! __has_feature(objc_arc)
- [en release];
-#endif
-
- GraphElementData *d = [[e data] copy];
- [self setData:d];
-#if ! __has_feature(objc_arc)
- [d release];
-#endif
-
- [self setStyle:[e style]];
- [self setBend:[e bend]];
- [self setInAngle:[e inAngle]];
- [self setOutAngle:[e outAngle]];
- [self setBendMode:[e bendMode]];
- [self setWeight:[e weight]];
-
- dirty = YES; // cached data will be recomputed lazily, rather than copied
-}
-
-- (NSRect)boundingRect {
- [self updateControls];
- NSRect bound = NSRectAround4Points(head, tail, cp1, cp2);
- if ([self style] != nil) {
- switch ([[self style] decorationStyle]) {
- case ED_Arrow:
- bound = NSRectWithPoint(bound, [self midTan]);
- case ED_Tick:
- bound = NSRectWithPoint(bound, [self leftNormal]);
- bound = NSRectWithPoint(bound, [self rightNormal]);
- case ED_None:
- break;
- }
- if ([[self style] headStyle] != AH_None) {
- bound = NSRectWithPoint(bound, [self leftHeadNormal]);
- bound = NSRectWithPoint(bound, [self rightHeadNormal]);
- }
- if ([[self style] tailStyle] != AH_None) {
- bound = NSRectWithPoint(bound, [self leftTailNormal]);
- bound = NSRectWithPoint(bound, [self rightTailNormal]);
- }
- }
- return bound;
-}
-
-- (void) adjustWeight:(float)handle_dist withCourseness:(float)wcourseness {
- float base_dist = NSDistanceBetweenPoints (src, targ);
- if (base_dist == 0.0f) {
- base_dist = 1.0f;
- }
-
- [self setWeight:roundToNearest(wcourseness, handle_dist / base_dist)];
-}
-
-- (float) angleOf:(NSPoint)point relativeTo:(NSPoint)base {
- float dx = point.x - base.x;
- float dy = point.y - base.y;
- return radiansToDegrees (good_atan(dx, dy));
-}
-
-- (void) moveCp1To:(NSPoint)point withWeightCourseness:(float)wc andBendCourseness:(int)bc forceLinkControlPoints:(BOOL)link {
- [self updateControls];
- [self adjustWeight:NSDistanceBetweenPoints (point, src) withCourseness:wc];
-
- float control_angle = [self angleOf:point relativeTo:src];
- if (bendMode == EdgeBendModeBasic) {
- float base_angle = [self angleOf:targ relativeTo:src];
- int b = (int)roundToNearest (bc, base_angle - control_angle);
- [self setBend:b];
- } else {
- int angle = (int)roundToNearest (bc, control_angle);
- if (link) {
- [self setInAngle:(inAngle + angle - outAngle)];
- }
- [self setOutAngle:angle];
- }
-}
-
-- (void) moveCp1To:(NSPoint)point {
- [self moveCp1To:point withWeightCourseness:0.0f andBendCourseness:0 forceLinkControlPoints:NO];
-}
-
-- (void) moveCp2To:(NSPoint)point withWeightCourseness:(float)wc andBendCourseness:(int)bc forceLinkControlPoints:(BOOL)link {
- [self updateControls];
-
- if (![self isSelfLoop]) {
- [self adjustWeight:NSDistanceBetweenPoints (point, targ) withCourseness:wc];
- }
-
- float control_angle = [self angleOf:point relativeTo:targ];
- if (bendMode == EdgeBendModeBasic) {
- float base_angle = [self angleOf:src relativeTo:targ];
- int b = (int)roundToNearest (bc, control_angle - base_angle);
- [self setBend:b];
- } else {
- int angle = (int)roundToNearest (bc, control_angle);
- if (link) {
- [self setOutAngle:(outAngle + angle - inAngle)];
- }
- [self setInAngle: angle];
- }
-}
-
-- (void) moveCp2To:(NSPoint)point {
- [self moveCp2To:point withWeightCourseness:0.0f andBendCourseness:0 forceLinkControlPoints:NO];
-}
-
-- (void)reverse {
- Node *n;
- float f;
- NSString *a;
-
- n = source;
- source = target;
- target = n;
-
- f = inAngle;
- inAngle = outAngle;
- outAngle = f;
-
- a = sourceAnchor;
- sourceAnchor = targetAnchor;
- targetAnchor = a;
-
- [self setBend:-bend];
-
- dirty = YES;
-}
-
-- (void)dealloc {
- [source removeObserver:self
- forKeyPath:@"style"];
- [target removeObserver:self
- forKeyPath:@"style"];
-#if ! __has_feature(objc_arc)
- [source release];
- [target release];
- [data release];
- [sourceAnchor release];
- [targetAnchor release];
- [super dealloc];
-#endif
-}
-
-- (id)copyWithZone:(NSZone*)zone {
- Edge *cp = [[Edge allocWithZone:zone] init];
- [cp setSource:[self source]];
- [cp setTarget:[self target]];
- [cp setSourceAnchor:[self sourceAnchor]];
- [cp setTargetAnchor:[self targetAnchor]];
- [cp setPropertiesFromEdge:self];
- return cp;
-}
-
-+ (Edge*)edge {
-#if __has_feature(objc_arc)
- return [[Edge alloc] init];
-#else
- return [[[Edge alloc] init] autorelease];
-#endif
-}
-
-+ (Edge*)edgeWithSource:(Node*)s andTarget:(Node*)t {
-#if __has_feature(objc_arc)
- return [[Edge alloc] initWithSource:s andTarget:t];
-#else
- return [[[Edge alloc] initWithSource:s andTarget:t] autorelease];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/EdgeStyle.h b/tikzit-old/src/common/EdgeStyle.h
deleted file mode 100644
index a51f129..0000000
--- a/tikzit-old/src/common/EdgeStyle.h
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// EdgeStyle.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "PropertyHolder.h"
-#import "ColorRGB.h"
-
-typedef enum {
- AH_None = 0,
- AH_Plain = 1,
- AH_Latex = 2
-} ArrowHeadStyle;
-
-typedef enum {
- ED_None = 0,
- ED_Arrow = 1,
- ED_Tick = 2
-} EdgeDectorationStyle;
-
-@interface EdgeStyle : PropertyHolder <NSCopying> {
- ArrowHeadStyle headStyle, tailStyle;
- EdgeDectorationStyle decorationStyle;
- float thickness;
- ColorRGB *colorRGB;
- NSString *name;
- NSString *category;
-}
-
-/*!
- @property colorRGB
- @brief The color to render the line in
- */
-@property (copy) ColorRGB *colorRGB;
-
-@property (copy) NSString *name;
-@property (copy) NSString *category;
-@property (assign) ArrowHeadStyle headStyle;
-@property (assign) ArrowHeadStyle tailStyle;
-@property (assign) EdgeDectorationStyle decorationStyle;
-@property (assign) float thickness;
-
-@property (readonly) NSString *tikz;
-
-- (id)init;
-- (id)initWithName:(NSString*)nm;
-+ (EdgeStyle*)defaultEdgeStyleWithName:(NSString*)nm;
-- (void) updateFromStyle:(EdgeStyle*)style;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/EdgeStyle.m b/tikzit-old/src/common/EdgeStyle.m
deleted file mode 100644
index c61e94a..0000000
--- a/tikzit-old/src/common/EdgeStyle.m
+++ /dev/null
@@ -1,222 +0,0 @@
-//
-// EdgeStyle.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "EdgeStyle.h"
-
-@implementation EdgeStyle
-
-+ (void)initialize {
- [self setKeys:[NSArray arrayWithObjects:
- @"tailStyle",
- @"headStyle",
- @"decorationStyle",
- @"thickness",
- @"colorRGB.red",
- @"colorRGB.blue",
- @"colorRGB.green",
- @"name",
- nil]
- triggerChangeNotificationsForDependentKey:@"tikz"];
- [self setKeys:[NSArray arrayWithObjects:
- @"colorRGB.name",
- nil]
- triggerChangeNotificationsForDependentKey:@"colorIsKnown"];
-}
-
-- (id)initWithName:(NSString*)nm {
- self = [super initWithNotificationName:@"EdgeStylePropertyChanged"];
-
- if (self != nil) {
- headStyle = AH_None;
- tailStyle = AH_None;
- decorationStyle = ED_None;
- colorRGB = [[ColorRGB alloc] initWithRed:0 green:0 blue:0];
- name = nm;
- category = nil;
- thickness = 1.0f;
- }
-
- return self;
-}
-
-- (id)init {
- self = [self initWithName:@"new"];
- return self;
-}
-
-- (id)copyWithZone:(NSZone*)zone {
- EdgeStyle *style = [[EdgeStyle allocWithZone:zone] init];
- [style setName:[self name]];
- [style setCategory:[self category]];
- [style setHeadStyle:[self headStyle]];
- [style setTailStyle:[self tailStyle]];
- [style setDecorationStyle:[self decorationStyle]];
- [style setThickness:[self thickness]];
- [style setColorRGB:[self colorRGB]];
- return style;
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [name release];
- [category release];
- [colorRGB release];
- [super dealloc];
-#endif
-}
-
-- (NSString*) description {
- return [NSString stringWithFormat:@"Edge style \"%@\"", name];
-}
-
-- (void) updateFromStyle:(EdgeStyle*)style {
- [self setName:[style name]];
- [self setCategory:[style category]];
- [self setHeadStyle:[style headStyle]];
- [self setTailStyle:[style tailStyle]];
- [self setDecorationStyle:[style decorationStyle]];
- [self setThickness:[style thickness]];
- [self setColorRGB:[style colorRGB]];
-}
-
-+ (EdgeStyle*)defaultEdgeStyleWithName:(NSString*)nm {
-#if __has_feature(objc_arc)
- return [[EdgeStyle alloc] initWithName:nm];
-#else
- return [[[EdgeStyle alloc] initWithName:nm] autorelease];
-#endif
-}
-
-- (NSString*)name { return name; }
-- (void)setName:(NSString *)s {
- if (name != s) {
- NSString *oldValue = name;
- name = [s copy];
- [self postPropertyChanged:@"name" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (ArrowHeadStyle)headStyle { return headStyle; }
-- (void)setHeadStyle:(ArrowHeadStyle)s {
- ArrowHeadStyle oldValue = headStyle;
- headStyle = s;
- [self postPropertyChanged:@"headStyle" oldValue:[NSNumber numberWithInt:oldValue]];
-}
-
-- (ArrowHeadStyle)tailStyle { return tailStyle; }
-- (void)setTailStyle:(ArrowHeadStyle)s {
- ArrowHeadStyle oldValue = tailStyle;
- tailStyle = s;
- [self postPropertyChanged:@"tailStyle" oldValue:[NSNumber numberWithInt:oldValue]];
-}
-
-- (EdgeDectorationStyle)decorationStyle { return decorationStyle; }
-- (void)setDecorationStyle:(EdgeDectorationStyle)s {
- EdgeDectorationStyle oldValue = decorationStyle;
- decorationStyle = s;
- [self postPropertyChanged:@"decorationStyle" oldValue:[NSNumber numberWithInt:oldValue]];
-}
-- (float)thickness { return thickness; }
-- (void)setThickness:(float)s {
- float oldValue = thickness;
- thickness = s;
- [self postPropertyChanged:@"thickness" oldValue:[NSNumber numberWithFloat:oldValue]];
-}
-
-- (NSString*)category {
- return category;
-}
-
-- (void)setCategory:(NSString *)s {
- if (category != s) {
- NSString *oldValue = category;
- category = [s copy];
- [self postPropertyChanged:@"category" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (ColorRGB*)colorRGB {
- return colorRGB;
-}
-
-- (void)setColorRGB:(ColorRGB*)c {
- if (colorRGB != c) {
- ColorRGB *oldValue = colorRGB;
- colorRGB = [c copy];
- [self postPropertyChanged:@"colorRGB" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (NSString*)tikz {
- NSMutableString *buf = [NSMutableString stringWithFormat:@"\\tikzstyle{%@}=[", name];
-
- NSString *colorName = [colorRGB name];
- if (colorName == nil)
- colorName = [colorRGB hexName];
-
- if (tailStyle == AH_Plain)
- [buf appendString:@"<"];
- else if (tailStyle == AH_Latex)
- [buf appendString:@"latex"];
-
- [buf appendString:@"-"];
-
- if (headStyle == AH_Plain)
- [buf appendString:@">"];
- else if (headStyle == AH_Latex)
- [buf appendString:@"latex"];
-
- if(colorName != nil){
- [buf appendString:@",draw="];
- [buf appendString:colorName];
- }
-
- if (decorationStyle != ED_None) {
- [buf appendString:@",postaction={decorate},decoration={markings,mark="];
- if (decorationStyle == ED_Arrow)
- [buf appendString:@"at position .5 with {\\arrow{>}}"];
- else if (decorationStyle == ED_Tick)
- [buf appendString:@"at position .5 with {\\draw (0,-0.1) -- (0,0.1);}"];
- [buf appendString:@"}"];
- }
-
- if (thickness != 1.0f) {
- [buf appendFormat:@",line width=%.3f", thickness];
- }
-
- [buf appendString:@"]"];
- return buf;
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/Graph.h b/tikzit-old/src/common/Graph.h
deleted file mode 100644
index 1f98858..0000000
--- a/tikzit-old/src/common/Graph.h
+++ /dev/null
@@ -1,401 +0,0 @@
-//
-// Graph.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-/*!
-
- @mainpage TikZiT
- TikZiT is a GUI application for drawing, editing, and parsing TikZ
- diagrams. Common code is in src/common, and plaform-specific code is
- in src/{osx,linux}.
-
- */
-
-
-#import "Node.h"
-#import "Edge.h"
-#import "GraphChange.h"
-#import "Transformer.h"
-
-/*!
- @class Graph
- @brief Store a graph, output to TikZ.
- @details All of the methods that change a graph return an object of type GraphChange.
- Graph changes can be re-done by calling applyGraphChange. They can be undone
- by calling applyGraphChange on [change inverse].
- */
-@interface Graph : NSObject <NSCopying> {
- NSRecursiveLock *graphLock;
- BOOL dirty; // keep track of when inEdges and outEdges need an update
- NSMutableArray *nodes;
- NSMutableArray *edges;
-
- NSMapTable *inEdges;
- NSMapTable *outEdges;
-
- GraphElementData *data;
- NSRect boundingBox;
-}
-
-/*!
- @property data
- @brief Data associated with the graph.
- */
-@property (copy) GraphElementData *data;
-
-// KVC methods
-- (void) insertObject:(GraphElementProperty*)gep
- inDataAtIndex:(NSUInteger)index;
-- (void) removeObjectFromDataAtIndex:(NSUInteger)index;
-- (void) replaceObjectInDataAtIndex:(NSUInteger)index
- withObject:(GraphElementProperty*)gep;
-
-/*!
- @property nodes
- @brief The set of nodes.
- @details The node set is cached internally, so no need to lock
- the graph when enumerating.
- */
-@property (readonly) NSArray *nodes;
-
-/*!
- @property edges
- @brief The set of edges.
- @details The edge set is cached internally, so no need to lock
- the graph when enumerating.
- */
-@property (readonly) NSArray *edges;
-
-/*!
- @property boundingBox
- @brief The bounding box of a graph
- @details Optional data containing the bounding box, set with
- \path [use as bounding box] ....
- */
-@property (assign) NSRect boundingBox;
-
-/*!
- @property hasBoundingBox
- @brief Returns true if this graph has a bounding box.
- */
-@property (readonly) BOOL hasBoundingBox;
-
-
-/*!
- @brief Computes graph bounds.
- @result Graph bounds.
- */
-- (NSRect)bounds;
-
-/*!
- @brief Returns the set of edges incident to the given node set.
- @param nds a set of nodes.
- @result A set of incident edges.
- */
-- (NSSet*)incidentEdgesForNodes:(NSSet*)nds;
-
-/*!
- @brief Returns the set of in-edges for this node.
- @param nd a node.
- @result A set of edges.
-*/
-- (NSSet*)inEdgesForNode:(Node*)nd;
-
-/*!
- @brief Returns the set of out-edges for this node.
- @param nd a node.
- @result A set of edges.
-*/
-- (NSSet*)outEdgesForNode:(Node*)nd;
-
-/*!
- @brief Gives a copy of the full subgraph with the given nodes.
- @param nds a set of nodes.
- @result A subgraph.
- */
-- (Graph*)copyOfSubgraphWithNodes:(NSSet*)nds;
-
-/*!
- @brief Gives a copy of the full subgraph with the given nodes.
- @param nds a set of nodes.
- @param zone an allocation zone
- @result A subgraph.
- */
-- (Graph*)copyOfSubgraphWithNodes:(NSSet*)nds zone:(NSZone*)zone;
-
-/*!
- @brief Gives a set of edge-arrays that partition all of the edges in the graph.
- @result An NSet of NSArrays of edges.
- */
-- (NSSet*)pathCover;
-
-/*!
- @brief Adds a node.
- @param node
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)addNode:(Node*)node;
-
-/*!
- @brief Removes a node.
- @param node
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)removeNode:(Node*)node;
-
-/*!
- @brief Removes a set of nodes.
- @param nds a set of nodes
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)removeNodes:(NSSet *)nds;
-
-/*!
- @brief Adds an edge.
- @param edge
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)addEdge:(Edge*)edge;
-
-/*!
- @brief Removed an edge.
- @param edge
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)removeEdge:(Edge*)edge;
-
-/*!
- @brief Removes a set of edges.
- @param es a set of edges.
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)removeEdges:(NSSet *)es;
-
-/*!
- @brief Convenience function, intializes an edge with the given
- source and target and adds it.
- @param source the source of the edge.
- @param target the target of the edge.
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)addEdgeFrom:(Node*)source to:(Node*)target;
-
-/*!
- @brief Return the z-index for a given node (lower is farther back).
- @param node a node in the graph
- @result An <tt>int</tt>
- */
-- (int)indexOfNode:(Node*)node;
-
-/*!
- @brief Set the z-index for a given node (lower is farther back).
- @param idx a new z-index
- @param node a node in the graph
- */
-- (void)setIndex:(int)idx ofNode:(Node*)node;
-
-/*!
- @brief Bring set of nodes forward by one.
- @param nodeSet a set of nodes
- */
-- (GraphChange*)bringNodesForward:(NSSet*)nodeSet;
-
-/*!
- @brief Bring set of nodes to the front.
- @param nodeSet a set of nodes
- */
-- (GraphChange*)bringNodesToFront:(NSSet*)nodeSet;
-
-/*!
- @brief Bring set of edges to the front.
- @param edgeSet a set of edges
- */
-- (GraphChange*)bringEdgesToFront:(NSSet*)edgeSet;
-
-/*!
- @brief Bring set of edges forward by one.
- @param edgeSet a set of edges
- */
-- (GraphChange*)bringEdgesForward:(NSSet*)edgeSet;
-
-/*!
- @brief Send set of nodes backward by one.
- @param nodeSet a set of nodes
- */
-- (GraphChange*)sendNodesBackward:(NSSet*)nodeSet;
-
-/*!
- @brief Send set of edges backward by one.
- @param edgeSet a set of edges
- */
-- (GraphChange*)sendEdgesBackward:(NSSet*)edgeSet;
-
-/*!
- @brief Send set of nodes to back.
- @param nodeSet a set of nodes
- */
-- (GraphChange*)sendNodesToBack:(NSSet*)nodeSet;
-
-/*!
- @brief Send set of edges to back.
- @param edgeSet a set of edges
- */
-- (GraphChange*)sendEdgesToBack:(NSSet*)edgeSet;
-
-
-/*!
- @brief Transform every node in the graph to screen space.
- @param t a transformer
- */
-- (void)applyTransformer:(Transformer*)t;
-
-/*!
- @brief Shift nodes by a given distance.
- @param ns a set of nodes.
- @param p an x and y distance, given as an NSPoint.
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)shiftNodes:(id<NSFastEnumeration>)ns byPoint:(NSPoint)p;
-
-/*!
- @brief Reverse the given edges
- @param es the edges to reverse
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)reverseEdges:(NSSet *)es;
-
-/*!
- @brief Insert the given graph into this one. Used for copy
- and paste.
- @param g a graph.
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)insertGraph:(Graph*)g;
-
-/*!
- @brief Flip the subgraph defined by the given node set
- horizontally.
- @param nds a set of nodes.
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)flipHorizontalNodes:(NSSet*)nds;
-
-/*!
- @brief Flip the subgraph defined by the given node set
- vertically.
- @param nds a set of nodes.
- @result A <tt>GraphChange</tt> recording this action.
- */
-- (GraphChange*)flipVerticalNodes:(NSSet*)nds;
-
-/*!
- @brief Apply a graph change.
- @details An undo manager should maintain a stack of GraphChange
- objects returned. To undo a GraphChange, call this method
- with <tt>[change inverse]</tt> as is argument.
- @param ch a graph change.
- */
-- (void)applyGraphChange:(GraphChange*)ch;
-
-/*!
- @brief The TikZ representation of this graph.
- @details The TikZ representation of this graph. The TikZ code should
- contain enough data to totally reconstruct the graph.
- @result A string containing TikZ code.
- */
-- (NSString*)tikz;
-
-
-/*!
- @brief Copy the node set and return a table of copies, whose
- keys are the original nodes. This is used to save the state
- of a set of nodes in a GraphChange.
- @param nds a set of nodes.
- @result A <tt>NSMapTable</tt> of node copies.
- */
-+ (NSMapTable*)nodeTableForNodes:(NSSet*)nds;
-
-+ (NSMapTable*)nodeTableForNodes:(NSSet*)nds withZone:(NSZone*)zone;
-
-/*!
- @brief Copy the edge set and return a table of copies, whose
- keys are the original edges. This is used to save the state
- of a set of edges in a GraphChange.
- @param es a set of edges.
- @result A <tt>NSMapTable</tt> of edge copies.
- */
-+ (NSMapTable*)edgeTableForEdges:(NSSet*)es;
-
-+ (NSMapTable*)edgeTableForEdges:(NSSet*)es withZone:(NSZone*)zone;
-
-/*!
- @brief Compute the bounds for a set of nodes.
- @param nds an enumerable collection of nodes.
- @result The bounds.
- */
-+ (NSRect)boundsForNodes:(id<NSFastEnumeration>)nds;
-
-/*!
- @brief Factory method for constructing graphs.
- @result An empty graph.
- */
-+ (Graph*)graph;
-
-/**
- * Initialize an empty graph
- */
-- (id)init;
-
-/**
- * Constructs a graph from the given tikz code
- *
- * See TikzGraphAssembler for more information about the error argument.
- */
-+ (Graph*)graphFromTikz:(NSString*)tikz error:(NSError**)e;
-
-/**
- * Constructs a graph from the given tikz code
- */
-+ (Graph*)graphFromTikz:(NSString*)tikz;
-
-/**
- * Initialize an empty graph from the given tikz code
- *
- * Note that this may not return the same object it was called on,
- * and will return nil if parsing failed.
- *
- * See TikzGraphAssembler for more information about the error argument.
- */
-- (id)initFromTikz:(NSString*)tikz error:(NSError**)e;
-
-/**
- * Initialize an empty graph from the given tikz code
- *
- * Note that this may not return the same object it was called on,
- * and will return nil if parsing failed.
- */
-- (id)initFromTikz:(NSString*)tikz;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Graph.m b/tikzit-old/src/common/Graph.m
deleted file mode 100644
index cf09a69..0000000
--- a/tikzit-old/src/common/Graph.m
+++ /dev/null
@@ -1,922 +0,0 @@
-//
-// Graph.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Graph.h"
-#import "TikzGraphAssembler.h"
-#import "Shape.h"
-
-@interface Graph (Private)
-- (void) shapeDictionaryReplaced:(NSNotification*)notification;
-@end
-
-@implementation Graph
-
-- (id)init {
- self = [super init];
- if (self != nil) {
- data = [[GraphElementData alloc] init];
- boundingBox = NSMakeRect(0, 0, 0, 0);
- graphLock = [[NSRecursiveLock alloc] init];
- nodes = [[NSMutableArray alloc] initWithCapacity:10];
- edges = [[NSMutableArray alloc] initWithCapacity:10];
- inEdges = nil;
- outEdges = nil;
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(shapeDictionaryReplaced:)
- name:@"ShapeDictionaryReplaced"
- object:[Shape class]];
- }
- return self;
-}
-
-- (id)initFromTikz:(NSString*)tikz error:(NSError**)e {
-#if __has_feature(objc_arc)
- return [TikzGraphAssembler parseTikz:tikz error:e];
-#else
- [self release];
- return [[TikzGraphAssembler parseTikz:tikz error:e] retain];
-#endif
-}
-
-- (id)initFromTikz:(NSString*)tikz {
- return [self initFromTikz:tikz error:NULL];
-}
-
-- (id) copyWithZone:(NSZone*)zone {
- Graph *newGraph = [self copyOfSubgraphWithNodes:[NSSet setWithArray:nodes] zone:zone];
- [newGraph setData:[self data]];
- return newGraph;
-}
-
-- (void)dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [graphLock lock];
-#if ! __has_feature(objc_arc)
- [inEdges release];
- [outEdges release];
- [edges release];
- [nodes release];
- [data release];
- [graphLock unlock];
- [graphLock release];
-
- [super dealloc];
-#endif
-}
-
-- (void)sync {
- [graphLock lock];
- if (dirty) {
-#if ! __has_feature(objc_arc)
- [inEdges release];
- [outEdges release];
-#endif
- inEdges = [[NSMapTable alloc] initWithKeyOptions:NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory capacity:10];
- outEdges = [[NSMapTable alloc] initWithKeyOptions:NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory capacity:10];
-
-#if ! __has_feature(objc_arc)
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-#endif
-
- for (Edge *e in edges) {
- NSMutableSet *ie = [inEdges objectForKey:[e target]];
- NSMutableSet *oe = [outEdges objectForKey:[e source]];
-
- if (ie == nil) {
- ie = [NSMutableSet setWithCapacity:4];
- [inEdges setObject:ie forKey:[e target]];
- }
-
- if (oe == nil) {
- oe = [NSMutableSet setWithCapacity:4];
- [outEdges setObject:oe forKey:[e source]];
- }
-
- [ie addObject:e];
- [oe addObject:e];
- }
-
-#if ! __has_feature(objc_arc)
- [pool drain];
-#endif
-
- dirty = NO;
- }
- [graphLock unlock];
-}
-
-@synthesize nodes;
-@synthesize edges;
-
-@synthesize data;
-- (void) insertObject:(GraphElementProperty*)gep
- inDataAtIndex:(NSUInteger)index {
- [data insertObject:gep atIndex:index];
-}
-- (void) removeObjectFromDataAtIndex:(NSUInteger)index {
- [data removeObjectAtIndex:index];
-}
-- (void) replaceObjectInDataAtIndex:(NSUInteger)index
- withObject:(GraphElementProperty*)gep {
- [data replaceObjectAtIndex:index withObject:gep];
-}
-
-@synthesize boundingBox;
-
-- (NSRect)bounds {
- [graphLock lock];
- NSRect b = [Graph boundsForNodes:nodes];
- [graphLock unlock];
- return b;
-}
-
-- (BOOL)hasBoundingBox {
- return !(
- boundingBox.size.width == 0 &&
- boundingBox.size.height == 0
- );
-}
-
-- (NSSet*)inEdgesForNode:(Node*)nd {
- [self sync];
-#if __has_feature(objc_arc)
- return [inEdges objectForKey:nd];
-#else
- return [[[inEdges objectForKey:nd] retain] autorelease];
-#endif
-}
-
-- (NSSet*)outEdgesForNode:(Node*)nd {
- [self sync];
-#if __has_feature(objc_arc)
- return [outEdges objectForKey:nd];
-#else
- return [[[outEdges objectForKey:nd] retain] autorelease];
-#endif
-}
-
-- (NSSet*)incidentEdgesForNodes:(NSSet*)nds {
- [self sync];
-
- NSMutableSet *mset = [NSMutableSet setWithCapacity:10];
- for (Node *n in nds) {
- [mset unionSet:[self inEdgesForNode:n]];
- [mset unionSet:[self outEdgesForNode:n]];
- }
-
- return mset;
-}
-
-- (void)applyTransformer:(Transformer *)t {
- [graphLock lock];
- for (Node *n in nodes) {
- [n setPoint:[t toScreen:[n point]]];
- }
- [graphLock unlock];
-}
-
-- (GraphChange*)addNode:(Node *)node{
- [graphLock lock];
- NSSet *addedNode;
-
- // addNode is a no-op if graph already contains node
- if (![nodes containsObject:node]) {
- [nodes addObject:node];
- dirty = YES;
- addedNode = [NSSet setWithObject:node];
- } else {
- addedNode = [NSSet set];
- }
- [graphLock unlock];
-
- return [GraphChange graphAdditionWithNodes:addedNode
- edges:[NSSet set]];
-}
-
-- (GraphChange*)removeNode:(Node*)node {
- [graphLock lock];
- NSMutableSet *affectedEdges = [NSMutableSet set];
- for (Edge *e in edges) {
- if ([e source] == node || [e target] == node) {
- [affectedEdges addObject:e];
- }
- }
- for (Edge *e in affectedEdges) {
- [edges removeObject:e];
- }
- [nodes removeObject:node];
- dirty = YES;
- [graphLock unlock];
-
- return [GraphChange graphDeletionWithNodes:[NSSet setWithObject:node]
- edges:affectedEdges];
-}
-
-- (GraphChange*)removeNodes:(NSSet *)nds {
- [graphLock lock];
-
- Node *n;
- Edge *e;
-
- NSMutableSet *affectedEdges = [NSMutableSet set];
- NSEnumerator *en = [edges objectEnumerator];
- while ((e = [en nextObject])) {
- if ([nds containsObject:[e source]] || [nds containsObject:[e target]]) {
- [affectedEdges addObject:e];
- }
- }
-
- en = [affectedEdges objectEnumerator];
- while ((e = [en nextObject])) [edges removeObject:e];
-
- en = [nds objectEnumerator];
- while ((n = [en nextObject])) [nodes removeObject:n];
-
- dirty = YES;
- [graphLock unlock];
-
- return [GraphChange graphDeletionWithNodes:nds edges:affectedEdges];
-}
-
-- (GraphChange*)addEdge:(Edge*)edge {
- [graphLock lock];
- NSSet *addedEdge;
-
- // addEdge is a no-op if graph already contains edge
- if (![edges containsObject:edge]) {
- [edges addObject:edge];
- dirty = YES;
- addedEdge = [NSSet setWithObject:edge];
- } else {
- addedEdge = [NSSet set];
- }
- [graphLock unlock];
-
- return [GraphChange graphAdditionWithNodes:[NSSet set]
- edges:addedEdge];
-}
-
-- (GraphChange*)removeEdge:(Edge *)edge {
- [graphLock lock];
- [edges removeObject:edge];
- dirty = YES;
- [graphLock unlock];
- return [GraphChange graphDeletionWithNodes:[NSSet set]
- edges:[NSSet setWithObject:edge]];
-}
-
-- (GraphChange*)removeEdges:(NSSet *)es {
- [graphLock lock];
-
- for (Edge *e in es) {
- [edges removeObject:e];
- }
- dirty = YES;
- [graphLock unlock];
- return [GraphChange graphDeletionWithNodes:[NSSet set] edges:es];
-}
-
-- (GraphChange*)addEdgeFrom:(Node *)source to:(Node *)target {
- return [self addEdge:[Edge edgeWithSource:source andTarget:target]];
-}
-
-- (GraphChange*)shiftNodes:(id<NSFastEnumeration>)ns byPoint:(NSPoint)p {
- NSPoint newLoc;
- NSMutableSet *nodeSet = [NSMutableSet setWithCapacity:5];
- for (Node *n in ns) {
- newLoc = NSMakePoint([n point].x + p.x, [n point].y + p.y);
- [n setPoint:newLoc];
- [nodeSet addObject:n];
- }
- return [GraphChange shiftNodes:nodeSet byPoint:p];
-}
-
-- (GraphChange*)reverseEdges:(NSSet *)es {
- [graphLock lock];
- for (Edge *e in es) {
- [e reverse];
- }
- dirty = YES;
- [graphLock unlock];
- return [GraphChange reverseEdges:es];
-}
-
-- (int)indexOfNode:(Node *)node {
- return [nodes indexOfObject:node];
-}
-
-- (void)setIndex:(int)idx ofNode:(Node *)node {
- [graphLock lock];
-
- if ([nodes containsObject:node]) {
- [nodes removeObject:node];
- [nodes insertObject:node atIndex:idx];
- }
-
- [graphLock unlock];
-}
-
-- (int)indexOfEdge:(Edge *)edge {
- return [edges indexOfObject:edge];
-}
-
-- (void)setIndex:(int)idx ofEdge:(Edge *)edge {
- [graphLock lock];
-
- if ([edges containsObject:edge]) {
- [edges removeObject:edge];
- [edges insertObject:edge atIndex:idx];
- }
-
- [graphLock unlock];
-}
-
-- (GraphChange*)bringNodesForward:(NSSet*)nodeSet {
- NSArray *oldOrder = [nodes copy];
- [graphLock lock];
- // start at the top of the array and work backwards
- for (int i = [nodes count]-2; i >= 0; --i) {
- if ( [nodeSet containsObject:[nodes objectAtIndex:i]] &&
- ![nodeSet containsObject:[nodes objectAtIndex:i+1]])
- {
- [self setIndex:(i+1) ofNode:[nodes objectAtIndex:i]];
- }
- }
- GraphChange *change = [GraphChange nodeOrderChangeFrom:oldOrder to:nodes moved:nodeSet];
- [graphLock unlock];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)bringNodesToFront:(NSSet*)nodeSet {
- NSArray *oldOrder = [nodes copy];
- int i = 0, top = [nodes count]-1;
-
- while (i <= top) {
- if ([nodeSet containsObject:[nodes objectAtIndex:i]]) {
- [self setIndex:([nodes count]-1) ofNode:[nodes objectAtIndex:i]];
- --top;
- } else {
- ++i;
- }
- }
- GraphChange *change = [GraphChange nodeOrderChangeFrom:oldOrder to:nodes moved:nodeSet];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)bringEdgesForward:(NSSet*)edgeSet {
- [graphLock lock];
- NSArray *oldOrder = [edges copy];
- // start at the top of the array and work backwards
- for (int i = [edges count]-2; i >= 0; --i) {
- if ( [edgeSet containsObject:[edges objectAtIndex:i]] &&
- ![edgeSet containsObject:[edges objectAtIndex:i+1]])
- {
- [self setIndex:(i+1) ofEdge:[edges objectAtIndex:i]];
- }
- }
- GraphChange *change = [GraphChange edgeOrderChangeFrom:oldOrder to:edges moved:edgeSet];
- [graphLock unlock];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)bringEdgesToFront:(NSSet*)edgeSet {
- NSArray *oldOrder = [edges copy];
- int i = 0, top = [edges count]-1;
-
- while (i <= top) {
- if ([edgeSet containsObject:[edges objectAtIndex:i]]) {
- [self setIndex:([edges count]-1) ofEdge:[edges objectAtIndex:i]];
- --top;
- } else {
- ++i;
- }
- }
- GraphChange *change = [GraphChange edgeOrderChangeFrom:oldOrder to:edges moved:edgeSet];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)sendNodesBackward:(NSSet*)nodeSet {
- [graphLock lock];
- NSArray *oldOrder = [nodes copy];
- // start at the top of the array and work backwards
- for (int i = 1; i < [nodes count]; ++i) {
- if ( [nodeSet containsObject:[nodes objectAtIndex:i]] &&
- ![nodeSet containsObject:[nodes objectAtIndex:i-1]])
- {
- [self setIndex:(i-1) ofNode:[nodes objectAtIndex:i]];
- }
- }
- GraphChange *change = [GraphChange nodeOrderChangeFrom:oldOrder to:nodes moved:nodeSet];
- [graphLock unlock];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)sendEdgesBackward:(NSSet*)edgeSet {
- [graphLock lock];
- NSArray *oldOrder = [edges copy];
- // start at the top of the array and work backwards
- for (int i = 1; i < [edges count]; ++i) {
- if ( [edgeSet containsObject:[edges objectAtIndex:i]] &&
- ![edgeSet containsObject:[edges objectAtIndex:i-1]])
- {
- [self setIndex:(i-1) ofEdge:[edges objectAtIndex:i]];
- }
- }
- GraphChange *change = [GraphChange edgeOrderChangeFrom:oldOrder to:edges moved:edgeSet];
- [graphLock unlock];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)sendNodesToBack:(NSSet*)nodeSet {
- NSArray *oldOrder = [nodes copy];
- int i = [nodes count]-1, bot = 0;
-
- while (i >= bot) {
- if ([nodeSet containsObject:[nodes objectAtIndex:i]]) {
- [self setIndex:0 ofNode:[nodes objectAtIndex:i]];
- ++bot;
- } else {
- --i;
- }
- }
- GraphChange *change = [GraphChange nodeOrderChangeFrom:oldOrder to:nodes moved:nodeSet];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)sendEdgesToBack:(NSSet*)edgeSet {
- NSArray *oldOrder = [edges copy];
- int i = [edges count]-1, bot = 0;
-
- while (i >= bot) {
- if ([edgeSet containsObject:[edges objectAtIndex:i]]) {
- [self setIndex:0 ofEdge:[edges objectAtIndex:i]];
- ++bot;
- } else {
- --i;
- }
- }
- GraphChange *change = [GraphChange edgeOrderChangeFrom:oldOrder to:edges moved:edgeSet];
-
-#if ! __has_feature(objc_arc)
- [oldOrder release];
-#endif
-
- return change;
-}
-
-- (GraphChange*)insertGraph:(Graph*)g {
- [graphLock lock];
-
- for (Node *n in [g nodes]) {
- [self addNode:n];
- }
-
- for (Edge *e in [g edges]) {
- [self addEdge:e];
- }
-
- dirty = YES;
-
- [graphLock unlock];
-
-
- return [GraphChange graphAdditionWithNodes:[NSSet setWithArray:[g nodes]] edges:[NSSet setWithArray:[g edges]]];
-}
-
-- (void)flipNodes:(NSSet*)nds horizontal:(BOOL)horiz {
- [graphLock lock];
-
- NSRect bds = [Graph boundsForNodes:nds];
- float ctr;
- if (horiz) ctr = bds.origin.x + (bds.size.width/2);
- else ctr = bds.origin.y + (bds.size.height/2);
-
- Node *n;
- NSPoint p;
- NSEnumerator *en = [nds objectEnumerator];
- while ((n = [en nextObject])) {
- p = [n point];
- if (horiz) p.x = 2 * ctr - p.x;
- else p.y = 2 * ctr - p.y;
- [n setPoint:p];
- }
-
- Edge *e;
- en = [edges objectEnumerator];
- while ((e = [en nextObject])) {
- if ([nds containsObject:[e source]] &&
- [nds containsObject:[e target]])
- {
- if ([e bendMode] == EdgeBendModeInOut) {
- if (horiz) {
- if ([e inAngle] < 0) [e setInAngle:(-180 - [e inAngle])];
- else [e setInAngle:180 - [e inAngle]];
-
- if ([e outAngle] < 0) [e setOutAngle:(-180 - [e outAngle])];
- else [e setOutAngle:180 - [e outAngle]];
- } else {
- [e setInAngle:-[e inAngle]];
- [e setOutAngle:-[e outAngle]];
- }
- } else {
- [e setBend:-[e bend]];
- }
- }
- }
-
- [graphLock unlock];
-}
-
-- (GraphChange*)flipHorizontalNodes:(NSSet*)nds {
- [self flipNodes:nds horizontal:YES];
- return [GraphChange flipNodes:nds horizontal:YES];
-}
-
-- (GraphChange*)flipVerticalNodes:(NSSet*)nds {
- [self flipNodes:nds horizontal:NO];
- return [GraphChange flipNodes:nds horizontal:NO];
-}
-
-- (Graph*)copyOfSubgraphWithNodes:(NSSet*)nds {
- return [self copyOfSubgraphWithNodes:nds zone:NSDefaultMallocZone()];
-}
-
-- (Graph*)copyOfSubgraphWithNodes:(NSSet*)nds zone:(NSZone*)zone {
- [graphLock lock];
-
- NSMapTable *newNds = [Graph nodeTableForNodes:nds withZone:zone];
- Graph* newGraph = [[Graph allocWithZone:zone] init];
-
- for (Node *nd in [newNds objectEnumerator]) {
- [newGraph addNode:nd];
- }
-
- for (Edge *e in edges) {
- if ([nds containsObject:[e source]] && [nds containsObject:[e target]]) {
- Edge *e1 = [e copyWithZone:zone];
- [e1 setSource:[newNds objectForKey:[e source]]];
- [e1 setTarget:[newNds objectForKey:[e target]]];
- [newGraph addEdge:e1];
-#if ! __has_feature(objc_arc)
- [e1 release]; // e1 belongs to newGraph
-#endif
- }
- }
-
- [graphLock unlock];
-
- return newGraph;
-}
-
-- (NSSet*)pathCover {
- [self sync];
-
- NSMutableSet *cover = [NSMutableSet set];
-#if ! __has_feature(objc_arc)
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-#endif
- NSMutableSet *remainingEdges = [NSMutableSet setWithArray:edges];
-
- while ([remainingEdges count] != 0) {
- NSMutableArray *path = [[NSMutableArray alloc] init];
- NSSet *succs;
- Edge *succ;
- NSEnumerator *en;
-
- Edge *e = [remainingEdges anyObject];
-
- while (e!=nil) {
- [path addObject:e];
- [remainingEdges removeObject:e];
-
- succs = [self outEdgesForNode:[e target]];
- en = [succs objectEnumerator];
- e = nil;
-
- while ((succ = [en nextObject])) {
- if ([remainingEdges containsObject:succ]) e = succ;
- }
- }
-
- [cover addObject:path];
-#if ! __has_feature(objc_arc)
- [path release];
-#endif
- }
-
-#if ! __has_feature(objc_arc)
- [pool drain];
-#endif
- return cover;
-}
-
-- (void)applyGraphChange:(GraphChange*)ch {
- [graphLock lock];
- switch ([ch changeType]) {
- case GraphAddition:
- for (Node *n in [[ch affectedNodes] objectEnumerator]) {
- [nodes addObject:n];
- }
-
- for (Edge *e in [[ch affectedEdges] objectEnumerator]) {
- [edges addObject:e];
- }
-
- break;
- case GraphDeletion:
- for (Edge *e in [[ch affectedEdges] objectEnumerator]) {
- [edges removeObject:e];
- }
-
- for (Node *n in [[ch affectedNodes] objectEnumerator]) {
- [nodes removeObject:n];
- }
-
- break;
- case NodePropertyChange:
- [[ch nodeRef] setPropertiesFromNode:[ch nwNode]];
- break;
- case NodesPropertyChange:
- for (Node *key in [[ch nwNodeTable] keyEnumerator]) {
- [key setPropertiesFromNode:[[ch nwNodeTable] objectForKey:key]];
- }
- break;
- case EdgePropertyChange:
- [[ch edgeRef] setPropertiesFromEdge:[ch nwEdge]];
- break;
- case EdgesPropertyChange:
- for (Edge *key in [[ch nwEdgeTable] keyEnumerator]) {
- [key setPropertiesFromEdge:[[ch nwEdgeTable] objectForKey:key]];
- }
- break;
- case NodesShift:
- for (Node *n in [[ch affectedNodes] objectEnumerator]) {
- [n setPoint:NSMakePoint([n point].x + [ch shiftPoint].x,
- [n point].y + [ch shiftPoint].y)];
- }
- break;
- case NodesFlip:
- [self flipNodes:[ch affectedNodes] horizontal:[ch horizontal]];
- break;
- case EdgesReverse:
- for (Edge *e in [[ch affectedEdges] objectEnumerator]) {
- [e reverse];
- }
- break;
- case BoundingBoxChange:
- [self setBoundingBox:[ch nwBoundingBox]];
- break;
- case GraphPropertyChange:
- [data setArray:[ch nwGraphData]];
- break;
- case NodeOrderChange:
- [nodes setArray:[ch nwNodeOrder]];
- break;
- case EdgeOrderChange:
- [edges setArray:[ch nwEdgeOrder]];
- break;
- }
-
- dirty = YES;
- [graphLock unlock];
-}
-
-//- (void)undoGraphChange:(GraphChange*)ch {
-// [self applyGraphChange:[GraphChange inverseGraphChange:ch]];
-//}
-
-- (NSString*)tikz {
- [graphLock lock];
-
- NSMutableString *code = [NSMutableString
- stringWithFormat:@"\\begin{tikzpicture}%@\n",
- [[self data] tikzList]];
-
- if ([self hasBoundingBox]) {
- [code appendFormat:@"\t\\path [use as bounding box] (%@,%@) rectangle (%@,%@);\n",
- [NSNumber numberWithFloat:boundingBox.origin.x],
- [NSNumber numberWithFloat:boundingBox.origin.y],
- [NSNumber numberWithFloat:boundingBox.origin.x + boundingBox.size.width],
- [NSNumber numberWithFloat:boundingBox.origin.y + boundingBox.size.height]];
- }
-
-// NSArray *sortedNodeList = [[nodes allObjects]
-// sortedArrayUsingSelector:@selector(compareTo:)];
- //NSMutableDictionary *nodeNames = [NSMutableDictionary dictionary];
-
- if ([nodes count] > 0) [code appendFormat:@"\t\\begin{pgfonlayer}{nodelayer}\n"];
-
- int i = 0;
- for (Node *n in nodes) {
- [n updateData];
- [n setName:[NSString stringWithFormat:@"%d", i]];
- [code appendFormat:@"\t\t\\node %@ (%d) at (%@, %@) {%@};\n",
- [[n data] tikzList],
- i,
- formatFloat([n point].x, 4),
- formatFloat([n point].y, 4),
- [n label]
- ];
- i++;
- }
-
- if ([nodes count] > 0) [code appendFormat:@"\t\\end{pgfonlayer}\n"];
- if ([edges count] > 0) [code appendFormat:@"\t\\begin{pgfonlayer}{edgelayer}\n"];
-
- NSString *nodeStr;
- for (Edge *e in edges) {
- [e updateData];
-
- if ([e hasEdgeNode]) {
- nodeStr = [NSString stringWithFormat:@"node%@{%@} ",
- [[[e edgeNode] data] tikzList],
- [[e edgeNode] label]
- ];
- } else {
- nodeStr = @"";
- }
-
- NSString *edata = [[e data] tikzList];
-
- NSString *srcAnchor;
- NSString *tgtAnchor;
-
- if ([[e sourceAnchor] isEqual:@""]) {
- srcAnchor = @"";
- } else {
- srcAnchor = [NSString stringWithFormat:@".%@", [e sourceAnchor]];
- }
-
- if ([[e targetAnchor] isEqual:@""]) {
- tgtAnchor = @"";
- } else {
- tgtAnchor = [NSString stringWithFormat:@".%@", [e targetAnchor]];
- }
-
- [code appendFormat:@"\t\t\\draw%@ (%@%@) to %@(%@%@);\n",
- ([edata isEqual:@""]) ? @"" : [NSString stringWithFormat:@" %@", edata],
- [[e source] name],
- srcAnchor,
- nodeStr,
- ([e source] == [e target]) ? @"" : [[e target] name],
- tgtAnchor
- ];
- }
-
- if ([edges count] > 0) [code appendFormat:@"\t\\end{pgfonlayer}\n"];
-
- [code appendString:@"\\end{tikzpicture}"];
-
- [graphLock unlock];
-
- return code;
-}
-
-+ (Graph*)graph {
-#if __has_feature(objc_arc)
- return [[self alloc] init];
-#else
- return [[[self alloc] init] autorelease];
-#endif
-}
-
-+ (Graph*)graphFromTikz:(NSString*)tikz error:(NSError**)e {
- return [TikzGraphAssembler parseTikz:tikz error:e];
-}
-
-+ (Graph*)graphFromTikz:(NSString*)tikz {
- return [self graphFromTikz:tikz error:NULL];
-}
-
-+ (NSMapTable*)nodeTableForNodes:(NSSet*)nds {
- return [self nodeTableForNodes:nds withZone:NSDefaultMallocZone()];
-}
-
-+ (NSMapTable*)nodeTableForNodes:(NSSet*)nds withZone:(NSZone*)zone {
- NSMapTable *tab = [[NSMapTable allocWithZone:zone]
- initWithKeyOptions:NSMapTableStrongMemory
- valueOptions:NSMapTableStrongMemory
- capacity:[nds count]];
- for (Node *n in nds) {
- Node *ncopy = [n copyWithZone:zone];
- [tab setObject:ncopy forKey:n];
-#if ! __has_feature(objc_arc)
- [ncopy release]; // tab should still retain ncopy.
-#endif
- }
-#if __has_feature(objc_arc)
- return tab;
-#else
- return [tab autorelease];
-#endif
-}
-
-+ (NSMapTable*)edgeTableForEdges:(NSSet*)es {
- return [self edgeTableForEdges:es withZone:NSDefaultMallocZone()];
-}
-
-+ (NSMapTable*)edgeTableForEdges:(NSSet*)es withZone:(NSZone*)zone {
- NSMapTable *tab = [[NSMapTable allocWithZone:zone]
- initWithKeyOptions:NSMapTableStrongMemory
- valueOptions:NSMapTableStrongMemory
- capacity:[es count]];
- for (Edge *e in es) {
- Edge *ecopy = [e copyWithZone:zone];
- [tab setObject:ecopy forKey:e];
-#if ! __has_feature(objc_arc)
- [ecopy release]; // tab should still retain ecopy.
-#endif
- }
- return tab;
-}
-
-
-+ (NSRect)boundsForNodes:(id<NSFastEnumeration>)nds {
- NSPoint tl, br;
- NSPoint p;
- BOOL hasPoints = NO;
- for (Node *n in nds) {
- p = [n point];
- if (!hasPoints) {
- tl = p;
- br = p;
- hasPoints = YES;
- } else {
- if (p.x < tl.x) tl.x = p.x;
- if (p.y > tl.y) tl.y = p.y;
- if (p.x > br.x) br.x = p.x;
- if (p.y < br.y) br.y = p.y;
- }
- }
-
- return (hasPoints) ? NSRectAroundPoints(tl, br) : NSMakeRect(0, 0, 0, 0);
-}
-
-@end
-
-@implementation Graph (Private)
-- (void) shapeDictionaryReplaced:(NSNotification*)notification {
- for (Edge *e in edges) {
- [e recalculateProperties];
- }
-}
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/GraphChange.h b/tikzit-old/src/common/GraphChange.h
deleted file mode 100644
index 0e71a90..0000000
--- a/tikzit-old/src/common/GraphChange.h
+++ /dev/null
@@ -1,344 +0,0 @@
-//
-// GraphChange.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Node.h"
-#import "Edge.h"
-
-typedef enum {
- GraphAddition,
- GraphDeletion,
- NodePropertyChange,
- EdgePropertyChange,
- NodesPropertyChange,
- EdgesPropertyChange,
- NodesShift,
- NodesFlip,
- EdgesReverse,
- BoundingBoxChange,
- GraphPropertyChange,
- NodeOrderChange,
- EdgeOrderChange
-} ChangeType;
-
-/*!
- @class GraphChange
- @brief Store the data associated with a graph change.
- @details All of the methods that change a graph return an object of type GraphChange.
- Graph changes can be re-done by calling [graph applyGraphChange:]. They can be undone
- by calling applyGraphChange on [change inverse]. This class has no public initializer,
- so everything should be constructed by factory methods.
- */
-@interface GraphChange : NSObject {
- ChangeType changeType;
-
- // for addition, deletion, and shifts
- NSSet *affectedNodes;
- NSSet *affectedEdges;
- NSPoint shiftPoint;
-
- // for flip
- BOOL horizontal;
-
- // for property changes
- Node *nodeRef;
- Edge *edgeRef;
-
- Node *oldNode, *nwNode;
- Edge *oldEdge, *nwEdge;
- NSMapTable *oldNodeTable, *nwNodeTable;
- NSMapTable *oldEdgeTable, *nwEdgeTable;
- NSRect oldBoundingBox, nwBoundingBox;
- GraphElementData *oldGraphData, *nwGraphData;
-
- NSArray *oldNodeOrder, *nwNodeOrder;
- NSArray *oldEdgeOrder, *nwEdgeOrder;
-}
-
-/*!
- @property changeType
- @brief Type of GraphChange.
- */
-@property (assign) ChangeType changeType;
-
-/*!
- @property shiftPoint
- @brief A point storing a shifted distance.
- */
-@property (assign) NSPoint shiftPoint;
-
-/*!
- @property horizontal
- @brief Flags whether nodes were flipped horizontally
- */
-@property (assign) BOOL horizontal;
-
-/*!
- @property affectedNodes
- @brief A set of nodes affected by this change, may be undefined.
- */
-@property (copy) NSSet *affectedNodes;
-
-/*!
- @property affectedEdges
- @brief A set of edges affected by this change, may be undefined.
- */
-@property (copy) NSSet *affectedEdges;
-
-/*!
- @property nodeRef
- @brief A reference to a single node affected by this change, may be undefined.
- */
-@property (retain) Node *nodeRef;
-
-/*!
- @property oldNode
- @brief A copy of the node pre-change.
- */
-@property (copy) Node *oldNode;
-
-/*!
- @property nwNode
- @brief A copy of the node post-change.
- */
-@property (copy) Node *nwNode;
-
-/*!
- @property edgeRef
- @brief A reference to a single edge affected by this change, may be undefined.
- */
-@property (retain) Edge *edgeRef;
-
-/*!
- @property oldEdge
- @brief A copy of the edge pre-change.
- */
-@property (copy) Edge *oldEdge;
-
-/*!
- @property nwEdge
- @brief A copy of the edge post-change.
- */
-@property (copy) Edge *nwEdge;
-
-/*!
- @property oldNodeTable
- @brief A a table containing copies of a set of nodes pre-change.
- */
-@property (retain) NSMapTable *oldNodeTable;
-
-/*!
- @property nwNodeTable
- @brief A a table containing copies of a set of nodes post-change.
- */
-@property (retain) NSMapTable *nwNodeTable;
-
-/*!
- @property oldEdgeTable
- @brief A a table containing copies of a set of edges pre-change.
- */
-@property (retain) NSMapTable *oldEdgeTable;
-
-/*!
- @property nwEdgeTable
- @brief A a table containing copies of a set of edges post-change.
- */
-@property (retain) NSMapTable *nwEdgeTable;
-
-/*!
- @property oldBoundingBox
- @brief The old bounding box.
- */
-@property (assign) NSRect oldBoundingBox;
-
-/*!
- @property nwBoundingBox
- @brief The new bounding box.
- */
-@property (assign) NSRect nwBoundingBox;
-
-/*!
- @property oldGraphData
- @brief The old graph data.
- */
-@property (copy) GraphElementData *oldGraphData;
-
-/*!
- @property nwGraphData
- @brief The new graph data.
- */
-@property (copy) GraphElementData *nwGraphData;
-
-/*!
- @property oldNodeOrder
- @brief The old node list.
- */
-@property (copy) NSArray *oldNodeOrder;
-
-/*!
- @property nwNodeOrder
- @brief The new node list.
- */
-@property (copy) NSArray *nwNodeOrder;
-
-/*!
- @property oldEdgeOrder
- @brief The old edge list.
- */
-@property (copy) NSArray *oldEdgeOrder;
-
-/*!
- @property nwEdgeOrder
- @brief The new edge list.
- */
-@property (copy) NSArray *nwEdgeOrder;
-
-/*!
- @brief Invert a GraphChange.
- @details Invert a GraphChange. Calling [graph applyGraphChange:[[graph msg:...] invert]]
- should leave the graph unchanged for any method of Graph that returns a
- GraphChange.
- @result The inverse of the current Graph Change.
- */
-- (GraphChange*)invert;
-
-/*!
- @brief Construct a graph addition. affectedNodes are the added nodes,
- affectedEdges are the added edges.
- @param ns a set of nodes.
- @param es a set of edges.
- @result A graph addition.
- */
-+ (GraphChange*)graphAdditionWithNodes:(NSSet*)ns edges:(NSSet*)es;
-
-/*!
- @brief Construct a graph deletion. affectedNodes are the deleted nodes,
- affectedEdges are the deleted edges.
- @param ns a set of nodes.
- @param es a set of edges.
- @result A graph deletion.
- */
-+ (GraphChange*)graphDeletionWithNodes:(NSSet*)ns edges:(NSSet*)es;
-
-/*!
- @brief Construct a property change of a single node.
- @param nd the affected node.
- @param old a copy of the node pre-change
- @param nw a copy of the node post-change
- @result A property change of a single node.
- */
-+ (GraphChange*)propertyChangeOfNode:(Node*)nd fromOld:(Node*)old toNew:(Node*)nw;
-
-/*!
- @brief Construct a property change of a single edge.
- @param e the affected edge.
- @param old a copy of the edge pre-change
- @param nw a copy of the edge post-change
- @result A property change of a single node.
- */
-+ (GraphChange*)propertyChangeOfEdge:(Edge*)e fromOld:(Edge *)old toNew:(Edge *)nw;
-
-/*!
- @brief Construct a property change of set of nodes.
- @details Construct a property change of set of nodes. oldC and newC should be
- constructed using the class method [Graph nodeTableForNodes:] before
- and after the property change, respectively. The affected nodes are
- keys(oldC) = keys(newC).
- @param oldC a table of copies of nodes pre-change
- @param newC a table of copies of nodes post-change
- @result A property change of a set of nodes.
- */
-+ (GraphChange*)propertyChangeOfNodesFromOldCopies:(NSMapTable*)oldC
- toNewCopies:(NSMapTable*)newC;
-
-/*!
- @brief Construct a property change of set of edges.
- @details Construct a property change of set of edges. oldC and newC should be
- constructed using the class method [Graph edgeTableForEdges:] before
- and after the property change, respectively. The affected edges are
- keys(oldC) = keys(newC).
- @param oldC a table of copies of edges pre-change
- @param newC a table of copies of edges post-change
- @result A property change of a set of edges.
- */
-+ (GraphChange*)propertyChangeOfEdgesFromOldCopies:(NSMapTable*)oldC
- toNewCopies:(NSMapTable*)newC;
-
-
-/*!
- @brief Construct a shift of a set of nodes by a given point.
- @param ns the affected nodes.
- @param p a point storing (dx,dy)
- @result A shift of a set of nodes.
- */
-+ (GraphChange*)shiftNodes:(NSSet*)ns byPoint:(NSPoint)p;
-
-/*!
- @brief Construct a horizontal or vertical flip of a set of nodes.
- @param ns the affected nodes.
- @param b flag for whether to flip horizontally
- @result A flip of a set of nodes.
- */
-+ (GraphChange*)flipNodes:(NSSet*)ns horizontal:(BOOL)b;
-
-/*!
- @brief Construct a reversal of a set of edges.
- @param es the affected edges.
- @result A reverse of a set of edges.
- */
-+ (GraphChange*)reverseEdges:(NSSet*)es;
-
-/*!
- @brief Construct a bounding box change
- @param oldBB the old bounding box
- @param newBB the new bounding box
- @result A bounding box change.
- */
-+ (GraphChange*)changeBoundingBoxFrom:(NSRect)oldBB to:(NSRect)newBB;
-
-/*!
- @brief Construct a graph property change
- @param oldData the old graph data
- @param newData the new graph data
- @result A graph property change.
- */
-+ (GraphChange*)propertyChangeOfGraphFrom:(GraphElementData*)oldData to:(GraphElementData*)newData;
-
-/*!
- @brief Construct a node order change
- @param old The old ordering
- @param new The new ordering
- @result A node order change
- */
-+ (GraphChange*)nodeOrderChangeFrom:(NSArray*)old to:(NSArray*)new moved:(NSSet*)affected;
-
-/*!
- @brief Construct an edge order change
- @param old The old ordering
- @param new The new ordering
- @result A edge order change
- */
-+ (GraphChange*)edgeOrderChangeFrom:(NSArray*)old to:(NSArray*)new moved:(NSSet*)affected;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/GraphChange.m b/tikzit-old/src/common/GraphChange.m
deleted file mode 100644
index 29a3939..0000000
--- a/tikzit-old/src/common/GraphChange.m
+++ /dev/null
@@ -1,369 +0,0 @@
-//
-// GraphChange.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-// GraphChange : store the data associated to a single, undo-able change
-// to a graph. An undo manager should maintain a stack of such changes
-// and undo/redo them on request using [graph applyGraphChange:...].
-
-#import "GraphChange.h"
-
-
-@implementation GraphChange
-
-- (id)init {
- return [super init];
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [affectedNodes release];
- [affectedEdges release];
- [nodeRef release];
- [edgeRef release];
- [oldNode release];
- [nwNode release];
- [oldEdge release];
- [nwEdge release];
- [oldNodeTable release];
- [nwNodeTable release];
- [oldEdgeTable release];
- [nwEdgeTable release];
- [oldGraphData release];
- [nwGraphData release];
- [oldNodeOrder release];
- [nwNodeOrder release];
- [oldEdgeOrder release];
- [nwEdgeOrder release];
-
- [super dealloc];
-#endif
-}
-
-@synthesize changeType;
-@synthesize shiftPoint, horizontal;
-@synthesize affectedEdges, affectedNodes;
-@synthesize edgeRef, nodeRef;
-@synthesize nwNode, oldNode;
-@synthesize nwEdge, oldEdge;
-@synthesize oldNodeTable, nwNodeTable;
-@synthesize oldEdgeTable, nwEdgeTable;
-@synthesize oldBoundingBox, nwBoundingBox;
-@synthesize oldGraphData, nwGraphData;
-@synthesize oldNodeOrder, nwNodeOrder;
-@synthesize oldEdgeOrder, nwEdgeOrder;
-
-- (GraphChange*)invert {
- GraphChange *inverse = [[GraphChange alloc] init];
- [inverse setChangeType:[self changeType]];
- switch ([self changeType]) {
- case GraphAddition:
- [inverse setChangeType:GraphDeletion];
-#if __has_feature(objc_arc)
- inverse->affectedNodes = affectedNodes;
- inverse->affectedEdges = affectedEdges;
-#else
- inverse->affectedNodes = [affectedNodes retain];
- inverse->affectedEdges = [affectedEdges retain];
-#endif
- break;
- case GraphDeletion:
- [inverse setChangeType:GraphAddition];
-#if __has_feature(objc_arc)
- inverse->affectedNodes = affectedNodes;
- inverse->affectedEdges = affectedEdges;
-#else
- inverse->affectedNodes = [affectedNodes retain];
- inverse->affectedEdges = [affectedEdges retain];
-#endif
- break;
- case NodePropertyChange:
-#if __has_feature(objc_arc)
- inverse->nodeRef = nodeRef;
- inverse->oldNode = nwNode;
- inverse->nwNode = oldNode;
-#else
- inverse->nodeRef = [nodeRef retain];
- inverse->oldNode = [nwNode retain];
- inverse->nwNode = [oldNode retain];
-#endif
- break;
- case NodesPropertyChange:
-#if __has_feature(objc_arc)
-
-#else
- inverse->oldNodeTable = [nwNodeTable retain];
- inverse->nwNodeTable = [oldNodeTable retain];
-#endif
- break;
- case EdgePropertyChange:
-#if __has_feature(objc_arc)
- inverse->edgeRef = edgeRef;
- inverse->oldEdge = nwEdge;
- inverse->nwEdge = oldEdge;
-#else
- inverse->edgeRef = [edgeRef retain];
- inverse->oldEdge = [nwEdge retain];
- inverse->nwEdge = [oldEdge retain];
-#endif
- break;
- case EdgesPropertyChange:
-#if __has_feature(objc_arc)
- inverse->oldEdgeTable = nwEdgeTable;
- inverse->nwEdgeTable = oldEdgeTable;
-#else
- inverse->oldEdgeTable = [nwEdgeTable retain];
- inverse->nwEdgeTable = [oldEdgeTable retain];
-#endif
- break;
- case NodesShift:
-#if __has_feature(objc_arc)
- inverse->affectedNodes = affectedNodes;
-#else
- inverse->affectedNodes = [affectedNodes retain];
-#endif
- [inverse setShiftPoint:NSMakePoint(-[self shiftPoint].x,
- -[self shiftPoint].y)];
- break;
- case NodesFlip:
-#if __has_feature(objc_arc)
- inverse->affectedNodes = affectedNodes;
-#else
- inverse->affectedNodes = [affectedNodes retain];
-#endif
- [inverse setHorizontal:[self horizontal]];
- break;
- case EdgesReverse:
-#if __has_feature(objc_arc)
- inverse->affectedEdges = affectedEdges;
-#else
- inverse->affectedEdges = [affectedEdges retain];
-#endif
- break;
- case BoundingBoxChange:
- inverse->oldBoundingBox = nwBoundingBox;
- inverse->nwBoundingBox = oldBoundingBox;
- break;
- case GraphPropertyChange:
-#if __has_feature(objc_arc)
- inverse->oldGraphData = nwGraphData;
- inverse->nwGraphData = oldGraphData;
-#else
- inverse->oldGraphData = [nwGraphData retain];
- inverse->nwGraphData = [oldGraphData retain];
-#endif
- break;
- case NodeOrderChange:
-#if __has_feature(objc_arc)
- inverse->affectedNodes = affectedNodes;
- inverse->oldNodeOrder = nwNodeOrder;
- inverse->nwNodeOrder = oldNodeOrder;
-#else
- inverse->affectedNodes = [affectedNodes retain];
- inverse->oldNodeOrder = [nwNodeOrder retain];
- inverse->nwNodeOrder = [oldNodeOrder retain];
-#endif
- break;
- case EdgeOrderChange:
-#if __has_feature(objc_arc)
- inverse->affectedEdges = affectedEdges;
- inverse->oldEdgeOrder = nwEdgeOrder;
- inverse->nwEdgeOrder = oldEdgeOrder;
-#else
- inverse->affectedEdges = [affectedEdges retain];
- inverse->oldEdgeOrder = [nwEdgeOrder retain];
- inverse->nwEdgeOrder = [oldEdgeOrder retain];
-#endif
- break;
- }
-#if __has_feature(objc_arc)
- return inverse;
-#else
- return [inverse autorelease];
-#endif
-}
-
-+ (GraphChange*)graphAdditionWithNodes:(NSSet *)ns edges:(NSSet *)es {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:GraphAddition];
- [gc setAffectedNodes:ns];
- [gc setAffectedEdges:es];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)graphDeletionWithNodes:(NSSet *)ns edges:(NSSet *)es {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:GraphDeletion];
- [gc setAffectedNodes:ns];
- [gc setAffectedEdges:es];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)propertyChangeOfNode:(Node*)nd fromOld:(Node*)old toNew:(Node*)nw {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:NodePropertyChange];
- [gc setNodeRef:nd];
- [gc setOldNode:old];
- [gc setNwNode:nw];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)propertyChangeOfNodesFromOldCopies:(NSMapTable*)oldC
- toNewCopies:(NSMapTable*)newC {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:NodesPropertyChange];
- [gc setOldNodeTable:oldC];
- [gc setNwNodeTable:newC];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)propertyChangeOfEdge:(Edge*)e fromOld:(Edge *)old toNew:(Edge *)nw {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:EdgePropertyChange];
- [gc setEdgeRef:e];
- [gc setOldEdge:old];
- [gc setNwEdge:nw];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)propertyChangeOfEdgesFromOldCopies:(NSMapTable*)oldC
- toNewCopies:(NSMapTable*)newC {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:EdgesPropertyChange];
- [gc setOldEdgeTable:oldC];
- [gc setNwEdgeTable:newC];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)shiftNodes:(NSSet*)ns byPoint:(NSPoint)p {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:NodesShift];
- [gc setAffectedNodes:ns];
- [gc setShiftPoint:p];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)flipNodes:(NSSet*)ns horizontal:(BOOL)b {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:NodesFlip];
- [gc setAffectedNodes:ns];
- [gc setHorizontal:b];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)reverseEdges:(NSSet*)es {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:EdgesReverse];
- [gc setAffectedEdges:es];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)changeBoundingBoxFrom:(NSRect)oldBB to:(NSRect)newBB {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:BoundingBoxChange];
- [gc setOldBoundingBox:oldBB];
- [gc setNwBoundingBox:newBB];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)propertyChangeOfGraphFrom:(GraphElementData*)oldData to:(GraphElementData*)newData {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:GraphPropertyChange];
- [gc setOldGraphData:oldData];
- [gc setNwGraphData:newData];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)nodeOrderChangeFrom:(NSArray*)old to:(NSArray*)new moved:(NSSet*)affected {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:NodeOrderChange];
- [gc setAffectedNodes:affected];
- [gc setOldNodeOrder:old];
- [gc setNwNodeOrder:new];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-+ (GraphChange*)edgeOrderChangeFrom:(NSArray*)old to:(NSArray*)new moved:(NSSet*)affected {
- GraphChange *gc = [[GraphChange alloc] init];
- [gc setChangeType:EdgeOrderChange];
- [gc setAffectedEdges:affected];
- [gc setOldEdgeOrder:old];
- [gc setNwEdgeOrder:new];
-#if __has_feature(objc_arc)
- return gc;
-#else
- return [gc autorelease];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/GraphElementData.h b/tikzit-old/src/common/GraphElementData.h
deleted file mode 100644
index a65e6df..0000000
--- a/tikzit-old/src/common/GraphElementData.h
+++ /dev/null
@@ -1,94 +0,0 @@
-//
-// GraphElementData.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-#import <Foundation/Foundation.h>
-
-/*!
- @class GraphElementData
- @brief Store extra data associated with a graph, node, or edge.
- @details Store the extra (style, ...) data associated with
- a graph, node, or edge. This data is stored as a mutable
- array of properties. It also implements hash-like accessors,
- but care should be taken using these, as the list can contain
- multiple occurrences of the same key.
-
- Convention: Getters and setters act on the *first* occurrence
- of the key. 'Unsetters' remove *all* occurrences.
- */
-@interface GraphElementData : NSMutableArray {
- NSMutableArray *properties;
-}
-
-- (id)init;
-+ (id)data;
-
-/*!
- @brief Set the given value for the *first* property matching this key. Add a
- new property if it doesn't already exist.
- @param val the value to set
- @param key the key for this property
- */
-- (void)setProperty:(NSString*)val forKey:(NSString*)key;
-
-/*!
- @brief Remove *all* occurences of the property with the given key.
- @param key
- */
-- (void)unsetProperty:(NSString*)key;
-
-/*!
- @brief Return the value of the *first* occurrence of the given key.
- @param key
- */
-- (NSString*)propertyForKey:(NSString*)key;
-
-/*!
- @brief Add the given atom to the list, if it's not already present.
- @param atom
- */
-- (void)setAtom:(NSString*)atom;
-
-/*!
- @brief Remove *all* occurrences of the given atom.
- @param atom
- */
-- (void)unsetAtom:(NSString*)atom;
-
-/*!
- @brief Returns YES if the list contains at least one occurrence of
- the given atom.
- @param atom
- @result A boolean value.
- */
-- (BOOL)isAtomSet:(NSString*)atom;
-
-/*!
- @brief Returns a TikZ-friendly string containing all of the properties.
- @result A string.
- */
-- (NSString*)tikzList;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/GraphElementData.m b/tikzit-old/src/common/GraphElementData.m
deleted file mode 100644
index 41dc9aa..0000000
--- a/tikzit-old/src/common/GraphElementData.m
+++ /dev/null
@@ -1,188 +0,0 @@
-//
-// GraphElementData.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "GraphElementData.h"
-#import "GraphElementProperty.h"
-
-
-@implementation GraphElementData
-
-+ (id)data {
-#if __has_feature(objc_arc)
- return [[self alloc] init];
-#else
- return [[[self alloc] init] autorelease];
-#endif
-}
-
-- (id)init {
- self = [super init];
- if (self) {
- properties = [[NSMutableArray alloc] init];
- }
- return self;
-}
-
-// all of the array messages delegate to 'properties'
-
-- (NSUInteger)count { return [properties count]; }
-- (id)objectAtIndex:(NSUInteger)index {
- return [properties objectAtIndex:index];
-}
-- (NSArray*)objectsAtIndexes:(NSIndexSet*)indexes {
- return [properties objectsAtIndexes:indexes];
-}
-
-#if __has_feature(objc_arc)
-- (void) getObjects:(__unsafe_unretained id*)buffer range:(NSRange)range {
-#else
-- (void) getObjects:(id*)buffer range:(NSRange)range {
-#endif
- [properties getObjects:buffer range:range];
-}
-
-- (void)insertObject:(id)anObject atIndex:(NSUInteger)index {
- [properties insertObject:anObject atIndex:index];
-}
-- (void)removeObjectAtIndex:(NSUInteger)index {
- [properties removeObjectAtIndex:index];
-}
-- (void)addObject:(id)anObject {
- [properties addObject:anObject];
-}
-- (void)removeLastObject {
- [properties removeLastObject];
-}
-- (void)replaceObjectAtIndex:(NSUInteger)index withObject:(id)anObject {
- [properties replaceObjectAtIndex:index withObject:anObject];
-}
-
-#if __has_feature(objc_arc)
-- (NSUInteger) countByEnumeratingWithState:(NSFastEnumerationState *)state
- objects:(__unsafe_unretained id [])stackbuf
- count:(NSUInteger)len {
-#else
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state
- objects:(id *)stackbuf
- count:(NSUInteger)len {
-#endif
- return [properties countByEnumeratingWithState:state objects:stackbuf count:len];
-}
-
-- (void)setProperty:(NSString*)val forKey:(NSString*)key {
- GraphElementProperty *m = [[GraphElementProperty alloc] initWithKeyMatching:key];
- NSInteger idx = [properties indexOfObject:m];
-#if !__has_feature(objc_arc)
- [m release];
-#endif
-
- GraphElementProperty *p;
- if (idx == NSNotFound) {
- p = [[GraphElementProperty alloc] initWithPropertyValue:val forKey:key];
- [properties addObject:p];
-#if !__has_feature(objc_arc)
- [p release];
-#endif
- } else {
- p = [properties objectAtIndex:idx];
- [p setValue:val];
- }
-}
-
-- (void)unsetProperty:(NSString*)key {
- GraphElementProperty *m = [[GraphElementProperty alloc] initWithKeyMatching:key];
- [properties removeObject:m];
-#if !__has_feature(objc_arc)
- [m release];
-#endif
-
-}
-
-- (NSString*)propertyForKey:(NSString*)key {
- GraphElementProperty *m = [[GraphElementProperty alloc] initWithKeyMatching:key];
- NSInteger idx = [properties indexOfObject:m];
-#if !__has_feature(objc_arc)
- [m release];
-#endif
-
-
- if (idx == NSNotFound) {
- return nil;
- }else {
- GraphElementProperty *p = [properties objectAtIndex:idx];
- return [p value];
- }
-}
-
-- (void)setAtom:(NSString*)atom {
- GraphElementProperty *a = [[GraphElementProperty alloc] initWithAtomName:atom];
- if (![properties containsObject:a]) [properties addObject:a];
-#if !__has_feature(objc_arc)
- [a release];
-#endif
-}
-
-- (void)unsetAtom:(NSString*)atom {
- GraphElementProperty *a = [[GraphElementProperty alloc] initWithAtomName:atom];
- [properties removeObject:a];
-#if !__has_feature(objc_arc)
- [a release];
-#endif
-}
-
-- (BOOL)isAtomSet:(NSString*)atom {
- GraphElementProperty *a = [[GraphElementProperty alloc] initWithAtomName:atom];
- BOOL set = [properties containsObject:a];
-#if !__has_feature(objc_arc)
- [a release];
-#endif
- return set;
-}
-
-- (NSString*)tikzList {
- NSString *s = [properties componentsJoinedByString:@", "];
- return ([s isEqualToString:@""]) ? @"" : [NSString stringWithFormat:@"[%@]", s];
-}
-
-- (id)copyWithZone:(NSZone *)zone {
- GraphElementData *cp = [[GraphElementData allocWithZone:zone] init];
- for (GraphElementProperty *p in properties) {
- GraphElementProperty *p2 = [p copy];
- [cp addObject:p2];
-#if !__has_feature(objc_arc)
- [p2 release];
-#endif
- }
- return cp;
-}
-
-- (void)dealloc {
-#if !__has_feature(objc_arc)
- [properties release];
- [super dealloc];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/GraphElementProperty.h b/tikzit-old/src/common/GraphElementProperty.h
deleted file mode 100644
index 057cdbb..0000000
--- a/tikzit-old/src/common/GraphElementProperty.h
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-// GraphElementProperty.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-/*!
- @class GraphElementProperty
- @brief A property. I.e. a single entry in a node's/edge's/graph's
- GraphElementData table.
- */
-@interface GraphElementProperty : NSObject<NSCopying> {
- NSString *key;
- NSString *value;
- BOOL isAtom;
- BOOL isKeyMatch;
-}
-
-@property (copy) NSString *key;
-@property (copy) NSString *value;
-@property (readonly) BOOL isAtom;
-@property (readonly) BOOL isKeyMatch;
-
-/*!
- @brief Initialize a new key-matching object.
- @param k a key to match
- @result A key-matching object.
- */
-- (id)initWithKeyMatching:(NSString*)k;
-+ (id)keyMatching:(NSString*)k;
-
-/*!
- @brief Initialize a new atomic property.
- @param n the atom's name
- @result An atom.
- */
-- (id)initWithAtomName:(NSString*)n;
-+ (id)atom:(NSString*)n;
-
-/*!
- @brief Initialize a new property.
- @param v the property's value
- @param k the associated key
- @result A property.
- */
-- (id)initWithPropertyValue:(NSString*)v forKey:(NSString*)k;
-+ (id)property:(NSString*)k withValue:(NSString*)v;
-
-/*!
- @brief A matching function for properties.
- @details Two properties match iff their keys match and one of the following:
- (a) they are both atomic, (b) one is a key-matching and one is a non-atomic
- property, or (c) they are both non-atomic and their values match.
- @param object another GraphElementProperty
- @result A boolean.
- */
-- (BOOL)matches:(GraphElementProperty*)object;
-
-/*!
- @brief An alias for <tt>matches:</tt>. This allows one to use built-in methods that
- filter on <tt>isEqual:</tt> for <tt>NSObject</tt>s.
- @param object another GraphElementProperty
- @result A boolean.
- */
-- (BOOL)isEqual:(id)object;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/GraphElementProperty.m b/tikzit-old/src/common/GraphElementProperty.m
deleted file mode 100644
index 25e1b15..0000000
--- a/tikzit-old/src/common/GraphElementProperty.m
+++ /dev/null
@@ -1,164 +0,0 @@
-//
-//
-// GraphElementProperty.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "GraphElementProperty.h"
-#import "NSString+Tikz.h"
-
-@implementation GraphElementProperty
-
-+ (id)atom:(NSString*)n {
-#if __has_feature(objc_arc)
- return [[self alloc] initWithAtomName:n];
-#else
- return [[[self alloc] initWithAtomName:n] autorelease];
-#endif
-}
-+ (id)property:(NSString*)k withValue:(NSString*)v {
-#if __has_feature(objc_arc)
- return [[self alloc] initWithPropertyValue:v forKey:k];
-#else
- return [[[self alloc] initWithPropertyValue:v forKey:k] autorelease];
-#endif
-}
-+ (id)keyMatching:(NSString*)k {
-#if __has_feature(objc_arc)
- return [[self alloc] initWithKeyMatching:k];
-#else
- return [[[self alloc] initWithKeyMatching:k] autorelease];
-#endif
-}
-
-- (id)initWithAtomName:(NSString*)n {
- self = [super init];
- if (self) {
- [self setKey:n];
- isAtom = YES;
- }
- return self;
-}
-
-- (id)initWithPropertyValue:(NSString*)v forKey:(NSString*)k {
- self = [super init];
- if (self) {
- [self setKey:k];
- [self setValue:v];
- }
- return self;
-}
-
-- (id)initWithKeyMatching:(NSString*)k {
- self = [super init];
- if (self) {
- [self setKey:k];
- isKeyMatch = YES;
- }
- return self;
-}
-
-- (void) dealloc {
-#if ! __has_feature(objc_arc)
- [key release];
- [value release];
- [super dealloc];
-#endif
-}
-
-- (void)setValue:(NSString *)v {
- if (value != v) {
-#if ! __has_feature(objc_arc)
- [value release];
-#endif
- value = [v copy];
- }
-}
-
-- (NSString*)value {
- if (isAtom) {
- return @"(atom)";
- } else {
- return value;
- }
-}
-
-
-- (void)setKey:(NSString *)k {
- if (key != k) {
-#if ! __has_feature(objc_arc)
- [key release];
-#endif
- key = [k copy];
- }
- if (key == nil)
- key = @""; // don't allow nil keys
-}
-
-- (NSString*)key {
- return key;
-}
-
-- (BOOL)isAtom { return isAtom; }
-- (BOOL)isKeyMatch { return isKeyMatch; }
-
-- (BOOL)matches:(GraphElementProperty*)object {
- // properties and atoms are taken to be incomparable
- if ([self isAtom] != [object isAtom]) return NO;
-
- // only compare keys if (a) we are both atoms, (b) i am a key match, or (c) object is a key match
- if (([self isAtom] && [object isAtom]) || [self isKeyMatch] || [object isKeyMatch]) {
- return [[self key] isEqual:[object key]];
- }
-
- // otherwise compare key and value
- return [[self key] isEqual:[object key]] && [[self value] isEqual:[object value]];
-}
-
-- (BOOL)isEqual:(id)object {
- return [self matches:object];
-}
-
-- (id)copyWithZone:(NSZone*)zone {
- if (isAtom) {
- return [[GraphElementProperty allocWithZone:zone] initWithAtomName:[self key]];
- } else if (isKeyMatch) {
- return [[GraphElementProperty allocWithZone:zone] initWithKeyMatching:[self key]];
- } else {
- return [[GraphElementProperty allocWithZone:zone] initWithPropertyValue:[self value] forKey:[self key]];
- }
-}
-
-- (NSString*)description {
- if ([self isAtom]) {
- return [[self key] tikzEscapedString];
- } else if ([self isKeyMatch]) {
- return [NSString stringWithFormat:@"%@=*", [[self key] tikzEscapedString]];
- } else {
- return [NSString stringWithFormat:@"%@=%@",
- [[self key] tikzEscapedString],
- [[self value] tikzEscapedString]];
- }
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/Grid.h b/tikzit-old/src/common/Grid.h
deleted file mode 100644
index b267536..0000000
--- a/tikzit-old/src/common/Grid.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import "RenderContext.h"
-#import "Transformer.h"
-
-/*!
- * Provides a grid, which can be use for snapping points
- *
- * The grid is divided into cells, and each cell is further subdivided.
- * These subdivisions are the snap points for the grid.
- */
-@interface Grid: NSObject <NSCopying> {
- Transformer *transformer;
- float spacing;
- int cellSubdivisions;
-}
-
-/*!
- * The number of times to subdivide the edge of each cell
- *
- * Each cell will be divided into cellSubdivisions^2 squares.
- */
-@property (assign) int cellSubdivisions;
-
-/*!
- * The cell spacing
- *
- * Each cell will be @p cellSpacing wide and @p cellSpacing high.
- */
-@property (assign) float cellSpacing;
-
-
-/*!
- * Create a new grid object.
- *
- * @param sp the cell spacing - this will be the width and height of each cell
- * @param subs the number of cell subdivisions; the cell will end up being
- * divided into subs*subs squares that are each sp/subs wide and high
- * @param t the transformer to be used when snapping screen points
- */
-+ (Grid*) gridWithSpacing:(float)sp subdivisions:(int)subs transformer:(Transformer*)t;
-/*!
- * Initialize a grid object.
- *
- * @param sp the cell spacing - this will be the width and height of each cell
- * @param subs the number of cell subdivisions; each cell will end up being
- * divided into subs*subs squares that are each sp/subs wide and high
- * @param t the transformer to be used when snapping screen points
- */
-- (id) initWithSpacing:(float)sp subdivisions:(int)subs transformer:(Transformer*)t;
-
-/*!
- * Snap a point in screen co-ordinates
- *
- * @param p the point to snap, in screen co-ordinates
- * @result @p p aligned to the nearest corner of a cell subdivision
- */
-- (NSPoint) snapScreenPoint:(NSPoint)p;
-/*!
- * Snap a point in base co-ordinates
- *
- * @param p the point to snap
- * @result @p p aligned to the nearest corner of a cell subdivision
- */
-- (NSPoint) snapPoint:(NSPoint)p;
-
-/**
- * Renders the grid
- *
- * The grid is rendered across the entire surface (subject to the context's
- * clip).
- *
- * The internal transformer is used to convert between graph co-ordinates
- * and graphics co-ordinates.
- *
- * @param cr the context to render in
- */
-- (void) renderGridInContext:(id<RenderContext>)cr;
-
-/**
- * Renders the grid
- *
- * The grid is rendered across the entire surface (subject to the context's
- * clip).
- *
- * @param cr the context to render in
- * @param t a transformer that will be used to map graph co-ordinates
- * to graphics co-ordinates
- */
-- (void) renderGridInContext:(id<RenderContext>)cr transformer:(Transformer*)t;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Grid.m b/tikzit-old/src/common/Grid.m
deleted file mode 100644
index f597a4a..0000000
--- a/tikzit-old/src/common/Grid.m
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Grid.h"
-#import "util.h"
-
-@implementation Grid
-
-+ (Grid*) gridWithSpacing:(float)sp subdivisions:(int)subs transformer:(Transformer*)t {
- return [[[self alloc] initWithSpacing:sp subdivisions:subs transformer:t] autorelease];
-}
-
-- (id) initWithSpacing:(float)sp subdivisions:(int)subs transformer:(Transformer*)t {
- self = [super init];
-
- if (self) {
- transformer = [t retain];
- spacing = sp;
- cellSubdivisions = subs;
- }
-
- return self;
-}
-
-- (id) copyWithZone:(NSZone*)zone {
- return [[Grid allocWithZone:zone]
- initWithSpacing:spacing
- subdivisions:cellSubdivisions
- transformer:transformer];
-}
-
-- (void) dealloc {
- [transformer release];
- [super dealloc];
-}
-
-- (int) cellSubdivisions {
- return cellSubdivisions;
-}
-
-- (void) setCellSubdivisions:(int)count {
- cellSubdivisions = count;
-}
-
-- (float) cellSpacing {
- return spacing;
-}
-
-- (void) setCellSpacing:(float)sp {
- spacing = sp;
-}
-
-- (NSPoint) snapScreenPoint:(NSPoint)point {
- NSPoint gridPoint = [transformer fromScreen:point];
- return [transformer toScreen:[self snapPoint:gridPoint]];
-}
-
-- (NSPoint) snapPoint:(NSPoint)p {
- const float snapDistance = spacing/(float)cellSubdivisions;
- p.x = roundToNearest (snapDistance, p.x);
- p.y = roundToNearest (snapDistance, p.y);
- return p;
-}
-
-- (void) _setupLinesForContext:(id<RenderContext>)context withSpacing:(float)offset omittingEvery:(int)omitEvery origin:(NSPoint)origin {
- NSRect clip = [context clipBoundingBox];
- float clipx1 = clip.origin.x;
- float clipx2 = clipx1 + clip.size.width;
- float clipy1 = clip.origin.y;
- float clipy2 = clipy1 + clip.size.height;
-
- // left of the Y axis, moving outwards
- unsigned int count = 1;
- float x = origin.x - offset;
- while (x >= clipx1) {
- if (omitEvery == 0 || (count % omitEvery != 0)) {
- [context moveTo:NSMakePoint(x, clipy1)];
- [context lineTo:NSMakePoint(x, clipy2)];
- }
-
- x -= offset;
- ++count;
- }
- // right of the Y axis, moving outwards
- count = 1;
- x = origin.x + offset;
- while (x <= clipx2) {
- if (omitEvery == 0 || (count % omitEvery != 0)) {
- [context moveTo:NSMakePoint(x, clipy1)];
- [context lineTo:NSMakePoint(x, clipy2)];
- }
-
- x += offset;
- ++count;
- }
-
- // above the Y axis, moving outwards
- count = 1;
- float y = origin.y - offset;
- while (y >= clipy1) {
- if (omitEvery == 0 || (count % omitEvery != 0)) {
- [context moveTo:NSMakePoint(clipx1, y)];
- [context lineTo:NSMakePoint(clipx2, y)];
- }
-
- y -= offset;
- ++count;
- }
- // below the Y axis, moving outwards
- count = 1;
- y = origin.y + offset;
- while (y <= clipy2) {
- if (omitEvery == 0 || (count % omitEvery != 0)) {
- [context moveTo:NSMakePoint(clipx1, y)];
- [context lineTo:NSMakePoint(clipx2, y)];
- }
-
- y += offset;
- ++count;
- }
-}
-
-- (void) _renderSubdivisionsWithContext:(id<RenderContext>)context origin:(NSPoint)origin cellSize:(float)cellSize {
- const float offset = cellSize / cellSubdivisions;
-
- [self _setupLinesForContext:context withSpacing:offset omittingEvery:cellSubdivisions origin:origin];
-
- [context strokePathWithColor:MakeSolidRColor (0.9, 0.9, 1.0)];
-}
-
-- (void) _renderCellsWithContext:(id<RenderContext>)context origin:(NSPoint)origin cellSize:(float)cellSize {
- [self _setupLinesForContext:context withSpacing:cellSize omittingEvery:0 origin:origin];
-
- [context strokePathWithColor:MakeSolidRColor (0.8, 0.8, 0.9)];
-}
-
-- (void) _renderAxesWithContext:(id<RenderContext>)context origin:(NSPoint)origin {
- NSRect clip = [context clipBoundingBox];
-
- [context moveTo:NSMakePoint(origin.x, clip.origin.y)];
- [context lineTo:NSMakePoint(origin.x, clip.origin.y + clip.size.height)];
- [context moveTo:NSMakePoint(clip.origin.x, origin.y)];
- [context lineTo:NSMakePoint(clip.origin.x + clip.size.width, origin.y)];
-
- [context strokePathWithColor:MakeSolidRColor (0.6, 0.6, 0.7)];
-}
-
-- (void) renderGridInContext:(id<RenderContext>)cr {
- [self renderGridInContext:cr transformer:transformer];
-}
-
-- (void) renderGridInContext:(id<RenderContext>)context transformer:(Transformer*)t {
- const NSPoint origin = [t toScreen:NSZeroPoint];
- const float cellSize = [t scaleToScreen:spacing];
-
- [context saveState];
-
- // common line settings
- [context setLineWidth:1.0];
- [context setAntialiasMode:AntialiasDisabled];
-
- [self _renderSubdivisionsWithContext:context origin:origin cellSize:cellSize];
- [self _renderCellsWithContext:context origin:origin cellSize:cellSize];
- [self _renderAxesWithContext:context origin:origin];
-
- [context restoreState];
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSError+Tikzit.h b/tikzit-old/src/common/NSError+Tikzit.h
deleted file mode 100644
index 0f45fba..0000000
--- a/tikzit-old/src/common/NSError+Tikzit.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-
-NSString* const TZErrorDomain;
-
-enum {
- TZ_ERR_OTHER = 1,
- TZ_ERR_BADSTATE,
- TZ_ERR_BADFORMAT,
- TZ_ERR_IO,
- TZ_ERR_TOOL_FAILED,
- TZ_ERR_NOTDIRECTORY,
- TZ_ERR_PARSE
-};
-
-NSString* const TZToolOutputErrorKey;
-
-@interface NSError(Tikzit)
-+ (NSString*)tikzitErrorDomain;
-+ (id) errorWithMessage:(NSString*)message code:(NSInteger)code cause:(NSError*)cause;
-+ (id) errorWithMessage:(NSString*)message code:(NSInteger)code;
-+ (id) errorWithLibcError:(NSInteger)errnum;
-- (NSString*)toolOutput;
-@end
-
-void logError (NSError *error, NSString *message);
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSError+Tikzit.m b/tikzit-old/src/common/NSError+Tikzit.m
deleted file mode 100644
index 6b9404b..0000000
--- a/tikzit-old/src/common/NSError+Tikzit.m
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NSError+Tikzit.h"
-
-NSString* const TZErrorDomain = @"tikzit";
-
-NSString* const TZToolOutputErrorKey = @"tool-output";
-
-@implementation NSError(Tikzit)
-+ (NSString*)tikzitErrorDomain {
- return TZErrorDomain;
-}
-
-+ (id) errorWithMessage:(NSString*)message code:(NSInteger)code cause:(NSError*)cause {
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionaryWithCapacity:2];
- [errorDetail setValue:message forKey:NSLocalizedDescriptionKey];
- if (cause)
- [errorDetail setValue:cause forKey:NSUnderlyingErrorKey];
- return [self errorWithDomain:TZErrorDomain code:code userInfo:errorDetail];
-}
-
-+ (id) errorWithMessage:(NSString*)message code:(NSInteger)code {
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionaryWithObject:message
- forKey:NSLocalizedDescriptionKey];
- return [self errorWithDomain:TZErrorDomain code:code userInfo:errorDetail];
-}
-
-+ (id) errorWithLibcError:(NSInteger)errnum {
- NSString *message = [NSString stringWithUTF8String:strerror(errnum)];
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionaryWithObject:message
- forKey:NSLocalizedDescriptionKey];
- return [self errorWithDomain:NSPOSIXErrorDomain code:errnum userInfo:errorDetail];
-}
-
-- (NSString*)toolOutput {
- return [[self userInfo] objectForKey:TZToolOutputErrorKey];
-}
-
-@end
-
-void logError (NSError *error, NSString *message) {
- if (message == nil) {
- NSLog (@"%@", [error localizedDescription]);
- } else {
- NSLog (@"%@: %@", message, [error localizedDescription]);
- }
-}
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSFileManager+Utils.h b/tikzit-old/src/common/NSFileManager+Utils.h
deleted file mode 100644
index 1349919..0000000
--- a/tikzit-old/src/common/NSFileManager+Utils.h
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// NSFileManager+Utils.h
-// TikZiT
-//
-// Copyright 2010 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-@interface NSFileManager(Utils)
-- (BOOL) ensureDirectoryExists:(NSString*)path error:(NSError**)error;
-@end
-
-// vi:ft=objc:sts=4:sw=4:ts=4:noet
diff --git a/tikzit-old/src/common/NSFileManager+Utils.m b/tikzit-old/src/common/NSFileManager+Utils.m
deleted file mode 100644
index 87ede95..0000000
--- a/tikzit-old/src/common/NSFileManager+Utils.m
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// NSFileManager+Utils.h
-// TikZiT
-//
-// Copyright 2010 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "NSError+Tikzit.h"
-
-@implementation NSFileManager(Utils)
-- (BOOL) ensureDirectoryExists:(NSString*)directory error:(NSError**)error {
- BOOL isDirectory = NO;
- if (![self fileExistsAtPath:directory isDirectory:&isDirectory]) {
- if (![self createDirectoryAtPath:directory withIntermediateDirectories:YES attributes:nil error:error]) {
- return NO;
- }
- } else if (!isDirectory) {
- if (error) {
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionary];
- [errorDetail setValue:@"Directory is a file" forKey:NSLocalizedDescriptionKey];
- [errorDetail setValue:directory forKey:NSFilePathErrorKey];
- *error = [NSError errorWithDomain:TZErrorDomain code:TZ_ERR_NOTDIRECTORY userInfo:errorDetail];
- }
- return NO;
- }
- return YES;
-}
-@end
-
-// vi:ft=objc:sts=4:sw=4:ts=4:noet
diff --git a/tikzit-old/src/common/NSString+LatexConstants.h b/tikzit-old/src/common/NSString+LatexConstants.h
deleted file mode 100644
index f4b5236..0000000
--- a/tikzit-old/src/common/NSString+LatexConstants.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// NSString+LatexConstants.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-
-@interface NSString(LatexConstants)
-
-- (NSString*)stringByExpandingLatexConstants;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSString+LatexConstants.m b/tikzit-old/src/common/NSString+LatexConstants.m
deleted file mode 100644
index 634c189..0000000
--- a/tikzit-old/src/common/NSString+LatexConstants.m
+++ /dev/null
@@ -1,212 +0,0 @@
-//
-// NSString+LatexConstants.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "NSString+LatexConstants.h"
-
-// can't use sizeof() in non-fragile ABI (eg: clang)
-#define texConstantCount 63
-static NSString *texConstantNames[texConstantCount] = {
- @"alpha",
- @"beta",
- @"gamma",
- @"delta",
- @"epsilon",
- @"zeta",
- @"eta",
- @"theta",
- @"iota",
- @"kappa",
- @"lambda",
- @"mu",
- @"nu",
- @"xi",
- @"pi",
- @"rho",
- @"sigma",
- @"tau",
- @"upsilon",
- @"phi",
- @"chi",
- @"psi",
- @"omega",
- @"Gamma",
- @"Delta",
- @"Theta",
- @"Lambda",
- @"Xi",
- @"Pi",
- @"Sigma",
- @"Upsilon",
- @"Phi",
- @"Psi",
- @"Omega",
-
- @"pm",
- @"to",
- @"Rightarrow",
- @"Leftrightarrow",
- @"forall",
- @"partial",
- @"exists",
- @"emptyset",
- @"nabla",
- @"in",
- @"notin",
- @"prod",
- @"sum",
- @"surd",
- @"infty",
- @"wedge",
- @"vee",
- @"cap",
- @"cup",
- @"int",
- @"approx",
- @"neq",
- @"equiv",
- @"leq",
- @"geq",
- @"subset",
- @"supset",
- @"cdot",
- @"ldots"
-};
-
-static char * texConstantCodes[texConstantCount] = {
- "\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7",
- "\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be",
- "\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7",
- "\u03c8","\u03c9","\u0393","\u0394","\u0398","\u039b","\u039e",
- "\u03a0","\u03a3","\u03a5","\u03a6","\u03a8","\u03a9",
-
- "\u00b1","\u2192","\u21d2","\u21d4","\u2200","\u2202","\u2203",
- "\u2205","\u2207","\u2208","\u2209","\u220f","\u2211","\u221a",
- "\u221e","\u2227","\u2228","\u2229","\u222a","\u222b","\u2248",
- "\u2260","\u2261","\u2264","\u2265","\u2282","\u2283","\u22c5",
- "\u2026"
-};
-
-#define texModifierCount 10
-static NSString *texModifierNames[texModifierCount] = {
- @"tiny",
- @"scriptsize",
- @"footnotesize",
- @"small",
- @"normalsize",
- @"large",
- @"Large",
- @"LARGE",
- @"huge",
- @"Huge"
-};
-
-static NSDictionary *texConstants = nil;
-static NSSet *texModifiers = nil;
-
-@implementation NSString(LatexConstants)
-
-- (NSString*)stringByExpandingLatexConstants {
-
- if (texConstants == nil) {
- NSMutableDictionary *constants = [[NSMutableDictionary alloc] initWithCapacity:texConstantCount];
- for (int i = 0; i < texConstantCount; ++i) {
- [constants setObject:[NSString stringWithUTF8String:texConstantCodes[i]] forKey:texConstantNames[i]];
- }
- texConstants = constants;
- }
- if (texModifiers == nil) {
- texModifiers = [[NSSet alloc] initWithObjects:texModifierNames count:texModifierCount];
- }
-
- NSMutableString *buf = [[NSMutableString alloc] initWithCapacity:[self length]];
- NSMutableString *wordBuf = [[NSMutableString alloc] initWithCapacity:10];
-
- unichar c_a = [@"a" characterAtIndex:0];
- unichar c_z = [@"z" characterAtIndex:0];
- unichar c_A = [@"A" characterAtIndex:0];
- unichar c_Z = [@"Z" characterAtIndex:0];
-
- int state = 0;
- // a tiny little DFA to replace \\([\w*]) with unicode of $1
- unichar c;
- NSString *code;
- int i;
- for (i = 0; i<[self length]; ++i) {
- c = [self characterAtIndex:i];
- switch (state) {
- case 0:
- if (c=='\\') {
- state = 1;
- } else if (c!='$') {
- [buf appendFormat:@"%C", c];
- }
- break;
- case 1:
- if ((c>=c_a && c<=c_z) || (c>=c_A && c<=c_Z)) {
- [wordBuf appendFormat:@"%C", c];
- } else {
- code = [texConstants objectForKey:wordBuf];
- if (code != nil) {
- [buf appendString:code];
- } else if (![texModifiers containsObject:wordBuf]) {
- [buf appendFormat:@"\\%@", wordBuf];
- }
-
- [wordBuf setString:@""];
- if (c=='\\') {
- state = 1;
- } else {
- if (c!='$') {
- [buf appendFormat:@"%C", c];
- }
- state = 0;
- }
-
- }
- break;
- }
- }
-
- if (state == 1) {
- code = [texConstants objectForKey:wordBuf];
- if (code != nil) {
- [buf appendString:code];
- } else if (![texModifiers containsObject:wordBuf]) {
- [buf appendFormat:@"\\%@", wordBuf];
- }
- }
-
- NSString *ret = [buf copy];
-#if __has_feature(objc_arc)
- return ret;
-#else
- [buf release];
- [wordBuf release];
-
- return [ret autorelease];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSString+Tikz.h b/tikzit-old/src/common/NSString+Tikz.h
deleted file mode 100644
index ea6ea40..0000000
--- a/tikzit-old/src/common/NSString+Tikz.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright 2013 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface NSString (Tikz)
- - (NSString*) tikzEscapedString;
- - (BOOL) isValidTikzPropertyNameOrValue;
- - (BOOL) isValidAnchor;
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSString+Tikz.m b/tikzit-old/src/common/NSString+Tikz.m
deleted file mode 100644
index 1e3073b..0000000
--- a/tikzit-old/src/common/NSString+Tikz.m
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright 2013 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NSString+Tikz.h"
-#import "TikzGraphAssembler.h"
-
-@implementation NSString (Tikz)
-
-- (NSString*) tikzEscapedString {
- static NSCharacterSet *avoid = nil;
- if (avoid == nil)
-#if __has_feature(objc_arc)
- avoid = [[NSCharacterSet characterSetWithCharactersInString:@"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>-'0123456789. "] invertedSet];
-#else
- avoid = [[[NSCharacterSet characterSetWithCharactersInString:@"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>-'0123456789. "] invertedSet] retain];
-#endif
-
-
- if ([self rangeOfCharacterFromSet:avoid].length > 0) {
- return [NSString stringWithFormat:@"{%@}", self];
- } else {
-#if __has_feature(objc_arc)
- return self;
-#else
- return [[self retain] autorelease];
-#endif
- }
-}
-
-- (BOOL) isValidTikzPropertyNameOrValue {
- NSUInteger length = [self length];
- unsigned int brace_depth = 0;
- unsigned int escape = 0;
- for (NSUInteger i = 0; i < length; ++i) {
- unichar c = [self characterAtIndex:i];
-
- if (escape) {
- escape = 0;
- } else if (c == '\\') {
- escape = 1;
- } else if (c == '{') {
- brace_depth++;
- } else if (c == '}') {
- if (brace_depth == 0)
- return NO;
- brace_depth--;
- }
- }
- return !escape && brace_depth == 0;
-}
-
-- (BOOL) isValidAnchor {
- return [TikzGraphAssembler validateTikzEdgeAnchor:self];
-}
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSString+Util.h b/tikzit-old/src/common/NSString+Util.h
deleted file mode 100644
index 548edb3..0000000
--- a/tikzit-old/src/common/NSString+Util.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2013 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface NSString (Util)
- + (NSString*) stringWithContentsOfFile:(NSString*)path
- error:(NSError**)error;
- - (id) initWithContentsOfFile:(NSString*)path
- error:(NSError**)error;
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/NSString+Util.m b/tikzit-old/src/common/NSString+Util.m
deleted file mode 100644
index b18f397..0000000
--- a/tikzit-old/src/common/NSString+Util.m
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright 2013 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import "NSString+Util.h"
-#import "NSError+Tikzit.h"
-
-@implementation NSString (Util)
-+ (NSString*) stringWithContentsOfFile:(NSString*)path
- error:(NSError**)error
-{
- return [[[self alloc] initWithContentsOfFile:path error:error] autorelease];
-}
-- (id) initWithContentsOfFile:(NSString*)path
- error:(NSError**)error
-{
- // Fun fact: on GNUstep, at least,
- // [stringWithContentsOfFile:usedEncoding:error:] only
- // sets error objects if the decoding fails, not if file
- // access fails.
- // Fun fact 2: on GNUstep, trying to read a directory using
- // [stringWithContentsOfFile:] causes an out-of-memory error;
- // hence we do these checks *before* trying to read the file.
- NSFileManager *fm = [NSFileManager defaultManager];
- BOOL isDir = NO;
- NSString *msg = nil;
- if (![fm fileExistsAtPath:path isDirectory:&isDir]) {
- msg = [NSString stringWithFormat:@"\"%@\" does not exist", path];
- } else if (isDir) {
- msg = [NSString stringWithFormat:@"\"%@\" is a directory", path];
- } else if (![fm isReadableFileAtPath:path]) {
- msg = [NSString stringWithFormat:@"\"%@\" is not readable", path];
- }
- if (msg != nil) {
- if (error) {
- *error = [NSError errorWithMessage:msg
- code:TZ_ERR_IO];
- }
- return nil;
- }
- self = [self initWithContentsOfFile:path];
- if (self == nil) {
- if (error) {
- *error = [NSError errorWithMessage:@"unknown error"
- code:TZ_ERR_IO];
- }
- }
- return self;
-}
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Node.h b/tikzit-old/src/common/Node.h
deleted file mode 100644
index 1e580ce..0000000
--- a/tikzit-old/src/common/Node.h
+++ /dev/null
@@ -1,181 +0,0 @@
-//
-// Node.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-// Node : store the data associated with a node.
-
-#import <Foundation/Foundation.h>
-
-#import "NodeStyle.h"
-#import "GraphElementData.h"
-
-@class GraphElementProperty;
-@class Shape;
-@class Transformer;
-
-/*!
- @class Node
- @brief A graph node, with associated location and style data.
- */
-@interface Node : NSObject<NSCopying> {
- NSPoint point;
- NodeStyle *style;
- NSString *name;
- NSString *label;
- GraphElementData *data;
-}
-
-/*!
- @property shape
- @brief The shape to use
- @detail This is a convenience property that resolves the shape name
- from the style, and uses a circle if there is no style.
-
- This property is NOT KVO-compliant
- */
-@property (readonly) Shape *shape;
-
-/*!
- @property point
- @brief The point where this node is located.
- */
-@property (assign) NSPoint point;
-
-/*!
- @property style
- @brief The style of this node.
- */
-@property (retain) NodeStyle *style;
-
-/*!
- @property name
- @brief The name of this node. This is a temporary name and may change between
- successive TikZ outputs.
- */
-@property (copy) NSString *name;
-
-/*!
- @property label
- @brief The latex label that appears on this node.
- */
-@property (copy) NSString *label;
-
-/*!
- @property data
- @brief Associated extra data.
- */
-@property (copy) GraphElementData *data;
-
-// KVC methods
-- (void) insertObject:(GraphElementProperty*)gep
- inDataAtIndex:(NSUInteger)index;
-- (void) removeObjectFromDataAtIndex:(NSUInteger)index;
-- (void) replaceObjectInDataAtIndex:(NSUInteger)index
- withObject:(GraphElementProperty*)gep;
-
-/*!
- @brief Initialize a new node with the given point.
- @param p a point.
- @result A node.
- */
-- (id)initWithPoint:(NSPoint)p;
-
-/*!
- @brief Initialize a new node at (0,0).
- @result A node.
- */
-- (id)init;
-
-/*!
- @brief Composes the shape transformer with another transformer
- @param t The transform to apply before the shape transform
- @result A transformer that first maps according to t, then according
- to -shapeTransformer.
- */
-- (Transformer*) shapeTransformerFromTransformer:(Transformer*)t;
-
-/*!
- @brief A transformer that may be used to convert the shape to the
- right position and scale
- */
-- (Transformer*) shapeTransformer;
-
-/*!
- @brief The bounding rect in the given co-ordinate system
- @detail This is the bounding rect of the shape (after being
- suitably translated and scaled). The label is not
- considered.
- @param shapeTrans The mapping from graph co-ordinates to the required
- co-ordinates
- @result The bounding rectangle
- */
-- (NSRect) boundsUsingShapeTransform:(Transformer*)shapeTrans;
-
-/*!
- @brief The bounding rect in graph co-ordinates
- @detail This is the bounding rect of the shape (after being suitably
- translated and scaled). The label is not considered.
- */
-- (NSRect) boundingRect;
-
-/*!
- @brief Try to attach a style of the correct name from the given style list.
- @param styles an array of styles.
- @result YES if successfully attached, NO otherwise.
- */
-- (BOOL)attachStyleFromTable:(NSArray*)styles;
-
-/*!
- @brief Set node properties from <tt>GraphElementData</tt>.
- */
-- (void)updateData;
-
-/*!
- @brief Set properties of this node to match the given node.
- @param nd a node to mimic.
- */
-- (void)setPropertiesFromNode:(Node *)nd;
-
-/*!
- @brief Compare a node to another node using a lex ordering on coordinates.
- @param nd another node.
- @result A comparison result.
- */
-- (NSComparisonResult)compareTo:(id)nd;
-
-/*!
- @brief Factory method to construct a node with the given point.
- @param p a point.
- @result A node.
- */
-+ (Node*)nodeWithPoint:(NSPoint)p;
-
-/*!
- @brief Factory method to construct a node at (0,0).
- @result A node.
- */
-+ (Node*)node;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Node.m b/tikzit-old/src/common/Node.m
deleted file mode 100644
index c5b11d1..0000000
--- a/tikzit-old/src/common/Node.m
+++ /dev/null
@@ -1,214 +0,0 @@
-//
-// Node.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Node.h"
-
-#import "Shape.h"
-
-
-@implementation Node
-
-- (id)initWithPoint:(NSPoint)p {
- self = [super init];
- if (self) {
- data = [[GraphElementData alloc] init];
- style = nil;
- label = @"";
- point = p;
- }
- return self;
-}
-
-- (id)init {
- return [self initWithPoint:NSMakePoint(0.0f, 0.0f)];
-}
-
-- (id)copyWithZone:(NSZone*)z {
- Node *cp = [[Node allocWithZone:z] init];
- [cp setPropertiesFromNode:self];
- return cp;
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [name release];
- [style release];
- [data release];
- [label release];
- [super dealloc];
-#endif
-}
-
-- (Shape*) shape {
- if (style) {
- return [Shape shapeForName:[style shapeName]];
- } else {
- return nil;
- }
-}
-
-- (Transformer*) shapeTransformerFromTransformer:(Transformer*)t {
- // we take a copy to keep the reflection attributes
-#if ! __has_feature(objc_arc)
- Transformer *transformer = [[t copy] autorelease];
-#else
- Transformer *transformer = [t copy];
-#endif
- NSPoint screenPos = [t toScreen:point];
- [transformer setOrigin:screenPos];
- float scale = [t scale];
- if (style) {
- scale *= [style scale];
- }
- [transformer setScale:scale];
- return transformer;
-}
-
-- (Transformer*) shapeTransformer {
- float scale = 1.0f;
- if (style) {
- scale = [style scale];
- }
- return [Transformer transformerWithOrigin:point andScale:scale];
-}
-
-- (NSRect) boundsUsingShapeTransform:(Transformer*)shapeTrans {
- //if (style) {
- return [shapeTrans rectToScreen:[[self shape] boundingRect]];
- /*} else {
- NSRect r = NSZeroRect;
- r.origin = [shapeTrans toScreen:[self point]];
- return r;
- }*/
-}
-
-- (NSRect) boundingRect {
- return [self boundsUsingShapeTransform:[self shapeTransformer]];
-}
-
-- (BOOL)attachStyleFromTable:(NSArray*)styles {
-#if __has_feature(objc_arc)
- NSString *style_name = [data propertyForKey:@"style"];
-#else
- NSString *style_name = [[[data propertyForKey:@"style"] retain] autorelease];
-#endif
-
- [self setStyle:nil];
-
- // 'none' is a reserved style
- if (style_name == nil || [style_name isEqualToString:@"none"]) return YES;
-
- for (NodeStyle *s in styles) {
- if ([[s name] compare:style_name]==NSOrderedSame) {
- [self setStyle:s];
- return YES;
- }
- }
-
- // if we didn't find a style, fill in a default one
- [self setStyle:[NodeStyle defaultNodeStyleWithName:style_name]];
- return NO;
-}
-
-- (void)updateData {
- if (style == nil) {
- [data setProperty:@"none" forKey:@"style"];
- } else {
- [data setProperty:[style name] forKey:@"style"];
- }
-}
-
-- (void)setPropertiesFromNode:(Node*)nd {
- [self setPoint:[nd point]];
- [self setStyle:[nd style]];
- [self setName:[nd name]];
- [self setData:[nd data]];
- [self setLabel:[nd label]];
-}
-
-+ (Node*)nodeWithPoint:(NSPoint)p {
-#if __has_feature(objc_arc)
- return [[Node alloc] initWithPoint:p];
-#else
- return [[[Node alloc] initWithPoint:p] autorelease];
-#endif
-}
-
-+ (Node*)node {
-#if __has_feature(objc_arc)
- return [[Node alloc] init];
-#else
- return [[[Node alloc] init] autorelease];
-#endif
-}
-
-
-// perform a lexicographic ordering (-y, x) on coordinates.
-- (NSComparisonResult)compareTo:(id)nd {
- Node *node = (Node*)nd;
- if (point.y > [node point].y) return NSOrderedAscending;
- else if (point.y < [node point].y) return NSOrderedDescending;
- else {
- if (point.x < [node point].x) return NSOrderedAscending;
- else if (point.x > [node point].x) return NSOrderedDescending;
- else return NSOrderedSame;
- }
-}
-
-@synthesize name;
-@synthesize label;
-@synthesize point;
-
-@synthesize data;
-- (void) insertObject:(GraphElementProperty*)gep
- inDataAtIndex:(NSUInteger)index {
- [data insertObject:gep atIndex:index];
-}
-- (void) removeObjectFromDataAtIndex:(NSUInteger)index {
- [data removeObjectAtIndex:index];
-}
-- (void) replaceObjectInDataAtIndex:(NSUInteger)index
- withObject:(GraphElementProperty*)gep {
- [data replaceObjectAtIndex:index withObject:gep];
-}
-
-- (NodeStyle*)style {
- return style;
-}
-
-- (void)setStyle:(NodeStyle *)st {
- if (style != st) {
-#if __has_feature(objc_arc)
- style = st;
-#else
- NodeStyle *oldStyle = style;
- style = [st retain];
- [oldStyle release];
-#endif
- }
- [self updateData];
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/NodeStyle.h b/tikzit-old/src/common/NodeStyle.h
deleted file mode 100644
index 034f95d..0000000
--- a/tikzit-old/src/common/NodeStyle.h
+++ /dev/null
@@ -1,125 +0,0 @@
-//
-// NodeStyle.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "util.h"
-#import "ColorRGB.h"
-#import "PropertyHolder.h"
-
-/*!
- @class NodeStyle
- @brief Store node style information.
- @details Store node style information. These properties affect how a node
- is displayed in TikZiT. Colors are stored in the ColorRGB struct
- to avoid any Cocoa dependency. These styles should be persistant,
- which should be implemented in a platform-specific category. For
- OS X, this is NodeStyle+Coder.
- */
-@interface NodeStyle : PropertyHolder <NSCopying> {
- int strokeThickness;
- float scale;
- ColorRGB *strokeColorRGB;
- ColorRGB *fillColorRGB;
- NSString *name;
- NSString *shapeName;
- NSString *category;
-}
-
-/*!
- @property strokeThickness
- @brief Thickness of the stroke.
- */
-@property (assign) int strokeThickness;
-
-/*!
- @property scale
- @brief Overall scale of the shape. Defaults to 1.0.
- */
-@property (assign) float scale;
-
-
-/*!
- @property strokeColorRGB
- @brief The stroke color used to render the node
- */
-@property (copy) ColorRGB *strokeColorRGB;
-
-/*!
- @property fillColorRGB
- @brief The fill color used to render the node
- */
-@property (copy) ColorRGB *fillColorRGB;
-
-/*!
- @property name
- @brief Style name.
- @details Style name. This is the only thing that affects how the node
- will look when the latex code is rendered.
- */
-@property (copy) NSString *name;
-
-/*!
- @property shapeName
- @brief The name of the shape that will be drawn in TikZiT.
- */
-@property (copy) NSString *shapeName;
-
-/*!
- @property category
- @brief ???
- */
-@property (copy) NSString *category;
-
-@property (readonly) NSString *tikz;
-@property (readonly) BOOL strokeColorIsKnown;
-@property (readonly) BOOL fillColorIsKnown;
-
-+ (int) defaultStrokeThickness;
-
-/*!
- @brief Designated initializer. Construct a blank style with name 'new'.
- @result A default style.
- */
-- (id)init;
-
-/*!
- @brief Create a named style.
- @param nm the style name.
- @result A <tt>NodeStyle</tt> with the given name.
- */
-- (id)initWithName:(NSString *)nm;
-
-/*!
- @brief Factory method for initWithName:
- @param nm the style name.
- @result A <tt>NodeStyle</tt> with the given name.
- */
-+ (NodeStyle*)defaultNodeStyleWithName:(NSString *)nm;
-
-/*!
- * Make this style the same as the given one
- */
-- (void) updateFromStyle:(NodeStyle*)style;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/NodeStyle.m b/tikzit-old/src/common/NodeStyle.m
deleted file mode 100644
index 193d44d..0000000
--- a/tikzit-old/src/common/NodeStyle.m
+++ /dev/null
@@ -1,246 +0,0 @@
-//
-// NodeStyle.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "NodeStyle.h"
-#import "Shape.h"
-#import "ShapeNames.h"
-
-@implementation NodeStyle
-
-+ (void)initialize {
- [self setKeys:[NSArray arrayWithObjects:
- @"fillColorRGB.red",
- @"fillColorRGB.blue",
- @"fillColorRGB.green",
- @"strokeColorRGB.red",
- @"strokeColorRGB.blue",
- @"strokeColorRGB.green",
- @"strokeThickness",
- @"shapeName",
- @"name",
- nil]
- triggerChangeNotificationsForDependentKey:@"tikz"];
- [self setKeys:[NSArray arrayWithObjects:
- @"fillColorRGB.name",
- nil]
- triggerChangeNotificationsForDependentKey:@"fillColorIsKnown"];
- [self setKeys:[NSArray arrayWithObjects:
- @"strokeColorRGB.name",
- nil]
- triggerChangeNotificationsForDependentKey:@"strokeColorIsKnown"];
-}
-
-+ (int) defaultStrokeThickness { return 1; }
-
-- (id)initWithName:(NSString*)nm {
- self = [super initWithNotificationName:@"NodeStylePropertyChanged"];
- if (self != nil) {
- strokeThickness = [NodeStyle defaultStrokeThickness];
- scale = 1.0f;
- strokeColorRGB = [[ColorRGB alloc] initWithRed:0 green:0 blue:0];
- fillColorRGB = [[ColorRGB alloc] initWithRed:255 green:255 blue:255];
-
- name = nm;
- category = nil;
- shapeName = SHAPE_CIRCLE;
- }
- return self;
-}
-
-- (id)init {
- self = [self initWithName:@"new"];
- return self;
-}
-
-- (id)copyWithZone:(NSZone*)zone {
- NodeStyle *style = [[NodeStyle allocWithZone:zone] init];
-
- [style setStrokeThickness:[self strokeThickness]];
- [style setScale:[self scale]];
- [style setStrokeColorRGB:[self strokeColorRGB]];
- [style setFillColorRGB:[self fillColorRGB]];
- [style setName:[self name]];
- [style setShapeName:[self shapeName]];
- [style setCategory:[self category]];
-
- return style;
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [name release];
- [category release];
- [shapeName release];
- [strokeColorRGB release];
- [fillColorRGB release];
- [super dealloc];
-#endif
-}
-
-- (NSString*) description {
- return [NSString stringWithFormat:@"Node style \"%@\"", name];
-}
-
-- (void) updateFromStyle:(NodeStyle*)style {
- [self setStrokeThickness:[style strokeThickness]];
- [self setScale:[style scale]];
- [self setStrokeColorRGB:[style strokeColorRGB]];
- [self setFillColorRGB:[style fillColorRGB]];
- [self setName:[style name]];
- [self setShapeName:[style shapeName]];
- [self setCategory:[style category]];
-}
-
-+ (NodeStyle*)defaultNodeStyleWithName:(NSString*)nm {
-#if __has_feature(objc_arc)
- return [[NodeStyle alloc] initWithName:nm];
-#else
- return [[[NodeStyle alloc] initWithName:nm] autorelease];
-#endif
-}
-
-- (NSString*)name {
- return name;
-}
-
-- (void)setName:(NSString *)s {
- if (name != s) {
- NSString *oldValue = name;
- name = [s copy];
- [self postPropertyChanged:@"name" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (NSString*)shapeName {
- return shapeName;
-}
-
-- (void)setShapeName:(NSString *)s {
- if (shapeName != s) {
- NSString *oldValue = shapeName;
- shapeName = [s copy];
- [self postPropertyChanged:@"shapeName" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (NSString*)category {
- return category;
-}
-
-- (void)setCategory:(NSString *)s {
- if (category != s) {
- NSString *oldValue = category;
- category = [s copy];
- [self postPropertyChanged:@"category" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (int)strokeThickness { return strokeThickness; }
-- (void)setStrokeThickness:(int)i {
- int oldValue = strokeThickness;
- strokeThickness = i;
- [self postPropertyChanged:@"strokeThickness" oldValue:[NSNumber numberWithInt:oldValue]];
-}
-
-- (float)scale { return scale; }
-- (void)setScale:(float)s {
- float oldValue = scale;
- scale = s;
- [self postPropertyChanged:@"scale" oldValue:[NSNumber numberWithFloat:oldValue]];
-}
-
-- (ColorRGB*)strokeColorRGB {
- return strokeColorRGB;
-}
-
-- (void)setStrokeColorRGB:(ColorRGB*)c {
- if (strokeColorRGB != c) {
- ColorRGB *oldValue = strokeColorRGB;
- strokeColorRGB = [c copy];
- [self postPropertyChanged:@"strokeColorRGB" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (ColorRGB*)fillColorRGB {
- return fillColorRGB;
-}
-
-- (void)setFillColorRGB:(ColorRGB*)c {
- if (fillColorRGB != c) {
- ColorRGB *oldValue = fillColorRGB;
- fillColorRGB = [c copy];
- [self postPropertyChanged:@"fillColorRGB" oldValue:oldValue];
-#if ! __has_feature(objc_arc)
- [oldValue release];
-#endif
- }
-}
-
-- (NSString*)tikz {
- NSString *fillName = [fillColorRGB name];
- NSString *strokeName = [strokeColorRGB name];
- NSString *stroke = @"";
- if (strokeThickness != 1) {
- stroke = [NSString stringWithFormat:@",line width=%@ pt",
- [NSNumber numberWithFloat:(float)strokeThickness * 0.4f]];
- }
-
- // If the colors are unknown, fall back on hexnames. These should be defined as colors
- // in the Preambles class.
- if (fillName == nil) fillName = [fillColorRGB hexName];
- if (strokeName == nil) strokeName = [strokeColorRGB hexName];
-
- NSString *shapeDesc = [[Shape shapeForName:shapeName] styleTikz];
- if (shapeDesc == nil) shapeDesc = shapeName;
-
- return [NSString stringWithFormat:@"\\tikzstyle{%@}=[%@,fill=%@,draw=%@%@]",
- name,
- shapeDesc,
- fillName,
- strokeName,
- stroke];
-}
-
-- (BOOL)strokeColorIsKnown {
- return ([strokeColorRGB name] != nil);
-}
-
-- (BOOL)fillColorIsKnown {
- return ([fillColorRGB name] != nil);
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/PickSupport.h b/tikzit-old/src/common/PickSupport.h
deleted file mode 100644
index 0749649..0000000
--- a/tikzit-old/src/common/PickSupport.h
+++ /dev/null
@@ -1,164 +0,0 @@
-//
-// PickSupport.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-#import <Foundation/Foundation.h>
-#import "Node.h"
-#import "Edge.h"
-
-/*!
- @class PickSupport
- @brief Maintain the selection state of nodes and edges.
- @detail In addition to the notifications listed for specific methods,
- whenever the node selection changes, a "NodeSelectionChanged"
- signal is emitted, and whenever the edge selection changes,
- an "EdgeSelectionChanged" signal is emitted.
- */
-@interface PickSupport : NSObject {
- NSMutableSet *selectedNodes;
- NSMutableSet *selectedEdges;
-}
-
-/*!
- @property selectedNodes
- @brief A set of selected nodes.
- */
-@property (readonly) NSSet *selectedNodes;
-
-// KVC methods
-- (void)addSelectedNodesObject:(Node*)node;
-- (void)addSelectedNodes:(NSSet*)nodes;
-- (void)removeSelectedNodesObject:(Node*)node;
-- (void)removeSelectedNodes:(NSSet*)nodes;
-
-/*!
- @property selectedEdges
- @brief A set of selected edges.
- */
-@property (readonly) NSSet *selectedEdges;
-
-// KVC methods
-- (void)addSelectedEdgesObject:(Edge*)edge;
-- (void)addSelectedEdges:(NSSet*)edges;
-- (void)removeSelectedEdgesObject:(Edge*)edge;
-- (void)removeSelectedEdges:(NSSet*)edges;
-
-/*!
- @brief Check if a node is selected.
- @param nd a node.
- @result YES if nd is selected.
- */
-- (BOOL)isNodeSelected:(Node*)nd;
-
-/*!
- @brief Check if an edge is selected.
- @param e an edge.
- @result YES if e is selected.
- */
-- (BOOL)isEdgeSelected:(Edge*)e;
-
-/*!
- @brief Select a node.
- @details Sends the "NodeSelected" notification if the node was not
- already selected, with @p nd as "node" in the userInfo
- @param nd a node.
- */
-- (void)selectNode:(Node*)nd;
-
-/*!
- @brief Deselect a node.
- @details Sends the "NodeDeselected" notification if the node was
- selected, with @p nd as "node" in the userInfo
- @param nd a node.
- */
-- (void)deselectNode:(Node*)nd;
-
-/*!
- @brief Select an edge.
- @details Sends the "EdgeSelected" notification if the node was not
- already selected, with @p e as "edge" in the userInfo
- @param e an edge.
- */
-- (void)selectEdge:(Edge*)e;
-
-/*!
- @brief Deselect an edge.
- @details Sends the "EdgeDeselected" notification if the node was
- selected, with @p e as "edge" in the userInfo
- @param e an edge.
- */
-- (void)deselectEdge:(Edge*)e;
-
-/*!
- @brief Toggle the selected state of the given node.
- @details Sends the "NodeSelected" or "NodeDeselected" notification as
- appropriate, with @p nd as "node" in the userInfo
- @param nd a node.
- */
-- (void)toggleNodeSelected:(Node*)nd;
-
-/*!
- @brief Select all nodes in the given set.
- @details Sends the "NodeSelectionReplaced" notification if this
- caused the selection to change.
-
- Equivalent to selectAllNodes:nodes replacingSelection:YES
- @param nodes a set of nodes.
- */
-- (void)selectAllNodes:(NSSet*)nodes;
-
-/*!
- @brief Select all nodes in the given set.
- @details Sends the "NodeSelectionReplaced" notification if this
- caused the selection to change.
-
- If replace is NO, @p nodes will be added to the existing
- selection, otherwise it will replace the existing selection.
- @param nodes a set of nodes.
- @param replace whether to replace the existing selection
- */
-- (void)selectAllNodes:(NSSet*)nodes replacingSelection:(BOOL)replace;
-
-/*!
- @brief Deselect all nodes.
- @details Sends the "NodeSelectionReplaced" notification if there
- were any nodes previously selected
- */
-- (void)deselectAllNodes;
-
-/*!
- @brief Deselect all edges.
- @details Sends the "EdgeSelectionReplaced" notification if there
- were any edges previously selected
- */
-- (void)deselectAllEdges;
-
-/*!
- @brief Factory method for getting a new <tt>PickSupport</tt> object.
- @result An empty <tt>PickSupport</tt>.
- */
-+ (PickSupport*)pickSupport;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/PickSupport.m b/tikzit-old/src/common/PickSupport.m
deleted file mode 100644
index 560fc2c..0000000
--- a/tikzit-old/src/common/PickSupport.m
+++ /dev/null
@@ -1,232 +0,0 @@
-//
-// PickSupport.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "PickSupport.h"
-
-
-@implementation PickSupport
-
-- (void) postNodeSelectionChanged {
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NodeSelectionChanged"
- object:self];
-}
-
-- (void) postEdgeSelectionChanged {
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"EdgeSelectionChanged"
- object:self];
-}
-
-- (id) init {
- self = [super init];
-
- if (self) {
-#if __has_feature(objc_arc)
- selectedNodes = [NSMutableSet set];
- selectedEdges = [NSMutableSet set];
-#else
- selectedNodes = [[NSMutableSet set] retain];
- selectedEdges = [[NSMutableSet set] retain];
-#endif
- }
-
- return self;
-}
-
-+ (PickSupport*)pickSupport {
-#if __has_feature(objc_arc)
- return [[PickSupport alloc] init];
-#else
- return [[[PickSupport alloc] init] autorelease];
-#endif
-}
-
-@synthesize selectedNodes;
-- (void)addSelectedNodesObject:(Node*)node {
- return [self selectNode:node];
-}
-- (void)addSelectedNodes:(NSSet*)nodes {
- return [self selectAllNodes:nodes replacingSelection:NO];
-}
-- (void)removeSelectedNodesObject:(Node*)node {
- return [self deselectNode:node];
-}
-- (void)removeSelectedNodes:(NSSet*)nodes {
- if ([selectedNodes count] > 0) {
- [selectedNodes minusSet:nodes];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NodeSelectionReplaced"
- object:self];
- [self postNodeSelectionChanged];
- }
-}
-
-@synthesize selectedEdges;
-- (void)addSelectedEdgesObject:(Edge*)edge {
- return [self selectEdge:edge];
-}
-- (void)addSelectedEdges:(NSSet*)edges {
- if (selectedEdges == edges) {
- return;
- }
- if ([edges count] == 0) {
- return;
- }
-
- [selectedEdges unionSet:edges];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"EdgeSelectionReplaced"
- object:self];
- [self postEdgeSelectionChanged];
-}
-- (void)removeSelectedEdgesObject:(Edge*)edge {
- return [self deselectEdge:edge];
-}
-- (void)removeSelectedEdges:(NSSet*)edges {
- if ([selectedEdges count] > 0 && [edges count] > 0) {
- [selectedEdges minusSet:edges];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"EdgeSelectionReplaced"
- object:self];
- [self postEdgeSelectionChanged];
- }
-}
-
-- (BOOL)isNodeSelected:(Node*)nd {
- return [selectedNodes containsObject:nd];
-}
-
-- (BOOL)isEdgeSelected:(Edge*)e {
- return [selectedEdges containsObject:e];
-}
-
-- (void)selectNode:(Node*)nd {
- if (nd != nil && ![selectedNodes member:nd]) {
- [selectedNodes addObject:nd];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NodeSelected"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:nd forKey:@"node"]];
- [self postNodeSelectionChanged];
- }
-}
-
-- (void)deselectNode:(Node*)nd {
- if (nd != nil && [selectedNodes member:nd]) {
- [selectedNodes removeObject:nd];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NodeDeselected"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:nd forKey:@"node"]];
- [self postNodeSelectionChanged];
- }
-}
-
-- (void)selectEdge:(Edge*)e {
- if (e != nil && ![selectedEdges member:e]) {
- [selectedEdges addObject:e];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"EdgeSelected"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:e forKey:@"edge"]];
- [self postEdgeSelectionChanged];
- }
-}
-
-- (void)deselectEdge:(Edge*)e {
- if (e != nil && [selectedEdges member:e]) {
- [selectedEdges removeObject:e];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"EdgeDeselected"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:e forKey:@"edge"]];
- [self postEdgeSelectionChanged];
- }
-}
-
-- (void)toggleNodeSelected:(Node*)nd {
- if ([self isNodeSelected:nd])
- [self deselectNode:nd];
- else
- [self selectNode:nd];
-}
-
-- (void)selectAllNodes:(NSSet*)nodes {
- [self selectAllNodes:nodes replacingSelection:YES];
-}
-
-- (void)selectAllNodes:(NSSet*)nodes replacingSelection:(BOOL)replace {
- if (selectedNodes == nodes) {
- return;
- }
- if (!replace && [nodes count] == 0) {
- return;
- }
-
- if (replace) {
-#if ! __has_feature(objc_arc)
- [selectedNodes release];
-#endif
- selectedNodes = [nodes mutableCopy];
- } else {
- [selectedNodes unionSet:nodes];
- }
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NodeSelectionReplaced"
- object:self];
- [self postNodeSelectionChanged];
-}
-
-- (void)deselectAllNodes {
- if ([selectedNodes count] > 0) {
- [selectedNodes removeAllObjects];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"NodeSelectionReplaced"
- object:self];
- [self postNodeSelectionChanged];
- }
-}
-
-- (void)deselectAllEdges {
- if ([selectedEdges count] > 0) {
- [selectedEdges removeAllObjects];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"EdgeSelectionReplaced"
- object:self];
- [self postEdgeSelectionChanged];
- }
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [selectedNodes release];
- [selectedEdges release];
-
- [super dealloc];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/Preambles.h b/tikzit-old/src/common/Preambles.h
deleted file mode 100644
index 2fb084a..0000000
--- a/tikzit-old/src/common/Preambles.h
+++ /dev/null
@@ -1,73 +0,0 @@
-//
-// Preambles.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-// Copyright 2011 Alex Merry. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "StyleManager.h"
-
-@class Graph;
-
-@interface Preambles : NSObject {
- NSMutableDictionary *preambleDict;
- NSString *selectedPreambleName;
- NSArray *styles;
- NSArray *edges;
- StyleManager *styleManager;
-}
-
-@property (copy) NSString *selectedPreambleName;
-@property (retain) NSString *currentPreamble;
-@property (retain) StyleManager *styleManager;
-@property (readonly) NSMutableDictionary *preambleDict;
-
-+ (Preambles*)preambles;
-- (id)init;
-- (void)setStyles:(NSArray*)sty;
-- (void)setEdges:(NSArray*)edg;
-
-- (NSString*)preambleForName:(NSString*)name;
-- (BOOL)setPreamble:(NSString*)content forName:(NSString*)name;
-
-- (NSString*)addPreamble;
-- (NSString*)addPreambleWithNameBase:(NSString*)name;
-
-- (BOOL)renamePreambleFrom:(NSString*)old to:(NSString*)new;
-- (BOOL)removePreamble:(NSString*)name;
-
-- (NSEnumerator*)customPreambleNameEnumerator;
-
-- (void)removeAllPreambles;
-
-- (BOOL)selectedPreambleIsDefault;
-
-- (NSString*)styleDefinitions;
-- (NSString*)defaultPreamble;
-- (NSString*)defaultPreambleName;
-- (NSString*)currentPostamble;
-
-- (NSString*)buildDocumentForTikz:(NSString*)tikz;
-- (NSString*)buildDocumentForGraph:(Graph*)g;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Preambles.m b/tikzit-old/src/common/Preambles.m
deleted file mode 100644
index 922fc30..0000000
--- a/tikzit-old/src/common/Preambles.m
+++ /dev/null
@@ -1,320 +0,0 @@
-//
-// Preambles.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Preambles.h"
-#import "NodeStyle.h"
-#import "EdgeStyle.h"
-#import "Graph.h"
-
-static NSString *DEF_PREAMBLE_START =
-@"\\usepackage[svgnames]{xcolor}\n"
-@"\\usepackage{tikz}\n"
-@"\\usetikzlibrary{decorations.markings}\n"
-@"\\usetikzlibrary{shapes.geometric}\n"
-@"\n"
-@"\\pgfdeclarelayer{edgelayer}\n"
-@"\\pgfdeclarelayer{nodelayer}\n"
-@"\\pgfsetlayers{edgelayer,nodelayer,main}\n"
-@"\n"
-@"\\tikzstyle{none}=[inner sep=0pt]\n";
-
-static NSString *PREAMBLE_TAIL =
-@"\n"
-@"\\pagestyle{empty}\n"
-@"\\usepackage[graphics,tightpage,active]{preview}\n"
-@"\\PreviewEnvironment{tikzpicture}\n"
-@"\\newlength{\\imagewidth}\n"
-@"\\newlength{\\imagescale}\n"
-@"\n"
-@"\\begin{document}\n";
-
-static NSString *POSTAMBLE =
-@"\n"
-@"\\end{document}\n";
-
-@implementation Preambles
-
-+ (Preambles*)preambles {
-#if __has_feature(objc_arc)
- return [[self alloc] init];
-#else
- return [[[self alloc] init] autorelease];
-#endif
-}
-
-- (id)init {
- self = [super init];
- if (self) {
- selectedPreambleName = @"default";
- preambleDict = [[NSMutableDictionary alloc] initWithCapacity:1];
- [preambleDict setObject:[self defaultPreamble] forKey:@"custom"];
- styles = nil;
- edges = nil;
- styleManager = nil;
- }
- return self;
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [selectedPreambleName release];
- [styles release];
- [styleManager release];
- [super dealloc];
-#endif
-}
-
-- (NSString*)preambleForName:(NSString*)name {
- if ([name isEqualToString:@"default"])
- return [self defaultPreamble];
- else
- return [preambleDict objectForKey:name];
-}
-
-- (BOOL)setPreamble:(NSString*)content forName:(NSString*)name {
- if ([name isEqualToString:@"default"])
- return NO;
- [preambleDict setObject:content forKey:name];
- return YES;
-}
-
-- (void)removeAllPreambles {
- [preambleDict removeAllObjects];
-}
-
-- (NSEnumerator*)customPreambleNameEnumerator {
- return [preambleDict keyEnumerator];
-}
-
-- (void)setStyles:(NSArray*)sty {
-#if ! __has_feature(objc_arc)
- [sty retain];
- [styles release];
-#endif
- styles = sty;
-}
-
-- (void)setEdges:(NSArray*)edg {
-#if ! __has_feature(objc_arc)
- [edg retain];
- [edges release];
-#endif
- edges = edg;
-}
-
-- (NSString*)styleDefinitions {
- if (styleManager != nil) {
- [self setStyles:[styleManager nodeStyles]];
- }
-#if ! __has_feature(objc_arc)
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-#endif
- NSMutableString *buf = [NSMutableString string];
- NSMutableString *colbuf = [NSMutableString string];
- NSMutableSet *colors = [NSMutableSet setWithCapacity:2*[styles count]];
- for (NodeStyle *st in styles) {
- [buf appendFormat:@"%@\n", [st tikz]];
- ColorRGB *fill = [st fillColorRGB];
- ColorRGB *stroke = [st strokeColorRGB];
- if ([fill name] == nil && ![colors containsObject:fill]) {
- [colors addObject:fill];
- [colbuf appendFormat:@"\\definecolor{%@}{rgb}{%.3f,%.3f,%.3f}\n",
- [fill hexName], [fill redFloat], [fill greenFloat], [fill blueFloat]];
- }
-
- if ([stroke name] == nil && ![colors containsObject:stroke]) {
- [colors addObject:stroke];
- [colbuf appendFormat:@"\\definecolor{%@}{rgb}{%.3f,%.3f,%.3f}\n",
- [stroke hexName], [stroke redFloat], [stroke greenFloat], [stroke blueFloat]];
- }
- }
-
- if (styleManager != nil) {
- [self setEdges:[styleManager edgeStyles]];
- }
-
- [buf appendString:@"\n"];
- for (EdgeStyle *st in edges) {
- [buf appendFormat:@"%@\n", [st tikz]];
- ColorRGB *color = [st colorRGB];
- if (color != nil && [color name] == nil && ![colors containsObject:color]) {
- [colors addObject:color];
- [colbuf appendFormat:@"\\definecolor{%@}{rgb}{%.3f,%.3f,%.3f}\n",
- [color hexName], [color redFloat], [color greenFloat], [color blueFloat]];
- }
- }
-
- NSString *defs = [[NSString alloc] initWithFormat:@"%@\n%@", colbuf, buf];
-
-#if __has_feature(objc_arc)
- return defs;
-#else
- [pool drain];
- return [defs autorelease];
-#endif
-}
-
-- (NSString*)defaultPreamble {
- return [NSString stringWithFormat:@"%@%@",
- DEF_PREAMBLE_START, [self styleDefinitions]];
-}
-
-- (BOOL)selectedPreambleIsDefault {
- return [selectedPreambleName isEqualToString:@"default"];
-}
-
-- (NSString*)selectedPreambleName { return selectedPreambleName; }
-- (void)setSelectedPreambleName:(NSString *)sel {
- if (sel != selectedPreambleName) {
-#if ! __has_feature(objc_arc)
- [selectedPreambleName release];
-#endif
- selectedPreambleName = [sel copy];
- }
-}
-
-- (NSString*)currentPreamble {
- NSString *pre = [self preambleForName:selectedPreambleName];
- return (pre == nil) ? [self defaultPreamble] : pre;
-}
-
-- (void)setCurrentPreamble:(NSString*)str {
- if (![selectedPreambleName isEqualToString:@"default"])
- [preambleDict setObject:str forKey:selectedPreambleName];
-}
-
-- (StyleManager*)styleManager {
- return styleManager;
-}
-
-- (void)setStyleManager:(StyleManager *)manager {
-#if ! __has_feature(objc_arc)
- [manager retain];
- [styleManager release];
-#endif
- styleManager = manager;
-}
-
-- (NSString*)currentPostamble {
- return POSTAMBLE;
-}
-
-- (NSMutableDictionary*)preambleDict {
- return preambleDict;
-}
-
-- (NSString*)defaultPreambleName {
- return @"default";
-}
-
-- (NSString*)addPreamble {
- return [self addPreambleWithNameBase:@"new preamble"];
-}
-
-- (NSString*)addPreambleWithNameBase:(NSString*)base {
- if ([preambleDict objectForKey:base] == nil) {
- [self setPreamble:[self defaultPreamble] forName:base];
- return base;
- }
- int i = 0;
- NSString *tryName = nil;
- do {
- ++i;
- tryName = [NSString stringWithFormat:@"%@ %d", base, i];
- } while ([preambleDict objectForKey:tryName] != nil);
-
- [self setPreamble:[self defaultPreamble] forName:tryName];
- return tryName;
-}
-
-- (BOOL)renamePreambleFrom:(NSString*)old to:(NSString*)new {
- if ([old isEqualToString:@"default"])
- return NO;
- if ([new isEqualToString:@"default"])
- return NO;
- if ([old isEqualToString:new])
- return YES;
- BOOL isSelected = NO;
- if ([old isEqualToString:selectedPreambleName]) {
- [self setSelectedPreambleName:nil];
- isSelected = YES;
- }
- NSString *preamble = [preambleDict objectForKey:old];
-#if ! __has_feature(objc_arc)
- [preamble retain];
-#endif
- [preambleDict removeObjectForKey:old];
- [preambleDict setObject:preamble forKey:new];
-#if ! __has_feature(objc_arc)
- [preamble release];
-#endif
- if (isSelected) {
- [self setSelectedPreambleName:new];
- }
- return YES;
-}
-
-- (BOOL)removePreamble:(NSString*)name {
- if ([name isEqualToString:@"default"])
- return NO;
- // "name" may be held only by being the selected preamble...
-#if ! __has_feature(objc_arc)
- [name retain];
-#endif
- if ([name isEqualToString:selectedPreambleName])
- [self setSelectedPreambleName:nil];
- [preambleDict removeObjectForKey:name];
-#if ! __has_feature(objc_arc)
- [name release];
-#endif
- return YES;
-}
-
-- (NSString*)buildDocumentForTikz:(NSString*)tikz
-{
- NSString *preamble = [self currentPreamble];
- NSString *doc_head = @"";
- if (![preamble hasPrefix:@"\\documentclass"]) {
- doc_head = @"\\documentclass{article}\n";
- }
- NSString *preamble_suffix = @"";
- if ([preamble rangeOfString:@"\\begin{document}"
- options:NSBackwardsSearch].length == 0) {
- preamble_suffix = PREAMBLE_TAIL;
- }
- return [NSString stringWithFormat:@"%@%@%@%@%@",
- doc_head,
- [self currentPreamble],
- preamble_suffix,
- tikz,
- POSTAMBLE];
-}
-
-- (NSString*)buildDocumentForGraph:(Graph*)g
-{
- return [self buildDocumentForTikz:[g tikz]];
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/PropertyHolder.h b/tikzit-old/src/common/PropertyHolder.h
deleted file mode 100644
index ba1d825..0000000
--- a/tikzit-old/src/common/PropertyHolder.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// PropertyHolder.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-@interface PropertyHolder : NSObject {
- NSString *notificationName;
-}
-
-- (id)initWithNotificationName:(NSString*)name;
-- (void) postPropertyChanged:(NSString*)property oldValue:(id)value;
-- (void) postPropertyChanged:(NSString*)property;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/PropertyHolder.m b/tikzit-old/src/common/PropertyHolder.m
deleted file mode 100644
index 6aaf125..0000000
--- a/tikzit-old/src/common/PropertyHolder.m
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// PropertyHolder.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "PropertyHolder.h"
-
-@implementation PropertyHolder
-
-
-- (id)init {
- self = [super init];
- if (self) {
- notificationName = @"UnknownPropertyChanged";
- }
- return self;
-}
-
-- (id)initWithNotificationName:(NSString*)n {
- self = [super init];
- if (self) {
- notificationName = [n copy];
- }
- return self;
-}
-
-- (void)postPropertyChanged:(NSString*)property oldValue:(id)value {
- NSDictionary *userInfo;
- if (value != nil) {
- userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
- property, @"propertyName",
- value, @"oldValue",
- nil];
- } else {
- userInfo = [NSDictionary dictionaryWithObject:property
- forKey:@"propertyName"];
- }
- [[NSNotificationCenter defaultCenter] postNotificationName:notificationName
- object:self
- userInfo:userInfo];
-}
-
-- (void)postPropertyChanged:(NSString*)property {
- [self postPropertyChanged:property oldValue:nil];
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [notificationName release];
- [super dealloc];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:et:sts=4:sw=4
diff --git a/tikzit-old/src/common/RColor.h b/tikzit-old/src/common/RColor.h
deleted file mode 100644
index 7f22547..0000000
--- a/tikzit-old/src/common/RColor.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-
-#ifndef CGFloat
-#define CGFloat float
-#endif
-
-/**
- * A lightweight color structure used by RenderContext
- *
- * This is mainly to avoid the overhead of ColorRGB when
- * rendering things not based on a NodeStyle
- *
- * All values range from 0.0f to 1.0f.
- */
-typedef struct {
- CGFloat red;
- CGFloat green;
- CGFloat blue;
- CGFloat alpha;
-}
-RColor;
-
-/** Solid white */
-static const RColor WhiteRColor __attribute__((unused)) = {1.0, 1.0, 1.0, 1.0};
-/** Solid black */
-static const RColor BlackRColor __attribute__((unused)) = {0.0, 0.0, 0.0, 1.0};
-
-/** Create a color with alpha set to 1.0 */
-RColor MakeSolidRColor (CGFloat red, CGFloat green, CGFloat blue);
-/** Create a color */
-RColor MakeRColor (CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha);
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/RColor.m b/tikzit-old/src/common/RColor.m
deleted file mode 100644
index 49914fe..0000000
--- a/tikzit-old/src/common/RColor.m
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "RColor.h"
-
-RColor MakeSolidRColor (CGFloat red, CGFloat green, CGFloat blue) {
- return MakeRColor (red, green, blue, 1.0);
-}
-
-RColor MakeRColor (CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha) {
- RColor color;
- color.red = red;
- color.green = green;
- color.blue = blue;
- color.alpha = alpha;
- return color;
-}
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/RectangleShape.h b/tikzit-old/src/common/RectangleShape.h
deleted file mode 100644
index 3fa0f31..0000000
--- a/tikzit-old/src/common/RectangleShape.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// RectangleShape.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Shape.h"
-
-
-@interface RectangleShape : Shape {
-}
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/RectangleShape.m b/tikzit-old/src/common/RectangleShape.m
deleted file mode 100644
index db9c803..0000000
--- a/tikzit-old/src/common/RectangleShape.m
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// RectangleShape.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "RectangleShape.h"
-#import "Node.h"
-#import "Edge.h"
-
-@implementation RectangleShape
-
-- (id)init {
- self = [super init];
- if (self) {
- Node *n0,*n1,*n2,*n3;
- float sz = 0.2f;
-
- n0 = [Node nodeWithPoint:NSMakePoint(-sz, sz)];
- n1 = [Node nodeWithPoint:NSMakePoint( sz, sz)];
- n2 = [Node nodeWithPoint:NSMakePoint( sz,-sz)];
- n3 = [Node nodeWithPoint:NSMakePoint(-sz,-sz)];
-
- Edge *e0,*e1,*e2,*e3;
-
- e0 = [Edge edgeWithSource:n0 andTarget:n1];
- e1 = [Edge edgeWithSource:n1 andTarget:n2];
- e2 = [Edge edgeWithSource:n2 andTarget:n3];
- e3 = [Edge edgeWithSource:n3 andTarget:n0];
-
- paths = [[NSSet alloc] initWithObjects:[NSArray arrayWithObjects:e0,e1,e2,e3,nil],nil];
-
- styleTikz = @"rectangle";
- }
- return self;
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/RegularPolyShape.h b/tikzit-old/src/common/RegularPolyShape.h
deleted file mode 100644
index 1fd8f1e..0000000
--- a/tikzit-old/src/common/RegularPolyShape.h
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// RegularPolyShape.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Shape.h"
-
-/**
- * A regular polygon
- *
- * Matches the "regular polygon" shape in the shapes.geometric
- * PGF/TikZ library.
- */
-@interface RegularPolyShape : Shape {
-}
-
-/**
- * Initialise a regular polygon
- *
- * A rotation of 0 will produce a polygon with one
- * edge flat along the bottom (just like PGF/TikZ
- * does it).
- *
- * @param sides the number of sides the polygon should have
- * @param rotation the rotation of the polygon, in degrees
- */
-- (id)initWithSides:(int)sides rotation:(int)rotation;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/RegularPolyShape.m b/tikzit-old/src/common/RegularPolyShape.m
deleted file mode 100644
index 3555115..0000000
--- a/tikzit-old/src/common/RegularPolyShape.m
+++ /dev/null
@@ -1,76 +0,0 @@
-//
-// RegularPolyShape.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger
-// Copyright 2012 Alex Merry
-// All rights reserved.
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "RegularPolyShape.h"
-#import "Node.h"
-#import "Edge.h"
-#import "util.h"
-
-@implementation RegularPolyShape
-
-- (id)initWithSides:(int)sides rotation:(int)rotation {
- self = [super init];
- if (self == nil)
- return nil;
-
- // TikZ draws regular polygons using a radius inscribed
- // _inside_ the shape (touching middles of edges), not
- // outside (touching points)
- const float innerRadius = 0.2f;
-
- NSMutableArray *nodes = [NSMutableArray arrayWithCapacity:sides];
- NSMutableArray *edges = [NSMutableArray arrayWithCapacity:sides];
-
- float dtheta = (M_PI * 2.0f) / ((float)sides);
- float theta = (dtheta/2.0f) - (M_PI / 2.0f);
- theta += degreesToRadians(rotation);
- // radius of the outer circle
- float radius = ABS(innerRadius / cos(dtheta));
-
- for (int i = 0; i < sides; ++i) {
- NSPoint p;
- p.x = radius * cos(theta);
- p.y = radius * sin(theta);
-
- [nodes addObject:[Node nodeWithPoint:p]];
- theta += dtheta;
- }
-
- for (int i = 0; i < sides; ++i) {
- [edges addObject:[Edge edgeWithSource:[nodes objectAtIndex:i]
- andTarget:[nodes objectAtIndex:(i+1)%sides]]];
- }
-
- paths = [[NSSet alloc] initWithObjects:edges,nil];
-
- styleTikz = [[NSString alloc] initWithFormat:
- @"regular polygon,regular polygon sides=%d,shape border rotate=%d",
- sides, rotation];
-
- return self;
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/RenderContext.h b/tikzit-old/src/common/RenderContext.h
deleted file mode 100644
index 8633944..0000000
--- a/tikzit-old/src/common/RenderContext.h
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import "RColor.h"
-
-typedef enum {
- AntialiasDisabled,
- AntialiasDefault
-} AntialiasMode;
-
-// encapsulates a CTLine on OSX and
-// a PangoLayout in GTK+
-@protocol TextLayout
-@property (readonly) NSSize size;
-@property (readonly) NSString *text;
-- (void) showTextAt:(NSPoint)topLeft withColor:(RColor)color;
-@end
-
-@protocol RenderContext
-- (void) saveState;
-- (void) restoreState;
-
-- (NSRect) clipBoundingBox;
-- (BOOL) strokeIncludesPoint:(NSPoint)p;
-- (BOOL) fillIncludesPoint:(NSPoint)p;
-- (id<TextLayout>) layoutText:(NSString*)text withSize:(CGFloat)fontSize;
-
-// this may not affect text rendering
-- (void) setAntialiasMode:(AntialiasMode)mode;
-- (void) setLineWidth:(CGFloat)width;
-// setting to 0 will unset the dash
-- (void) setLineDash:(CGFloat)dashLength;
-
-/**
- * Clear the current path, including all subpaths
- */
-- (void) startPath;
-/**
- * Close the current subpath
- */
-- (void) closeSubPath;
-/**
- * Start a new subpath, and set the current point.
- *
- * The point will be the current point and the starting point
- * for the subpath.
- */
-- (void) moveTo:(NSPoint)p;
-/**
- * Add a cubic bezier curve to the current subpath.
- *
- * The curve will start at the current point, terminate at end and
- * be defined by cp1 and cp2.
- */
-- (void) curveTo:(NSPoint)end withCp1:(NSPoint)cp1 andCp2:(NSPoint)cp2;
-/**
- * Add a straight line to the current subpath.
- *
- * The line will start at the current point, and terminate at end.
- */
-- (void) lineTo:(NSPoint)end;
-/**
- * Add a new rectangular subpath.
- *
- * The current point is undefined after this call.
- */
-- (void) rect:(NSRect)rect;
-/**
- * Add a new circular subpath.
- *
- * The current point is undefined after this call.
- */
-- (void) circleAt:(NSPoint)c withRadius:(CGFloat)r;
-
-/**
- * Paint along the current path.
- *
- * The current line width and dash style will be used,
- * and the colour is given by color.
- *
- * The path will be cleared by this call, as though
- * startPath had been called.
- */
-- (void) strokePathWithColor:(RColor)color;
-/**
- * Paint inside the current path.
- *
- * The fill colour is given by color.
- *
- * The path will be cleared by this call, as though
- * startPath had been called.
- */
-- (void) fillPathWithColor:(RColor)color;
-/**
- * Paint along and inside the current path.
- *
- * The current line width and dash style will be used,
- * and the colour is given by color.
- *
- * The path will be cleared by this call, as though
- * startPath had been called.
- *
- * Note that the fill and stroke may overlap, although
- * the stroke is always painted on top, so this is only
- * relevant when the stroke colour has an alpha channel
- * other than 1.0f.
- */
-- (void) strokePathWithColor:(RColor)scolor
- andFillWithColor:(RColor)fcolor;
-/**
- * Paint along and inside the current path using an alpha channel.
- *
- * The current line width and dash style will be used,
- * and the colour is given by color.
- *
- * The path will be cleared by this call, as though
- * startPath had been called.
- *
- * Note that the fill and stroke may overlap, although
- * the stroke is always painted on top, so this is only
- * relevant when the stroke colour has an alpha channel
- * other than 1.0f.
- */
-- (void) strokePathWithColor:(RColor)scolor
- andFillWithColor:(RColor)fcolor
- usingAlpha:(CGFloat)alpha;
-/**
- * Set the clip to the current path.
- *
- * The path will be cleared by this call, as though
- * startPath had been called.
- */
-- (void) clipToPath;
-
-/**
- * Paint everywhere within the clip.
- */
-- (void) paintWithColor:(RColor)color;
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Shape.h b/tikzit-old/src/common/Shape.h
deleted file mode 100644
index b401a87..0000000
--- a/tikzit-old/src/common/Shape.h
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// Shape.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Transformer.h"
-
-@interface Shape : NSObject <NSCopying> {
- NSSet *paths;
- NSRect boundingRect; // cache
- NSString *styleTikz;
-}
-
-@property (retain) NSSet *paths;
-@property (readonly) NSRect boundingRect;
-/**
- * The tikz code to use in style properties for this shape
- *
- * This can return nil, in which case the shape name should be used
- */
-@property (retain) NSString *styleTikz;
-
-- (id)init;
-+ (void)refreshShapeDictionary;
-+ (NSDictionary*)shapeDictionary;
-+ (Shape*)shapeForName:(NSString*)shapeName;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Shape.m b/tikzit-old/src/common/Shape.m
deleted file mode 100644
index e887688..0000000
--- a/tikzit-old/src/common/Shape.m
+++ /dev/null
@@ -1,171 +0,0 @@
-//
-// Shape.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Shape.h"
-
-#import "Edge.h"
-#import "SupportDir.h"
-#import "ShapeNames.h"
-
-#import "CircleShape.h"
-#import "DiamondShape.h"
-#import "RectangleShape.h"
-#import "RegularPolyShape.h"
-#import "TikzShape.h"
-
-#import "util.h"
-
-@implementation Shape
-
-- (void)calcBoundingRect {
- boundingRect = NSZeroRect;
-
- if (paths == nil)
- return;
-
- for (NSArray *arr in paths) {
- for (Edge *e in arr) {
- boundingRect = NSUnionRect(boundingRect, [e boundingRect]);
- }
- }
-}
-
-- (id)init {
- self = [super init];
- if (self) {
- paths = nil;
- }
- return self;
-}
-
-- (NSSet*)paths {return paths;}
-- (void)setPaths:(NSSet *)p {
- if (paths != p) {
-#if __has_feature(objc_arc)
- paths = p;
-#else
- [paths release];
- paths = [p retain];
-#endif
- [self calcBoundingRect];
- }
-}
-
-- (NSRect)boundingRect { return boundingRect; }
-
-@synthesize styleTikz;
-
-- (id)copyWithZone:(NSZone*)zone {
- Shape *cp = [[[self class] allocWithZone:zone] init];
- [cp setPaths:paths];
- [cp setStyleTikz:styleTikz];
- return cp;
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [paths release];
- [styleTikz release];
- [super dealloc];
-#endif
-}
-
-NSDictionary *shapeDictionary = nil;
-
-+ (void)addShapesInDir:(NSString*)shapeDir to:(NSMutableDictionary*)shapeDict {
- NSFileManager *fileManager = [NSFileManager defaultManager];
- NSError *err = nil;
- NSArray *files = [fileManager contentsOfDirectoryAtPath:shapeDir error:&err];
-
- if (files != nil) {
- NSString *nm;
- for (NSString *f in files) {
- if ([f hasSuffix:@".tikz"]) {
- nm = [f substringToIndex:[f length]-5];
- TikzShape *sh =
- [[TikzShape alloc] initWithTikzFile:
- [shapeDir stringByAppendingPathComponent:f]];
- if (sh != nil) {
- [shapeDict setObject:sh forKey:nm];
-#if ! __has_feature(objc_arc)
- [sh release];
-#endif
- }
- }
- }
- }
-}
-
-+ (void)refreshShapeDictionary {
- Shape *shapes[5] = {
- [[CircleShape alloc] init],
- [[RectangleShape alloc] init],
- [[DiamondShape alloc] init],
- [[RegularPolyShape alloc] initWithSides:3 rotation:0],
- [[RegularPolyShape alloc] initWithSides:3 rotation:180]};
- NSMutableDictionary *shapeDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
- shapes[0], SHAPE_CIRCLE,
- shapes[1], SHAPE_RECTANGLE,
- shapes[2], SHAPE_DIAMOND,
- shapes[3], SHAPE_UP_TRIANGLE,
- shapes[4], SHAPE_DOWN_TRIANGLE,
- nil];
-#if ! __has_feature(objc_arc)
- for (int i = 0; i<5; ++i) [shapes[i] release];
-#endif
-
- NSString *systemShapeDir = [[SupportDir systemSupportDir] stringByAppendingPathComponent:@"shapes"];
- NSString *userShapeDir = [[SupportDir userSupportDir] stringByAppendingPathComponent:@"shapes"];
-
- [Shape addShapesInDir:systemShapeDir to:shapeDict];
- [Shape addShapesInDir:userShapeDir to:shapeDict];
-
- NSDictionary *oldShapeDictionary = shapeDictionary;
- shapeDictionary = shapeDict;
-
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"ShapeDictionaryReplaced"
- object:self];
-
-#if ! __has_feature(objc_arc)
- [oldShapeDictionary release];
-#endif
-}
-
-+ (NSDictionary*)shapeDictionary {
- if (shapeDictionary == nil) [Shape refreshShapeDictionary];
- return shapeDictionary;
-}
-
-+ (Shape*)shapeForName:(NSString*)shapeName {
- Shape *s = [[[self shapeDictionary] objectForKey:shapeName] copy];
-#if __has_feature(objc_arc)
- return s;
-#else
- return [s autorelease];
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/ShapeNames.h b/tikzit-old/src/common/ShapeNames.h
deleted file mode 100644
index 66ecfb1..0000000
--- a/tikzit-old/src/common/ShapeNames.h
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// ShapeNames.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-
-#define SHAPE_CIRCLE @"circle"
-#define SHAPE_RECTANGLE @"rectangle"
-#define SHAPE_UP_TRIANGLE @"up triangle"
-#define SHAPE_DOWN_TRIANGLE @"down triangle"
-#define SHAPE_DIAMOND @"diamond"
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/StyleManager.h b/tikzit-old/src/common/StyleManager.h
deleted file mode 100644
index bc920e7..0000000
--- a/tikzit-old/src/common/StyleManager.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import "NodeStyle.h"
-#import "EdgeStyle.h"
-
-@interface StyleManager: NSObject <NSCopying> {
- NSMutableArray *nodeStyles;
- NSMutableArray *edgeStyles;
-}
-
-+ (StyleManager*) manager;
-- (id) init;
-
-@property (readonly) NSArray *nodeStyles;
-@property (readonly) NSArray *edgeStyles;
-
-// only for use by loading code
-- (void) _setNodeStyles:(NSMutableArray*)styles;
-- (void) _setEdgeStyles:(NSMutableArray*)styles;
-
-- (NodeStyle*) nodeStyleForName:(NSString*)name;
-- (EdgeStyle*) edgeStyleForName:(NSString*)name;
-
-- (void) addNodeStyle:(NodeStyle*)style;
-- (void) removeNodeStyle:(NodeStyle*)style;
-- (void) addEdgeStyle:(EdgeStyle*)style;
-- (void) removeEdgeStyle:(EdgeStyle*)style;
-
-- (void) updateFromManager:(StyleManager*)manager;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/StyleManager.m b/tikzit-old/src/common/StyleManager.m
deleted file mode 100644
index 05c6c86..0000000
--- a/tikzit-old/src/common/StyleManager.m
+++ /dev/null
@@ -1,378 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "StyleManager.h"
-
-@implementation StyleManager
-
-- (void) nodeStylePropertyChanged:(NSNotification*)n {
- if ([[[n userInfo] objectForKey:@"propertyName"] isEqual:@"name"]) {
- NSDictionary *userInfo;
- userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
- [n object], @"style",
- [[n userInfo] objectForKey:@"oldValue"], @"oldName",
- nil];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"NodeStyleRenamed"
- object:self
- userInfo:userInfo];
- }
-}
-
-- (void) ignoreAllNodeStyles {
- [[NSNotificationCenter defaultCenter]
- removeObserver:self
- name:@"NodeStylePropertyChanged"
- object:nil];
-}
-
-- (void) ignoreNodeStyle:(NodeStyle*)style {
- [[NSNotificationCenter defaultCenter]
- removeObserver:self
- name:@"NodeStylePropertyChanged"
- object:style];
-}
-
-- (void) listenToNodeStyle:(NodeStyle*)style {
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(nodeStylePropertyChanged:)
- name:@"NodeStylePropertyChanged"
- object:style];
-}
-
-- (void) edgeStylePropertyChanged:(NSNotification*)n {
- if ([[[n userInfo] objectForKey:@"propertyName"] isEqual:@"name"]) {
- NSDictionary *userInfo;
- userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
- [n object], @"style",
- [[n userInfo] objectForKey:@"oldValue"], @"oldName",
- nil];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"EdgeStyleRenamed"
- object:self
- userInfo:userInfo];
- }
-}
-
-- (void) ignoreAllEdgeStyles {
- [[NSNotificationCenter defaultCenter]
- removeObserver:self
- name:@"EdgeStylePropertyChanged"
- object:nil];
-}
-
-- (void) ignoreEdgeStyle:(EdgeStyle*)style {
- [[NSNotificationCenter defaultCenter]
- removeObserver:self
- name:@"EdgeStylePropertyChanged"
- object:style];
-}
-
-- (void) listenToEdgeStyle:(EdgeStyle*)style {
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(edgeStylePropertyChanged:)
- name:@"EdgeStylePropertyChanged"
- object:style];
-}
-
-+ (StyleManager*) manager {
-#if __has_feature(objc_arc)
- return [[self alloc] init];
-#else
- return [[[self alloc] init] autorelease];
-#endif
-}
-
-- (id) init {
- self = [super init];
-
- if (self) {
- // we lazily load the default styles, since they may not be needed
- nodeStyles = nil;
- edgeStyles = nil;
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-#if ! __has_feature(objc_arc)
- [nodeStyles release];
- [edgeStyles release];
-
- [super dealloc];
-#endif
-}
-
-- (void) loadDefaultEdgeStyles {
-#if ! __has_feature(objc_arc)
- [edgeStyles release];
-#endif
- edgeStyles = [[NSMutableArray alloc] initWithCapacity:3];
-
- EdgeStyle *simple = [EdgeStyle defaultEdgeStyleWithName:@"simple"];
- [simple setThickness:2.0f];
- [self listenToEdgeStyle:simple];
-
- EdgeStyle *arrow = [EdgeStyle defaultEdgeStyleWithName:@"arrow"];
- [arrow setThickness:2.0f];
- [arrow setDecorationStyle:ED_Arrow];
- [self listenToEdgeStyle:arrow];
-
- EdgeStyle *tick = [EdgeStyle defaultEdgeStyleWithName:@"tick"];
- [tick setThickness:2.0f];
- [tick setDecorationStyle:ED_Tick];
- [self listenToEdgeStyle:tick];
-
- [edgeStyles addObject:simple];
- [edgeStyles addObject:arrow];
- [edgeStyles addObject:tick];
-}
-
-- (void) loadDefaultNodeStyles {
-#if ! __has_feature(objc_arc)
- [nodeStyles release];
-#endif
- nodeStyles = [[NSMutableArray alloc] initWithCapacity:3];
-
- NodeStyle *rn = [NodeStyle defaultNodeStyleWithName:@"rn"];
- [rn setStrokeThickness:2];
- [rn setStrokeColorRGB:[ColorRGB colorWithFloatRed:0 green:0 blue:0]];
- [rn setFillColorRGB:[ColorRGB colorWithFloatRed:1 green:0 blue:0]];
- [self listenToNodeStyle:rn];
-
- NodeStyle *gn = [NodeStyle defaultNodeStyleWithName:@"gn"];
- [gn setStrokeThickness:2];
- [gn setStrokeColorRGB:[ColorRGB colorWithFloatRed:0 green:0 blue:0]];
- [gn setFillColorRGB:[ColorRGB colorWithFloatRed:0 green:1 blue:0]];
- [self listenToNodeStyle:gn];
-
- NodeStyle *yn = [NodeStyle defaultNodeStyleWithName:@"yn"];
- [yn setStrokeThickness:2];
- [yn setStrokeColorRGB:[ColorRGB colorWithFloatRed:0 green:0 blue:0]];
- [yn setFillColorRGB:[ColorRGB colorWithFloatRed:1 green:1 blue:0]];
- [self listenToNodeStyle:yn];
-
- [nodeStyles addObject:rn];
- [nodeStyles addObject:gn];
- [nodeStyles addObject:yn];
-}
-
-- (void) postNodeStyleAdded:(NodeStyle*)style {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"NodeStyleAdded"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:style forKey:@"style"]];
-}
-
-- (void) postNodeStyleRemoved:(NodeStyle*)style {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"NodeStyleRemoved"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:style forKey:@"style"]];
-}
-
-- (void) postEdgeStyleAdded:(EdgeStyle*)style {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"EdgeStyleAdded"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:style forKey:@"style"]];
-}
-
-- (void) postEdgeStyleRemoved:(EdgeStyle*)style {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"EdgeStyleRemoved"
- object:self
- userInfo:[NSDictionary dictionaryWithObject:style forKey:@"style"]];
-}
-
-- (void) postNodeStylesReplaced {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"NodeStylesReplaced" object:self];
-}
-
-- (void) postEdgeStylesReplaced {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"EdgeStylesReplaced" object:self];
-}
-
-- (NSArray*) nodeStyles {
- if (nodeStyles == nil) {
- [self loadDefaultNodeStyles];
- }
- return nodeStyles;
-}
-
-- (NSArray*) edgeStyles {
- if (edgeStyles == nil) {
- [self loadDefaultEdgeStyles];
- }
- return edgeStyles;
-}
-
-- (void) _setNodeStyles:(NSMutableArray*)styles {
- [self ignoreAllNodeStyles];
-#if ! __has_feature(objc_arc)
- [nodeStyles release];
- [styles retain];
-#endif
- nodeStyles = styles;
- for (NodeStyle *style in styles) {
- [self listenToNodeStyle:style];
- }
- [self postNodeStylesReplaced];
-}
-
-- (void) _setEdgeStyles:(NSMutableArray*)styles {
- [self ignoreAllEdgeStyles];
-#if ! __has_feature(objc_arc)
- [edgeStyles release];
- [styles retain];
-#endif
- edgeStyles = styles;
- for (EdgeStyle *style in styles) {
- [self listenToEdgeStyle:style];
- }
- [self postEdgeStylesReplaced];
-}
-
-- (NodeStyle*) nodeStyleForName:(NSString*)name {
- for (NodeStyle *s in nodeStyles) {
- if ([[s name] isEqualToString:name]) {
- return s;
- }
- }
-
- return nil;
-}
-
-- (void) addNodeStyle:(NodeStyle*)style {
- if (nodeStyles == nil) {
- [self loadDefaultNodeStyles];
- }
- [nodeStyles addObject:style];
- [self listenToNodeStyle:style];
- [self postNodeStyleAdded:style];
-}
-
-- (void) removeNodeStyle:(NodeStyle*)style {
- if (nodeStyles == nil) {
- [self loadDefaultNodeStyles];
- }
-
- [self ignoreNodeStyle:style];
-#if ! __has_feature(objc_arc)
- [style retain];
-#endif
- [nodeStyles removeObject:style];
- [self postNodeStyleRemoved:style];
-#if ! __has_feature(objc_arc)
- [style release];
-#endif
-}
-
-- (EdgeStyle*) edgeStyleForName:(NSString*)name {
- for (EdgeStyle *s in edgeStyles) {
- if ([[s name] isEqualToString:name]) {
- return s;
- }
- }
-
- return nil;
-}
-
-- (void) addEdgeStyle:(EdgeStyle*)style {
- if (edgeStyles == nil) {
- [self loadDefaultEdgeStyles];
- }
- [edgeStyles addObject:style];
- [self listenToEdgeStyle:style];
- [self postEdgeStyleAdded:style];
-}
-
-- (void) removeEdgeStyle:(EdgeStyle*)style {
- if (edgeStyles == nil) {
- [self loadDefaultEdgeStyles];
- }
-
- [self ignoreEdgeStyle:style];
-#if ! __has_feature(objc_arc)
- [style retain];
-#endif
- [edgeStyles removeObject:style];
- [self postEdgeStyleRemoved:style];
-#if ! __has_feature(objc_arc)
- [style release];
-#endif
-}
-
-- (void) updateFromManager:(StyleManager*)m {
- NSMutableArray *ns = [NSMutableArray arrayWithCapacity:[[m nodeStyles] count]];
- for (NodeStyle *style in [m nodeStyles]) {
- NodeStyle *currentStyle = [self nodeStyleForName:[style name]];
- if (currentStyle != nil) {
- [currentStyle updateFromStyle:style];
- [ns addObject:currentStyle];
- } else {
-#if __has_feature(objc_arc)
- [ns addObject:[style copy]];
-#else
- [ns addObject:[[style copy] autorelease]];
-#endif
- }
- }
- NSMutableArray *es = [NSMutableArray arrayWithCapacity:[[m edgeStyles] count]];
- for (EdgeStyle *style in [m edgeStyles]) {
- EdgeStyle *currentStyle = [self edgeStyleForName:[style name]];
- if (currentStyle != nil) {
- [currentStyle updateFromStyle:style];
- [es addObject:currentStyle];
- } else {
-#if __has_feature(objc_arc)
- [es addObject:[style copy]];
-#else
- [es addObject:[[style copy] autorelease]];
-#endif
- }
- }
- [self _setNodeStyles:ns];
- [self _setEdgeStyles:es];
-}
-
-- (id) copyWithZone:(NSZone*)zone {
- StyleManager *m = [[StyleManager allocWithZone:zone] init];
-
- NSMutableArray *ns = [NSMutableArray arrayWithCapacity:[nodeStyles count]];
- for (NodeStyle *style in nodeStyles) {
-#if __has_feature(objc_arc)
- [ns addObject:[style copyWithZone:zone]];
-#else
- [ns addObject:[[style copyWithZone:zone] autorelease]];
-#endif
- }
- NSMutableArray *es = [NSMutableArray arrayWithCapacity:[edgeStyles count]];
- for (EdgeStyle *style in edgeStyles) {
-#if __has_feature(objc_arc)
- [es addObject:[style copyWithZone:zone]];
-#else
- [es addObject:[[style copyWithZone:zone] autorelease]];
-#endif
- }
- [m _setNodeStyles:ns];
- [m _setEdgeStyles:es];
-
- return m;
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/SupportDir.h b/tikzit-old/src/common/SupportDir.h
deleted file mode 100644
index 30ccbcb..0000000
--- a/tikzit-old/src/common/SupportDir.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// SupportDir.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-
-@interface SupportDir : NSObject {
-}
-
-+ (void)createUserSupportDir;
-+ (NSString*)userSupportDir;
-+ (NSString*)systemSupportDir;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/SupportDir.m b/tikzit-old/src/common/SupportDir.m
deleted file mode 100644
index 22fed1b..0000000
--- a/tikzit-old/src/common/SupportDir.m
+++ /dev/null
@@ -1,65 +0,0 @@
-//
-// SupportDir.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "SupportDir.h"
-
-#ifndef __APPLE__
-#import <glib.h>
-#import "stat.h"
-#endif
-
-@implementation SupportDir
-
-+ (NSString*)userSupportDir {
-#ifdef __APPLE__
- return [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,NSUserDomainMask,YES)
- objectAtIndex:0] stringByAppendingPathComponent:@"TikZiT"];
-#else
- return [NSString stringWithFormat:@"%s/tikzit", g_get_user_config_dir ()];
-#endif
-}
-
-+ (NSString*)systemSupportDir {
-#ifdef __APPLE__
- return [[NSBundle mainBundle] resourcePath];
-#else
- return @TIKZITSHAREDIR;
-#endif
-}
-
-+ (void)createUserSupportDir {
-#ifdef __APPLE__
- NSFileManager *fileManager = [NSFileManager defaultManager];
- [fileManager createDirectoryAtPath:[SupportDir userSupportDir]
- withIntermediateDirectories:YES
- attributes:nil
- error:NULL];
-#else
- // NSFileManager is slightly dodgy on Windows
- g_mkdir_with_parents ([[SupportDir userSupportDir] UTF8String], S_IRUSR | S_IWUSR | S_IXUSR);
-#endif
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/TikzGraphAssembler+Parser.h b/tikzit-old/src/common/TikzGraphAssembler+Parser.h
deleted file mode 100644
index c9391a9..0000000
--- a/tikzit-old/src/common/TikzGraphAssembler+Parser.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2013 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/**
- * TikzGraphAssember+Parser.h
- *
- * This file exposes some TikzGraphAssembler functions
- * that are only of use to the parser.
- */
-
-#import "TikzGraphAssembler.h"
-
-@interface TikzGraphAssembler (Parser)
-- (Graph*) graph;
-/** Store a node so that it can be looked up by name later */
-- (void) addNodeToMap:(Node*)n;
-/** Get a previously-stored node by name */
-- (Node*) nodeWithName:(NSString*)name;
-- (void) reportError:(const char *)message atLocation:(YYLTYPE*)yylloc;
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/TikzGraphAssembler.h b/tikzit-old/src/common/TikzGraphAssembler.h
deleted file mode 100644
index 3403969..0000000
--- a/tikzit-old/src/common/TikzGraphAssembler.h
+++ /dev/null
@@ -1,115 +0,0 @@
-//
-// TikzGraphAssembler.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Graph.h"
-
-/**
- * Parses (a subset of) tikz code and produces the corresponding Graph
- *
- * A note on errors:
- * If parsing fails and a non-NULL error argument is given, it will be
- * populated with an error with domain TZErrorDomain and code TZ_ERR_PARSE
- * (see NSError+Tikzit.h).
- *
- * This will have a description set, typically something like
- * "syntax error, unexpected [, expecting ("
- * It may also have the following keys (it will have all or none of these),
- * where numbers are stored using NSNumber:
- * - startLine: the line (starting at 1) containing the first character
- * of the bad token
- * - startColumn: the column (starting at 1; tabs count for 1) of the first
- * character of the bad token
- * - endLine: the line (starting at 1) containing the last character
- * of the bad token
- * - endColumn: the column (starting at 1; tabs count for 1) of the last
- * character of the bad token
- * - syntaxString: an excerpt of the input string (typically the contents
- * from startLine to endLine) providing some context
- * - tokenOffset: the character offset (starting at 0) of the bad token
- * within syntaxString
- * - tokenLength: the character length (including newlines) of the bad token
- * within syntaxString
- */
-@interface TikzGraphAssembler : NSObject {
- const char *tikzStr;
- Graph *graph;
- void *scanner;
- NSMutableDictionary *nodeMap;
- NSError *lastError;
-}
-
-/**
- * Parse tikz and place the result in gr
- *
- * Note that the graph must be empty; this might be used from an init
- * method, for example, although don't forget that you can return a
- * different object in init methods, providing you get the allocation
- * right.
- *
- * @param tikz the tikz string to parse
- * @param gr the graph to store the result in (must be empty, non-nil)
- * @param e a location to store an error if parsing fails (may be NULL)
- * @return YES if parsing succeeded, NO otherwise
- */
-+ (BOOL) parseTikz:(NSString*)tikz forGraph:(Graph*)gr error:(NSError**)e;
-/**
- * Overload for -[parseTikz:forGraph:error:] with the error set to NULL
- */
-+ (BOOL) parseTikz:(NSString*)tikz forGraph:(Graph*)gr;
-/**
- * Parse tikz
- *
- * @param tikz the tikz string to parse
- * @param e a location to store an error if parsing fails (may be NULL)
- * @return a Graph object if parsing succeeded, nil otherwise
- */
-+ (Graph*) parseTikz:(NSString*)tikz error:(NSError**)e;
-/**
- * Overload for -[parseTikz:error:] with the error set to NULL
- */
-+ (Graph*) parseTikz:(NSString*)tikz;
-/**
- * Validate a property string or value
- *
- * Wraps the string in "{" and "}" and checks it lexes completely; in other
- * words, makes sure that "{" and "}" are balanced (ignoring escaped versions).
- * @param tikz the string to validate
- * @return YES if the string can be used as a property name or value, NO
- * otherwise
- */
-+ (BOOL)validateTikzPropertyNameOrValue:(NSString*)tikz;
-
-/**
- * Validate an edge anchor
- *
- * Checks that the given string will successfully lex if used as an anchor for
- * and edge
- * @param tikz the string to validate
- * @return YES if the string can be used as an edge anchor, NO otherwise
- */
-+ (BOOL)validateTikzEdgeAnchor:(NSString*)tikz;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/TikzGraphAssembler.m b/tikzit-old/src/common/TikzGraphAssembler.m
deleted file mode 100644
index c5d2811..0000000
--- a/tikzit-old/src/common/TikzGraphAssembler.m
+++ /dev/null
@@ -1,310 +0,0 @@
-//
-// TikzGraphAssembler.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TikzGraphAssembler.h"
-#import "tikzparserdefs.h"
-#import "tikzparser.h"
-#import "TikzGraphAssembler+Parser.h"
-#import "tikzlexer.h"
-#import "NSError+Tikzit.h"
-
-@implementation TikzGraphAssembler
-
-- (id)init {
-#if ! __has_feature(objc_arc)
- [self release];
-#endif
- return nil;
-}
-
-- (id)initWithGraph:(Graph*)g {
- self = [super init];
- if (self) {
-#if __has_feature(objc_arc)
- graph = g;
-#else
- graph = [g retain];
-#endif
- nodeMap = [[NSMutableDictionary alloc] init];
- yylex_init (&scanner);
- yyset_extra(self, scanner);
- }
- return self;
-}
-
-- (void)dealloc {
-#if ! __has_feature(objc_arc)
- [graph release];
- [nodeMap release];
- [lastError release];
- yylex_destroy (scanner);
- [super dealloc];
-#endif
-}
-
-- (BOOL) parseTikz:(NSString*)t error:(NSError**)error {
-#if ! __has_feature(objc_arc)
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-#endif
-
- tikzStr = [t UTF8String];
- yy_scan_string(tikzStr, scanner);
- int result = yyparse(scanner);
- tikzStr = NULL;
-
-#if ! __has_feature(objc_arc)
- [pool drain];
-#endif
-
- if (result == 0) {
- return YES;
- } else {
- if (error) {
- if (lastError) {
-#if __has_feature(objc_arc)
- *error = lastError;
-#else
- *error = [[lastError retain] autorelease];
-#endif
- } else if (result == 1) {
- *error = [NSError errorWithMessage:@"Syntax error"
- code:TZ_ERR_PARSE];
- } else if (result == 2) {
- *error = [NSError errorWithMessage:@"Insufficient memory"
- code:TZ_ERR_PARSE];
- } else {
- *error = [NSError errorWithMessage:@"Unknown error"
- code:TZ_ERR_PARSE];
- }
- }
- return NO;
- }
-}
-
-+ (BOOL) parseTikz:(NSString*)tikz forGraph:(Graph*)gr {
- return [self parseTikz:tikz forGraph:gr error:NULL];
-}
-+ (Graph*) parseTikz:(NSString*)tikz error:(NSError**)e {
- Graph *gr = [[Graph alloc] init];
- if ([self parseTikz:tikz forGraph:gr error:e]) {
-#if __has_feature(objc_arc)
- return gr;
-#else
- return [gr autorelease];
-#endif
- } else {
-#if ! __has_feature(objc_arc)
- [gr release];
-#endif
- return nil;
- }
-}
-+ (Graph*) parseTikz:(NSString*)tikz {
- return [self parseTikz:tikz error:NULL];
-}
-
-+ (BOOL) parseTikz:(NSString*)tikz forGraph:(Graph*)gr error:(NSError**)error {
- if([tikz length] == 0) {
- // empty string -> empty graph
- return YES;
- }
-
- TikzGraphAssembler *assembler = [[self alloc] initWithGraph:gr];
- BOOL success = [assembler parseTikz:tikz error:error];
-#if ! __has_feature(objc_arc)
- [assembler release];
-#endif
- return success;
-}
-
-+ (BOOL)validateTikzPropertyNameOrValue:(NSString*)tikz {
- BOOL valid;
-
- NSString * testTikz = [NSString stringWithFormat: @"{%@}", tikz];
-
- void *scanner;
- yylex_init (&scanner);
- yyset_extra(nil, scanner);
- yy_scan_string([testTikz UTF8String], scanner);
- YYSTYPE lval;
- YYLTYPE lloc;
- int result = yylex(&lval, &lloc, scanner);
- valid = (result == DELIMITEDSTRING) &&
- (yyget_leng(scanner) == [testTikz length]);
- yylex_destroy(scanner);
-
- return valid;
-}
-
-+ (BOOL)validateTikzEdgeAnchor:(NSString*)tikz {
- if ([tikz length] == 0)
- return YES;
-
- BOOL valid = YES;
-
- NSString * testTikz = [NSString stringWithFormat: @"(1.%@)", tikz];
-
- void *scanner;
- yylex_init (&scanner);
- yyset_extra(nil, scanner);
- yy_scan_string([testTikz UTF8String], scanner);
- YYSTYPE lval;
- YYLTYPE lloc;
- valid = valid && (yylex(&lval, &lloc, scanner) == LEFTPARENTHESIS);
- valid = valid && (yylex(&lval, &lloc, scanner) == REFSTRING);
- valid = valid && (yylex(&lval, &lloc, scanner) == FULLSTOP);
- valid = valid && (yylex(&lval, &lloc, scanner) == REFSTRING);
- valid = valid && (yylex(&lval, &lloc, scanner) == RIGHTPARENTHESIS);
- valid = valid && (lloc.last_column == [testTikz length]);
- yylex_destroy(scanner);
-
- return valid;
-}
-
-@end
-
-@implementation TikzGraphAssembler (Parser)
-- (Graph*)graph { return graph; }
-
-- (void)addNodeToMap:(Node*)n {
- [nodeMap setObject:n forKey:[n name]];
-}
-
-- (Node*)nodeWithName:(NSString*)name {
- return [nodeMap objectForKey:name];
-}
-
-- (void) setLastError:(NSError*)error {
-#if ! __has_feature(objc_arc)
- [error retain];
- [lastError release];
-#endif
- lastError = error;
-}
-
-- (void) reportError:(const char *)message atLocation:(YYLTYPE*)yylloc {
- NSString *nsmsg = [NSString stringWithUTF8String:message];
-
- const char *first_line_start = find_start_of_nth_line (
- tikzStr, yylloc->first_line - 1);
- const char *last_line_start = find_start_of_nth_line (
- first_line_start, yylloc->last_line - yylloc->first_line);
- const char *last_line_end = last_line_start;
- while (*last_line_end && *last_line_end != '\n') {
- // points to just after end of last line
- ++last_line_end;
- }
-
- size_t context_len = last_line_end - first_line_start;
- size_t token_offset = yylloc->first_column - 1;
- size_t token_len = ((last_line_start - first_line_start) + yylloc->last_column) - token_offset;
-
- if (token_offset + token_len > context_len) {
- // error position state is corrupted
- NSLog(@"Got bad error state for error \"%s\": start(%i,%i), end(%i,%i)",
- message,
- yylloc->first_line,
- yylloc->first_column,
- yylloc->last_line,
- yylloc->last_column);
- [self setLastError:[NSError errorWithMessage:nsmsg
- code:TZ_ERR_PARSE]];
- } else {
- char *context = malloc (context_len + 1);
- strncpy (context, first_line_start, context_len);
- *(context + context_len) = '\0';
-
- NSDictionary *userInfo =
- [NSDictionary dictionaryWithObjectsAndKeys:
- nsmsg,
- NSLocalizedDescriptionKey,
- [NSNumber numberWithInt:yylloc->first_line],
- @"startLine",
- [NSNumber numberWithInt:yylloc->first_column],
- @"startColumn",
- [NSNumber numberWithInt:yylloc->last_line],
- @"endLine",
- [NSNumber numberWithInt:yylloc->last_column],
- @"endColumn",
- [NSString stringWithUTF8String:context],
- @"syntaxString",
- [NSNumber numberWithInt:token_offset],
- @"tokenStart",
- [NSNumber numberWithInt:token_len],
- @"tokenLength",
- nil];
- [self setLastError:
- [NSError errorWithDomain:TZErrorDomain
- code:TZ_ERR_PARSE
- userInfo:userInfo]];
-
- // we can now freely edit context string
- // we only bother printing out the first line
- if (yylloc->last_line > yylloc->first_line) {
- char *nlp = strchr(context, '\n');
- if (nlp) {
- *nlp = '\0';
- context_len = nlp - context;
- NSAssert2(token_offset < context_len, @"token_offset (%lu) < context_len (%lu)", token_offset, context_len);
- if (token_offset + token_len > context_len) {
- token_len = context_len - token_offset;
- }
- } else {
- NSLog(@"Didn't find any newlines in context string!");
- }
- }
- size_t token_col_offset = 0;
- size_t token_col_len = 0;
- for (int i = 0; i < token_offset; ++i) {
- if (*(context + i) == '\t')
- token_col_offset += 8;
- else
- ++token_col_offset;
- }
- for (int i = token_offset; i < token_offset + token_len; ++i) {
- if (*(context + i) == '\t')
- token_col_len += 8;
- else
- ++token_col_len;
- }
- NSString *pointerLinePadding =
- [@"" stringByPaddingToLength:token_col_offset
- withString:@" "
- startingAtIndex:0];
- NSString *pointerLineCarets =
- [@"" stringByPaddingToLength:token_col_len
- withString:@"^"
- startingAtIndex:0];
- NSLog(@"Parse error on line %i, starting at %i: %s\n%s\n%@%@",
- yylloc->first_line,
- yylloc->first_column,
- message,
- context,
- pointerLinePadding,
- pointerLineCarets);
- free (context);
- }
-}
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/TikzShape.h b/tikzit-old/src/common/TikzShape.h
deleted file mode 100644
index 6a91f91..0000000
--- a/tikzit-old/src/common/TikzShape.h
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// TikzShape.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-#import "Shape.h"
-
-@interface TikzShape : Shape {
- NSString *tikzSrc;
-}
-
-@property (copy) NSString *tikzSrc;
-
-- (id)initWithTikzFile:(NSString*)file;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/TikzShape.m b/tikzit-old/src/common/TikzShape.m
deleted file mode 100644
index 555a7df..0000000
--- a/tikzit-old/src/common/TikzShape.m
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// TikzShape.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TikzShape.h"
-#import "Graph.h"
-
-@implementation TikzShape
-
-@synthesize tikzSrc;
-
-- (id)initWithTikzFile:(NSString*)file {
- self = [super init];
- if (self) {
- NSString *tikz = [NSString stringWithContentsOfFile:file
- encoding:NSUTF8StringEncoding
- error:NULL];
- if (tikz == nil) return nil;
-
- tikzSrc = [tikz copy];
-
- Graph *graph = [Graph graphFromTikz:tikz];
- if (graph == nil) return nil;
-
- NSRect graphBounds = ([graph hasBoundingBox]) ? [graph boundingBox] : [graph bounds];
-
- float sz = 0.5f;
-
- // the "screen" coordinate space fits in the shape bounds
- Transformer *t = [Transformer transformer];
- float width_ratio = (2*sz) / graphBounds.size.width;
- float height_ratio = (2*sz) / graphBounds.size.height;
- [t setScale:MIN(width_ratio, height_ratio)];
- NSRect bds = [t rectToScreen:graphBounds];
- NSPoint shift = NSMakePoint(-NSMidX(bds),
- -NSMidY(bds));
- [t setOrigin:shift];
- [graph applyTransformer:t];
-#if __has_feature(objc_arc)
- paths = [graph pathCover];
-#else
- paths = [[graph pathCover] retain];
-#endif
- }
- return self;
-}
-
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/Transformer.h b/tikzit-old/src/common/Transformer.h
deleted file mode 100644
index 1b0108a..0000000
--- a/tikzit-old/src/common/Transformer.h
+++ /dev/null
@@ -1,154 +0,0 @@
-//
-// Transformer.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-#import <Foundation/Foundation.h>
-
-extern float const PIXELS_PER_UNIT;
-
-/*!
- @class Transformer
- @brief Do affine coordinate transforms between an abstract co-ordinate
- space (such as the graph's) and the screen's.
-
- This currently allows zooming and panning.
- */
-@interface Transformer : NSObject <NSCopying> {
- NSPoint origin;
- float x_scale;
- float y_scale;
-}
-
-/*!
- @brief The screen co-ordinate of the abstract space origin.
- */
-@property (assign) NSPoint origin;
-
-/*!
- @brief The scale (from abstract space to screen space)
- @detail This is the size of a single unit (a distance of 1.0)
- of the abstract space on the screen.
-
- Around 50 is a reasonable value.
- */
-@property (assign) float scale;
-
-/*!
- @brief Whether co-ordinates are flipped about the X axis
- @detail TikZ considers X co-ordinates to run left to right,
- which is not necessarily how the screen views
- them.
- */
-@property (assign,getter=isFlippedAboutXAxis) BOOL flippedAboutXAxis;
-
-/*!
- @brief Whether co-ordinates are flipped about the Y axis
- @detail TikZ considers Y co-ordinates to run up the page,
- which is not necessarily how the screen views
- them.
- */
-@property (assign,getter=isFlippedAboutYAxis) BOOL flippedAboutYAxis;
-
-/*!
- @brief Transform a point from screen space to abstract space.
- @param p a point in screen space.
- @result A point in abstract space.
- */
-- (NSPoint)fromScreen:(NSPoint)p;
-
-/*!
- @brief Transform a point from abstract space to screen space.
- @param p a point in abstract space.
- @result A point in screen space.
- */
-- (NSPoint)toScreen:(NSPoint)p;
-
-/*!
- @brief Scale a distance from screen space to abstract space.
- @param dist a distance in screen space.
- @result A distance in abstract space.
- */
-- (float)scaleFromScreen:(float)dist;
-
-/*!
- @brief Scale a distance from abstract space to screen space.
- @param dist a distance in abstract space.
- @result A distance in screen space.
- */
-- (float)scaleToScreen:(float)dist;
-
-/*!
- @brief Scale a rectangle from screen space to abstract space.
- @param r a rectangle in screen space.
- @result A rectangle in abstract space.
- */
-- (NSRect)rectFromScreen:(NSRect)r;
-
-/*!
- @brief Scale a rectangle from abstract space to screen space.
- @param r a rectangle in abstract space.
- @result A rectangle in screen space.
- */
-- (NSRect)rectToScreen:(NSRect)r;
-
-/*!
- @brief Factory method to get an identity transformer.
- @result A transformer.
- */
-+ (Transformer*)transformer;
-
-/*!
- @brief Factory method to get a transformer identical to another
- @result A transformer.
- */
-+ (Transformer*)transformerWithTransformer:(Transformer*)t;
-
-/*!
- @brief Factory method to get a transformer.
- @param o The screen co-ordinate of the abstract space origin
- @param scale The scale (from abstract space to screen space)
- @result A transformer.
- */
-+ (Transformer*)transformerWithOrigin:(NSPoint)o andScale:(float)scale;
-
-/*!
- @brief Get a global 'actual size' transformer.
- @result A transformer.
- */
-+ (Transformer*)defaultTransformer;
-
-/*!
- @brief A transformer set up from two bounding rects.
-
- graphRect is made as large as possible while still fitting into screenRect.
- @result A transformer.
- */
-+ (Transformer*)transformerToFit:(NSRect)graphRect intoScreenRect:(NSRect)screenRect flippedAboutXAxis:(BOOL)flipX flippedAboutYAxis:(BOOL)flipY;
-
-+ (Transformer*)transformerToFit:(NSRect)graphRect intoScreenRect:(NSRect)screenRect flippedAboutXAxis:(BOOL)flipX;
-+ (Transformer*)transformerToFit:(NSRect)graphRect intoScreenRect:(NSRect)screenRect flippedAboutYAxis:(BOOL)flipY;
-+ (Transformer*)transformerToFit:(NSRect)graphRect intoScreenRect:(NSRect)screenRect;
-
-@end
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/Transformer.m b/tikzit-old/src/common/Transformer.m
deleted file mode 100644
index 2b56813..0000000
--- a/tikzit-old/src/common/Transformer.m
+++ /dev/null
@@ -1,231 +0,0 @@
-//
-// Transformer.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Transformer.h"
-
-float const PIXELS_PER_UNIT = 50;
-
-@implementation Transformer
-
-+ (Transformer*)transformer {
-#if __has_feature(objc_arc)
- return [[Transformer alloc] init];
-#else
- return [[[Transformer alloc] init] autorelease];
-#endif
-}
-
-+ (Transformer*)transformerWithTransformer:(Transformer*)t {
-#if __has_feature(objc_arc)
- return [t copy];
-#else
- return [[t copy] autorelease];
-#endif
-}
-
-+ (Transformer*)transformerWithOrigin:(NSPoint)o andScale:(float)scale {
- Transformer *trans = [self transformer];
- [trans setOrigin:o];
- [trans setScale:scale];
- return trans;
-}
-
-+ (Transformer*)transformerToFit:(NSRect)graphRect
- intoScreenRect:(NSRect)screenRect {
- return [self transformerToFit:graphRect
- intoScreenRect:screenRect
- flippedAboutXAxis:NO
- flippedAboutYAxis:NO];
-}
-
-+ (Transformer*)transformerToFit:(NSRect)graphRect
- intoScreenRect:(NSRect)screenRect
- flippedAboutXAxis:(BOOL)flipX {
- return [self transformerToFit:graphRect
- intoScreenRect:screenRect
- flippedAboutXAxis:flipX
- flippedAboutYAxis:NO];
-}
-
-+ (Transformer*)transformerToFit:(NSRect)graphRect
- intoScreenRect:(NSRect)screenRect
- flippedAboutYAxis:(BOOL)flipY {
- return [self transformerToFit:graphRect
- intoScreenRect:screenRect
- flippedAboutXAxis:NO
- flippedAboutYAxis:flipY];
-}
-
-+ (Transformer*)transformerToFit:(NSRect)graphRect
- intoScreenRect:(NSRect)screenRect
- flippedAboutXAxis:(BOOL)flipAboutXAxis
- flippedAboutYAxis:(BOOL)flipAboutYAxis {
-
- const float wscale = screenRect.size.width / graphRect.size.width;
- const float hscale = screenRect.size.height / graphRect.size.height;
- const float scale = (wscale < hscale) ? wscale : hscale;
- const float xpad = (screenRect.size.width - (graphRect.size.width * scale)) / 2.0;
- const float ypad = (screenRect.size.height - (graphRect.size.height * scale)) / 2.0;
-
- // if we are flipping, we need to calculate the origin from the opposite edge
- const float gx = flipAboutYAxis ? -(graphRect.size.width + graphRect.origin.x)
- : graphRect.origin.x;
- const float gy = flipAboutXAxis ? -(graphRect.size.height + graphRect.origin.y)
- : graphRect.origin.y;
- const float origin_x = screenRect.origin.x - (gx * scale) + xpad;
- const float origin_y = screenRect.origin.y - (gy * scale) + ypad;
-
- Transformer *trans = [self transformer];
- [trans setOrigin:NSMakePoint(origin_x, origin_y)];
- [trans setScale:scale];
- [trans setFlippedAboutXAxis:flipAboutXAxis];
- [trans setFlippedAboutYAxis:flipAboutYAxis];
- return trans;
-}
-
-- (id) init {
- self = [super init];
-
- if (self) {
- origin = NSZeroPoint;
- x_scale = 1.0f;
- y_scale = 1.0f;
- }
-
- return self;
-}
-
-- (id)copyWithZone:(NSZone *)zone {
- Transformer *cp = [[[self class] allocWithZone:zone] init];
- if (cp) {
- cp->origin = origin;
- cp->x_scale = x_scale;
- cp->y_scale = y_scale;
- }
- return cp;
-}
-
-- (NSPoint)origin { return origin; }
-- (void)setOrigin:(NSPoint)o {
- origin = o;
-}
-
-- (float)scale { return ABS(x_scale); }
-- (void)setScale:(float)s {
- x_scale = (x_scale < 0.0) ? -s : s;
- y_scale = (y_scale < 0.0) ? -s : s;
-}
-
-- (BOOL)isFlippedAboutXAxis {
- return y_scale < 0.0;
-}
-
-- (void)setFlippedAboutXAxis:(BOOL)flip {
- if (flip != [self isFlippedAboutXAxis]) {
- y_scale *= -1;
- }
-}
-
-- (BOOL)isFlippedAboutYAxis {
- return x_scale < 0.0;
-}
-
-- (void)setFlippedAboutYAxis:(BOOL)flip {
- if (flip != [self isFlippedAboutYAxis]) {
- x_scale *= -1;
- }
-}
-
-- (NSPoint)fromScreen:(NSPoint)p {
- NSPoint trans;
- trans.x = (p.x - origin.x) / x_scale;
- trans.y = (p.y - origin.y) / y_scale;
- return trans;
-}
-
-- (NSPoint)toScreen:(NSPoint)p {
- NSPoint trans;
- trans.x = (p.x * x_scale) + origin.x;
- trans.y = (p.y * y_scale) + origin.y;
- return trans;
-}
-
-- (float)scaleFromScreen:(float)dist {
- return dist / ABS(x_scale);
-}
-
-- (float)scaleToScreen:(float)dist {
- return dist * ABS(x_scale);
-}
-
-- (NSRect)rectFromScreen:(NSRect)r {
- NSRect r1;
- r1.origin = [self fromScreen:r.origin];
- r1.size.width = [self scaleFromScreen:r.size.width];
- r1.size.height = [self scaleFromScreen:r.size.height];
- // if we're flipped, the origin will be at a different corner
- if ([self isFlippedAboutYAxis]) {
- r1.origin.x -= r1.size.width;
- }
- if ([self isFlippedAboutXAxis]) {
- r1.origin.y -= r1.size.height;
- }
- return r1;
-}
-
-- (NSRect)rectToScreen:(NSRect)r {
- NSPoint o = r.origin;
- // if we're flipped, the origin will be at a different corner
- if ([self isFlippedAboutYAxis]) {
- o.x = NSMaxX(r);
- }
- if ([self isFlippedAboutXAxis]) {
- o.y = NSMaxY(r);
- }
- NSRect r1;
- r1.origin = [self toScreen:o];
- r1.size.width = [self scaleToScreen:r.size.width];
- r1.size.height = [self scaleToScreen:r.size.height];
- return r1;
-}
-
-- (BOOL)isEqual:(id)object {
- Transformer *t = (Transformer*)object;
- return ([t origin].x == [self origin].x &&
- [t origin].y == [self origin].y &&
- [t scale] == [self scale]);
-}
-
-Transformer *defaultTransformer = nil;
-
-+ (Transformer*)defaultTransformer {
- if (defaultTransformer == nil) {
- defaultTransformer = [[Transformer alloc] init];
- [defaultTransformer setScale:PIXELS_PER_UNIT];
- }
- return defaultTransformer;
-}
-
-@end
-
-// vi:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/common/test/Makefile b/tikzit-old/src/common/test/Makefile
deleted file mode 100644
index d158d16..0000000
--- a/tikzit-old/src/common/test/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-OBJC = gcc -MMD -MP -DSTAND_ALONE -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O0 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I.. -I/users/alemer/GNUstep/Library/Headers -std=c99 -D_GNU_SOURCE -rdynamic -fgnu-runtime -L/users/alemer/GNUstep/Library/Libraries -L/usr/local/lib64 -L/usr/lib64 -lgnustep-base -lpthread -lobjc -lm
-
-maths_test_objects = test.m maths.m ../util.m
-color_test_objects = test.m color.m ../ColorRGB.m ../util.m ../BasicMapTable.m ../RColor.m
-
-test: maths-test color-test
- ./maths-test
- ./color-test
-
-maths-test: $(maths_test_objects)
- $(OBJC) $(maths_test_objects) -o $@
-
-color-test: $(color_test_objects)
- $(OBJC) $(color_test_objects) -o $@
diff --git a/tikzit-old/src/common/test/color.m b/tikzit-old/src/common/test/color.m
deleted file mode 100644
index 48a6ff4..0000000
--- a/tikzit-old/src/common/test/color.m
+++ /dev/null
@@ -1,80 +0,0 @@
-//
-// color.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "test/test.h"
-#import "ColorRGB.h"
-
-#ifdef STAND_ALONE
-void runTests() {
-#else
-void testColor() {
-#endif
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"color");
-
- ColorRGB *red = [ColorRGB colorWithRed:255 green:0 blue:0];
- ColorRGB *lime = [ColorRGB colorWithRed:0 green:255 blue:0];
- ColorRGB *green = [ColorRGB colorWithRed:0 green:128 blue:0];
- TEST(@"Recognised red",
- [red name] != nil &&
- [[red name] isEqualToString:@"Red"]);
- TEST(@"Recognised lime",
- [lime name] != nil &&
- [[lime name] isEqualToString:@"Lime"]);
- TEST(@"Recognised green",
- [green name] != nil &&
- [[green name] isEqualToString:@"Green"]);
-
- ColorRGB *floatRed = [ColorRGB colorWithFloatRed:1.0f green:0.0f blue:0.0f];
- ColorRGB *floatLime = [ColorRGB colorWithFloatRed:0.0f green:1.0f blue:0.0f];
- ColorRGB *floatGreen = [ColorRGB colorWithFloatRed:0.0f green:0.5f blue:0.0f];
-
- TEST(@"Float red equal to int red", [floatRed isEqual:red]);
- TEST(@"Float lime equal to int lime", [floatLime isEqual:lime]);
- TEST(@"Float green equal to int green", [floatGreen isEqual:green]);
-
- TEST(@"Recognised float red",
- [floatRed name] != nil &&
- [[floatRed name] isEqualToString:@"Red"]);
-
- TEST(@"Recognised float lime",
- [floatLime name] != nil &&
- [[floatLime name] isEqualToString:@"Lime"]);
-
- TEST(@"Recognised float green",
- [floatGreen name] != nil &&
- [[floatGreen name] isEqualToString:@"Green"]);
-
- [floatRed setRedFloat:0.99f];
- TEST(@"Nudged red, not recognised now", [floatRed name] == nil);
- [floatRed setToClosestHashed];
- TEST(@"Set to closest hashed, reconised again",
- [floatRed name] != nil &&
- [[floatRed name] isEqualToString:@"Red"]);
-
- TEST(@"Red has correct hex (ff0000)", [[red hexName] isEqualToString:@"hexcolor0xff0000"]);
- TEST(@"Lime has correct hex (00ff00)", [[lime hexName] isEqualToString:@"hexcolor0x00ff00"]);
- TEST(@"Green has correct hex (008000)", [[green hexName] isEqualToString:@"hexcolor0x008000"]);
-
- endTestBlock(@"color");
- [pool drain];
-}
diff --git a/tikzit-old/src/common/test/common.m b/tikzit-old/src/common/test/common.m
deleted file mode 100644
index c9ac980..0000000
--- a/tikzit-old/src/common/test/common.m
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// common.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "test/test.h"
-void testParser();
-void testColor();
-void testMaths();
-
-void testCommon() {
- startTestBlock(@"common");
- testParser();
- testColor();
- testMaths();
- endTestBlock(@"common");
-}
diff --git a/tikzit-old/src/common/test/maths.m b/tikzit-old/src/common/test/maths.m
deleted file mode 100644
index a11e58e..0000000
--- a/tikzit-old/src/common/test/maths.m
+++ /dev/null
@@ -1,562 +0,0 @@
-//
-// TikZiT
-//
-// Copyright 2011 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "../util.h"
-
-#import "test.h"
-
-void testRectAroundPoints() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"NSRectAroundPoints");
-
- NSRect rect = NSRectAroundPoints (NSZeroPoint, NSZeroPoint);
- assertRectsEqual (@"(0,0) and (0,0)", rect, NSZeroRect);
-
- rect = NSRectAroundPoints (NSZeroPoint, NSMakePoint (1.0f, 1.0f));
- assertRectsEqual (@"(0,0) and (1,1)", rect, NSMakeRect (0.0f, 0.0f, 1.0f, 1.0f));
-
- rect = NSRectAroundPoints (NSMakePoint (-1.0f, 1.0f), NSMakePoint (1.0f, -1.0f));
- assertRectsEqual (@"(-1,1) and (1,-1)", rect, NSMakeRect (-1.0f, -1.0f, 2.0f, 2.0f));
-
- endTestBlock(@"NSRectAroundPoints");
- [pool drain];
-}
-
-void testRectAroundPointsWithPadding() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"NSRectAroundPointsWithPadding");
-
- NSRect rect = NSRectAroundPointsWithPadding (NSZeroPoint, NSZeroPoint, 0.0f);
- assertRectsEqual (@"(0,0) and (0,0); 0 padding", rect, NSZeroRect);
-
- rect = NSRectAroundPointsWithPadding (NSZeroPoint, NSZeroPoint, 0.2f);
- assertRectsEqual (@"(0,0) and (0,0); 0.2 padding", rect, NSMakeRect (-0.2f, -0.2f, 0.4f, 0.4f));
-
- rect = NSRectAroundPointsWithPadding (NSZeroPoint, NSMakePoint (1.0f, 1.0f), -0.2f);
- assertRectsEqual (@"(0,0) and (1,1); -0.2 padding", rect, NSMakeRect (0.2f, 0.2f, 0.6f, 0.6f));
-
- endTestBlock(@"NSRectAroundPointsWithPadding");
- [pool drain];
-}
-
-void testGoodAtan() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"good_atan");
-
- assertFloatsEqual (@"0.0, 0.0", good_atan (0.0f, 0.0f), 0.0f);
- assertFloatsEqual (@"0.0, 1.0", good_atan (0.0f, 1.0f), 0.5f * M_PI);
- assertFloatsEqual (@"0.0, -1.0", good_atan (0.0f, -1.0f), 1.5f * M_PI);
- assertFloatsEqual (@"1.0, 0.0", good_atan (1.0f, 0.0f), 0.0f);
- assertFloatsEqual (@"1.0, 0.1", good_atan (1.0f, 0.1f), 0.0996687f);
-
- endTestBlock(@"good_atan");
- [pool drain];
-}
-
-void testBezierInterpolate() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"bezierInterpolate");
-
- assertFloatsEqual (@"0.0, (0.0, 0.1, 0.2, 0.3)", bezierInterpolate (0.0f, 0.0f, 0.1f, 0.2f, 0.3f), 0.0f);
- assertFloatsEqual (@"1.0, (0.0, 0.1, 0.2, 0.3)", bezierInterpolate (1.0f, 0.0f, 0.1f, 0.2f, 0.3f), 0.3f);
- assertFloatsEqual (@"0.5, (0.0, 0.1, 0.2, 0.3)", bezierInterpolate (0.5f, 0.0f, 0.1f, 0.2f, 0.3f), 0.15f);
- // FIXME: other tests
-
- endTestBlock(@"bezierInterpolate");
- [pool drain];
-}
-
-void testLineSegmentsIntersect() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"lineSegmentsIntersect");
-
- BOOL result = NO;
- NSPoint intersection = NSMakePoint (-1.0f, -1.0f);
-
- result = lineSegmentsIntersect (NSMakePoint (-1.0f, -1.0f), NSMakePoint (1.0f, 1.0f),
- NSMakePoint (-1.0f, 1.0f), NSMakePoint (1.0f, -1.0f),
- &intersection);
- TEST (@"Cross at zero: has intersection", result);
- assertPointsEqual (@"Cross at zero: intersection value", intersection, NSZeroPoint);
-
- result = lineSegmentsIntersect (NSMakePoint (-1.0f, -1.0f), NSMakePoint (-0.5f, -0.5f),
- NSMakePoint (-1.0f, 1.0f), NSMakePoint (1.0f, -1.0f),
- &intersection);
- TEST (@"Fail to cross at zero", !result);
-
- result = lineSegmentsIntersect (NSMakePoint (1.0f, 1.0f), NSMakePoint (1.0f, -1.0f),
- NSMakePoint (0.0f, 0.0f), NSMakePoint (1.0f, 0.0f),
- &intersection);
- TEST (@"Touch at one: has intersection", result);
- assertPointsEqual (@"Touch at one: intersection value", intersection, NSMakePoint (1.0f, 0.0f));
-
- endTestBlock(@"lineSegmentsIntersect");
- [pool drain];
-}
-
-void testLineSegmentIntersectsRect() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"lineSegmentIntersectsRect");
-
- BOOL result = NO;
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (-1.0f, -1.0f),
- NSMakePoint (0.0f, 0.0f),
- NSZeroRect);
- TEST (@"Zero rect; line touches zero", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (-1.0f, -1.0f),
- NSMakePoint (-0.1f, -0.1f),
- NSZeroRect);
- TEST (@"Zero rect; line short of zero", !result);
-
- NSRect rect = NSMakeRect (1.0f, 1.0f, 1.0f, 1.0f);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 0.0f),
- NSMakePoint (3.0f, 1.0f),
- rect);
- TEST (@"Line underneath", !result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 0.0f),
- NSMakePoint (1.0f, 3.0f),
- rect);
- TEST (@"Line to left", !result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 2.0f),
- NSMakePoint (3.0f, 3.0f),
- rect);
- TEST (@"Line above", !result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (2.0f, 0.0f),
- NSMakePoint (3.0f, 3.0f),
- rect);
- TEST (@"Line to right", !result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 0.0f),
- NSMakePoint (0.9f, 0.9f),
- rect);
- TEST (@"Line short", !result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (1.1f, 1.1f),
- NSMakePoint (1.9f, 1.9f),
- rect);
- TEST (@"Line inside", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 1.5f),
- NSMakePoint (3.0f, 1.5f),
- rect);
- TEST (@"Horizontal line through", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (1.5f, 0.0f),
- NSMakePoint (1.5f, 3.0f),
- rect);
- TEST (@"Vertical line through", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.5f, 1.0f),
- NSMakePoint (2.0f, 2.5f),
- rect);
- TEST (@"Cut top and left", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (2.0f, 0.5f),
- NSMakePoint (0.5f, 2.0f),
- rect);
- TEST (@"Cut bottom and left", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (1.0f, 0.5f),
- NSMakePoint (2.5f, 2.0f),
- rect);
- TEST (@"Cut bottom and right", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 1.0f),
- NSMakePoint (2.0f, 3.0f),
- rect);
- TEST (@"Touch top left", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (1.0f, 0.0f),
- NSMakePoint (3.0f, 2.0f),
- rect);
- TEST (@"Touch bottom right", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (1.0f, 0.0f),
- NSMakePoint (1.0f, 3.0f),
- rect);
- TEST (@"Along left side", result);
-
- result = lineSegmentIntersectsRect (
- NSMakePoint (0.0f, 1.0f),
- NSMakePoint (3.0f, 1.0f),
- rect);
- TEST (@"Along bottom side", result);
-
- endTestBlock(@"lineSegmentIntersectsRect");
- [pool drain];
-}
-
-struct line_bezier_test {
- NSString *msg;
- NSPoint lstart;
- NSPoint lend;
- NSPoint c0;
- NSPoint c1;
- NSPoint c2;
- NSPoint c3;
- BOOL expectedResult;
- float expectedT;
- NSPoint expectedIntersect;
-};
-
-static struct line_bezier_test line_bezier_tests[] = {
- {
- @"Outside box",
- {0.0f, 0.0f},
- {1.0f, 0.0f},
- {0.0f, 1.0f},
- {0.0f, 2.0f},
- {1.0f, 2.0f},
- {1.0f, 1.0f},
- NO,
- -1.0f,
- {0.0f, 0.0f}
- },
- {
- @"Single intersect",
- {100.0f, 20.0f},
- {195.0f, 255.0f},
- {93.0f, 163.0f},
- {40.0f, 30.0f},
- {270.0f, 115.0f},
- {219.0f, 178.0f},
- YES,
- -0.4f,
- {129.391693f, 92.705772f}
- },
- {
- @"Double intersect",
- {100.0f, 20.0f},
- {195.0f, 255.0f},
- {93.0f, 163.0f},
- {40.0f, 30.0f},
- {270.0f, 115.0f},
- {154.0f, 212.0f},
- YES,
- -0.909f,
- {170.740646f,194.990021f}
- },
- {
- @"Near miss",
- {100.0f, 20.0f},
- {195.0f, 255.0f},
- {93.0f, 163.0f},
- {40.0f, 30.0f},
- {176.0f, 100.0f},
- {154.0f, 212.0f},
- NO,
- -1.0f,
- {0.0f,0.0f}
- }
-};
-static unsigned int n_line_bezier_tests = sizeof (line_bezier_tests) / sizeof (line_bezier_tests[0]);
-
-void testLineSegmentIntersectsBezier() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"lineSegmentIntersectsBezier");
-
- for (unsigned int i = 0; i < n_line_bezier_tests; ++i) {
- NSPoint intersect;
- BOOL result = lineSegmentIntersectsBezier (
- line_bezier_tests[i].lstart,
- line_bezier_tests[i].lend,
- line_bezier_tests[i].c0,
- line_bezier_tests[i].c1,
- line_bezier_tests[i].c2,
- line_bezier_tests[i].c3,
- &intersect);
- if (result) {
- if (line_bezier_tests[i].expectedT < 0.0f) {
- assertPointsEqual (line_bezier_tests[i].msg, intersect, line_bezier_tests[i].expectedIntersect);
- } else {
- assertPointsEqual (line_bezier_tests[i].msg, intersect,
- bezierInterpolateFull (line_bezier_tests[i].expectedT, line_bezier_tests[i].c0, line_bezier_tests[i].c1, line_bezier_tests[i].c2, line_bezier_tests[i].c3));
- }
- } else {
- if (line_bezier_tests[i].expectedResult)
- fail (line_bezier_tests[i].msg);
- else
- pass (line_bezier_tests[i].msg);
- }
- }
-
-BOOL lineSegmentIntersectsBezier (NSPoint lstart, NSPoint lend, NSPoint c0, NSPoint c1, NSPoint c2, NSPoint c3, NSPoint *result);
- endTestBlock(@"lineSegmentIntersectsBezier");
- [pool drain];
-}
-
-struct exit_point_test {
- NSString *msg;
- NSPoint rayStart;
- float angle;
- NSRect rect;
- NSPoint expected;
-};
-
-static struct exit_point_test exit_point_tests[] = {
- {
- @"0.0 rads",
- {0.0f, 0.0f},
- 0.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {1.0f, 0.0f}
- },
- {
- @"pi/2 rads",
- {0.0f, 0.0f},
- M_PI / 2.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {0.0f, 1.0f}
- },
- {
- @"-pi/2 rads",
- {0.0f, 0.0f},
- -M_PI / 2.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {0.0f, -1.0f}
- },
- {
- @"pi rads",
- {0.0f, 0.0f},
- M_PI,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {-1.0f, 0.0f}
- },
- {
- @"-pi rads",
- {0.0f, 0.0f},
- -M_PI,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {-1.0f, 0.0f}
- },
- {
- @"pi/4 rads",
- {0.0f, 0.0f},
- M_PI / 4.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {1.0f, 1.0f}
- },
- {
- @"3pi/4 rads",
- {0.0f, 0.0f},
- (3.0f * M_PI) / 4.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {-1.0f, 1.0f}
- },
- {
- @"-pi/4 rads",
- {0.0f, 0.0f},
- -M_PI / 4.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {1.0f, -1.0f}
- },
- {
- @"-3pi/4 rads",
- {0.0f, 0.0f},
- (-3.0f * M_PI) / 4.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {-1.0f, -1.0f}
- },
- {
- @"pi/8 rads",
- {0.0f, 0.0f},
- M_PI / 8.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {1.0f, 0.414213562373095f}
- },
- {
- @"3pi/8 rads",
- {0.0f, 0.0f},
- 3.0f * M_PI / 8.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {0.414213562373095f, 1.0f}
- },
- {
- @"-5pi/8 rads",
- {0.0f, 0.0f},
- -5.0f * M_PI / 8.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {-0.414213562373095f, -1.0f}
- },
- {
- @"-7pi/8 rads",
- {0.0f, 0.0f},
- -7.0f * M_PI / 8.0f,
- {{-1.0f, -1.0f}, {2.0f, 2.0f}},
- {-1.0f, -0.414213562373095f}
- },
- {
- @"pi/8 rads; origin (1,1)",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{0.0f, 0.0f}, {2.0f, 2.0f}},
- {2.0f, 1.414213562373095f}
- },
- {
- @"7pi/8 rads; origin (-2,2)",
- {-2.0f, 2.0f},
- 7.0f * M_PI / 8.0f,
- {{-3.0f, 1.0f}, {2.0f, 2.0f}},
- {-3.0f, 2.414213562373095f}
- },
- {
- @"pi/8 rads; origin (1,1); SW of box",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{1.0f, 1.0f}, {1.0f, 1.0f}},
- {2.0f, 1.414213562373095f}
- },
- {
- @"pi/8 rads; origin (1,1); SE of box",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{0.0f, 1.0f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"pi/8 rads; origin (1,1); NE of box",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{0.0f, 1.0f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"pi/8 rads; origin (1,1); NW of box",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{1.0f, 0.0f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"pi/8 rads; origin (1,1); N of box",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{0.5f, 0.0f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"7pi/8 rads; origin (1,1); N of box",
- {1.0f, 1.0f},
- 7.0f * M_PI / 8.0f,
- {{0.5f, 0.0f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"-pi/8 rads; origin (1,1); S of box",
- {1.0f, 1.0f},
- -M_PI / 8.0f,
- {{0.5f, 1.0f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"-pi/8 rads; origin (1,1); E of box",
- {1.0f, 1.0f},
- -M_PI / 8.0f,
- {{0.0f, 0.5f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"-7pi/8 rads; origin (1,1); W of box",
- {1.0f, 1.0f},
- -7.0f * M_PI / 8.0f,
- {{1.0f, 0.5f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"7pi/8 rads; origin (1,1); W of box",
- {1.0f, 1.0f},
- 7.0f * M_PI / 8.0f,
- {{1.0f, 0.5f}, {1.0f, 1.0f}},
- {1.0f, 1.0f}
- },
- {
- @"pi/8 rads; origin (1,1); leave through top",
- {1.0f, 1.0f},
- M_PI / 8.0f,
- {{0.9f, 0.1f}, {1.0f, 1.0f}},
- {1.2414213562373f, 1.1f}
- },
- {
- @"0 rads; origin (1,1); N of box",
- {1.0f, 1.0f},
- 0.0f,
- {{0.5f, 0.0f}, {1.0f, 1.0f}},
- {1.5f, 1.0f}
- }
-};
-static unsigned int n_exit_point_tests = sizeof (exit_point_tests) / sizeof (exit_point_tests[0]);
-
-void testFindExitPointOfRay() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"findExitPointOfRay");
-
- for (unsigned int i = 0; i < n_exit_point_tests; ++i) {
- NSPoint exitPoint = findExitPointOfRay (
- exit_point_tests[i].rayStart,
- exit_point_tests[i].angle,
- exit_point_tests[i].rect);
- assertPointsEqual (exit_point_tests[i].msg, exitPoint, exit_point_tests[i].expected);
- }
-
- endTestBlock(@"findExitPointOfRay");
- [pool drain];
-}
-
-#ifdef STAND_ALONE
-void runTests() {
-#else
-void testMaths() {
-#endif
- startTestBlock(@"maths");
- testRectAroundPoints();
- testRectAroundPointsWithPadding();
- testGoodAtan();
- testBezierInterpolate();
- testLineSegmentsIntersect();
- testLineSegmentIntersectsRect();
- testFindExitPointOfRay();
- testLineSegmentIntersectsBezier();
- endTestBlock(@"maths");
-}
-
-// vim:ft=objc:ts=4:sts=4:sw=4:noet
diff --git a/tikzit-old/src/common/test/parser.m b/tikzit-old/src/common/test/parser.m
deleted file mode 100644
index 3346acd..0000000
--- a/tikzit-old/src/common/test/parser.m
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-// parser.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "test/test.h"
-#import "TikzGraphAssembler.h"
-
-
-#ifdef STAND_ALONE
-void runTests() {
-#else
-void testParser() {
-#endif
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- startTestBlock(@"parser");
-
- [TikzGraphAssembler setup];
-
- NodeStyle *rn = [NodeStyle defaultNodeStyleWithName:@"rn"];
- NSArray *styles = [NSArray arrayWithObject:rn];
-
- NSString *tikz =
- @"\\begin{tikzpicture}[dotpic]"
- @" \\begin{pgfonlayer}{foo}" //ignored
- @" \\node [style=rn] (0) at (-2,3.4) {stuff{$\\alpha$ in here}};"
- @" \\node (b) at (1,1) {};"
- @" \\end{pgfonlayer}" //ignored
- @" \\draw [bend right=20] (0) to node[tick]{-} (b.center);"
- @"\\end{tikzpicture}";
-
- TikzGraphAssembler *ga = [[TikzGraphAssembler alloc] init];
- TEST(@"Parsing TikZ", [ga parseTikz:tikz]);
-
- Graph *g = [ga graph];
- TEST(@"Graph is non-nil", g != nil);
- TEST(@"Graph has correct number of nodes", [[g nodes] count]==2);
- TEST(@"Graph has correct number of edges", [[g edges] count]==1);
-
- NSEnumerator *en = [[g nodes] objectEnumerator];
- Node *n;
- Node *n1, *n2;
- while ((n=[en nextObject])) {
- [n attachStyleFromTable:styles];
- if ([n style] == rn) n1 = n;
- else if ([n style] == nil) n2 = n;
- }
-
- TEST(@"Styles attached correctly", n1!=nil && n2!=nil);
-
- TEST(@"Nodes labeled correctly",
- [[n1 label] isEqualToString:@"stuff{$\\alpha$ in here}"] &&
- [[n2 label] isEqualToString:@""]
- );
-
- Edge *e1 = [[[g edges] objectEnumerator] nextObject];
-
- TEST(@"Edge has edge node", [e1 edgeNode]!=nil);
- TEST(@"Edge node labeled correctly", [[[e1 edgeNode] label] isEqualToString:@"-"]);
-// NSString *sty = [[[[[e1 edgeNode] data] atoms] objectEnumerator] nextObject];
-// TEST(@"Edge node styled correctly", sty!=nil && [sty isEqualToString:@"tick"]);
-
- PUTS(@"Source anchor: %@",[e1 sourceAnchor]);
- PUTS(@"Target anchor: %@",[e1 targetAnchor]);
-
- endTestBlock(@"parser");
-
- [pool drain];
-}
diff --git a/tikzit-old/src/common/test/test.h b/tikzit-old/src/common/test/test.h
deleted file mode 100644
index 59dcdd4..0000000
--- a/tikzit-old/src/common/test/test.h
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// test.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import <Foundation/Foundation.h>
-
-@interface Allocator : NSObject
-{}
-@end
-
-BOOL fuzzyCompare (float f1, float f2);
-BOOL fuzzyComparePoints (NSPoint p1, NSPoint p2);
-
-void setColorEnabled(BOOL b);
-
-void pass(NSString *msg);
-void fail(NSString *msg);
-void TEST(NSString *msg, BOOL test);
-void assertRectsEqual (NSString *msg, NSRect val, NSRect exp);
-void assertPointsEqual (NSString *msg, NSPoint val, NSPoint exp);
-void assertFloatsEqual (NSString *msg, float val, float exp);
-
-void startTests();
-void endTests();
-
-void startTestBlock(NSString *name);
-void endTestBlock(NSString *name);
-
-#define PUTS(fmt, ...) { \
- NSString *_str = [[NSString alloc] initWithFormat:fmt, ##__VA_ARGS__]; \
- printf("%s\n", [_str UTF8String]); \
- [_str release]; }
-
-#define failFmt(fmt, ...) { \
- NSString *_fstr = [[NSString alloc] initWithFormat:fmt, ##__VA_ARGS__]; \
- fail(_fstr); \
- [_fstr release]; }
-
-// vim:ft=objc:ts=4:sts=4:sw=4:noet
diff --git a/tikzit-old/src/common/test/test.m b/tikzit-old/src/common/test/test.m
deleted file mode 100644
index 9afcd67..0000000
--- a/tikzit-old/src/common/test/test.m
+++ /dev/null
@@ -1,175 +0,0 @@
-//
-// test.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "test/test.h"
-
-static int PASSES;
-static int FAILS;
-
-static int ALLOC_INSTANCES = 0;
-
-static BOOL colorEnabled = YES;
-static int depth = 0;
-
-static NSString *RED, *GREEN, *BLUE, *OFF;
-
-static NSString *indents[6] =
- {@"", @" ", @" ", @" ",
- @" ", @" "};
-
-#define INDENT ((depth >= 6) ? indents[5] : indents[depth])
-
-
-@implementation Allocator
-
-+ (id)alloc {
- ++ALLOC_INSTANCES;
- return [super alloc];
-}
-
-- (void)dealloc {
- --ALLOC_INSTANCES;
- [super dealloc];
-}
-
-+ (Allocator*)allocator {
- return [[[Allocator alloc] init] autorelease];
-}
-
-@end
-
-BOOL fuzzyCompare(float f1, float f2) {
- return (ABS(f1 - f2) <= 0.00001f * MAX(1.0f,MIN(ABS(f1), ABS(f2))));
-}
-
-BOOL fuzzyComparePoints (NSPoint p1, NSPoint p2) {
- return fuzzyCompare (p1.x, p2.x) && fuzzyCompare (p1.y, p2.y);
-}
-
-void pass(NSString *msg) {
- PUTS(@"%@[%@PASS%@] %@", INDENT, GREEN, OFF, msg);
- ++PASSES;
-}
-
-void fail(NSString *msg) {
- PUTS(@"%@[%@FAIL%@] %@", INDENT, RED, OFF, msg);
- ++FAILS;
-}
-
-void TEST(NSString *msg, BOOL test) {
- if (test) {
- pass (msg);
- } else {
- fail (msg);
- }
-}
-
-void assertRectsEqual (NSString *msg, NSRect r1, NSRect r2) {
- BOOL equal = fuzzyCompare (r1.origin.x, r2.origin.x) &&
- fuzzyCompare (r1.origin.y, r2.origin.y) &&
- fuzzyCompare (r1.size.width, r2.size.width) &&
- fuzzyCompare (r1.size.height, r2.size.height);
- if (equal) {
- pass (msg);
- } else {
- failFmt(@"%@ (expected (%f,%f:%fx%f) but got (%f,%f:%fx%f))",
- msg,
- r2.origin.x, r2.origin.y, r2.size.width, r2.size.height,
- r1.origin.x, r1.origin.y, r1.size.width, r1.size.height);
- }
-}
-
-void assertPointsEqual (NSString *msg, NSPoint p1, NSPoint p2) {
- BOOL equal = fuzzyCompare (p1.x, p2.x) && fuzzyCompare (p1.y, p2.y);
- if (equal) {
- pass (msg);
- } else {
- failFmt(@"%@ (expected (%f,%f) but got (%f,%f)",
- msg,
- p2.x, p2.y,
- p1.x, p1.y);
- }
-}
-
-void assertFloatsEqual (NSString *msg, float f1, float f2) {
- if (fuzzyCompare (f1, f2)) {
- pass (msg);
- } else {
- failFmt(@"%@ (expected %f but got %f", msg, f2, f1);
- }
-}
-
-void startTests() {
- PASSES = 0;
- FAILS = 0;
-}
-
-void endTests() {
- PUTS(@"Done testing. %@%d%@ passed, %@%d%@ failed.",
- GREEN, PASSES, OFF,
- RED, FAILS, OFF);
-}
-
-void startTestBlock(NSString *name) {
- PUTS(@"%@Starting %@%@%@ tests.", INDENT, BLUE, name, OFF);
- ++depth;
-}
-
-void endTestBlock(NSString *name) {
- --depth;
- PUTS(@"%@Done with %@%@%@ tests.", INDENT, BLUE, name, OFF);
-}
-
-void setColorEnabled(BOOL b) {
- colorEnabled = b;
- if (b) {
- RED = @"\033[31;1m";
- GREEN = @"\033[32;1m";
- BLUE = @"\033[36;1m";
- OFF = @"\033[0m";
- } else {
- RED = @"";
- GREEN = @"";
- BLUE = @"";
- OFF = @"";
- }
-}
-
-#ifdef STAND_ALONE
-void runTests();
-
-int main() {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- setColorEnabled (NO);
- startTests();
-
- runTests();
-
- endTests();
-
- [pool drain];
- return 0;
-}
-#endif
-
-// vim:ft=objc:ts=4:sts=4:sw=4:noet
diff --git a/tikzit-old/src/common/tikzlexer.lm b/tikzit-old/src/common/tikzlexer.lm
deleted file mode 100644
index 1e92f73..0000000
--- a/tikzit-old/src/common/tikzlexer.lm
+++ /dev/null
@@ -1,170 +0,0 @@
-%{
-/*
- * Copyright 2010 Chris Heunen
- * Copyright 2010-2013 Aleks Kissinger
- * Copyright 2013 K. Johan Paulsson
- * Copyright 2013 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import "tikzparserdefs.h"
-#import "tikzparser.h"
-
-#define YY_USER_ACTION \
- yylloc->first_line = yylloc->last_line; \
- yylloc->first_column = yylloc->last_column + 1; \
- yylloc->last_column = yylloc->first_column + yyleng - 1;
-
-%}
-
-%option reentrant bison-bridge bison-locations 8bit
-%option nounput
-%option yylineno
-%option noyywrap
-%option header-file="common/tikzlexer.h"
-%option extra-type="TikzGraphAssembler *"
-
-
-%s props
-%s xcoord
-%s ycoord
-%s noderef
-
-FLOAT \-?[0-9]*(\.[0-9]+)?
-
-%%
-
- /* whitespace is ignored, except for position counting; we don't
- count formfeed and vtab as whitespace, because it's not obvious
- how they should be dealt with and no-one actually uses them */
-
- /* lex will take the longest-matching string */
-<INITIAL,xcoord,ycoord,props,noderef>\r\n|\r|\n {
- yylloc->first_line += 1;
- yylloc->last_line = yylloc->first_line;
- yylloc->first_column = yylloc->last_column = 0;
-}
-<INITIAL,xcoord,ycoord,props,noderef>[\t ]+ { }
-
-\\begin\{tikzpicture\} { return BEGIN_TIKZPICTURE_CMD; }
-\\end\{tikzpicture\} { return END_TIKZPICTURE_CMD; }
-\\begin\{pgfonlayer\} { return BEGIN_PGFONLAYER_CMD; }
-\\end\{pgfonlayer\} { return END_PGFONLAYER_CMD; }
-\\draw { return DRAW_CMD; }
-\\node { return NODE_CMD; }
-\\path { return PATH_CMD; }
-rectangle { return RECTANGLE; }
-node { return NODE; }
-at { return AT; }
-to { return TO; }
-; { return SEMICOLON; }
-
-\([ ]*{FLOAT}[ ]*,[ ]*{FLOAT}[ ]*\) {
- yylloc->last_column = yylloc->first_column + 1;
- yyless(1);
- BEGIN(xcoord);
-}
-<xcoord>{FLOAT} {
- yylval->pt.x=(float)strtod(yytext,NULL);
- BEGIN(ycoord);
-}
-<ycoord>, { }
-<ycoord>{FLOAT} {
- yylval->pt.y=(float)strtod(yytext,NULL);
-}
-<ycoord>\) {
- BEGIN(INITIAL);
- return COORD;
-}
-
- /* when we see "[", change parsing mode */
-\[ /*syntaxhlfix]*/ {
- BEGIN(props);
- return LEFTBRACKET;
-}
-<props>= { return EQUALS; }
-<props>, { return COMMA; }
- /* technically, it is possible to have newlines in the middle of
- property names or values, but in practice this is unlikely and
- screws up our line counting */
-<props>[^=,\{\] \t\n]([^=,\{\]\n]*[^=,\{\] \t\n])? {
- yylval->nsstr=[NSString stringWithUTF8String:yytext];
- return PROPSTRING;
-}
-<props>\] {
- BEGIN(INITIAL);
- return RIGHTBRACKET;
-}
-
-\( {
- BEGIN(noderef);
- return LEFTPARENTHESIS;
-}
-<noderef>\. {
- return FULLSTOP;
-}
- /* we assume node names (and anchor names) never contain
- newlines */
-<noderef>[^\.\{\)\n]+ {
- yylval->nsstr=[NSString stringWithUTF8String:yytext];
- return REFSTRING;
-}
-<noderef>\) {
- BEGIN(INITIAL);
- return RIGHTPARENTHESIS;
-}
-
-<INITIAL,props>\{ {
- NSMutableString *buf = [NSMutableString string];
- unsigned int brace_depth = 1;
- unsigned int escape = 0;
- while (1) {
- char c = input(yyscanner);
- // eof reached before closing brace
- if (c == '\0' || c == EOF) {
- return UNCLOSED_DELIM_STR;
- }
-
- yylloc->last_column += 1;
- yyleng += 1;
- if (escape) {
- escape = 0;
- } else if (c == '\\') {
- escape = 1;
- } else if (c == '{') {
- brace_depth++;
- } else if (c == '}') {
- brace_depth--;
- if (brace_depth == 0) break;
- } else if (c == '\n') {
- yylloc->last_line += 1;
- yylloc->last_column = 0;
- }
- [buf appendFormat:@"%c", c];
- }
-
- yylval->nsstr = buf;
- return DELIMITEDSTRING;
-}
-
-\\begin { return UNKNOWN_BEGIN_CMD; }
-\\end { return UNKNOWN_END_CMD; }
-\\[a-zA-Z0-9]+ { return UNKNOWN_CMD; }
-[a-zA-Z0-9]+ { return UNKNOWN_STR; }
-<INITIAL,xcoord,ycoord,props,noderef>. { return UNKNOWN_STR; }
-
- /* vi:ft=lex:noet:ts=4:sts=4:sw=4:
- */
diff --git a/tikzit-old/src/common/tikzparser.ym b/tikzit-old/src/common/tikzparser.ym
deleted file mode 100644
index 344e969..0000000
--- a/tikzit-old/src/common/tikzparser.ym
+++ /dev/null
@@ -1,224 +0,0 @@
-%{
-/*
- * Copyright 2010 Chris Heunen
- * Copyright 2010-2013 Aleks Kissinger
- * Copyright 2013 K. Johan Paulsson
- * Copyright 2013 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "tikzparserdefs.h"
-%}
-
-/* we use features added to bison 2.4 */
-%require "2.3"
-
-%error-verbose
-/* enable maintaining locations for better error messages */
-%locations
-/* the name of the header file */
-/*%defines "common/tikzparser.h"*/
-/* make it re-entrant (no global variables) */
-%pure-parser
-/* We use a pure (re-entrant) lexer. This means yylex
- will take a void* (opaque) type to maintain its state */
-%lex-param {void *scanner}
-/* Since this parser is also pure, yyparse needs to take
- that lexer state as an argument */
-%parse-param {void *scanner}
-
-/* possible data types for semantic values */
-%union {
- NSString *nsstr;
- GraphElementProperty *prop;
- GraphElementData *data;
- Node *node;
- NSPoint pt;
- struct noderef noderef;
-}
-
-%{
-#import "GraphElementData.h"
-#import "GraphElementProperty.h"
-#import "Node.h"
-#import "Edge.h"
-
-#import "tikzlexer.h"
-#import "TikzGraphAssembler+Parser.h"
-/* the assembler (used by this parser) is stored in the lexer
- state as "extra" data */
-#define assembler yyget_extra(scanner)
-
-/* pass errors off to the assembler */
-void yyerror(YYLTYPE *yylloc, void *scanner, const char *str) {
- [assembler reportError:str atLocation:yylloc];
-}
-%}
-
-/* yyloc is set up with first_column = last_column = 1 by default;
- however, it makes more sense to think of us being "before the
- start of the line" before we parse anything */
-%initial-action {
- yylloc.first_column = yylloc.last_column = 0;
-}
-
-
-%token BEGIN_TIKZPICTURE_CMD "\\begin{tikzpicture}"
-%token END_TIKZPICTURE_CMD "\\end{tikzpicture}"
-%token BEGIN_PGFONLAYER_CMD "\\begin{pgfonlayer}"
-%token END_PGFONLAYER_CMD "\\end{pgfonlayer}"
-%token DRAW_CMD "\\draw"
-%token NODE_CMD "\\node"
-%token PATH_CMD "\\path"
-%token RECTANGLE "rectangle"
-%token NODE "node"
-%token AT "at"
-%token TO "to"
-%token SEMICOLON ";"
-%token COMMA ","
-
-%token LEFTPARENTHESIS "("
-%token RIGHTPARENTHESIS ")"
-%token LEFTBRACKET "["
-%token RIGHTBRACKET "]"
-%token FULLSTOP "."
-%token EQUALS "="
-%token <pt> COORD "co-ordinate"
-%token <nsstr> PROPSTRING "key/value string"
-%token <nsstr> REFSTRING "string"
-%token <nsstr> DELIMITEDSTRING "{-delimited string"
-
-%token UNKNOWN_BEGIN_CMD "unknown \\begin command"
-%token UNKNOWN_END_CMD "unknown \\end command"
-%token UNKNOWN_CMD "unknown latex command"
-%token UNKNOWN_STR "unknown string"
-%token UNCLOSED_DELIM_STR "unclosed {-delimited string"
-
-%type<nsstr> nodename
-%type<nsstr> optanchor
-%type<nsstr> val
-%type<prop> property
-%type<data> extraproperties
-%type<data> properties
-%type<data> optproperties
-%type<node> optedgenode
-%type<noderef> noderef
-%type<noderef> optnoderef
-
-%%
-
-tikzpicture: "\\begin{tikzpicture}" optproperties tikzcmds "\\end{tikzpicture}"
- {
- if ($2) {
- [[assembler graph] setData:$2];
- }
- };
-tikzcmds: tikzcmds tikzcmd | ;
-tikzcmd: node | edge | boundingbox | ignore;
-
-ignore: "\\begin{pgfonlayer}" DELIMITEDSTRING | "\\end{pgfonlayer}";
-
-optproperties:
- "[" "]"
- { $$ = nil; }
- | "[" properties "]"
- { $$ = $2; }
- | { $$ = nil; };
-properties: extraproperties property
- {
- [$1 addObject:$2];
- $$ = $1;
- };
-extraproperties:
- extraproperties property ","
- {
- [$1 addObject:$2];
- $$ = $1;
- }
- | { $$ = [GraphElementData data]; };
-property:
- val "=" val
- { $$ = [GraphElementProperty property:$1 withValue:$3]; }
- | val
- { $$ = [GraphElementProperty atom:$1]; };
-val: PROPSTRING { $$ = $1; } | DELIMITEDSTRING { $$ = $1; };
-
-nodename: "(" REFSTRING ")" { $$ = $2; };
-node: "\\node" optproperties nodename "at" COORD DELIMITEDSTRING ";"
- {
- Node *node = [[Node alloc] init];
- if ($2)
- [node setData:$2];
- [node setName:$3];
- [node setPoint:$5];
- [node setLabel:$6];
- [assembler addNodeToMap:node];
- [[assembler graph] addNode:node];
-#if ! __has_feature(objc_arc)
- [node release];
-#endif
- };
-
-optanchor: { $$ = nil; } | "." REFSTRING { $$ = $2; };
-noderef: "(" REFSTRING optanchor ")"
- {
- $$.node = [assembler nodeWithName:$2];
- $$.anchor = $3;
- };
-optnoderef:
- noderef { $$ = $1; }
- | "(" ")" { $$.node = nil; $$.anchor = nil; }
-optedgenode:
- { $$ = nil; }
- | "node" optproperties DELIMITEDSTRING
- {
- $$ = [Node node];
- if ($2)
- [$$ setData:$2];
- [$$ setLabel:$3];
- }
-edge: "\\draw" optproperties noderef "to" optedgenode optnoderef ";"
- {
- Edge *edge = [[Edge alloc] init];
- if ($2)
- [edge setData:$2];
- [edge setSource:$3.node];
- [edge setSourceAnchor:$3.anchor];
- [edge setEdgeNode:$5];
- if ($6.node) {
- [edge setTarget:$6.node];
- [edge setTargetAnchor:$6.anchor];
- } else {
- [edge setTarget:$3.node];
- [edge setTargetAnchor:$3.anchor];
- }
- [edge setAttributesFromData];
- [[assembler graph] addEdge:edge];
-#if ! __has_feature(objc_arc)
- [edge release];
-#endif
- };
-
-ignoreprop: val | val "=" val;
-ignoreprops: ignoreprop ignoreprops | ;
-optignoreprops: "[" ignoreprops "]";
-boundingbox:
- "\\path" optignoreprops COORD "rectangle" COORD ";"
- {
- [[assembler graph] setBoundingBox:NSRectAroundPoints($3, $5)];
- };
-
-/* vi:ft=yacc:noet:ts=4:sts=4:sw=4
-*/
diff --git a/tikzit-old/src/common/tikzparserdefs.h b/tikzit-old/src/common/tikzparserdefs.h
deleted file mode 100644
index cde3345..0000000
--- a/tikzit-old/src/common/tikzparserdefs.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2013 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/*
- * This file sets up some defs (particularly struct noderef) needed for
- * the tikz parser and its users.
- *
- * It is needed because we wish to support bison 2.3, which is the
- * version shipped with OSX. bison 2.4 onwards allows us to put this
- * stuff in a "%code requires" block, where it will be put in the
- * generated header file by bison.
- *
- * All the types used by the %union directive in tikzparser.ym should
- * be declared, defined or imported here.
- */
-
-// Foundation has NSPoint and NSString
-#import <Foundation/Foundation.h>
-
-@class TikzGraphAssembler;
-@class GraphElementData;
-@class GraphElementProperty;
-@class Node;
-
-struct noderef {
-#if __has_feature(objc_arc)
- __unsafe_unretained Node *node;
- __unsafe_unretained NSString *anchor;
-#else
- Node *node;
- NSString *anchor;
-#endif
-};
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/common/util.h b/tikzit-old/src/common/util.h
deleted file mode 100644
index b34f25d..0000000
--- a/tikzit-old/src/common/util.h
+++ /dev/null
@@ -1,201 +0,0 @@
-//
-// util.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-
-#import <Foundation/Foundation.h>
-
-#include <math.h>
-
-#ifndef M_PI
-#define M_PI 3.141592654
-#endif
-
-#ifndef MAX
-#define MAX(a,b) (((a) > (b)) ? (a) : (b))
-#endif
-
-#ifndef MIN
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-
-/*!
- @brief Compute a bounding rectangle for two given points.
- @param p1 a point.
- @param p2 another point.
- @result A bounding rectangle for p1 and p2.
- */
-NSRect NSRectAroundPoints(NSPoint p1, NSPoint p2);
-
-/*!
- @brief Compute a bounding rectangle for two given points.
- @param rect the base rectangle
- @param the point to ensure is included
- @result A rectangle containing rect and p
- */
-NSRect NSRectWithPoint(NSRect rect, NSPoint p);
-
-/*!
- @brief Compute a bounding rectangle for two given points with a given padding.
- @param p1 a point.
- @param p2 another point.
- @param padding a padding.
- @result A bounding rectangle for p1 and p2 with padding.
- */
-NSRect NSRectAroundPointsWithPadding(NSPoint p1, NSPoint p2, float padding);
-
-/*!
- @brief Compute a bounding rectangle for four given points.
- @result A bounding rectangle for p1, p2, p3 and p4.
- */
-NSRect NSRectAround4Points(NSPoint p1, NSPoint p2, NSPoint p3, NSPoint p4);
-
-/*!
- @brief Compute a bounding rectangle for four given points.
- @param padding the amount to pad the rectangle
- @result A bounding rectangle for p1, p2, p3 and p4 with padding
- */
-NSRect NSRectAround4PointsWithPadding(NSPoint p1, NSPoint p2, NSPoint p3, NSPoint p4, float padding);
-
-/*!
- @brief Find the distance between two points
- @param p1 The first point
- @param p2 The second point
- @result The distance between p1 and p2
- */
-float NSDistanceBetweenPoints(NSPoint p1, NSPoint p2);
-
-/*!
- @brief Compute the 'real' arctan for two points. Always succeeds and gives a good angle,
- regardless of sign, zeroes, etc.
- @param dx the x distance between points.
- @param dy the y distance between points.
- @result An angle in radians.
- */
-float good_atan(float dx, float dy);
-
-/*!
- @brief Interpolate along a bezier curve to the given distance. To find the x coord,
- use the relavant x coordinates for c0-c3, and for y use the y's.
- @param dist a distance from 0 to 1 spanning the whole curve.
- @param c0 the x (resp. y) coordinate of the start point.
- @param c1 the x (resp. y) coordinate of the first control point.
- @param c2 the x (resp. y) coordinate of the second control point.
- @param c3 the x (resp. y) coordinate of the end point.
- @result The x (resp. y) coordinate of the point at 'dist'.
- */
-float bezierInterpolate (float dist, float c0, float c1, float c2, float c3);
-
-/*!
- @brief Interpolate along a bezier curve to the given distance.
- @param dist a distance from 0 to 1 spanning the whole curve.
- @param c0 the x start point.
- @param c1 the x first control point.
- @param c2 the x second control point.
- @param c3 the x end point.
- @result The point at 'dist'.
- */
-NSPoint bezierInterpolateFull (float dist, NSPoint c0, NSPoint c1, NSPoint c2, NSPoint c3);
-
-/*!
- * @brief Find whether two line segments intersect
- * @param l1start The starting point of line segment 1
- * @param l1end The ending point of line segment 1
- * @param l2start The starting point of line segment 2
- * @param l2end The ending point of line segment 2
- * @param result A location to store the intersection point
- * @result YES if they intersect, NO if they do not
- */
-BOOL lineSegmentsIntersect (NSPoint l1start, NSPoint l1end, NSPoint l2start, NSPoint l2end, NSPoint *result);
-
-/*!
- * @brief Find whether a line segment intersects a bezier curve
- * @detail Always finds the intersection furthest along the line segment
- * @param lstart The starting point of the line segment
- * @param lend The ending point of the line segment
- * @param c0 The starting point of the bezier curve
- * @param c1 The first control point of the bezier curve
- * @param c2 The second control point of the bezier curve
- * @param c3 The ending point of the bezier curve
- * @param result A location to store the intersection point
- * @result YES if they intersect, NO if they do not
- */
-BOOL lineSegmentIntersectsBezier (NSPoint lstart, NSPoint lend, NSPoint c0, NSPoint c1, NSPoint c2, NSPoint c3, NSPoint *result);
-
-/*!
- * @brief Find whether a line segment enters a rectangle
- * @param lineStart The starting point of the line segment
- * @param lineEnd The ending point of the line segment
- * @param rect The rectangle
- * @result YES if they intersect, NO if they do not
- */
-BOOL lineSegmentIntersectsRect (NSPoint lineStart, NSPoint lineEnd, NSRect rect);
-
-/*!
- * @brief Find where a ray exits a rectangle
- * @param rayStart The starting point of the ray; must be contained in rect
- * @param angle_rads The angle of the ray, in radians
- * @param rect The rectangle
- * @result The point at which the ray leaves the rect
- */
-NSPoint findExitPointOfRay (NSPoint rayStart, float angle_rads, NSRect rect);
-
-/*!
- @brief Round val to nearest stepSize
- @param stepSize the courseness
- @param val a value to round
- */
-float roundToNearest(float stepSize, float val);
-
-/*!
- @brief Convert radians into degrees
- */
-float radiansToDegrees(float radians);
-
-/*!
- @brief Convert degrees into radians
- */
-float degreesToRadians(float degrees);
-
-/*!
- @brief Normalises an angle (in degrees) to fall between -179 and 180
- */
-int normaliseAngleDeg (int degrees);
-
-/*!
- @brief Normalises an angle (in radians) to fall in the range (-pi,pi]
- */
-float normaliseAngleRad (float rads);
-
-/*!
- @brief Express a byte as alpha-only hex, with digits (0..16) -> (a..jA..F)
- @param sh A number 0-255
- @result A string 'aa'-'FF'
- */
-NSString *alphaHex(unsigned short sh);
-
-const char *find_start_of_nth_line (const char * string, int line);
-
-/*!
- @brief Formats a CGFloat as a string, removing trailing zeros
- @detail Unlike formatting an NSNumber, or using %g, it will never
- produce scientific notation (like "2.00e2"). Unlike %f,
- it will not include unnecessary trailing zeros.
- */
-NSString *formatFloat(CGFloat f, int maxdps);
-
diff --git a/tikzit-old/src/common/util.m b/tikzit-old/src/common/util.m
deleted file mode 100644
index e9b8899..0000000
--- a/tikzit-old/src/common/util.m
+++ /dev/null
@@ -1,403 +0,0 @@
-//
-// util.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-
-#import "util.h"
-#import "math.h"
-
-static BOOL fuzzyCompare(float f1, float f2) {
- return (ABS(f1 - f2) <= 0.00001f * MIN(ABS(f1), ABS(f2)));
-}
-
-NSRect NSRectWithPoint(NSRect rect, NSPoint p) {
- CGFloat minX = NSMinX(rect);
- CGFloat maxX = NSMaxX(rect);
- CGFloat minY = NSMinY(rect);
- CGFloat maxY = NSMaxY(rect);
- if (p.x < minX) {
- minX = p.x;
- } else if (p.x > maxX) {
- maxX = p.x;
- }
- if (p.y < minY) {
- minY = p.y;
- } else if (p.y > maxY) {
- maxY = p.y;
- }
- return NSMakeRect(minX, minY, maxX - minX, maxY - minY);
-}
-
-NSRect NSRectAroundPointsWithPadding(NSPoint p1, NSPoint p2, float padding) {
- return NSMakeRect(MIN(p1.x,p2.x)-padding,
- MIN(p1.y,p2.y)-padding,
- ABS(p2.x-p1.x)+(2.0f*padding),
- ABS(p2.y-p1.y)+(2.0f*padding));
-}
-
-NSRect NSRectAroundPoints(NSPoint p1, NSPoint p2) {
- return NSRectAroundPointsWithPadding(p1, p2, 0.0f);
-}
-
-NSRect NSRectAround4PointsWithPadding(NSPoint p1, NSPoint p2, NSPoint p3, NSPoint p4, float padding) {
- float leftMost = MIN(p1.x, p2.x);
- leftMost = MIN(leftMost, p3.x);
- leftMost = MIN(leftMost, p4.x);
- float rightMost = MAX(p1.x, p2.x);
- rightMost = MAX(rightMost, p3.x);
- rightMost = MAX(rightMost, p4.x);
- float topMost = MIN(p1.y, p2.y);
- topMost = MIN(topMost, p3.y);
- topMost = MIN(topMost, p4.y);
- float bottomMost = MAX(p1.y, p2.y);
- bottomMost = MAX(bottomMost, p3.y);
- bottomMost = MAX(bottomMost, p4.y);
- return NSMakeRect(leftMost-padding,
- topMost-padding,
- (rightMost - leftMost)+(2.0f*padding),
- (bottomMost - topMost)+(2.0f*padding));
-}
-
-NSRect NSRectAround4Points(NSPoint p1, NSPoint p2, NSPoint p3, NSPoint p4) {
- return NSRectAround4PointsWithPadding(p1, p2, p3, p4, 0.0f);
-}
-
-float NSDistanceBetweenPoints(NSPoint p1, NSPoint p2) {
- float dx = p2.x - p1.x;
- float dy = p2.y - p1.y;
- return sqrt(dx * dx + dy * dy);
-}
-
-float good_atan(float dx, float dy) {
- if (dx > 0) {
- return atan(dy/dx);
- } else if (dx < 0) {
- return M_PI + atan(dy/dx);
- } else {
- if (dy > 0) return 0.5 * M_PI;
- else if (dy < 0) return 1.5 * M_PI;
- else return 0;
- }
-}
-
-// interpolate on a cubic bezier curve
-float bezierInterpolate(float dist, float c0, float c1, float c2, float c3) {
- float distp = 1 - dist;
- return (distp*distp*distp) * c0 +
- 3 * (distp*distp) * dist * c1 +
- 3 * (dist*dist) * distp * c2 +
- (dist*dist*dist) * c3;
-}
-
-NSPoint bezierInterpolateFull (float dist, NSPoint c0, NSPoint c1, NSPoint c2, NSPoint c3) {
- return NSMakePoint (bezierInterpolate (dist, c0.x, c1.x, c2.x, c3.x),
- bezierInterpolate (dist, c0.y, c1.y, c2.y, c3.y));
-}
-
-static void lineCoeffsFromPoints(NSPoint p1, NSPoint p2, float *A, float *B, float *C) {
- *A = p2.y - p1.y;
- *B = p1.x - p2.x;
- *C = (*A) * p1.x + (*B) * p1.y;
-}
-
-static void lineCoeffsFromPointAndAngle(NSPoint p, float angle, float *A, float *B, float *C) {
- *A = sin (angle);
- *B = -cos (angle);
- *C = (*A) * p.x + (*B) * p.y;
-}
-
-static BOOL lineSegmentContainsPoint(NSPoint l1, NSPoint l2, float x, float y) {
- float minX = MIN(l1.x, l2.x);
- float maxX = MAX(l1.x, l2.x);
- float minY = MIN(l1.y, l2.y);
- float maxY = MAX(l1.y, l2.y);
- return (x >= minX || fuzzyCompare (x, minX)) &&
- (x <= maxX || fuzzyCompare (x, maxX)) &&
- (y >= minY || fuzzyCompare (y, minY)) &&
- (y <= maxY || fuzzyCompare (y, maxY));
-}
-
-BOOL lineSegmentsIntersect(NSPoint l1start, NSPoint l1end, NSPoint l2start, NSPoint l2end, NSPoint *result) {
- // Ax + By = C
- float A1, B1, C1;
- lineCoeffsFromPoints(l1start, l1end, &A1, &B1, &C1);
- float A2, B2, C2;
- lineCoeffsFromPoints(l2start, l2end, &A2, &B2, &C2);
-
- float det = A1*B2 - A2*B1;
- if (det == 0.0f) {
- // parallel
- return NO;
- } else {
- float x = (B2*C1 - B1*C2)/det;
- float y = (A1*C2 - A2*C1)/det;
-
- if (lineSegmentContainsPoint(l1start, l1end, x, y) &&
- lineSegmentContainsPoint(l2start, l2end, x, y)) {
- if (result) {
- (*result).x = x;
- (*result).y = y;
- }
- return YES;
- }
- }
- return NO;
-}
-
-BOOL lineSegmentIntersectsBezier (NSPoint lstart, NSPoint lend, NSPoint c0, NSPoint c1, NSPoint c2, NSPoint c3, NSPoint *result) {
- NSRect curveBounds = NSRectAround4Points(c0, c1, c2, c3);
- if (!lineSegmentIntersectsRect(lstart, lend, curveBounds))
- return NO;
-
- const int divisions = 20;
- const float chunkSize = 1.0f/(float)divisions;
- float chunkStart = 0.0f;
- BOOL found = NO;
-
- for (int i = 0; i < divisions; ++i) {
- float chunkEnd = chunkStart + chunkSize;
-
- NSPoint p1 = bezierInterpolateFull (chunkStart, c0, c1, c2, c3);
- NSPoint p2 = bezierInterpolateFull (chunkEnd, c0, c1, c2, c3);
-
- NSPoint p;
- if (lineSegmentsIntersect (lstart, lend, p1, p2, &p)) {
- lstart = p;
- found = YES;
- }
-
- chunkStart = chunkEnd;
- }
- if (found && result) {
- *result = lstart;
- }
- return found;
-}
-
-BOOL lineSegmentIntersectsRect(NSPoint lineStart, NSPoint lineEnd, NSRect rect) {
- const float rectMaxX = NSMaxX(rect);
- const float rectMinX = NSMinX(rect);
- const float rectMaxY = NSMaxY(rect);
- const float rectMinY = NSMinY(rect);
-
- // check if the segment is entirely to one side of the rect
- if (lineStart.x > rectMaxX && lineEnd.x > rectMaxX) {
- return NO;
- }
- if (lineStart.x < rectMinX && lineEnd.x < rectMinX) {
- return NO;
- }
- if (lineStart.y > rectMaxY && lineEnd.y > rectMaxY) {
- return NO;
- }
- if (lineStart.y < rectMinY && lineEnd.y < rectMinY) {
- return NO;
- }
-
- // Now check whether the (infinite) line intersects the rect
- // (if it does, so does the segment, due to above checks)
-
- // Ax + By = C
- float A, B, C;
- lineCoeffsFromPoints(lineStart, lineEnd, &A, &B, &C);
-
- const float tlVal = A * rectMinX + B * rectMaxY - C;
- const float trVal = A * rectMaxX + B * rectMaxY - C;
- const float blVal = A * rectMinX + B * rectMinY - C;
- const float brVal = A * rectMaxX + B * rectMinY - C;
-
- if (tlVal < 0 && trVal < 0 && blVal < 0 && brVal < 0) {
- // rect below line
- return NO;
- }
- if (tlVal > 0 && trVal > 0 && blVal > 0 && brVal > 0) {
- // rect above line
- return NO;
- }
-
- return YES;
-}
-
-NSPoint findExitPointOfRay (NSPoint p, float angle_rads, NSRect rect) {
- const float rectMinX = NSMinX (rect);
- const float rectMaxX = NSMaxX (rect);
- const float rectMinY = NSMinY (rect);
- const float rectMaxY = NSMaxY (rect);
-
- const float angle = normaliseAngleRad (angle_rads);
-
- // special case the edges
- if (p.y == rectMaxY && angle > 0 && angle < M_PI) {
- // along the top of the box
- return p;
- }
- if (p.y == rectMinY && angle < 0 && angle > -M_PI) {
- // along the bottom of the box
- return p;
- }
- if (p.x == rectMaxX && angle > -M_PI/2.0f && angle < M_PI/2.0f) {
- // along the right of the box
- return p;
- }
- if (p.x == rectMinX && (angle > M_PI/2.0f || angle < -M_PI/2.0f)) {
- // along the left of the box
- return p;
- }
-
- float A1, B1, C1;
- lineCoeffsFromPointAndAngle(p, angle, &A1, &B1, &C1);
- //NSLog(@"Ray is %fx + %fy = %f", A1, B1, C1);
-
- const float tlAngle = normaliseAngleRad (good_atan (rectMinX - p.x, rectMaxY - p.y));
- const float trAngle = normaliseAngleRad (good_atan (rectMaxX - p.x, rectMaxY - p.y));
- if (angle <= tlAngle && angle >= trAngle) {
- // exit top
- float A2, B2, C2;
- lineCoeffsFromPoints(NSMakePoint (rectMinX, rectMaxY),
- NSMakePoint (rectMaxX, rectMaxY),
- &A2, &B2, &C2);
- float det = A1*B2 - A2*B1;
- NSCAssert(det != 0.0f, @"Parallel lines?");
- NSPoint intersect = NSMakePoint ((B2*C1 - B1*C2)/det,
- (A1*C2 - A2*C1)/det);
- return intersect;
- }
-
- const float brAngle = normaliseAngleRad (good_atan (rectMaxX - p.x, rectMinY - p.y));
- if (angle <= trAngle && angle >= brAngle) {
- // exit right
- float A2, B2, C2;
- lineCoeffsFromPoints(NSMakePoint (rectMaxX, rectMaxY),
- NSMakePoint (rectMaxX, rectMinY),
- &A2, &B2, &C2);
- //NSLog(@"Edge is %fx + %fy = %f", A2, B2, C2);
- float det = A1*B2 - A2*B1;
- NSCAssert(det != 0.0f, @"Parallel lines?");
- NSPoint intersect = NSMakePoint ((B2*C1 - B1*C2)/det,
- (A1*C2 - A2*C1)/det);
- return intersect;
- }
-
- const float blAngle = normaliseAngleRad (good_atan (rectMinX - p.x, rectMinY - p.y));
- if (angle <= brAngle && angle >= blAngle) {
- // exit bottom
- float A2, B2, C2;
- lineCoeffsFromPoints(NSMakePoint (rectMaxX, rectMinY),
- NSMakePoint (rectMinX, rectMinY),
- &A2, &B2, &C2);
- float det = A1*B2 - A2*B1;
- NSCAssert(det != 0.0f, @"Parallel lines?");
- NSPoint intersect = NSMakePoint ((B2*C1 - B1*C2)/det,
- (A1*C2 - A2*C1)/det);
- return intersect;
- } else {
- // exit left
- float A2, B2, C2;
- lineCoeffsFromPoints(NSMakePoint (rectMinX, rectMaxY),
- NSMakePoint (rectMinX, rectMinY),
- &A2, &B2, &C2);
- float det = A1*B2 - A2*B1;
- NSCAssert(det != 0.0f, @"Parallel lines?");
- NSPoint intersect = NSMakePoint ((B2*C1 - B1*C2)/det,
- (A1*C2 - A2*C1)/det);
- return intersect;
- }
-}
-
-float roundToNearest(float stepSize, float val) {
- if (stepSize==0.0f) return val;
- else return round(val/stepSize)*stepSize;
-}
-
-float radiansToDegrees (float radians) {
- return (radians * 180.0f) / M_PI;
-}
-
-float degreesToRadians(float degrees) {
- return (degrees * M_PI) / 180.0f;
-}
-
-int normaliseAngleDeg (int degrees) {
- while (degrees > 180) {
- degrees -= 360;
- }
- while (degrees <= -180) {
- degrees += 360;
- }
- return degrees;
-}
-
-float normaliseAngleRad (float rads) {
- while (rads > M_PI) {
- rads -= 2 * M_PI;
- }
- while (rads <= -M_PI) {
- rads += 2 * M_PI;
- }
- return rads;
-}
-
-static char ahex[] =
-{'a','b','c','d','e','f','g','h','i','j',
- 'A','B','C','D','E','F'};
-
-NSString *alphaHex(unsigned short sh) {
- if (sh > 255) return @"!!";
- return [NSString stringWithFormat:@"%c%c", ahex[sh/16], ahex[sh%16]];
-}
-
-const char *find_start_of_nth_line (const char * string, int line) {
- int l = 0;
- const char *lineStart = string;
- while (*lineStart && l < line) {
- while (*lineStart && *lineStart != '\n') {
- ++lineStart;
- }
- if (*lineStart) {
- ++l;
- ++lineStart;
- }
- }
- return lineStart;
-}
-
-NSString *formatFloat(CGFloat f, int maxdps) {
- NSMutableString *result = [NSMutableString
- stringWithFormat:@"%.*f", maxdps, f];
- // delete trailing zeros
- NSUInteger lastPos = [result length] - 1;
- NSUInteger firstDigit = ([result characterAtIndex:0] == '-') ? 1 : 0;
- while (lastPos > firstDigit) {
- if ([result characterAtIndex:lastPos] == '0') {
- [result deleteCharactersInRange:NSMakeRange(lastPos, 1)];
- lastPos -= 1;
- } else {
- break;
- }
- }
- if ([result characterAtIndex:lastPos] == '.') {
- [result deleteCharactersInRange:NSMakeRange(lastPos, 1)];
- lastPos -= 1;
- }
- if ([@"-0" isEqualToString:result])
- return @"0";
- else
- return result;
-}
-
-// vi:ft=objc:noet:ts=4:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Application.h b/tikzit-old/src/gtk/Application.h
deleted file mode 100644
index 1b48a79..0000000
--- a/tikzit-old/src/gtk/Application.h
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "InputDelegate.h"
-
-@class Application;
-@class Configuration;
-@class ContextWindow;
-@class Preambles;
-@class PreambleEditor;
-@class PreviewWindow;
-@class SettingsDialog;
-@class StyleManager;
-@class TikzDocument;
-@class ToolBox;
-@class Window;
-@protocol Tool;
-
-extern Application* app;
-
-/**
- * Manages the main application window
- */
-@interface Application: NSObject {
- // the main application configuration
- Configuration *configFile;
- // maintains the known (user-defined) styles
- StyleManager *styleManager;
- // maintains the preambles used for previews
- Preambles *preambles;
- // the last-accessed folders (for open and save dialogs)
- NSString *lastOpenFolder;
- NSString *lastSaveAsFolder;
-
- ToolBox *toolBox;
- PreambleEditor *preambleWindow;
- ContextWindow *contextWindow;
- SettingsDialog *settingsDialog;
-
- // the open windows (array of Window*)
- NSMutableArray *openWindows;
-
- // tools
- id<Tool> activeTool;
- NSArray *tools;
-}
-
-/**
- * The main application configuration file
- */
-@property (readonly) Configuration *mainConfiguration;
-
-/**
- * The app-wide style manager instance
- */
-@property (readonly) StyleManager *styleManager;
-
-/**
- * The app-wide preambles registry
- */
-@property (readonly) Preambles *preambles;
-
-/**
- * The tools
- */
-@property (readonly) NSArray *tools;
-
-/**
- * The currently-selected tool
- */
-@property (assign) id<Tool> activeTool;
-
-/**
- * The folder last actively chosen by a user for opening a file
- */
-@property (copy) NSString *lastOpenFolder;
-
-/**
- * The folder last actively chosen by a user for saving a file
- */
-@property (copy) NSString *lastSaveAsFolder;
-
-/**
- * The application instance.
- */
-+ (Application*) app;
-
-/**
- * Starts the application with a single window containing an empty file
- */
-- (id) init;
-/**
- * Starts the application with the given files open
- */
-- (id) initWithFiles:(NSArray*)files;
-
-/**
- * Loads a new, empty document in a new window
- */
-- (void) newWindow;
-/**
- * Loads an existing document from a file in a new window
- *
- * @param doc the document the new window should show
- */
-- (void) newWindowWithDocument:(TikzDocument*)doc;
-/**
- * Quit the application, confirming with the user if there are
- * changes to any open documents.
- */
-- (void) quit;
-
-/**
- * Show the dialog for editing preambles.
- */
-- (void) presentPreamblesEditor;
-/**
- * Show the context-aware window
- */
-- (void) presentContextWindow;
-/**
- * Show the settings dialog.
- */
-- (void) presentSettingsDialog;
-
-/**
- * Save the application configuration to permanent storage
- *
- * Should be called just before the application exits
- */
-- (void) saveConfiguration;
-
-/**
- * @result YES if key event was processed, NO otherwise
- */
-- (BOOL) activateToolForKey:(unsigned int)keyVal withMask:(InputMask)mask;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Application.m b/tikzit-old/src/gtk/Application.m
deleted file mode 100644
index e9935bd..0000000
--- a/tikzit-old/src/gtk/Application.m
+++ /dev/null
@@ -1,377 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Application.h"
-
-#import "Configuration.h"
-#import "EdgeStylesModel.h"
-#import "NodeStylesModel.h"
-#import "PreambleEditor.h"
-#import "ContextWindow.h"
-#import "Shape.h"
-#import "SettingsDialog.h"
-#import "StyleManager.h"
-#import "StyleManager+Storage.h"
-#import "SupportDir.h"
-#import "TikzDocument.h"
-#import "ToolBox.h"
-#import "Window.h"
-
-#ifdef HAVE_POPPLER
-#import "Preambles.h"
-#import "Preambles+Storage.h"
-#endif
-
-#import "BoundingBoxTool.h"
-#import "CreateNodeTool.h"
-#import "CreateEdgeTool.h"
-#import "HandTool.h"
-#import "SelectTool.h"
-
-// used for args to g_mkdir_with_parents
-#import "stat.h"
-
-Application* app = nil;
-
-@interface Application (Notifications)
-- (void) windowClosed:(NSNotification*)notification;
-- (void) windowGainedFocus:(NSNotification*)notification;
-- (void) selectedToolChanged:(NSNotification*)notification;
-- (void) windowDocumentChanged:(NSNotification*)n;
-@end
-
-@interface Application (Private)
-- (void) setActiveWindow:(Window*)window;
-@end
-
-@implementation Application
-
-@synthesize mainConfiguration=configFile;
-@synthesize styleManager, preambles;
-@synthesize lastOpenFolder, lastSaveAsFolder;
-@synthesize tools;
-
-+ (Application*) app {
- if (app == nil) {
- [[[self alloc] init] release];
- }
- return app;
-}
-
-- (id) _initCommon {
- if (app != nil) {
- [self release];
- self = app;
- return self;
- }
- self = [super init];
-
- if (self) {
- NSError *error = nil;
- configFile = [[Configuration alloc] initWithName:@"tikzit" loadError:&error];
- if (error != nil) {
- logError (error, @"WARNING: Failed to load configuration");
- }
-
- styleManager = [[StyleManager alloc] init];
- [styleManager loadStylesUsingConfigurationName:@"styles"]; // FIXME: error message?
- NodeStylesModel *nsm = [NodeStylesModel modelWithStyleManager:styleManager];
- EdgeStylesModel *esm = [EdgeStylesModel modelWithStyleManager:styleManager];
-
-#ifdef HAVE_POPPLER
- NSString *preamblesDir = [[SupportDir userSupportDir] stringByAppendingPathComponent:@"preambles"];
- preambles = [[Preambles alloc] initFromDirectory:preamblesDir]; // FIXME: error message?
- [preambles setStyleManager:styleManager];
- NSString *selectedPreamble = [configFile stringEntry:@"selectedPreamble" inGroup:@"Preambles"];
- if (selectedPreamble != nil) {
- [preambles setSelectedPreambleName:selectedPreamble];
- }
-#endif
-
- lastOpenFolder = [[configFile stringEntry:@"lastOpenFolder" inGroup:@"Paths"] retain];
- if (lastOpenFolder == nil)
- lastOpenFolder = [[configFile stringEntry:@"lastFolder" inGroup:@"Paths"] retain];
- lastSaveAsFolder = [[configFile stringEntry:@"lastSaveAsFolder" inGroup:@"Paths"] retain];
- if (lastSaveAsFolder == nil)
- lastSaveAsFolder = [[configFile stringEntry:@"lastFolder" inGroup:@"Paths"] retain];
-
- openWindows = [[NSMutableArray alloc] init];
-
- tools = [[NSArray alloc] initWithObjects:
- [SelectTool tool],
- [CreateNodeTool toolWithNodeStylesModel:nsm],
- [CreateEdgeTool toolWithEdgeStylesModel:esm],
- [BoundingBoxTool tool],
- [HandTool tool],
- nil];
- activeTool = [tools objectAtIndex:0];
- for (id<Tool> tool in tools) {
- [tool loadConfiguration:configFile];
- }
-
- toolBox = [[ToolBox alloc] initWithTools:tools];
- [toolBox loadConfiguration:configFile];
- [toolBox setSelectedTool:activeTool];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(selectedToolChanged:)
- name:@"ToolSelectionChanged"
- object:toolBox];
- [toolBox show];
-
- contextWindow = [[ContextWindow alloc] initWithNodeStylesModel:nsm
- andEdgeStylesModel:esm];
- [contextWindow loadConfiguration:configFile];
-
- app = [self retain];
- }
-
- return self;
-}
-
-- (id) init {
- self = [self _initCommon];
-
- if (self) {
- [self newWindow];
- }
-
- return self;
-}
-
-- (id) initWithFiles:(NSArray*)files {
- self = [self _initCommon];
-
- if (self) {
- int fileOpenCount = 0;
- for (NSString *file in files) {
- NSError *error = nil;
- TikzDocument *doc = [TikzDocument documentFromFile:file styleManager:styleManager error:&error];
- if (doc != nil) {
- [self newWindowWithDocument:doc];
- ++fileOpenCount;
- } else {
- logError(error, @"WARNING: failed to open file");
- }
- }
- if (fileOpenCount == 0) {
- [self newWindow];
- }
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [configFile release];
- [styleManager release];
- [preambles release];
- [lastOpenFolder release];
- [lastSaveAsFolder release];
- [preambleWindow release];
- [settingsDialog release];
- [openWindows release];
- [tools release];
- [activeTool release];
- [toolBox release];
- [contextWindow release];
-
- [super dealloc];
-}
-
-- (id<Tool>) activeTool { return activeTool; }
-- (void) setActiveTool:(id<Tool>)tool {
- if (activeTool == tool)
- return;
-
- activeTool = tool;
- [toolBox setSelectedTool:tool];
- for (Window* window in openWindows) {
- [window setActiveTool:tool];
- }
-}
-
-- (BOOL) activateToolForKey:(unsigned int)keyVal withMask:(InputMask)mask {
- // FIXME: cache the accel info, rather than reparsing it every time?
- for (id<Tool> tool in tools) {
- guint toolKey = 0;
- GdkModifierType toolMod = 0;
- gtk_accelerator_parse ([[tool shortcut] UTF8String], &toolKey, &toolMod);
- if (toolKey != 0 && toolKey == keyVal && (int)mask == (int)toolMod) {
- [self setActiveTool:tool];
- return YES;
- }
- }
- return NO;
-}
-
-- (void) _addWindow:(Window*)window {
- [window setActiveTool:activeTool];
- [openWindows addObject:window];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(windowClosed:)
- name:@"WindowClosed"
- object:window];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(windowGainedFocus:)
- name:@"WindowGainedFocus"
- object:window];
- if ([window hasFocus]) {
- [self setActiveWindow:window];
- }
-}
-
-- (void) newWindow {
- [self _addWindow:[Window window]];
-}
-
-- (void) newWindowWithDocument:(TikzDocument*)doc {
- [self _addWindow:[Window windowWithDocument:doc]];
-}
-
-- (void) quit {
- NSMutableArray *unsavedDocs = [NSMutableArray arrayWithCapacity:[openWindows count]];
- for (Window *window in openWindows) {
- TikzDocument *doc = [window document];
- if ([doc hasUnsavedChanges]) {
- [unsavedDocs addObject:doc];
- }
- }
- if ([unsavedDocs count] > 0) {
- // FIXME: show a dialog
- return;
- }
- gtk_main_quit();
-}
-
-- (void) presentPreamblesEditor {
-#ifdef HAVE_POPPLER
- if (preambleWindow == nil) {
- preambleWindow = [[PreambleEditor alloc] initWithPreambles:preambles];
- //[preambleWindow setParentWindow:mainWindow];
- }
- [preambleWindow present];
-#endif
-}
-
-- (void) presentContextWindow {
- [contextWindow present];
-}
-
-- (void) presentSettingsDialog {
- if (settingsDialog == nil) {
- settingsDialog = [[SettingsDialog alloc] initWithConfiguration:configFile
- andStyleManager:styleManager];
- //[settingsDialog setParentWindow:mainWindow];
- }
- [settingsDialog present];
-}
-
-- (Configuration*) mainConfiguration {
- return configFile;
-}
-
-- (void) saveConfiguration {
- NSError *error = nil;
-
-#ifdef HAVE_POPPLER
- if (preambles != nil) {
- NSString *preamblesDir = [[SupportDir userSupportDir] stringByAppendingPathComponent:@"preambles"];
- // NSFileManager is slightly dodgy on Windows
- g_mkdir_with_parents ([preamblesDir UTF8String], S_IRUSR | S_IWUSR | S_IXUSR);
- [preambles storeToDirectory:preamblesDir];
- [configFile setStringEntry:@"selectedPreamble" inGroup:@"Preambles" value:[preambles selectedPreambleName]];
- }
-#endif
-
- [styleManager saveStylesUsingConfigurationName:@"styles"];
-
- for (id<Tool> tool in tools) {
- [tool saveConfiguration:configFile];
- }
- [toolBox saveConfiguration:configFile];
-
- [contextWindow saveConfiguration:configFile];
-
- if (lastOpenFolder != nil) {
- [configFile setStringEntry:@"lastOpenFolder" inGroup:@"Paths" value:lastOpenFolder];
- }
- if (lastSaveAsFolder != nil) {
- [configFile setStringEntry:@"lastSaveAsFolder" inGroup:@"Paths" value:lastSaveAsFolder];
- }
-
- if (![configFile writeToStoreWithError:&error]) {
- logError (error, @"Could not write config file");
- }
-}
-
-@end
-
-@implementation Application (Notifications)
-- (void) windowClosed:(NSNotification*)notification {
- Window *window = [notification object];
- [openWindows removeObjectIdenticalTo:window];
- [[NSNotificationCenter defaultCenter] removeObserver:self
- name:nil
- object:window];
- if ([openWindows count] == 0) {
- gtk_main_quit();
- } else {
- [self setActiveWindow:[openWindows objectAtIndex:0]];
- }
-}
-
-- (void) windowGainedFocus:(NSNotification*)notification {
- Window *window = [notification object];
- [self setActiveWindow:window];
-}
-
-- (void) selectedToolChanged:(NSNotification*)n {
- id<Tool> tool = [[n userInfo] objectForKey:@"tool"];
- if (tool != nil)
- [self setActiveTool:tool];
- else
- NSLog(@"nil tool!");
-}
-
-- (void) windowDocumentChanged:(NSNotification*)n {
- [contextWindow setDocument:[[n userInfo] objectForKey:@"document"]];
-}
-@end
-
-@implementation Application (Private)
-- (void) setActiveWindow:(Window*)window {
- [[NSNotificationCenter defaultCenter] removeObserver:self
- name:@"DocumentChanged"
- object:nil];
-
- [contextWindow setDocument:[window document]];
-
- [contextWindow attachToWindow:window];
- [toolBox attachToWindow:window];
-
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(windowDocumentChanged:)
- name:@"DocumentChanged"
- object:window];
-}
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/BoundingBoxTool.h b/tikzit-old/src/gtk/BoundingBoxTool.h
deleted file mode 100644
index f6498b0..0000000
--- a/tikzit-old/src/gtk/BoundingBoxTool.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Tool.h"
-
-typedef enum {
- NoHandle,
- EastHandle,
- SouthEastHandle,
- SouthHandle,
- SouthWestHandle,
- WestHandle,
- NorthWestHandle,
- NorthHandle,
- NorthEastHandle
-} ResizeHandle;
-
-@interface BoundingBoxTool : NSObject <Tool> {
- GraphRenderer *renderer;
- NSPoint dragOrigin;
- ResizeHandle currentResizeHandle;
- BOOL drawingNewBox;
-}
-
-+ (id) tool;
-- (id) init;
-@end
-
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/BoundingBoxTool.m b/tikzit-old/src/gtk/BoundingBoxTool.m
deleted file mode 100644
index 483705e..0000000
--- a/tikzit-old/src/gtk/BoundingBoxTool.m
+++ /dev/null
@@ -1,353 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "BoundingBoxTool.h"
-
-#import "GraphRenderer.h"
-#import "TikzDocument.h"
-#import "tzstockitems.h"
-
-static const float handle_size = 8.0;
-float sideHandleTop(NSRect bbox) {
- return (NSMinY(bbox) + NSMaxY(bbox) - handle_size)/2.0f;
-}
-float tbHandleLeft(NSRect bbox) {
- return (NSMinX(bbox) + NSMaxX(bbox) - handle_size)/2.0f;
-}
-
-@interface BoundingBoxTool (Private)
-- (NSRect) screenBoundingBox;
-- (ResizeHandle) boundingBoxResizeHandleAt:(NSPoint)p;
-- (NSRect) boundingBoxResizeHandleRect:(ResizeHandle)handle;
-- (void) setResizeCursorForHandle:(ResizeHandle)handle;
-@end
-
-@implementation BoundingBoxTool
-- (NSString*) name { return @"Bounding Box"; }
-- (const gchar*) stockId { return TIKZIT_STOCK_BOUNDING_BOX; }
-- (NSString*) helpText { return @"Set the bounding box"; }
-- (NSString*) shortcut { return @"b"; }
-
-+ (id) tool {
- return [[[self alloc] init] autorelease];
-}
-
-- (id) init {
- self = [super init];
-
- if (self) {
- currentResizeHandle = NoHandle;
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [renderer release];
-
- [super dealloc];
-}
-
-- (GraphRenderer*) activeRenderer { return renderer; }
-- (void) setActiveRenderer:(GraphRenderer*)r {
- if (r == renderer)
- return;
-
- [[renderer surface] setCursor:NormalCursor];
-
- [r retain];
- [renderer release];
- renderer = r;
-}
-
-- (GtkWidget*) configurationWidget { return NULL; }
-
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- dragOrigin = pos;
- currentResizeHandle = [self boundingBoxResizeHandleAt:pos];
- [[renderer document] startChangeBoundingBox];
- if (currentResizeHandle == NoHandle) {
- drawingNewBox = YES;
- [[[renderer document] graph] setBoundingBox:NSZeroRect];
- } else {
- drawingNewBox = NO;
- }
- [renderer invalidateGraph];
-}
-
-- (void) mouseMoveTo:(NSPoint)pos withButtons:(MouseButton)buttons andMask:(InputMask)mask {
- if (!(buttons & LeftButton)) {
- ResizeHandle handle = [self boundingBoxResizeHandleAt:pos];
- [self setResizeCursorForHandle:handle];
- return;
- }
-
- Transformer *transformer = [renderer transformer];
- Grid *grid = [renderer grid];
- Graph *graph = [[renderer document] graph];
-
- if (currentResizeHandle == NoHandle) {
- NSRect bbox = NSRectAroundPoints(
- [grid snapScreenPoint:dragOrigin],
- [grid snapScreenPoint:pos]
- );
- [graph setBoundingBox:[transformer rectFromScreen:bbox]];
- } else {
- NSRect bbox = [transformer rectToScreen:[graph boundingBox]];
- NSPoint p2 = [grid snapScreenPoint:pos];
-
- if (currentResizeHandle == NorthWestHandle ||
- currentResizeHandle == NorthHandle ||
- currentResizeHandle == NorthEastHandle) {
-
- float dy = p2.y - NSMinY(bbox);
- if (dy < bbox.size.height) {
- bbox.origin.y += dy;
- bbox.size.height -= dy;
- } else {
- bbox.origin.y = NSMaxY(bbox);
- bbox.size.height = 0;
- }
-
- } else if (currentResizeHandle == SouthWestHandle ||
- currentResizeHandle == SouthHandle ||
- currentResizeHandle == SouthEastHandle) {
-
- float dy = p2.y - NSMaxY(bbox);
- if (-dy < bbox.size.height) {
- bbox.size.height += dy;
- } else {
- bbox.size.height = 0;
- }
- }
-
- if (currentResizeHandle == NorthWestHandle ||
- currentResizeHandle == WestHandle ||
- currentResizeHandle == SouthWestHandle) {
-
- float dx = p2.x - NSMinX(bbox);
- if (dx < bbox.size.width) {
- bbox.origin.x += dx;
- bbox.size.width -= dx;
- } else {
- bbox.origin.x = NSMaxX(bbox);
- bbox.size.width = 0;
- }
-
- } else if (currentResizeHandle == NorthEastHandle ||
- currentResizeHandle == EastHandle ||
- currentResizeHandle == SouthEastHandle) {
-
- float dx = p2.x - NSMaxX(bbox);
- if (-dx < bbox.size.width) {
- bbox.size.width += dx;
- } else {
- bbox.size.width = 0;
- }
- }
- [graph setBoundingBox:[transformer rectFromScreen:bbox]];
- }
- [[renderer document] changeBoundingBoxCheckPoint];
- [renderer invalidateGraph];
-}
-
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- [[renderer document] endChangeBoundingBox];
- drawingNewBox = NO;
- [renderer invalidateGraph];
-}
-
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface {
- if (!drawingNewBox && [[[renderer document] graph] hasBoundingBox]) {
- [context saveState];
-
- [context setAntialiasMode:AntialiasDisabled];
- [context setLineWidth:1.0];
-
- [context startPath];
- [context rect:[self boundingBoxResizeHandleRect:EastHandle]];
- [context rect:[self boundingBoxResizeHandleRect:SouthEastHandle]];
- [context rect:[self boundingBoxResizeHandleRect:SouthHandle]];
- [context rect:[self boundingBoxResizeHandleRect:SouthWestHandle]];
- [context rect:[self boundingBoxResizeHandleRect:WestHandle]];
- [context rect:[self boundingBoxResizeHandleRect:NorthWestHandle]];
- [context rect:[self boundingBoxResizeHandleRect:NorthHandle]];
- [context rect:[self boundingBoxResizeHandleRect:NorthEastHandle]];
- [context strokePathWithColor:MakeSolidRColor (0.5, 0.5, 0.5)];
-
- [context restoreState];
- }
-}
-- (void) loadConfiguration:(Configuration*)config {}
-- (void) saveConfiguration:(Configuration*)config {}
-@end
-
-@implementation BoundingBoxTool (Private)
-- (NSRect) screenBoundingBox {
- Transformer *transformer = [[renderer surface] transformer];
- Graph *graph = [[renderer document] graph];
- return [transformer rectToScreen:[graph boundingBox]];
-}
-
-- (ResizeHandle) boundingBoxResizeHandleAt:(NSPoint)p {
- NSRect bbox = [self screenBoundingBox];
- if (p.x >= NSMaxX(bbox)) {
- if (p.x <= NSMaxX(bbox) + handle_size) {
- if (p.y >= NSMaxY(bbox)) {
- if (p.y <= NSMaxY(bbox) + handle_size) {
- return SouthEastHandle;
- }
- } else if (p.y <= NSMinY(bbox)) {
- if (p.y >= NSMinY(bbox) - handle_size) {
- return NorthEastHandle;
- }
- } else {
- float eastHandleTop = sideHandleTop(bbox);
- if (p.y >= eastHandleTop && p.y <= (eastHandleTop + handle_size)) {
- return EastHandle;
- }
- }
- }
- } else if (p.x <= NSMinX(bbox)) {
- if (p.x >= NSMinX(bbox) - handle_size) {
- if (p.y >= NSMaxY(bbox)) {
- if (p.y <= NSMaxY(bbox) + handle_size) {
- return SouthWestHandle;
- }
- } else if (p.y <= NSMinY(bbox)) {
- if (p.y >= NSMinY(bbox) - handle_size) {
- return NorthWestHandle;
- }
- } else {
- float westHandleTop = sideHandleTop(bbox);
- if (p.y >= westHandleTop && p.y <= (westHandleTop + handle_size)) {
- return WestHandle;
- }
- }
- }
- } else if (p.y >= NSMaxY(bbox)) {
- if (p.y <= NSMaxY(bbox) + handle_size) {
- float southHandleLeft = tbHandleLeft(bbox);
- if (p.x >= southHandleLeft && p.x <= (southHandleLeft + handle_size)) {
- return SouthHandle;
- }
- }
- } else if (p.y <= NSMinY(bbox)) {
- if (p.y >= NSMinY(bbox) - handle_size) {
- float northHandleLeft = tbHandleLeft(bbox);
- if (p.x >= northHandleLeft && p.x <= (northHandleLeft + handle_size)) {
- return NorthHandle;
- }
- }
- }
- return NoHandle;
-}
-
-- (NSRect) boundingBoxResizeHandleRect:(ResizeHandle)handle {
- Graph *graph = [[renderer document] graph];
- if (![graph hasBoundingBox]) {
- return NSZeroRect;
- }
- NSRect bbox = [self screenBoundingBox];
- float x;
- float y;
- switch (handle) {
- case NorthEastHandle:
- case EastHandle:
- case SouthEastHandle:
- x = NSMaxX(bbox);
- break;
- case NorthWestHandle:
- case WestHandle:
- case SouthWestHandle:
- x = NSMinX(bbox) - handle_size;
- break;
- case SouthHandle:
- case NorthHandle:
- x = tbHandleLeft(bbox);
- break;
- default:
- return NSZeroRect;
- }
- switch (handle) {
- case EastHandle:
- case WestHandle:
- y = sideHandleTop(bbox);
- break;
- case SouthEastHandle:
- case SouthHandle:
- case SouthWestHandle:
- y = NSMaxY(bbox);
- break;
- case NorthEastHandle:
- case NorthHandle:
- case NorthWestHandle:
- y = NSMinY(bbox) - handle_size;
- break;
- default:
- return NSZeroRect;
- }
- return NSMakeRect(x, y, handle_size, handle_size);
-}
-
-- (void) setResizeCursorForHandle:(ResizeHandle)handle {
- if (handle != currentResizeHandle) {
- currentResizeHandle = handle;
- Cursor c = NormalCursor;
- switch (handle) {
- case EastHandle:
- c = ResizeRightCursor;
- break;
- case SouthEastHandle:
- c = ResizeBottomRightCursor;
- break;
- case SouthHandle:
- c = ResizeBottomCursor;
- break;
- case SouthWestHandle:
- c = ResizeBottomLeftCursor;
- break;
- case WestHandle:
- c = ResizeLeftCursor;
- break;
- case NorthWestHandle:
- c = ResizeTopLeftCursor;
- break;
- case NorthHandle:
- c = ResizeTopCursor;
- break;
- case NorthEastHandle:
- c = ResizeTopRightCursor;
- break;
- default:
- c = NormalCursor;
- break;
- }
- [[renderer surface] setCursor:c];
- }
-}
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/CairoRenderContext.h b/tikzit-old/src/gtk/CairoRenderContext.h
deleted file mode 100644
index ac9c5ee..0000000
--- a/tikzit-old/src/gtk/CairoRenderContext.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "RenderContext.h"
-#import "Transformer.h"
-#import <cairo/cairo.h>
-#import <pango/pango.h>
-#import <gtk/gtk.h>
-
-@interface PangoTextLayout: NSObject<TextLayout> {
- PangoLayout *layout;
- cairo_t *context;
-}
-
-+ (PangoTextLayout*) layoutForContext:(cairo_t*)cr withFontSize:(CGFloat)fontSize;
-- (id) initWithContext:(cairo_t*)cr fontSize:(CGFloat)fontSize;
-- (void) setText:(NSString*)text;
-
-@end
-
-@interface CairoRenderContext: NSObject<RenderContext> {
- cairo_t *context;
-}
-
-+ (CairoRenderContext*) contextForSurface:(cairo_surface_t*)surface;
-- (id) initForSurface:(cairo_surface_t*)surface;
-
-+ (CairoRenderContext*) contextForWidget:(GtkWidget*)widget;
-- (id) initForWidget:(GtkWidget*)widget;
-
-+ (CairoRenderContext*) contextForDrawable:(GdkDrawable*)d;
-- (id) initForDrawable:(GdkDrawable*)d;
-
-+ (CairoRenderContext*) contextForPixbuf:(GdkPixbuf*)buf;
-- (id) initForPixbuf:(GdkPixbuf*)buf;
-
-- (cairo_t*) cairoContext;
-- (void) applyTransform:(Transformer*)transformer;
-
-- (void) clearSurface;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/CairoRenderContext.m b/tikzit-old/src/gtk/CairoRenderContext.m
deleted file mode 100644
index 77e10b5..0000000
--- a/tikzit-old/src/gtk/CairoRenderContext.m
+++ /dev/null
@@ -1,344 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "CairoRenderContext.h"
-
-#import "cairo_helpers.h"
-#import "util.h"
-
-#import <pango/pangocairo.h>
-
-@implementation PangoTextLayout
-
-- (id) init {
- [self release];
- return nil;
-}
-
-+ (PangoTextLayout*) layoutForContext:(cairo_t*)cr withFontSize:(CGFloat)fontSize {
- return [[[self alloc] initWithContext:cr fontSize:fontSize] autorelease];
-}
-
-- (id) initWithContext:(cairo_t*)cr fontSize:(CGFloat)fontSize {
- self = [super init];
-
- if (self) {
- cairo_reference (cr);
- context = cr;
- layout = pango_cairo_create_layout (cr);
-
- PangoFontDescription *font_desc = pango_font_description_new ();
- pango_font_description_set_family_static (font_desc, "Sans");
- pango_font_description_set_size (font_desc, pango_units_from_double (fontSize));
- pango_layout_set_font_description (layout, font_desc);
- pango_font_description_free (font_desc);
- }
-
- return self;
-}
-
-- (void) setText:(NSString*)text {
- pango_layout_set_text (layout, [text UTF8String], -1);
-}
-
-- (NSSize) size {
- int width, height;
- pango_layout_get_size (layout, &width, &height);
- return NSMakeSize (pango_units_to_double (width), pango_units_to_double (height));
-}
-
-- (NSString*) text {
- return [NSString stringWithUTF8String:pango_layout_get_text (layout)];
-}
-
-- (void) showTextAt:(NSPoint)topLeft withColor:(RColor)color {
- cairo_save (context);
-
- cairo_move_to(context, topLeft.x, topLeft.y);
- cairo_set_source_rcolor (context, color);
- pango_cairo_show_layout (context, layout);
-
- cairo_restore (context);
-}
-
-- (void) dealloc {
- if (layout)
- g_object_unref (G_OBJECT (layout));
- if (context)
- cairo_destroy (context);
-
- [super dealloc];
-}
-
-@end
-
-@implementation CairoRenderContext
-
-- (id) init {
- [self release];
- return nil;
-}
-
-+ (CairoRenderContext*) contextForSurface:(cairo_surface_t*)surface {
- return [[[self alloc] initForSurface:surface] autorelease];
-}
-
-- (id) initForSurface:(cairo_surface_t*)surface {
- self = [super init];
-
- if (self) {
- context = cairo_create (surface);
- }
-
- return self;
-}
-
-+ (CairoRenderContext*) contextForWidget:(GtkWidget*)widget {
- return [[[self alloc] initForWidget:widget] autorelease];
-}
-
-- (id) initForWidget:(GtkWidget*)widget {
- self = [super init];
-
- if (self) {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- context = gdk_cairo_create (window);
- } else {
- [self release];
- self = nil;
- }
- }
-
- return self;
-}
-
-+ (CairoRenderContext*) contextForDrawable:(GdkDrawable*)d {
- return [[[self alloc] initForDrawable:d] autorelease];
-}
-
-- (id) initForDrawable:(GdkDrawable*)d {
- self = [super init];
-
- if (self) {
- context = gdk_cairo_create (d);
- }
-
- return self;
-}
-
-+ (CairoRenderContext*) contextForPixbuf:(GdkPixbuf*)pixbuf {
- return [[[self alloc] initForPixbuf:pixbuf] autorelease];
-}
-
-- (id) initForPixbuf:(GdkPixbuf*)pixbuf {
- self = [super init];
-
- if (self) {
- cairo_format_t format = -1;
-
- if (gdk_pixbuf_get_colorspace (pixbuf) != GDK_COLORSPACE_RGB) {
- NSLog(@"Unsupported colorspace (must be RGB)");
- [self release];
- return nil;
- }
- if (gdk_pixbuf_get_bits_per_sample (pixbuf) != 8) {
- NSLog(@"Unsupported bits per sample (must be 8)");
- [self release];
- return nil;
- }
- if (gdk_pixbuf_get_has_alpha (pixbuf)) {
- if (gdk_pixbuf_get_n_channels (pixbuf) != 4) {
- NSLog(@"Unsupported bits per sample (must be 4 for an image with alpha)");
- [self release];
- return nil;
- }
- format = CAIRO_FORMAT_ARGB32;
- } else {
- if (gdk_pixbuf_get_n_channels (pixbuf) != 3) {
- NSLog(@"Unsupported bits per sample (must be 3 for an image without alpha)");
- [self release];
- return nil;
- }
- format = CAIRO_FORMAT_RGB24;
- }
-
- cairo_surface_t *surface = cairo_image_surface_create_for_data(
- gdk_pixbuf_get_pixels(pixbuf),
- format,
- gdk_pixbuf_get_width(pixbuf),
- gdk_pixbuf_get_height(pixbuf),
- gdk_pixbuf_get_rowstride(pixbuf));
- context = cairo_create (surface);
- cairo_surface_destroy (surface);
- }
-
- return self;
-}
-
-- (cairo_t*) cairoContext {
- return context;
-}
-
-- (void) applyTransform:(Transformer*)transformer {
- NSPoint origin = [transformer toScreen:NSZeroPoint];
- cairo_translate (context, origin.x, origin.y);
- NSPoint scale = [transformer toScreen:NSMakePoint (1.0f, 1.0f)];
- scale.x -= origin.x;
- scale.y -= origin.y;
- cairo_scale (context, scale.x, scale.y);
-}
-
-- (void) saveState {
- cairo_save (context);
-}
-
-- (void) restoreState {
- cairo_restore (context);
-}
-
-- (NSRect) clipBoundingBox {
- double clipx1, clipx2, clipy1, clipy2;
- cairo_clip_extents (context, &clipx1, &clipy1, &clipx2, &clipy2);
- return NSMakeRect (clipx1, clipy1, clipx2-clipx1, clipy2-clipy1);
-}
-
-- (BOOL) strokeIncludesPoint:(NSPoint)p {
- return cairo_in_stroke (context, p.x, p.y);
-}
-
-- (BOOL) fillIncludesPoint:(NSPoint)p {
- return cairo_in_fill (context, p.x, p.y);
-}
-
-- (id<TextLayout>) layoutText:(NSString*)text withSize:(CGFloat)fontSize {
- PangoTextLayout *layout = [PangoTextLayout layoutForContext:context withFontSize:fontSize];
- [layout setText:text];
- return layout;
-}
-
-- (void) setAntialiasMode:(AntialiasMode)mode {
- if (mode == AntialiasDisabled) {
- cairo_set_antialias (context, CAIRO_ANTIALIAS_NONE);
- } else {
- cairo_set_antialias (context, CAIRO_ANTIALIAS_DEFAULT);
- }
-}
-
-- (void) setLineWidth:(CGFloat)width {
- cairo_set_line_width (context, width);
-}
-
-- (void) setLineDash:(CGFloat)dashLength {
- if (dashLength <= 0.0) {
- cairo_set_dash (context, NULL, 0, 0);
- } else {
- double dashes[] = { dashLength };
- cairo_set_dash (context, dashes, 1, 0);
- }
-}
-
-// paths
-- (void) startPath {
- cairo_new_path (context);
-}
-
-- (void) closeSubPath {
- cairo_close_path (context);
-}
-
-- (void) moveTo:(NSPoint)p {
- cairo_move_to(context, p.x, p.y);
-}
-
-- (void) curveTo:(NSPoint)end withCp1:(NSPoint)cp1 andCp2:(NSPoint)cp2 {
- cairo_curve_to (context, cp1.x, cp1.y, cp2.x, cp2.y, end.x, end.y);
-}
-
-- (void) lineTo:(NSPoint)end {
- cairo_line_to (context, end.x, end.y);
-}
-
-- (void) rect:(NSRect)rect {
- cairo_rectangle (context, rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
-}
-
-- (void) circleAt:(NSPoint)c withRadius:(CGFloat)r {
- cairo_new_sub_path (context);
- cairo_arc (context, c.x, c.y, r, 0, 2 * M_PI);
-}
-
-- (void) strokePathWithColor:(RColor)color {
- cairo_set_source_rcolor (context, color);
- cairo_stroke (context);
-}
-
-- (void) fillPathWithColor:(RColor)color {
- cairo_set_source_rcolor (context, color);
- cairo_fill (context);
-}
-
-- (void) strokePathWithColor:(RColor)scolor
- andFillWithColor:(RColor)fcolor {
- cairo_set_source_rcolor (context, fcolor);
- cairo_fill_preserve (context);
- cairo_set_source_rcolor (context, scolor);
- cairo_stroke (context);
-}
-
-- (void) strokePathWithColor:(RColor)scolor
- andFillWithColor:(RColor)fcolor
- usingAlpha:(CGFloat)alpha {
- cairo_push_group (context);
- cairo_set_source_rcolor (context, fcolor);
- cairo_fill_preserve (context);
- cairo_set_source_rcolor (context, scolor);
- cairo_stroke (context);
- cairo_pop_group_to_source (context);
- cairo_paint_with_alpha (context, alpha);
-}
-
-- (void) clipToPath {
- cairo_clip (context);
-}
-
-- (void) paintWithColor:(RColor)color {
- cairo_set_source_rcolor (context, color);
- cairo_paint (context);
-}
-
-- (void) clearSurface {
- cairo_operator_t old_op = cairo_get_operator (context);
-
- cairo_set_operator (context, CAIRO_OPERATOR_SOURCE);
- cairo_set_source_rgba (context, 0.0, 0.0, 0.0, 0.0);
- cairo_paint (context);
-
- cairo_set_operator (context, old_op);
-}
-
-- (void) dealloc {
- if (context) {
- cairo_destroy (context);
- }
-
- [super dealloc];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/ColorRGB+Gtk.h b/tikzit-old/src/gtk/ColorRGB+Gtk.h
deleted file mode 100644
index 5cfb4d7..0000000
--- a/tikzit-old/src/gtk/ColorRGB+Gtk.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "ColorRGB.h"
-#import <gdk/gdk.h>
-
-@interface ColorRGB (Gtk)
-
-+ (ColorRGB*) colorWithGdkColor:(GdkColor)color;
-- (id) initWithGdkColor:(GdkColor)color;
-- (GdkColor) gdkColor;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/ColorRGB+Gtk.m b/tikzit-old/src/gtk/ColorRGB+Gtk.m
deleted file mode 100644
index be5dd56..0000000
--- a/tikzit-old/src/gtk/ColorRGB+Gtk.m
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "ColorRGB+Gtk.h"
-
-// 257 = 65535/255
-// GdkColor values run from 0 to 65535, not from 0 to 255
-#define GDK_FACTOR 257
-
-@implementation ColorRGB (Gtk)
-
-+ (ColorRGB*) colorWithGdkColor:(GdkColor)color {
- return [ColorRGB colorWithRed:color.red/GDK_FACTOR green:color.green/GDK_FACTOR blue:color.blue/GDK_FACTOR];
-}
-
-- (id) initWithGdkColor:(GdkColor)color {
- return [self initWithRed:color.red/GDK_FACTOR green:color.green/GDK_FACTOR blue:color.blue/GDK_FACTOR];
-}
-
-- (GdkColor) gdkColor {
- GdkColor color;
- color.pixel = 0;
- color.red = GDK_FACTOR * [self red];
- color.green = GDK_FACTOR * [self green];
- color.blue = GDK_FACTOR * [self blue];
- return color;
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/ColorRGB+IntegerListStorage.h b/tikzit-old/src/gtk/ColorRGB+IntegerListStorage.h
deleted file mode 100644
index 118eaee..0000000
--- a/tikzit-old/src/gtk/ColorRGB+IntegerListStorage.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "ColorRGB.h"
-
-/**
- * Stores a ColorRGB as a list of short integers
- */
-@interface ColorRGB (IntegerListStorage)
-
-+ (ColorRGB*) colorFromValueList:(NSArray*)values;
-- (id) initFromValueList:(NSArray*)values;
-- (NSArray*) valueList;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/ColorRGB+IntegerListStorage.m b/tikzit-old/src/gtk/ColorRGB+IntegerListStorage.m
deleted file mode 100644
index 0103a3c..0000000
--- a/tikzit-old/src/gtk/ColorRGB+IntegerListStorage.m
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "ColorRGB+IntegerListStorage.h"
-
-@implementation ColorRGB (IntegerListStorage)
-
-+ (ColorRGB*) colorFromValueList:(NSArray*)values {
- if ([values count] != 3) {
- return nil;
- }
-
- unsigned short redValue = [[values objectAtIndex:0] intValue];
- unsigned short greenValue = [[values objectAtIndex:1] intValue];
- unsigned short blueValue = [[values objectAtIndex:2] intValue];
- return [ColorRGB colorWithRed:redValue green:greenValue blue:blueValue];
-}
-
-- (id) initFromValueList:(NSArray*)values {
- if ([values count] != 3) {
- [self release];
- return nil;
- }
-
- unsigned short redValue = [[values objectAtIndex:0] intValue];
- unsigned short greenValue = [[values objectAtIndex:1] intValue];
- unsigned short blueValue = [[values objectAtIndex:2] intValue];
-
- return [self initWithRed:redValue green:greenValue blue:blueValue];
-}
-
-- (NSArray*) valueList {
- NSMutableArray *array = [NSMutableArray arrayWithCapacity:3];
- [array addObject:[NSNumber numberWithInt:[self red]]];
- [array addObject:[NSNumber numberWithInt:[self green]]];
- [array addObject:[NSNumber numberWithInt:[self blue]]];
- return array;
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Configuration.h b/tikzit-old/src/gtk/Configuration.h
deleted file mode 100644
index 6c68681..0000000
--- a/tikzit-old/src/gtk/Configuration.h
+++ /dev/null
@@ -1,447 +0,0 @@
-//
-// Configuration.h
-// TikZiT
-//
-// Copyright 2010 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TZFoundation.h"
-
-/**
- * Manages configuration information in a grouped key-value format.
- */
-@interface Configuration : NSObject {
- NSString *name;
- GKeyFile *file;
-}
-
-/**
- * Check whether there is any existing configuration.
- */
-+ (BOOL) configurationExistsWithName:(NSString*)name;
-/**
- * Create a blank configuration with the given name, without loading
- * any existing configuration information.
- *
- * @param name the name of the configuration
- */
-+ (Configuration*) emptyConfigurationWithName:(NSString*)name;
-/**
- * Load an existing configuration for the given name.
- *
- * If there was no existing configuration, or it could not be opened,
- * an empty configuration will be returned.
- *
- * @param name the name of the configuration
- */
-+ (Configuration*) configurationWithName:(NSString*)name;
-/**
- * Load an existing configuration for the given name.
- *
- * If there was no existing configuration, or it could not be opened,
- * an empty configuration will be returned.
- *
- * @param name the name of the configuration
- * @param error this will be set if the configuration exists, but could
- * not be opened.
- */
-+ (Configuration*) configurationWithName:(NSString*)name loadError:(NSError**)error;
-
-/**
- * Initialise the configuration to be empty
- *
- * Does not attempt to load any existing configuration data.
- *
- * @param name the name of the configuration
- */
-- (id) initEmptyWithName:(NSString*)name;
-/**
- * Initialise a configuration, loading it if it had previously been stored.
- *
- * If there was no existing configuration, or it could not be opened,
- * an empty configuration will be returned.
- *
- * @param name the name of the configuration
- */
-- (id) initWithName:(NSString*)name;
-/**
- * Initialise a configuration, loading it if it had previously been stored.
- *
- * If there was no existing configuration, or it could not be opened,
- * an empty configuration will be returned.
- *
- * @param name the name of the configuration
- * @param error this will be set if the configuration exists, but could
- * not be opened.
- */
-- (id) initWithName:(NSString*)name loadError:(NSError**)error;
-
-/**
- * The name of the configuration.
- *
- * Configurations with different names are stored independently.
- */
-- (NSString*) name;
-/**
- * Set the name of the configuration.
- *
- * This will affect the behaviour of [-writeToStore]
- *
- * Configurations with different names are stored independently.
- */
-- (void) setName:(NSString*)name;
-
-/**
- * Writes the configuration to the backing store.
- *
- * The location the configuration is written to is determined by the
- * [-name] property.
- *
- * @result YES if the configuration was successfully written, NO otherwise
- */
-- (BOOL) writeToStore;
-/**
- * Writes the configuration to the backing store.
- *
- * The location the configuration is written to is determined by the
- * [-name] property.
- *
- * @param error this will be set if the configuration could not be written
- * to the backing store
- * @result YES if the configuration was successfully written, NO otherwise
- */
-- (BOOL) writeToStoreWithError:(NSError**)error;
-
-/**
- * Check whether a particular key exists within a group
- *
- * @param key the key to check for
- * @param group the name of the group to look in
- * @result YES if the key exists, NO otherwise
- */
-- (BOOL) hasKey:(NSString*)key inGroup:(NSString*)group;
-/**
- * Check whether a particular group exists
- *
- * @param group the name of the group to check for
- * @result YES if the group exists, NO otherwise
- */
-- (BOOL) hasGroup:(NSString*)group;
-/**
- * List the groups in the configuration.
- *
- * @result a list of group names
- */
-- (NSArray*) groups;
-
-/**
- * Get the value associated with a key as a string
- *
- * This is only guaranteed to work if the value was stored as a string.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a string, or nil
- * if no string value was associated with key
- */
-- (NSString*) stringEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a string
- *
- * This is only guaranteed to work if the value was stored as a string.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no string value was associated with key
- * @result the value associated with key as a string, or default
- */
-- (NSString*) stringEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSString*)def;
-/**
- * Get the value associated with a key as a boolean
- *
- * This is only guaranteed to work if the value was stored as a boolean.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a boolean, or NO
- * if no boolean value was associated with key
- */
-- (BOOL) booleanEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a boolean
- *
- * This is only guaranteed to work if the value was stored as a boolean.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no boolean value was associated with key
- * @result the value associated with key as a boolean, or def
- */
-- (BOOL) booleanEntry:(NSString*)key inGroup:(NSString*)group withDefault:(BOOL)def;
-/**
- * Get the value associated with a key as a integer
- *
- * This is only guaranteed to work if the value was stored as a integer.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a integer, or 0
- * if no integer value was associated with key
- */
-- (int) integerEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a integer
- *
- * This is only guaranteed to work if the value was stored as a integer.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no integer value was associated with key
- * @result the value associated with key as a integer, or def
- */
-- (int) integerEntry:(NSString*)key inGroup:(NSString*)group withDefault:(int)def;
-/**
- * Get the value associated with a key as a double
- *
- * This is only guaranteed to work if the value was stored as a double.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a double, or 0
- * if no double value was associated with key
- */
-- (double) doubleEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a double
- *
- * This is only guaranteed to work if the value was stored as a double.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no double value was associated with key
- * @result the value associated with key as a double, or def
- */
-- (double) doubleEntry:(NSString*)key inGroup:(NSString*)group withDefault:(double)def;
-
-/**
- * Get the value associated with a key as a list of strings
- *
- * This is only guaranteed to work if the value was stored as a
- * list of strings.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a list of strings,
- * or nil if no list of strings was associated with key
- */
-- (NSArray*) stringListEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a list of strings
- *
- * This is only guaranteed to work if the value was stored as a
- * list of strings.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no string list value was associated with key
- * @result the value associated with key as a list of strings, or def
- */
-- (NSArray*) stringListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def;
-/**
- * Get the value associated with a key as a list of booleans
- *
- * This is only guaranteed to work if the value was stored as a
- * list of booleans.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a list of NSNumber
- * objects, containing boolean values, or nil
- */
-- (NSArray*) booleanListEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a list of booleans
- *
- * This is only guaranteed to work if the value was stored as a
- * list of booleans.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no boolean list value was associated with key
- * @result the value associated with key as a list of NSNumber
- * objects, containing boolean values, or def
- */
-- (NSArray*) booleanListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def;
-/**
- * Get the value associated with a key as a list of integers
- *
- * This is only guaranteed to work if the value was stored as a
- * list of integers.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a list of NSNumber
- * objects, containing integer values, or nil
- */
-- (NSArray*) integerListEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a list of integers
- *
- * This is only guaranteed to work if the value was stored as a
- * list of integers.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no integer list value was associated with key
- * @result the value associated with key as a list of NSNumber
- * objects, containing integer values, or def
- */
-- (NSArray*) integerListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def;
-/**
- * Get the value associated with a key as a list of doubles
- *
- * This is only guaranteed to work if the value was stored as a
- * list of doubles.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @result the value associated with key as a list of NSNumber
- * objects, containing double values, or nil
- */
-- (NSArray*) doubleListEntry:(NSString*)key inGroup:(NSString*)group;
-/**
- * Get the value associated with a key as a list of doubles
- *
- * This is only guaranteed to work if the value was stored as a
- * list of doubles.
- *
- * @param key the key to fetch the data for
- * @param group the name of the group to look in
- * @param def the value to return if no double list value was associated with key
- * @result the value associated with key as a list of NSNumber
- * objects, containing double values, or def
- */
-- (NSArray*) doubleListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def;
-
-/**
- * Associate a string value with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the value with
- * @param group the group to store the association in
- * @param value the value to store
- */
-- (void) setStringEntry:(NSString*)key inGroup:(NSString*)group value:(NSString*)value;
-/**
- * Associate a boolean value with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the value with
- * @param group the group to store the association in
- * @param value the value to store
- */
-- (void) setBooleanEntry:(NSString*)key inGroup:(NSString*)group value:(BOOL)value;
-/**
- * Associate a integer value with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the value with
- * @param group the group to store the association in
- * @param value the value to store
- */
-- (void) setIntegerEntry:(NSString*)key inGroup:(NSString*)group value:(int)value;
-/**
- * Associate a double value with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the value with
- * @param group the group to store the association in
- * @param value the value to store
- */
-- (void) setDoubleEntry:(NSString*)key inGroup:(NSString*)group value:(double)value;
-
-/**
- * Associate a list of string values with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the list with
- * @param group the group to store the association in
- * @param value the list to store, as an array of strings
- */
-- (void) setStringListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-/**
- * Associate a list of boolean values with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the list with
- * @param group the group to store the association in
- * @param value the list to store, as an array of NSNumber objects
- */
-- (void) setBooleanListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-/**
- * Associate a list of integer values with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the list with
- * @param group the group to store the association in
- * @param value the list to store, as an array of NSNumber objects
- */
-- (void) setIntegerListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-/**
- * Associate a list of double values with a key.
- *
- * Any previous value (of any type) with the same key and group will
- * be overwritten.
- *
- * @param key the key to associate the list with
- * @param group the group to store the association in
- * @param value the list to store, as an array of NSNumber objects
- */
-- (void) setDoubleListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-
-/**
- * Remove a group from the configuration
- *
- * This will remove all the groups key-value associations.
- */
-- (void) removeGroup:(NSString*)group;
-/**
- * Remove a key from the configuration
- *
- * @param key the key to remove
- * @param group the group to remove it from
- */
-- (void) removeKey:(NSString*)key inGroup:(NSString*)group;
-
-@end
-
-// vim:ft=objc:sts=4:sw=4:et
diff --git a/tikzit-old/src/gtk/Configuration.m b/tikzit-old/src/gtk/Configuration.m
deleted file mode 100644
index 4a3ed79..0000000
--- a/tikzit-old/src/gtk/Configuration.m
+++ /dev/null
@@ -1,450 +0,0 @@
-//
-// Configuration.h
-// TikZiT
-//
-// Copyright 2010 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Configuration.h"
-#import "SupportDir.h"
-
-@implementation Configuration
-
-+ (NSString*) _pathFromName:(NSString*)name {
- return [NSString stringWithFormat:@"%@/%@.conf", [SupportDir userSupportDir], name];
-}
-
-+ (BOOL) configurationExistsWithName:(NSString*)name {
- BOOL isDir;
- BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:[self _pathFromName:name] isDirectory:&isDir];
- return exists && !isDir;
-}
-
-+ (Configuration*) emptyConfigurationWithName:(NSString*)name
- { return [[[self alloc] initEmptyWithName:name] autorelease]; }
-+ (Configuration*) configurationWithName:(NSString*)name
- { return [[[self alloc] initWithName:name] autorelease]; }
-+ (Configuration*) configurationWithName:(NSString*)name loadError:(NSError**)error
- { return [[[self alloc] initWithName:name loadError:error] autorelease]; }
-
-- (id) init
-{
- [self release];
- return nil;
-}
-
-- (id) initEmptyWithName:(NSString*)n
-{
- self = [super init];
- if (self) {
- name = [n retain];
- file = g_key_file_new ();
- }
-
- return self;
-}
-
-- (id) _initFromFile:(NSString*)path error:(NSError**)error
-{
- self = [super init];
- if (self) {
- file = g_key_file_new ();
-
- NSFileManager *manager = [NSFileManager defaultManager];
- if ([manager fileExistsAtPath:path]) {
- gchar *filename = [path glibFilename];
-
- GError *gerror = NULL;
- g_key_file_load_from_file (file,
- filename,
- G_KEY_FILE_NONE,
- &gerror);
- g_free (filename);
-
- if (gerror) {
- GErrorToNSError (gerror, error);
- g_error_free (gerror);
- }
- }
- }
-
- return self;
-}
-
-- (id) initWithName:(NSString*)n {
- return [self initWithName:n loadError:NULL];
-}
-
-- (id) initWithName:(NSString*)n loadError:(NSError**)error {
- self = [self _initFromFile:[Configuration _pathFromName:n] error:error];
-
- if (self) {
- name = [n retain];
- }
-
- return self;
-}
-
-- (BOOL) _ensureParentExists:(NSString*)path error:(NSError**)error {
- NSString *directory = [path stringByDeletingLastPathComponent];
- return [[NSFileManager defaultManager] ensureDirectoryExists:directory error:error];
-}
-
-- (BOOL) _writeFileTo:(NSString*)path error:(NSError**)error
-{
- if (![self _ensureParentExists:path error:error]) {
- return NO;
- }
-
- BOOL success = NO;
- gsize length;
- gchar *data = g_key_file_to_data (file, &length, NULL); // never reports an error
- if (data && length) {
- GError *gerror = NULL;
- gchar* nativePath = [path glibFilename];
- success = g_file_set_contents (nativePath, data, length, &gerror) ? YES : NO;
- g_free (data);
- g_free (nativePath);
- if (gerror) {
- g_warning ("Failed to write file: %s\n", gerror->message);
- GErrorToNSError (gerror, error);
- g_error_free (gerror);
- }
- } else {
- [[NSFileManager defaultManager] removeFileAtPath:path handler:nil];
- success = YES;
- }
-
- return success;
-}
-
-- (NSString*) name {
- return name;
-}
-
-- (void) setName:(NSString*)n {
- [n retain];
- [name release];
- name = n;
-}
-
-- (BOOL) writeToStore {
- return [self writeToStoreWithError:NULL];
-}
-
-- (BOOL) writeToStoreWithError:(NSError**)error {
- return [self _writeFileTo:[Configuration _pathFromName:name] error:error];
-}
-
-- (BOOL) hasKey:(NSString*)key inGroup:(NSString*)group
-{
- gboolean result = g_key_file_has_key (file, [group UTF8String], [key UTF8String], NULL);
- return result ? YES : NO;
-}
-
-- (BOOL) hasGroup:(NSString*)group
-{
- gboolean result = g_key_file_has_group (file, [group UTF8String]);
- return result ? YES : NO;
-}
-
-- (NSArray*) keys:(NSString*)group
-{
- gsize length;
- gchar **keys = g_key_file_get_keys (file, [group UTF8String], &length, NULL);
- if (!keys)
- length = 0;
-
- NSMutableArray *array = [NSMutableArray arrayWithCapacity:length];
- for (int i = 0; i < length; ++i) {
- [array addObject:[NSString stringWithUTF8String:keys[i]]];
- }
- g_strfreev (keys);
- return array;
-}
-
-- (NSArray*) groups
-{
- gsize length;
- gchar **groups = g_key_file_get_groups (file, &length);
- NSMutableArray *array = [NSMutableArray arrayWithCapacity:length];
- for (int i = 0; i < length; ++i) {
- [array addObject:[NSString stringWithUTF8String:groups[i]]];
- }
- g_strfreev (groups);
- return array;
-}
-
-- (NSString*) stringEntry:(NSString*)key inGroup:(NSString*)group
-{
- return [self stringEntry:key inGroup:group withDefault:nil];
-}
-
-- (NSString*) stringEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSString*)def
-{
- NSString *result = def;
- gchar *entry = g_key_file_get_string (file, [group UTF8String], [key UTF8String], NULL);
- if (entry) {
- result = [NSString stringWithUTF8String:entry];
- g_free (entry);
- }
- return result;
-}
-
-- (BOOL) booleanEntry:(NSString*)key inGroup:(NSString*)group withDefault:(BOOL)def
-{
- GError *error = NULL;
- gboolean result = g_key_file_get_boolean (file, [group UTF8String], [key UTF8String], &error);
- if (error != NULL) {
- g_error_free (error);
- return def;
- } else {
- return result ? YES : NO;
- }
-}
-
-- (BOOL) booleanEntry:(NSString*)key inGroup:(NSString*)group
-{
- gboolean result = g_key_file_get_boolean (file, [group UTF8String], [key UTF8String], NULL);
- return result ? YES : NO;
-}
-
-- (int) integerEntry:(NSString*)key inGroup:(NSString*)group withDefault:(int)def
-{
- GError *error = NULL;
- int result = g_key_file_get_integer (file, [group UTF8String], [key UTF8String], &error);
- if (error != NULL) {
- g_error_free (error);
- return def;
- } else {
- return result;
- }
-}
-
-- (int) integerEntry:(NSString*)key inGroup:(NSString*)group
-{
- return g_key_file_get_integer (file, [group UTF8String], [key UTF8String], NULL);
-}
-
-- (double) doubleEntry:(NSString*)key inGroup:(NSString*)group withDefault:(double)def
-{
- GError *error = NULL;
- double result = g_key_file_get_double (file, [group UTF8String], [key UTF8String], &error);
- if (error != NULL) {
- g_error_free (error);
- return def;
- } else {
- return result;
- }
-}
-
-- (double) doubleEntry:(NSString*)key inGroup:(NSString*)group
-{
- return g_key_file_get_double (file, [group UTF8String], [key UTF8String], NULL);
-}
-
-- (NSArray*) stringListEntry:(NSString*)key inGroup:(NSString*)group
-{
- return [self stringListEntry:key inGroup:group withDefault:nil];
-}
-
-- (NSArray*) stringListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def
-{
- gsize length;
- gchar **list = g_key_file_get_string_list (file, [group UTF8String], [key UTF8String], &length, NULL);
- if (list) {
- NSMutableArray *result = [NSMutableArray arrayWithCapacity:length];
- for (int i = 0; i < length; ++i) {
- [result addObject:[NSString stringWithUTF8String:list[i]]];
- }
- g_strfreev (list);
- return result;
- } else {
- return def;
- }
-}
-
-- (NSArray*) booleanListEntry:(NSString*)key inGroup:(NSString*)group
-{
- return [self booleanListEntry:key inGroup:group withDefault:nil];
-}
-
-- (NSArray*) booleanListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def
-{
- gsize length;
- gboolean *list = g_key_file_get_boolean_list (file, [group UTF8String], [key UTF8String], &length, NULL);
- if (list) {
- NSMutableArray *result = [NSMutableArray arrayWithCapacity:length];
- for (int i = 0; i < length; ++i) {
- [result addObject:[NSNumber numberWithBool:list[i]]];
- }
- g_free (list);
- return result;
- } else {
- return def;
- }
-}
-
-- (NSArray*) integerListEntry:(NSString*)key inGroup:(NSString*)group
-{
- return [self integerListEntry:key inGroup:group withDefault:nil];
-}
-
-- (NSArray*) integerListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def
-{
- gsize length;
- gint *list = g_key_file_get_integer_list (file, [group UTF8String], [key UTF8String], &length, NULL);
- if (list) {
- NSMutableArray *result = [NSMutableArray arrayWithCapacity:length];
- for (int i = 0; i < length; ++i) {
- [result addObject:[NSNumber numberWithInt:list[i]]];
- }
- g_free (list);
- return result;
- } else {
- return def;
- }
-}
-
-- (NSArray*) doubleListEntry:(NSString*)key inGroup:(NSString*)group
-{
- return [self doubleListEntry:key inGroup:group withDefault:nil];
-}
-
-- (NSArray*) doubleListEntry:(NSString*)key inGroup:(NSString*)group withDefault:(NSArray*)def
-{
- gsize length;
- double *list = g_key_file_get_double_list (file, [group UTF8String], [key UTF8String], &length, NULL);
- if (list) {
- NSMutableArray *result = [NSMutableArray arrayWithCapacity:length];
- for (int i = 0; i < length; ++i) {
- [result addObject:[NSNumber numberWithDouble:list[i]]];
- }
- g_free (list);
- return result;
- } else {
- return def;
- }
-}
-
-- (void) setStringEntry:(NSString*)key inGroup:(NSString*)group value:(NSString*)value
-{
- if (value == nil) {
- [self removeKey:key inGroup:group];
- return;
- }
- g_key_file_set_string (file, [group UTF8String], [key UTF8String], [value UTF8String]);
-}
-
-- (void) setBooleanEntry:(NSString*)key inGroup:(NSString*)group value:(BOOL)value;
-{
- g_key_file_set_boolean (file, [group UTF8String], [key UTF8String], value);
-}
-
-- (void) setIntegerEntry:(NSString*)key inGroup:(NSString*)group value:(int)value;
-{
- g_key_file_set_integer (file, [group UTF8String], [key UTF8String], value);
-}
-
-- (void) setDoubleEntry:(NSString*)key inGroup:(NSString*)group value:(double)value;
-{
- g_key_file_set_double (file, [group UTF8String], [key UTF8String], value);
-}
-
-
-- (void) setStringListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value
-{
- if (value == nil) {
- [self removeKey:key inGroup:group];
- return;
- }
- gsize length = [value count];
- const gchar * *list = g_new (const gchar *, length);
- for (int i = 0; i < length; ++i) {
- list[i] = [[value objectAtIndex:i] UTF8String];
- }
- g_key_file_set_string_list (file, [group UTF8String], [key UTF8String], list, length);
- g_free (list);
-}
-
-- (void) setBooleanListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-{
- if (value == nil) {
- [self removeKey:key inGroup:group];
- return;
- }
- gsize length = [value count];
- gboolean *list = g_new (gboolean, length);
- for (int i = 0; i < length; ++i) {
- list[i] = [[value objectAtIndex:i] boolValue];
- }
- g_key_file_set_boolean_list (file, [group UTF8String], [key UTF8String], list, length);
- g_free (list);
-}
-
-- (void) setIntegerListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-{
- if (value == nil) {
- [self removeKey:key inGroup:group];
- return;
- }
- gsize length = [value count];
- gint *list = g_new (gint, length);
- for (int i = 0; i < length; ++i) {
- list[i] = [[value objectAtIndex:i] intValue];
- }
- g_key_file_set_integer_list (file, [group UTF8String], [key UTF8String], list, length);
- g_free (list);
-}
-
-- (void) setDoubleListEntry:(NSString*)key inGroup:(NSString*)group value:(NSArray*)value;
-{
- if (value == nil) {
- [self removeKey:key inGroup:group];
- return;
- }
- gsize length = [value count];
- gdouble *list = g_new (gdouble, length);
- for (int i = 0; i < length; ++i) {
- list[i] = [[value objectAtIndex:i] doubleValue];
- }
- g_key_file_set_double_list (file, [group UTF8String], [key UTF8String], list, length);
- g_free (list);
-}
-
-- (void) removeGroup:(NSString*)group
-{
- g_key_file_remove_group (file, [group UTF8String], NULL);
-}
-
-- (void) removeKey:(NSString*)key inGroup:(NSString*)group;
-{
- g_key_file_remove_key (file, [group UTF8String], [key UTF8String], NULL);
-}
-
-- (void) dealloc
-{
- [name release];
- g_key_file_free (file);
- file = NULL;
- [super dealloc];
-}
-
-@end
-
-// vim:ft=objc:sts=4:sw=4:et
diff --git a/tikzit-old/src/gtk/ContextWindow.h b/tikzit-old/src/gtk/ContextWindow.h
deleted file mode 100644
index fcad9df..0000000
--- a/tikzit-old/src/gtk/ContextWindow.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Configuration;
-@class EdgeStylesModel;
-@class NodeStylesModel;
-@class PropertiesPane;
-@class SelectionPane;
-@class StyleManager;
-@class TikzDocument;
-@class Window;
-
-@interface ContextWindow: NSObject {
- PropertiesPane *propsPane;
- SelectionPane *selPane;
-
- GtkWidget *window;
- GtkWidget *layout;
-}
-
-@property (retain) TikzDocument *document;
-@property (assign) BOOL visible;
-
-- (id) initWithStyleManager:(StyleManager*)mgr;
-- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm
- andEdgeStylesModel:(EdgeStylesModel*)esm;
-
-- (void) present;
-- (void) attachToWindow:(Window*)parent;
-
-- (void) loadConfiguration:(Configuration*)config;
-- (void) saveConfiguration:(Configuration*)config;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/ContextWindow.m b/tikzit-old/src/gtk/ContextWindow.m
deleted file mode 100644
index d8e9d20..0000000
--- a/tikzit-old/src/gtk/ContextWindow.m
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "ContextWindow.h"
-
-#import "Configuration.h"
-#import "EdgeStylesModel.h"
-#import "NodeStylesModel.h"
-#import "PropertiesPane.h"
-#import "SelectionPane.h"
-#import "StyleManager.h"
-#import "Window.h"
-
-#import "gtkhelpers.h"
-
-static gboolean props_window_delete_event_cb (GtkWidget *widget, GdkEvent *event, ContextWindow *window);
-
-@implementation ContextWindow
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)sm {
- return [self initWithNodeStylesModel:[NodeStylesModel modelWithStyleManager:sm]
- andEdgeStylesModel:[EdgeStylesModel modelWithStyleManager:sm]];
-}
-
-- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm
- andEdgeStylesModel:(EdgeStylesModel*)esm {
- self = [super init];
-
- if (self) {
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_object_ref_sink (window);
- gtk_window_set_title (GTK_WINDOW (window), "Context");
- gtk_window_set_role (GTK_WINDOW (window), "context");
- gtk_window_set_type_hint (GTK_WINDOW (window),
- GDK_WINDOW_TYPE_HINT_UTILITY);
- gtk_window_set_default_size (GTK_WINDOW (window), 200, 500);
- g_signal_connect (G_OBJECT (window),
- "delete-event",
- G_CALLBACK (props_window_delete_event_cb),
- self);
-
- layout = gtk_vbox_new (FALSE, 3);
- g_object_ref_sink (layout);
- gtk_widget_show (layout);
- gtk_container_set_border_width (GTK_CONTAINER (layout), 6);
-
- gtk_container_add (GTK_CONTAINER (window), layout);
-
- propsPane = [[PropertiesPane alloc] init];
- gtk_box_pack_start (GTK_BOX (layout), [propsPane gtkWidget],
- TRUE, TRUE, 0);
-
- GtkWidget *sep = gtk_hseparator_new ();
- gtk_widget_show (sep);
- gtk_box_pack_start (GTK_BOX (layout), sep,
- FALSE, FALSE, 0);
-
- selPane = [[SelectionPane alloc] initWithNodeStylesModel:nsm
- andEdgeStylesModel:esm];
- gtk_box_pack_start (GTK_BOX (layout), [selPane gtkWidget],
- FALSE, FALSE, 0);
-
- // hack to position the context window somewhere sensible
- // (upper right)
- gtk_window_parse_geometry (GTK_WINDOW (window), "-0+0");
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (layout);
- g_object_unref (window);
-
- [propsPane release];
-
- [super dealloc];
-}
-
-- (TikzDocument*) document {
- return [propsPane document];
-}
-
-- (void) setDocument:(TikzDocument*)doc {
- [propsPane setDocument:doc];
- [selPane setDocument:doc];
-}
-
-- (BOOL) visible {
- return gtk_widget_get_visible (window);
-}
-
-- (void) setVisible:(BOOL)visible {
- gtk_widget_set_visible (window, visible);
-}
-
-- (void) present {
- gtk_window_present (GTK_WINDOW (window));
-}
-
-- (void) attachToWindow:(Window*)parent {
- utility_window_attach (GTK_WINDOW (window), [parent gtkWindow]);
-}
-
-- (void) loadConfiguration:(Configuration*)config {
- [propsPane loadConfiguration:config];
- [selPane loadConfiguration:config];
-
- if ([config hasGroup:@"ContextWindow"]) {
- tz_restore_window (GTK_WINDOW (window),
- [config integerEntry:@"x" inGroup:@"ContextWindow"],
- [config integerEntry:@"y" inGroup:@"ContextWindow"],
- [config integerEntry:@"w" inGroup:@"ContextWindow"],
- [config integerEntry:@"h" inGroup:@"ContextWindow"]);
- }
- [self setVisible:[config booleanEntry:@"visible"
- inGroup:@"ContextWindow"
- withDefault:YES]];
-}
-
-- (void) saveConfiguration:(Configuration*)config {
- gint x, y, w, h;
-
- gtk_window_get_position (GTK_WINDOW (window), &x, &y);
- gtk_window_get_size (GTK_WINDOW (window), &w, &h);
-
- [config setIntegerEntry:@"x" inGroup:@"ContextWindow" value:x];
- [config setIntegerEntry:@"y" inGroup:@"ContextWindow" value:y];
- [config setIntegerEntry:@"w" inGroup:@"ContextWindow" value:w];
- [config setIntegerEntry:@"h" inGroup:@"ContextWindow" value:h];
- [config setBooleanEntry:@"visible"
- inGroup:@"ContextWindow"
- value:[self visible]];
-
- [propsPane saveConfiguration:config];
- [selPane saveConfiguration:config];
-}
-
-@end
-
-static gboolean props_window_delete_event_cb (GtkWidget *widget, GdkEvent *event, ContextWindow *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window setVisible:NO];
- [pool drain];
- return TRUE;
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/CreateEdgeTool.h b/tikzit-old/src/gtk/CreateEdgeTool.h
deleted file mode 100644
index d33efce..0000000
--- a/tikzit-old/src/gtk/CreateEdgeTool.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Tool.h"
-
-@class EdgeStyle;
-@class EdgeStylesModel;
-@class EdgeStyleSelector;
-@class Node;
-@class StyleManager;
-
-@interface CreateEdgeTool : NSObject <Tool> {
- GraphRenderer *renderer;
- EdgeStyleSelector *stylePicker;
- GtkWidget *configWidget;
- Node *sourceNode;
- NSPoint sourceNodeScreenPoint;
- NSPoint halfEdgeEnd;
-}
-
-@property (retain) EdgeStyle *activeStyle;
-
-+ (id) toolWithStyleManager:(StyleManager*)sm;
-- (id) initWithStyleManager:(StyleManager*)sm;
-+ (id) toolWithEdgeStylesModel:(EdgeStylesModel*)esm;
-- (id) initWithEdgeStylesModel:(EdgeStylesModel*)esm;
-@end
-
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/CreateEdgeTool.m b/tikzit-old/src/gtk/CreateEdgeTool.m
deleted file mode 100644
index f3fb2c0..0000000
--- a/tikzit-old/src/gtk/CreateEdgeTool.m
+++ /dev/null
@@ -1,226 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "CreateEdgeTool.h"
-
-#import "Configuration.h"
-#import "EdgeStyleSelector.h"
-#import "EdgeStylesModel.h"
-#import "GraphRenderer.h"
-#import "TikzDocument.h"
-#import "tzstockitems.h"
-
-static void clear_style_button_cb (GtkButton *widget,
- EdgeStyleSelector *selector);
-
-@implementation CreateEdgeTool
-- (NSString*) name { return @"Create Edge"; }
-- (const gchar*) stockId { return TIKZIT_STOCK_CREATE_EDGE; }
-- (NSString*) helpText { return @"Create new edges"; }
-- (NSString*) shortcut { return @"e"; }
-@synthesize activeRenderer=renderer;
-@synthesize configurationWidget=configWidget;
-
-+ (id) toolWithStyleManager:(StyleManager*)sm {
- return [[[self alloc] initWithStyleManager:sm] autorelease];
-}
-
-+ (id) toolWithEdgeStylesModel:(EdgeStylesModel*)esm {
- return [[[self alloc] initWithEdgeStylesModel:esm] autorelease];
-}
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)sm {
- return [self initWithEdgeStylesModel:[EdgeStylesModel modelWithStyleManager:sm]];
-}
-
-- (id) initWithEdgeStylesModel:(EdgeStylesModel*)esm {
- self = [super init];
-
- if (self) {
- stylePicker = [[EdgeStyleSelector alloc] initWithModel:esm];
-
- configWidget = gtk_vbox_new (FALSE, 0);
- g_object_ref_sink (configWidget);
-
- GtkWidget *label = gtk_label_new ("Edge style:");
- gtk_widget_show (label);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
- gtk_box_pack_start (GTK_BOX (configWidget),
- label,
- FALSE,
- FALSE,
- 0);
-
- GtkWidget *selWindow = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_show (selWindow);
- gtk_container_add (GTK_CONTAINER (selWindow),
- [stylePicker widget]);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (selWindow),
- GTK_POLICY_NEVER,
- GTK_POLICY_AUTOMATIC);
- gtk_widget_show ([stylePicker widget]);
-
- GtkWidget *selectorFrame = gtk_frame_new (NULL);
- gtk_widget_show (selectorFrame);
- gtk_box_pack_start (GTK_BOX (configWidget),
- selectorFrame,
- TRUE,
- TRUE,
- 0);
- gtk_container_add (GTK_CONTAINER (selectorFrame),
- selWindow);
-
- GtkWidget *button = gtk_button_new_with_label ("No style");
- gtk_widget_show (button);
- gtk_box_pack_start (GTK_BOX (configWidget),
- button,
- FALSE,
- FALSE,
- 0);
- g_signal_connect (G_OBJECT (button),
- "clicked",
- G_CALLBACK (clear_style_button_cb),
- stylePicker);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [renderer release];
- [stylePicker release];
- [sourceNode release];
-
- g_object_unref (G_OBJECT (configWidget));
-
- [super dealloc];
-}
-
-- (EdgeStyle*) activeStyle {
- return [stylePicker selectedStyle];
-}
-
-- (void) setActiveStyle:(EdgeStyle*)style {
- return [stylePicker setSelectedStyle:style];
-}
-
-- (void) invalidateHalfEdge {
- NSRect invRect = NSRectAroundPoints(sourceNodeScreenPoint, halfEdgeEnd);
- [renderer invalidateRect:NSInsetRect (invRect, -2.0f, -2.0f)];
-}
-
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- sourceNode = [renderer anyNodeAt:pos];
- if (sourceNode != nil) {
- Transformer *transformer = [[renderer surface] transformer];
- sourceNodeScreenPoint = [transformer toScreen:[sourceNode point]];
- halfEdgeEnd = pos;
- [renderer setNode:sourceNode highlighted:YES];
- }
-}
-
-- (void) mouseMoveTo:(NSPoint)pos withButtons:(MouseButton)buttons andMask:(InputMask)mask {
- if (!(buttons & LeftButton))
- return;
- if (sourceNode == nil)
- return;
-
- [self invalidateHalfEdge];
-
- [renderer clearHighlightedNodes];
- [renderer setNode:sourceNode highlighted:YES];
- halfEdgeEnd = pos;
- Node *targ = [renderer anyNodeAt:pos];
- if (targ != nil) {
- [renderer setNode:targ highlighted:YES];
- }
-
- [self invalidateHalfEdge];
-}
-
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
- if (sourceNode == nil)
- return;
-
- [renderer clearHighlightedNodes];
- [self invalidateHalfEdge];
-
- Node *targ = [renderer anyNodeAt:pos];
- if (targ != nil) {
- Edge *edge = [Edge edgeWithSource:sourceNode andTarget:targ];
- [edge setStyle:[self activeStyle]];
- [[renderer document] addEdge:edge];
- [renderer invalidateEdge:edge];
- }
-
- sourceNode = nil;
-}
-
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface {
- if (sourceNode == nil) {
- return;
- }
- [context saveState];
-
- [context setLineWidth:1.0];
- [context startPath];
- [context moveTo:sourceNodeScreenPoint];
- [context lineTo:halfEdgeEnd];
- [context strokePathWithColor:MakeRColor (0, 0, 0, 0.5)];
-
- [context restoreState];
-}
-
-- (StyleManager*) styleManager {
- return [[stylePicker model] styleManager];
-}
-
-- (void) loadConfiguration:(Configuration*)config {
- NSString *styleName = [config stringEntry:@"ActiveStyle"
- inGroup:@"CreateEdgeTool"
- withDefault:nil];
- [self setActiveStyle:[[self styleManager] edgeStyleForName:styleName]];
-}
-
-- (void) saveConfiguration:(Configuration*)config {
- [config setStringEntry:@"ActiveStyle"
- inGroup:@"CreateEdgeTool"
- value:[[self activeStyle] name]];
-}
-@end
-
-static void clear_style_button_cb (GtkButton *widget,
- EdgeStyleSelector *selector)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [selector setSelectedStyle:nil];
- [pool drain];
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/CreateNodeTool.h b/tikzit-old/src/gtk/CreateNodeTool.h
deleted file mode 100644
index 94d6b31..0000000
--- a/tikzit-old/src/gtk/CreateNodeTool.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-#import "Tool.h"
-
-@class NodeStyle;
-@class NodeStyleSelector;
-@class NodeStylesModel;
-@class StyleManager;
-
-@interface CreateNodeTool : NSObject <Tool> {
- GraphRenderer *renderer;
- NodeStyleSelector *stylePicker;
- GtkWidget *configWidget;
-}
-
-@property (retain) NodeStyle *activeStyle;
-
-+ (id) toolWithStyleManager:(StyleManager*)sm;
-- (id) initWithStyleManager:(StyleManager*)sm;
-+ (id) toolWithNodeStylesModel:(NodeStylesModel*)nsm;
-- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm;
-@end
-
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/CreateNodeTool.m b/tikzit-old/src/gtk/CreateNodeTool.m
deleted file mode 100644
index 77b24f0..0000000
--- a/tikzit-old/src/gtk/CreateNodeTool.m
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "CreateNodeTool.h"
-
-#import "Configuration.h"
-#import "GraphRenderer.h"
-#import "NodeStyleSelector.h"
-#import "NodeStylesModel.h"
-#import "TikzDocument.h"
-#import "tzstockitems.h"
-
-static void clear_style_button_cb (GtkButton *widget,
- NodeStyleSelector *selector);
-
-@implementation CreateNodeTool
-- (NSString*) name { return @"Create Node"; }
-- (const gchar*) stockId { return TIKZIT_STOCK_CREATE_NODE; }
-- (NSString*) helpText { return @"Create new nodes"; }
-- (NSString*) shortcut { return @"n"; }
-@synthesize activeRenderer=renderer;
-@synthesize configurationWidget=configWidget;
-
-+ (id) toolWithStyleManager:(StyleManager*)sm {
- return [[[self alloc] initWithStyleManager:sm] autorelease];
-}
-
-+ (id) toolWithNodeStylesModel:(NodeStylesModel*)nsm {
- return [[[self alloc] initWithNodeStylesModel:nsm] autorelease];
-}
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)sm {
- return [self initWithNodeStylesModel:[NodeStylesModel modelWithStyleManager:sm]];
-}
-
-- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm {
- self = [super init];
-
- if (self) {
- stylePicker = [[NodeStyleSelector alloc] initWithModel:nsm];
-
- configWidget = gtk_vbox_new (FALSE, 0);
- g_object_ref_sink (configWidget);
-
- GtkWidget *label = gtk_label_new ("Node style:");
- gtk_widget_show (label);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
- gtk_box_pack_start (GTK_BOX (configWidget),
- label,
- FALSE,
- FALSE,
- 0);
-
- GtkWidget *selWindow = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_show (selWindow);
- gtk_container_add (GTK_CONTAINER (selWindow),
- [stylePicker widget]);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (selWindow),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
- gtk_widget_show ([stylePicker widget]);
-
- GtkWidget *selectorFrame = gtk_frame_new (NULL);
- gtk_widget_show (selectorFrame);
- gtk_box_pack_start (GTK_BOX (configWidget),
- selectorFrame,
- TRUE,
- TRUE,
- 0);
- gtk_container_add (GTK_CONTAINER (selectorFrame),
- selWindow);
-
- GtkWidget *button = gtk_button_new_with_label ("No style");
- gtk_widget_show (button);
- gtk_box_pack_start (GTK_BOX (configWidget),
- button,
- FALSE,
- FALSE,
- 0);
- g_signal_connect (G_OBJECT (button),
- "clicked",
- G_CALLBACK (clear_style_button_cb),
- stylePicker);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [renderer release];
- [stylePicker release];
-
- g_object_unref (G_OBJECT (configWidget));
-
- [super dealloc];
-}
-
-- (NodeStyle*) activeStyle {
- return [stylePicker selectedStyle];
-}
-
-- (void) setActiveStyle:(NodeStyle*)style {
- return [stylePicker setSelectedStyle:style];
-}
-
-// FIXME: create node on press, and drag it around?
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {}
-
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- Transformer *transformer = [renderer transformer];
- NSPoint nodePoint = [transformer fromScreen:[[renderer grid] snapScreenPoint:pos]];
- Node *node = [Node nodeWithPoint:nodePoint];
- [node setStyle:[self activeStyle]];
- [[renderer document] addNode:node];
-}
-
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface {}
-
-- (StyleManager*) styleManager {
- return [[stylePicker model] styleManager];
-}
-
-- (void) loadConfiguration:(Configuration*)config {
- NSString *styleName = [config stringEntry:@"ActiveStyle"
- inGroup:@"CreateNodeTool"
- withDefault:nil];
- [self setActiveStyle:[[self styleManager] nodeStyleForName:styleName]];
-}
-
-- (void) saveConfiguration:(Configuration*)config {
- [config setStringEntry:@"ActiveStyle"
- inGroup:@"CreateNodeTool"
- value:[[self activeStyle] name]];
-}
-@end
-
-static void clear_style_button_cb (GtkButton *widget,
- NodeStyleSelector *selector)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [selector setSelectedStyle:nil];
- [pool drain];
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/DocumentContext.h b/tikzit-old/src/gtk/DocumentContext.h
deleted file mode 100644
index e4c1065..0000000
--- a/tikzit-old/src/gtk/DocumentContext.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-
-@class TikzDocument;
-
-@interface DocumentContext {
- TikzDocument *document;
- GraphRenderer *renderSurface;
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Edge+Render.h b/tikzit-old/src/gtk/Edge+Render.h
deleted file mode 100644
index e88b28a..0000000
--- a/tikzit-old/src/gtk/Edge+Render.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Edge.h"
-#import "RenderContext.h"
-#import "Surface.h"
-
-@interface Edge (Render)
-
-+ (float) controlPointRadius;
-- (void) renderControlsInContext:(id<RenderContext>)context withTransformer:(Transformer*)transformer;
-- (void) renderBasicEdgeInContext:(id<RenderContext>)context withTransformer:(Transformer*)t selected:(BOOL)selected;
-- (void) renderToSurface:(id<Surface>)surface withContext:(id<RenderContext>)context selected:(BOOL)selected;
-- (NSRect) renderedBoundsWithTransformer:(Transformer*)t whenSelected:(BOOL)selected;
-- (BOOL) hitByPoint:(NSPoint)p onSurface:(id<Surface>)surface withFuzz:(float)fuzz;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Edge+Render.m b/tikzit-old/src/gtk/Edge+Render.m
deleted file mode 100644
index 3cc2a14..0000000
--- a/tikzit-old/src/gtk/Edge+Render.m
+++ /dev/null
@@ -1,267 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Edge+Render.h"
-#import "Node+Render.h"
-#import "../common/util.h"
-
-static const float edgeWidth = 2.0;
-static const float cpRadius = 3.0;
-static const float cpLineWidth = 1.0;
-
-@implementation Edge (Render)
-
-+ (float) controlPointRadius {
- return cpRadius;
-}
-
-- (float) controlDistance {
- const float dx = (targ.x - src.x);
- const float dy = (targ.y - src.y);
- if (dx == 0 && dy == 0) {
- return weight;
- } else {
- return NSDistanceBetweenPoints(src, targ) * weight;
- }
-}
-
-- (void) renderControlsInContext:(id<RenderContext>)context withTransformer:(Transformer*)transformer {
- [context saveState];
-
- [self updateControls];
-
- NSPoint c_source = [transformer toScreen:src];
- NSPoint c_target = [transformer toScreen:targ];
- NSPoint c_mid = [transformer toScreen:mid];
-
- const float dx = (c_target.x - c_source.x);
- const float dy = (c_target.y - c_source.y);
-
- [context setLineWidth:cpLineWidth];
- RColor fillColor = MakeRColor (1.0, 1.0, 1.0, 0.5);
-
- // draw a circle at the mid point
- [context startPath];
- [context circleAt:c_mid withRadius:cpRadius];
- [context strokePathWithColor:MakeSolidRColor(0, 0, 1) andFillWithColor:fillColor];
-
- //[context setAntialiasMode:AntialiasDisabled];
-
- // size of control circles
- float c_dist = 0.0f;
- if (dx == 0 && dy == 0) {
- c_dist = [transformer scaleToScreen:weight];
- } else {
- c_dist = NSDistanceBetweenPoints(c_source, c_target) * weight;
- }
-
- // basic bend is blue, in-out is green
- RColor controlTrackColor;
- if ([self bendMode] == EdgeBendModeBasic) {
- controlTrackColor = MakeRColor (0.0, 0.0, 1.0, 0.4);
- } else {
- controlTrackColor = MakeRColor (0.0, 0.7, 0.0, 0.4);
- }
-
- [context startPath];
- [context circleAt:c_source withRadius:c_dist];
- if (dx != 0 || dy != 0) {
- [context circleAt:c_target withRadius:c_dist];
- }
- [context strokePathWithColor:controlTrackColor];
-
- RColor handleColor = MakeRColor (1.0, 0.0, 1.0, 0.6);
- if ([self bendMode] == EdgeBendModeBasic) {
- if (bend % 45 != 0) {
- handleColor = MakeRColor (0.0, 0.0, 0.1, 0.4);
- }
- } else if ([self bendMode] == EdgeBendModeInOut) {
- if (outAngle % 45 != 0) {
- handleColor = MakeRColor (0.0, 0.7, 0.0, 0.4);
- }
- }
-
- NSPoint c_cp1 = [transformer toScreen:cp1];
- [context moveTo:c_source];
- [context lineTo:c_cp1];
- [context circleAt:c_cp1 withRadius:cpRadius];
- [context strokePathWithColor:handleColor];
-
- if ([self bendMode] == EdgeBendModeInOut) {
- // recalculate color based on inAngle
- if (inAngle % 45 == 0) {
- handleColor = MakeRColor (1.0, 0.0, 1.0, 0.6);
- } else {
- handleColor = MakeRColor (0.0, 0.7, 0.0, 0.4);
- }
- }
-
- NSPoint c_cp2 = [transformer toScreen:cp2];
- [context moveTo:c_target];
- [context lineTo:c_cp2];
- [context circleAt:c_cp2 withRadius:cpRadius];
- [context strokePathWithColor:handleColor];
-
- [context restoreState];
-}
-
-- (void) renderArrowStrokePathInContext:(id<RenderContext>)context withTransformer:(Transformer*)transformer color:(RColor)color {
-
- if ([self style] != nil) {
- switch ([[self style] headStyle]) {
- case AH_None:
- break;
- case AH_Plain:
- [context startPath];
- [context moveTo:[transformer toScreen:[self leftHeadNormal]]];
- [context lineTo:[transformer toScreen:head]];
- [context lineTo:[transformer toScreen:[self rightHeadNormal]]];
- [context strokePathWithColor:color];
- break;
- case AH_Latex:
- [context startPath];
- [context moveTo:[transformer toScreen:[self leftHeadNormal]]];
- [context lineTo:[transformer toScreen:head]];
- [context lineTo:[transformer toScreen:[self rightHeadNormal]]];
- [context closeSubPath];
- [context strokePathWithColor:color andFillWithColor:color];
- break;
- }
- switch ([[self style] tailStyle]) {
- case AH_None:
- break;
- case AH_Plain:
- [context startPath];
- [context moveTo:[transformer toScreen:[self leftTailNormal]]];
- [context lineTo:[transformer toScreen:tail]];
- [context lineTo:[transformer toScreen:[self rightTailNormal]]];
- [context strokePathWithColor:color];
- break;
- case AH_Latex:
- [context startPath];
- [context moveTo:[transformer toScreen:[self leftTailNormal]]];
- [context lineTo:[transformer toScreen:tail]];
- [context lineTo:[transformer toScreen:[self rightTailNormal]]];
- [context closeSubPath];
- [context strokePathWithColor:color andFillWithColor:color];
- break;
- }
- }
-}
-
-- (void) createStrokePathInContext:(id<RenderContext>)context withTransformer:(Transformer*)transformer {
- NSPoint c_tail = [transformer toScreen:tail];
- NSPoint c_cp1 = [transformer toScreen:cp1];
- NSPoint c_cp2 = [transformer toScreen:cp2];
- NSPoint c_head = [transformer toScreen:head];
-
- [context startPath];
- [context moveTo:c_tail];
- [context curveTo:c_head withCp1:c_cp1 andCp2:c_cp2];
-
- if ([self style] != nil) {
- // draw edge decoration
- switch ([[self style] decorationStyle]) {
- case ED_None:
- break;
- case ED_Tick:
- [context moveTo:[transformer toScreen:[self leftNormal]]];
- [context lineTo:[transformer toScreen:[self rightNormal]]];
- break;
- case ED_Arrow:
- [context moveTo:[transformer toScreen:[self leftNormal]]];
- [context lineTo:[transformer toScreen:[self midTan]]];
- [context lineTo:[transformer toScreen:[self rightNormal]]];
- break;
- }
-
- }
-}
-
-- (RColor) color {
- if (style) {
- return [[style colorRGB] rColor];
- } else {
- return BlackRColor;
- }
-}
-
-- (void) renderBasicEdgeInContext:(id<RenderContext>)context withTransformer:(Transformer*)t selected:(BOOL)selected {
- [self updateControls];
- [context saveState];
-
- const CGFloat lineWidth = style ? [style thickness] : edgeWidth;
- [context setLineWidth:lineWidth];
- RColor color = [self color];
- if (selected) {
- color.alpha = 0.5;
- }
-
- [self createStrokePathInContext:context withTransformer:t];
- [context strokePathWithColor:color];
-
- [self renderArrowStrokePathInContext:context withTransformer:t color:color];
-
- [context restoreState];
-}
-
-- (void) renderToSurface:(id <Surface>)surface withContext:(id<RenderContext>)context selected:(BOOL)selected {
- [self renderBasicEdgeInContext:context withTransformer:[surface transformer] selected:selected];
-
- if (selected) {
- [self renderControlsInContext:context withTransformer:[surface transformer]];
- }
-
- if ([self hasEdgeNode]) {
- NSPoint labelPt = [[surface transformer] toScreen:[self mid]];
- [[self edgeNode] renderLabelAt:labelPt
- withContext:context];
- }
-}
-
-- (NSRect) renderedBoundsWithTransformer:(Transformer*)t whenSelected:(BOOL)selected {
- if (selected) {
- float c_dist = [self controlDistance] + cpRadius; // include handle
- NSRect cp1circ = NSMakeRect (head.x - c_dist, head.y - c_dist, 2*c_dist, 2*c_dist);
- NSRect cp2circ = NSMakeRect (tail.x - c_dist, tail.y - c_dist, 2*c_dist, 2*c_dist);
- NSRect rect = NSUnionRect ([self boundingRect], NSUnionRect (cp1circ, cp2circ));
- return [t rectToScreen:rect];
- } else {
- return [t rectToScreen:[self boundingRect]];
- }
-}
-
-- (BOOL) hitByPoint:(NSPoint)p onSurface:(id<Surface>)surface withFuzz:(float)fuzz {
- [self updateControls];
-
- NSRect boundingRect = [[surface transformer] rectToScreen:[self boundingRect]];
- if (!NSPointInRect(p, NSInsetRect(boundingRect, -fuzz, -fuzz))) {
- return NO;
- }
-
- id<RenderContext> cr = [surface createRenderContext];
-
- [cr setLineWidth:edgeWidth + 2 * fuzz];
- [self createStrokePathInContext:cr withTransformer:[surface transformer]];
-
- return [cr strokeIncludesPoint:p];
-}
-
-@end
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/EdgeStyle+Gtk.h b/tikzit-old/src/gtk/EdgeStyle+Gtk.h
deleted file mode 100644
index 4323593..0000000
--- a/tikzit-old/src/gtk/EdgeStyle+Gtk.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "EdgeStyle.h"
-#import <gtk/gtk.h>
-
-@interface EdgeStyle (Gtk)
-
-- (GdkColor) color;
-- (void) setColor:(GdkColor)color;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/EdgeStyle+Gtk.m b/tikzit-old/src/gtk/EdgeStyle+Gtk.m
deleted file mode 100644
index 886329e..0000000
--- a/tikzit-old/src/gtk/EdgeStyle+Gtk.m
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "EdgeStyle+Gtk.h"
-#import "ColorRGB+Gtk.h"
-
-@implementation EdgeStyle (Gtk)
-
-- (GdkColor) color {
- return [[self colorRGB] gdkColor];
-}
-
-- (void) setColor:(GdkColor)color {
- [self setColorRGB:[ColorRGB colorWithGdkColor:color]];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/EdgeStyle+Storage.h b/tikzit-old/src/gtk/EdgeStyle+Storage.h
deleted file mode 100644
index 74881f3..0000000
--- a/tikzit-old/src/gtk/EdgeStyle+Storage.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "EdgeStyle.h"
-#import "Configuration.h"
-
-@interface EdgeStyle (Storage)
-
-- (id) initFromConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile;
-- (void) storeToConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/EdgeStyle+Storage.m b/tikzit-old/src/gtk/EdgeStyle+Storage.m
deleted file mode 100644
index 45e2a20..0000000
--- a/tikzit-old/src/gtk/EdgeStyle+Storage.m
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "EdgeStyle+Storage.h"
-#import "ColorRGB+IntegerListStorage.h"
-
-@implementation EdgeStyle (Storage)
-
-- (id) initFromConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile {
- self = [self init];
-
- if (self) {
- [self setName:[configFile stringEntry:@"Name" inGroup:groupName withDefault:name]];
- [self setCategory:[configFile stringEntry:@"Category" inGroup:groupName withDefault:category]];
- headStyle = [configFile integerEntry:@"HeadStyle" inGroup:groupName withDefault:headStyle];
- tailStyle = [configFile integerEntry:@"TailStyle" inGroup:groupName withDefault:tailStyle];
- decorationStyle = [configFile integerEntry:@"DecorationStyle" inGroup:groupName withDefault:decorationStyle];
- thickness = [configFile doubleEntry:@"Thickness" inGroup:groupName withDefault:thickness];
- [self setColorRGB:
- [ColorRGB colorFromValueList:
- [configFile integerListEntry:@"Color"
- inGroup:groupName
- withDefault:[colorRGB valueList]]]];
- }
-
- return self;
-}
-
-- (void) storeToConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile {
- [configFile setStringEntry:@"Name" inGroup:groupName value:name];
- [configFile setStringEntry:@"Category" inGroup:groupName value:category];
- [configFile setIntegerEntry:@"HeadStyle" inGroup:groupName value:headStyle];
- [configFile setIntegerEntry:@"TailStyle" inGroup:groupName value:tailStyle];
- [configFile setIntegerEntry:@"DecorationStyle" inGroup:groupName value:decorationStyle];
- [configFile setDoubleEntry:@"Thickness" inGroup:groupName value:thickness];
- [configFile setIntegerListEntry:@"Color" inGroup:groupName value:[[self colorRGB] valueList]];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/EdgeStyleEditor.h b/tikzit-old/src/gtk/EdgeStyleEditor.h
deleted file mode 100644
index 2224bbb..0000000
--- a/tikzit-old/src/gtk/EdgeStyleEditor.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class EdgeStyle;
-
-@interface EdgeStyleEditor: NSObject {
- EdgeStyle *style;
- GtkTable *table;
- GtkEntry *nameEdit;
- GtkComboBox *decorationCombo;
- GtkComboBox *headArrowCombo;
- GtkComboBox *tailArrowCombo;
- GtkColorButton *colorButton;
- GtkWidget *makeColorTexSafeButton;
- GtkAdjustment *thicknessAdj;
- BOOL blockSignals;
-}
-
-@property (retain) EdgeStyle *style;
-@property (readonly) GtkWidget *widget;
-
-- (id) init;
-
-- (void) selectNameField;
-
-@end
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/EdgeStyleEditor.m b/tikzit-old/src/gtk/EdgeStyleEditor.m
deleted file mode 100644
index c7ca8bd..0000000
--- a/tikzit-old/src/gtk/EdgeStyleEditor.m
+++ /dev/null
@@ -1,499 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "EdgeStyleEditor.h"
-
-#import "EdgeStyle.h"
-#import "EdgeStyle+Gtk.h"
-#import "Shape.h"
-
-#include <gdk-pixbuf/gdk-pixdata.h>
-
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpointer-sign"
-#import "edgedecdata.m"
-#pragma GCC diagnostic pop
-
-// {{{ Data Types
-enum {
- DEC_NAME_COL = 0,
- DEC_PREVIEW_COL,
- DEC_VALUE_COL,
- DEC_N_COLS
-};
-
-struct dec_info {
- const gchar *name;
- const GdkPixdata *pixdata;
- int value;
-};
-static struct dec_info ed_entries[] = {
- { "None", &ED_none_pixdata, ED_None },
- { "Arrow", &ED_arrow_pixdata, ED_Arrow },
- { "Tick", &ED_tick_pixdata, ED_Tick }
-};
-static guint n_ed_entries = G_N_ELEMENTS (ed_entries);
-static struct dec_info ah_head_entries[] = {
- { "None", &AH_none_pixdata, AH_None },
- { "Plain", &AH_plain_head_pixdata, AH_Plain },
- { "Latex", &AH_latex_head_pixdata, AH_Latex }
-};
-static guint n_ah_head_entries = G_N_ELEMENTS (ah_head_entries);
-static struct dec_info ah_tail_entries[] = {
- { "None", &AH_none_pixdata, AH_None },
- { "Plain", &AH_plain_tail_pixdata, AH_Plain },
- { "Latex", &AH_latex_tail_pixdata, AH_Latex }
-};
-static guint n_ah_tail_entries = G_N_ELEMENTS (ah_tail_entries);
-
-static const guint row_count = 6;
-
-// }}}
-// {{{ Internal interfaces
-// {{{ GTK+ Callbacks
-static void style_name_edit_changed_cb (GtkEditable *widget, EdgeStyleEditor *editor);
-static void decoration_combo_changed_cb (GtkComboBox *widget, EdgeStyleEditor *editor);
-static void head_arrow_combo_changed_cb (GtkComboBox *widget, EdgeStyleEditor *editor);
-static void tail_arrow_combo_changed_cb (GtkComboBox *widget, EdgeStyleEditor *editor);
-static void thickness_adjustment_changed_cb (GtkAdjustment *widget, EdgeStyleEditor *editor);
-static void color_changed_cb (GtkColorButton *widget, EdgeStyleEditor *editor);
-static void make_color_safe_button_clicked_cb (GtkButton *widget, EdgeStyleEditor *editor);
-// }}}
-// {{{ Notifications
-
-@interface EdgeStyleEditor (Notifications)
-- (void) nameChangedTo:(NSString*)value;
-- (void) edgeDecorationChangedTo:(EdgeDectorationStyle)value;
-- (void) headArrowChangedTo:(ArrowHeadStyle)value;
-- (void) tailArrowChangedTo:(ArrowHeadStyle)value;
-- (void) thicknessChangedTo:(double)value;
-- (void) makeColorTexSafe;
-- (void) colorChangedTo:(GdkColor)value;
-@end
-
-// }}}
-// {{{ Private
-
-@interface EdgeStyleEditor (Private)
-- (void) load:(guint)count decorationStylesFrom:(struct dec_info*)info into:(GtkListStore*)list;
-- (void) clearDecCombo:(GtkComboBox*)combo;
-- (void) setDecCombo:(GtkComboBox*)combo toValue:(int)value;
-@end
-
-// }}}
-// }}}
-// {{{ API
-
-@implementation EdgeStyleEditor
-
-- (void) _addWidget:(GtkWidget*)w withLabel:(gchar *)label atRow:(guint)row {
- NSAssert(row < row_count, @"row_count is wrong!");
-
- GtkWidget *l = gtk_label_new (label);
- gtk_misc_set_alignment (GTK_MISC (l), 0, 0.5);
- gtk_widget_show (l);
- gtk_widget_show (w);
-
- gtk_table_attach (table, l,
- 0, 1, row, row+1, // l, r, t, b
- GTK_FILL, // x opts
- GTK_FILL | GTK_EXPAND, // y opts
- 5, // x padding
- 0); // y padding
-
- gtk_table_attach (table, w,
- 1, 2, row, row+1, // l, r, t, b
- GTK_FILL | GTK_EXPAND, // x opts
- GTK_FILL | GTK_EXPAND, // y opts
- 0, // x padding
- 0); // y padding
-}
-
-- (GtkComboBox*) _createDecComboWithEntries:(struct dec_info*)entries count:(guint)n {
- GtkListStore *store = gtk_list_store_new (DEC_N_COLS, G_TYPE_STRING, GDK_TYPE_PIXBUF, G_TYPE_INT);
- [self load:n decorationStylesFrom:entries into:store];
-
- GtkComboBox *combo = GTK_COMBO_BOX (gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)));
- g_object_unref (store);
- GtkCellRenderer *cellRend = gtk_cell_renderer_pixbuf_new ();
- gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo),
- cellRend,
- TRUE);
- gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (combo), cellRend, "pixbuf", DEC_PREVIEW_COL);
- g_object_ref_sink (combo);
-
- return combo;
-}
-
-- (GtkWidget*) _createMakeColorTexSafeButton {
- GtkWidget *b = gtk_button_new ();
- GtkWidget *icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_BUTTON);
- gtk_widget_show (icon);
- gtk_container_add (GTK_CONTAINER (b), icon);
- NSString *ttip = @"The colour is not a predefined TeX colour.\nClick here to choose the nearest TeX-safe colour.";
- gtk_widget_set_tooltip_text (b, [ttip UTF8String]);
- return b;
-}
-
-- (id) init {
- self = [super init];
-
- if (self != nil) {
- style = nil;
- table = GTK_TABLE (gtk_table_new (row_count, 2, FALSE));
- gtk_table_set_col_spacings (table, 6);
- gtk_table_set_row_spacings (table, 6);
- gtk_widget_set_sensitive (GTK_WIDGET (table), FALSE);
- blockSignals = NO;
-
- /**
- * Name
- */
- nameEdit = GTK_ENTRY (gtk_entry_new ());
- g_object_ref_sink (nameEdit);
- [self _addWidget:GTK_WIDGET (nameEdit)
- withLabel:"Name"
- atRow:0];
- g_signal_connect (G_OBJECT (nameEdit),
- "changed",
- G_CALLBACK (style_name_edit_changed_cb),
- self);
-
-
- /**
- * Edge decoration style
- */
- decorationCombo = [self _createDecComboWithEntries:ed_entries count:n_ed_entries];
- [self _addWidget:GTK_WIDGET (decorationCombo)
- withLabel:"Decoration"
- atRow:1];
- g_signal_connect (G_OBJECT (decorationCombo),
- "changed",
- G_CALLBACK (decoration_combo_changed_cb),
- self);
-
-
- /**
- * Head arrow style
- */
- headArrowCombo = [self _createDecComboWithEntries:ah_head_entries count:n_ah_head_entries];
- [self _addWidget:GTK_WIDGET (headArrowCombo)
- withLabel:"Arrow head"
- atRow:2];
- g_signal_connect (G_OBJECT (headArrowCombo),
- "changed",
- G_CALLBACK (head_arrow_combo_changed_cb),
- self);
-
-
- /**
- * Tail arrow style
- */
- tailArrowCombo = [self _createDecComboWithEntries:ah_tail_entries count:n_ah_tail_entries];
- [self _addWidget:GTK_WIDGET (tailArrowCombo)
- withLabel:"Arrow tail"
- atRow:3];
- g_signal_connect (G_OBJECT (tailArrowCombo),
- "changed",
- G_CALLBACK (tail_arrow_combo_changed_cb),
- self);
-
-
- /**
- * Colour
- */
- GtkWidget *colorBox = gtk_hbox_new (FALSE, 0);
- [self _addWidget:colorBox
- withLabel:"Colour"
- atRow:4];
- colorButton = GTK_COLOR_BUTTON (gtk_color_button_new ());
- g_object_ref_sink (colorButton);
- gtk_widget_show (GTK_WIDGET (colorButton));
- gtk_box_pack_start (GTK_BOX (colorBox), GTK_WIDGET (colorButton),
- FALSE, FALSE, 0);
- makeColorTexSafeButton = [self _createMakeColorTexSafeButton];
- g_object_ref_sink (makeColorTexSafeButton);
- gtk_box_pack_start (GTK_BOX (colorBox), makeColorTexSafeButton,
- FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (colorButton),
- "color-set",
- G_CALLBACK (color_changed_cb),
- self);
- g_signal_connect (G_OBJECT (makeColorTexSafeButton),
- "clicked",
- G_CALLBACK (make_color_safe_button_clicked_cb),
- self);
-
-
- /**
- * Thickness
- */
- thicknessAdj = GTK_ADJUSTMENT (gtk_adjustment_new (
- 1.0, // value
- 0.0, // lower
- 50.0, // upper
- 0.20, // step
- 1.0, // page
- 0.0)); // (irrelevant)
- g_object_ref_sink (thicknessAdj);
- GtkWidget *scaleSpin = gtk_spin_button_new (thicknessAdj, 0.0, 2);
- [self _addWidget:scaleSpin
- withLabel:"Thickness"
- atRow:5];
- g_signal_connect (G_OBJECT (thicknessAdj),
- "value-changed",
- G_CALLBACK (thickness_adjustment_changed_cb),
- self);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (nameEdit);
- g_object_unref (decorationCombo);
- g_object_unref (colorButton);
- g_object_unref (makeColorTexSafeButton);
- g_object_unref (thicknessAdj);
- g_object_unref (table);
- [style release];
-
- [super dealloc];
-}
-
-- (EdgeStyle*) style {
- return style;
-}
-
-- (void) setStyle:(EdgeStyle*)s {
- blockSignals = YES;
- EdgeStyle *oldStyle = style;
- style = [s retain];
-
- if (style != nil) {
- gtk_widget_set_sensitive (GTK_WIDGET (table), TRUE);
-
- gtk_entry_set_text(nameEdit, [[style name] UTF8String]);
-
- [self setDecCombo:decorationCombo toValue:[style decorationStyle]];
- [self setDecCombo:headArrowCombo toValue:[style headStyle]];
- [self setDecCombo:tailArrowCombo toValue:[style tailStyle]];
-
- GdkColor c = [style color];
- gtk_color_button_set_color(colorButton, &c);
- gtk_widget_set_visible (makeColorTexSafeButton, ([[style colorRGB] name] == nil));
-
- gtk_adjustment_set_value(thicknessAdj, [style thickness]);
- } else {
- gtk_entry_set_text(nameEdit, "");
- [self clearDecCombo:decorationCombo];
- [self clearDecCombo:headArrowCombo];
- [self clearDecCombo:tailArrowCombo];
- gtk_widget_set_visible (makeColorTexSafeButton, FALSE);
- gtk_adjustment_set_value(thicknessAdj, 1.0);
- gtk_widget_set_sensitive (GTK_WIDGET (table), FALSE);
- }
-
- [oldStyle release];
- blockSignals = NO;
-}
-
-- (GtkWidget*) widget {
- return GTK_WIDGET (table);
-}
-
-- (void) selectNameField {
- gtk_widget_grab_focus (GTK_WIDGET (nameEdit));
- gtk_editable_select_region (GTK_EDITABLE (nameEdit), 0, -1);
-}
-
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation EdgeStyleEditor (Notifications)
-- (void) nameChangedTo:(NSString*)value {
- [style setName:value];
-}
-
-- (void) edgeDecorationChangedTo:(EdgeDectorationStyle)value {
- [style setDecorationStyle:value];
-}
-
-- (void) headArrowChangedTo:(ArrowHeadStyle)value {
- [style setHeadStyle:value];
-}
-
-- (void) tailArrowChangedTo:(ArrowHeadStyle)value {
- [style setTailStyle:value];
-}
-
-- (void) thicknessChangedTo:(double)value {
- [style setThickness:(float)value];
-}
-
-- (void) colorChangedTo:(GdkColor)value {
- [style setColor:value];
- gtk_widget_set_visible (makeColorTexSafeButton,
- [[style colorRGB] name] == nil);
-}
-
-- (void) makeColorTexSafe {
- if (style != nil) {
- [[style colorRGB] setToClosestHashed];
- GdkColor color = [style color];
- gtk_color_button_set_color(colorButton, &color);
- gtk_widget_set_visible (makeColorTexSafeButton, FALSE);
- }
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation EdgeStyleEditor (Private)
-- (BOOL) signalsBlocked { return blockSignals; }
-
-- (void) load:(guint)count decorationStylesFrom:(struct dec_info*)info into:(GtkListStore*)list {
- GtkTreeIter iter;
-
- for (guint i = 0; i < count; ++i) {
- GdkPixbuf *buf = gdk_pixbuf_from_pixdata (info[i].pixdata, FALSE, NULL);
- gtk_list_store_append (list, &iter);
- gtk_list_store_set (list, &iter,
- DEC_NAME_COL, info[i].name,
- DEC_PREVIEW_COL, buf,
- DEC_VALUE_COL, info[i].value,
- -1);
- g_object_unref (buf);
- }
-}
-
-- (void) clearDecCombo:(GtkComboBox*)combo {
- gtk_combo_box_set_active (combo, -1);
-}
-
-- (void) setDecCombo:(GtkComboBox*)combo toValue:(int)value {
- GtkTreeModel *model = gtk_combo_box_get_model (combo);
- GtkTreeIter iter;
- if (gtk_tree_model_get_iter_first (model, &iter)) {
- do {
- int rowValue;
- gtk_tree_model_get (model, &iter, DEC_VALUE_COL, &rowValue, -1);
- if (rowValue == value) {
- gtk_combo_box_set_active_iter (combo, &iter);
- return;
- }
- } while (gtk_tree_model_iter_next (model, &iter));
- }
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void style_name_edit_changed_cb (GtkEditable *widget, EdgeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- const gchar *contents = gtk_entry_get_text (GTK_ENTRY (widget));
- [editor nameChangedTo:[NSString stringWithUTF8String:contents]];
-
- [pool drain];
-}
-
-static void decoration_combo_changed_cb (GtkComboBox *widget, EdgeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GtkTreeIter iter;
- gtk_combo_box_get_active_iter (widget, &iter);
- EdgeDectorationStyle dec = ED_None;
- gtk_tree_model_get (gtk_combo_box_get_model (widget), &iter, DEC_VALUE_COL, &dec, -1);
- [editor edgeDecorationChangedTo:dec];
-
- [pool drain];
-}
-
-static void head_arrow_combo_changed_cb (GtkComboBox *widget, EdgeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GtkTreeIter iter;
- gtk_combo_box_get_active_iter (widget, &iter);
- ArrowHeadStyle dec = AH_None;
- gtk_tree_model_get (gtk_combo_box_get_model (widget), &iter, DEC_VALUE_COL, &dec, -1);
- [editor headArrowChangedTo:dec];
-
- [pool drain];
-}
-
-static void tail_arrow_combo_changed_cb (GtkComboBox *widget, EdgeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GtkTreeIter iter;
- gtk_combo_box_get_active_iter (widget, &iter);
- ArrowHeadStyle dec = AH_None;
- gtk_tree_model_get (gtk_combo_box_get_model (widget), &iter, DEC_VALUE_COL, &dec, -1);
- [editor tailArrowChangedTo:dec];
-
- [pool drain];
-}
-
-static void thickness_adjustment_changed_cb (GtkAdjustment *adj, EdgeStyleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor thicknessChangedTo:gtk_adjustment_get_value (adj)];
- [pool drain];
-}
-
-static void color_changed_cb (GtkColorButton *widget, EdgeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GdkColor color;
- gtk_color_button_get_color (widget, &color);
- [editor colorChangedTo:color];
-
- [pool drain];
-}
-
-static void make_color_safe_button_clicked_cb (GtkButton *widget, EdgeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor makeColorTexSafe];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/EdgeStyleSelector.h b/tikzit-old/src/gtk/EdgeStyleSelector.h
deleted file mode 100644
index 904bd93..0000000
--- a/tikzit-old/src/gtk/EdgeStyleSelector.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class EdgeStyle;
-@class EdgeStylesModel;
-@class StyleManager;
-
-@interface EdgeStyleSelector: NSObject {
- EdgeStylesModel *model;
- GtkTreeView *view;
-}
-
-/*!
- @property widget
- @brief The GTK widget
- */
-@property (readonly) GtkWidget *widget;
-
-/*!
- @property model
- @brief The model to use.
- */
-@property (retain) EdgeStylesModel *model;
-
-/*!
- @property selectedStyle
- @brief The selected style.
-
- When this changes, a SelectedStyleChanged notification will be posted
- */
-@property (assign) EdgeStyle *selectedStyle;
-
-/*!
- * Initialise with a new model for the given style manager
- */
-- (id) initWithStyleManager:(StyleManager*)m;
-/*!
- * Initialise with the given model
- */
-- (id) initWithModel:(EdgeStylesModel*)model;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/EdgeStyleSelector.m b/tikzit-old/src/gtk/EdgeStyleSelector.m
deleted file mode 100644
index 6a9db33..0000000
--- a/tikzit-old/src/gtk/EdgeStyleSelector.m
+++ /dev/null
@@ -1,143 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "EdgeStyleSelector.h"
-
-#import "EdgeStylesModel.h"
-
-// {{{ Internal interfaces
-static void selection_changed_cb (GtkTreeSelection *sel, EdgeStyleSelector *mgr);
-// }}}
-// {{{ API
-
-@implementation EdgeStyleSelector
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)m {
- return [self initWithModel:[EdgeStylesModel modelWithStyleManager:m]];
-}
-- (id) initWithModel:(EdgeStylesModel*)m {
- self = [super init];
-
- if (self) {
- model = [m retain];
-
- view = GTK_TREE_VIEW (gtk_tree_view_new_with_model ([m model]));
- gtk_tree_view_set_headers_visible (view, FALSE);
- g_object_ref (view);
-
- GtkCellRenderer *renderer;
- GtkTreeViewColumn *column;
- renderer = gtk_cell_renderer_pixbuf_new ();
- column = gtk_tree_view_column_new_with_attributes (
- "Preview",
- renderer,
- "pixbuf", EDGE_STYLES_ICON_COL,
- NULL);
- gtk_tree_view_append_column (view, column);
- gtk_tree_view_set_tooltip_column (view, EDGE_STYLES_NAME_COL);
-
- GtkTreeSelection *sel = gtk_tree_view_get_selection (view);
- gtk_tree_selection_set_mode (sel, GTK_SELECTION_SINGLE);
-
- g_signal_connect (G_OBJECT (sel),
- "changed",
- G_CALLBACK (selection_changed_cb),
- self);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (view);
- [model release];
-
- [super dealloc];
-}
-
-- (EdgeStylesModel*) model {
- return model;
-}
-
-- (void) setModel:(EdgeStylesModel*)m {
- if (m == model)
- return;
-
- EdgeStylesModel *oldModel = model;
- model = [m retain];
- gtk_tree_view_set_model (view, [model model]);
- [oldModel release];
-}
-
-- (GtkWidget*) widget {
- return GTK_WIDGET (view);
-}
-
-- (EdgeStyle*) selectedStyle {
- GtkTreeSelection *sel = gtk_tree_view_get_selection (view);
- GtkTreeIter iter;
-
- if (!gtk_tree_selection_get_selected (sel, NULL, &iter)) {
- return nil;
- }
-
- EdgeStyle *style = nil;
- gtk_tree_model_get ([model model], &iter, EDGE_STYLES_PTR_COL, &style, -1);
-
- return style;
-}
-
-- (void) setSelectedStyle:(EdgeStyle*)style {
- GtkTreeSelection *sel = gtk_tree_view_get_selection (view);
-
- if (style == nil) {
- gtk_tree_selection_unselect_all (sel);
- return;
- }
-
- GtkTreePath *path = [model pathFromStyle:style];
- if (path) {
- gtk_tree_selection_unselect_all (sel);
- gtk_tree_selection_select_path (sel, path);
- gtk_tree_path_free (path);
- }
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void selection_changed_cb (GtkTreeSelection *sel, EdgeStyleSelector *mgr) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"SelectedStyleChanged"
- object:mgr];
-
- [pool drain];
-}
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
-
diff --git a/tikzit-old/src/gtk/EdgeStylesModel.h b/tikzit-old/src/gtk/EdgeStylesModel.h
deleted file mode 100644
index 1166f92..0000000
--- a/tikzit-old/src/gtk/EdgeStylesModel.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class EdgeStyle;
-@class StyleManager;
-
-enum {
- EDGE_STYLES_NAME_COL = 0,
- EDGE_STYLES_ICON_COL,
- EDGE_STYLES_PTR_COL,
- EDGE_STYLES_N_COLS
-};
-
-@interface EdgeStylesModel: NSObject {
- GtkListStore *store;
- StyleManager *styleManager;
-}
-
-/*!
- @property model
- @brief The GTK+ tree model
- */
-@property (readonly) GtkTreeModel *model;
-
-/*!
- @property manager
- @brief The StyleManager to use.
- */
-@property (retain) StyleManager *styleManager;
-
-/*!
- * Initialise with the given style manager
- */
-- (id) initWithStyleManager:(StyleManager*)m;
-
-+ (id) modelWithStyleManager:(StyleManager*)m;
-
-- (EdgeStyle*) styleFromPath:(GtkTreePath*)path;
-- (GtkTreePath*) pathFromStyle:(EdgeStyle*)style;
-- (EdgeStyle*) styleFromIter:(GtkTreeIter*)iter;
-- (GtkTreeIter*) iterFromStyle:(EdgeStyle*)style;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/EdgeStylesModel.m b/tikzit-old/src/gtk/EdgeStylesModel.m
deleted file mode 100644
index 2de57ed..0000000
--- a/tikzit-old/src/gtk/EdgeStylesModel.m
+++ /dev/null
@@ -1,367 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "EdgeStylesModel.h"
-
-#import "CairoRenderContext.h"
-#import "Edge.h"
-#import "Edge+Render.h"
-#import "EdgeStyle.h"
-#import "Node.h"
-#import "StyleManager.h"
-
-#import "gtkhelpers.h"
-
-#import <gdk-pixbuf/gdk-pixbuf.h>
-
-// {{{ Internal interfaces
-
-@interface EdgeStylesModel (Notifications)
-- (void) edgeStylesReplaced:(NSNotification*)notification;
-- (void) edgeStyleAdded:(NSNotification*)notification;
-- (void) edgeStyleRemoved:(NSNotification*)notification;
-- (void) observeValueForKeyPath:(NSString*)keyPath
- ofObject:(id)object
- change:(NSDictionary*)change
- context:(void*)context;
-@end
-
-@interface EdgeStylesModel (Private)
-- (cairo_surface_t*) createEdgeIconSurface;
-- (GdkPixbuf*) pixbufOfEdgeInStyle:(EdgeStyle*)style;
-- (GdkPixbuf*) pixbufOfEdgeInStyle:(EdgeStyle*)style usingSurface:(cairo_surface_t*)surface;
-- (void) addEdgeStyle:(EdgeStyle*)style;
-- (void) addEdgeStyle:(EdgeStyle*)style usingSurface:(cairo_surface_t*)surface;
-- (void) observeEdgeStyle:(EdgeStyle*)style;
-- (void) stopObservingEdgeStyle:(EdgeStyle*)style;
-- (void) clearEdgeStylesModel;
-- (void) reloadEdgeStyles;
-@end
-
-// }}}
-// {{{ API
-
-@implementation EdgeStylesModel
-
-+ (id) modelWithStyleManager:(StyleManager*)m {
- return [[[self alloc] initWithStyleManager:m] autorelease];
-}
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)m {
- self = [super init];
-
- if (self) {
- store = gtk_list_store_new (EDGE_STYLES_N_COLS,
- G_TYPE_STRING,
- GDK_TYPE_PIXBUF,
- G_TYPE_POINTER);
- g_object_ref_sink (store);
-
- [self setStyleManager:m];
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [self clearEdgeStylesModel];
- g_object_unref (store);
- [styleManager release];
-
- [super dealloc];
-}
-
-- (GtkTreeModel*) model {
- return GTK_TREE_MODEL (store);
-}
-
-- (StyleManager*) styleManager {
- return styleManager;
-}
-
-- (void) setStyleManager:(StyleManager*)m {
- if (m == nil) {
- [NSException raise:NSInvalidArgumentException format:@"Style manager cannot be nil"];
- }
- [m retain];
-
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:styleManager];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeStylesReplaced:)
- name:@"EdgeStylesReplaced"
- object:m];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeStyleAdded:)
- name:@"EdgeStyleAdded"
- object:m];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeStyleRemoved:)
- name:@"EdgeStyleRemoved"
- object:m];
-
- [styleManager release];
- styleManager = m;
-
- [self reloadEdgeStyles];
-}
-
-- (EdgeStyle*) styleFromPath:(GtkTreePath*)path {
- GtkTreeIter iter;
- gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path);
- EdgeStyle *style = nil;
- gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, EDGE_STYLES_PTR_COL, &style, -1);
- return style;
-}
-
-- (GtkTreePath*) pathFromStyle:(EdgeStyle*)style {
- GtkTreeModel *m = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (m, &row)) {
- do {
- EdgeStyle *rowStyle;
- gtk_tree_model_get (m, &row, EDGE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- return gtk_tree_model_get_path (m, &row);
- }
- } while (gtk_tree_model_iter_next (m, &row));
- }
- return NULL;
-}
-
-- (EdgeStyle*) styleFromIter:(GtkTreeIter*)iter {
- EdgeStyle *style = nil;
- gtk_tree_model_get (GTK_TREE_MODEL (store), iter, EDGE_STYLES_PTR_COL, &style, -1);
- return style;
-}
-
-- (GtkTreeIter*) iterFromStyle:(EdgeStyle*)style {
- GtkTreeModel *m = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (m, &row)) {
- do {
- EdgeStyle *rowStyle;
- gtk_tree_model_get (m, &row, EDGE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- return gtk_tree_iter_copy (&row);
- }
- } while (gtk_tree_model_iter_next (m, &row));
- }
- return NULL;
-}
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation EdgeStylesModel (Notifications)
-
-- (void) edgeStylesReplaced:(NSNotification*)notification {
- [self reloadEdgeStyles];
-}
-
-- (void) edgeStyleAdded:(NSNotification*)notification {
- [self addEdgeStyle:[[notification userInfo] objectForKey:@"style"]];
-}
-
-- (void) edgeStyleRemoved:(NSNotification*)notification {
- EdgeStyle *style = [[notification userInfo] objectForKey:@"style"];
-
- GtkTreeModel *model = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (model, &row)) {
- do {
- EdgeStyle *rowStyle;
- gtk_tree_model_get (model, &row, EDGE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- gtk_list_store_remove (store, &row);
- [self stopObservingEdgeStyle:rowStyle];
- [rowStyle release];
- return;
- }
- } while (gtk_tree_model_iter_next (model, &row));
- }
-}
-
-- (void) observeValueForKeyPath:(NSString*)keyPath
- ofObject:(id)object
- change:(NSDictionary*)change
- context:(void*)context
-{
- if ([object class] != [EdgeStyle class])
- return;
-
- EdgeStyle *style = object;
-
- GtkTreeModel *model = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (model, &row)) {
- do {
- EdgeStyle *rowStyle;
- gtk_tree_model_get (model, &row, EDGE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- if ([@"name" isEqual:keyPath]) {
- gtk_list_store_set (store, &row, EDGE_STYLES_NAME_COL, [[style name] UTF8String], -1);
- } else {
- GdkPixbuf *pixbuf = [self pixbufOfEdgeInStyle:style];
- gtk_list_store_set (store, &row, EDGE_STYLES_ICON_COL, pixbuf, -1);
- g_object_unref (pixbuf);
- }
- }
- } while (gtk_tree_model_iter_next (model, &row));
- }
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation EdgeStylesModel (Private)
-- (cairo_surface_t*) createEdgeIconSurface {
- return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 48, 18);
-}
-
-- (GdkPixbuf*) pixbufOfEdgeInStyle:(EdgeStyle*)style {
- cairo_surface_t *surface = [self createEdgeIconSurface];
- GdkPixbuf *pixbuf = [self pixbufOfEdgeInStyle:style usingSurface:surface];
- cairo_surface_destroy (surface);
- return pixbuf;
-}
-
-- (GdkPixbuf*) pixbufOfEdgeInStyle:(EdgeStyle*)style usingSurface:(cairo_surface_t*)surface {
- Transformer *transformer = [Transformer defaultTransformer];
- [transformer setFlippedAboutXAxis:YES];
-
- int width = cairo_image_surface_get_width (surface);
- int height = cairo_image_surface_get_height (surface);
- NSRect pixbufBounds = NSMakeRect(0.0, 0.0, width, height);
- NSRect graphBounds = [transformer rectFromScreen:pixbufBounds];
-
- NSPoint start = NSMakePoint (NSMinX (graphBounds) + 0.1f, NSMidY (graphBounds));
- NSPoint end = NSMakePoint (NSMaxX (graphBounds) - 0.1f, NSMidY (graphBounds));
- Node *src = [Node nodeWithPoint:start];
- Node *tgt = [Node nodeWithPoint:end];
- Edge *e = [Edge edgeWithSource:src andTarget:tgt];
- [e setStyle:style];
-
- CairoRenderContext *context = [[CairoRenderContext alloc] initForSurface:surface];
- [context clearSurface];
- [e renderBasicEdgeInContext:context withTransformer:transformer selected:NO];
- [context release];
-
- return pixbuf_get_from_surface (surface);
-}
-
-- (void) addEdgeStyle:(EdgeStyle*)style usingSurface:(cairo_surface_t*)surface {
- GtkTreeIter iter;
- gtk_list_store_append (store, &iter);
-
- GdkPixbuf *pixbuf = [self pixbufOfEdgeInStyle:style usingSurface:surface];
- gtk_list_store_set (store, &iter,
- EDGE_STYLES_NAME_COL, [[style name] UTF8String],
- EDGE_STYLES_ICON_COL, pixbuf,
- EDGE_STYLES_PTR_COL, (gpointer)[style retain],
- -1);
- g_object_unref (pixbuf);
- [self observeEdgeStyle:style];
-}
-
-- (void) addEdgeStyle:(EdgeStyle*)style {
- cairo_surface_t *surface = [self createEdgeIconSurface];
- [self addEdgeStyle:style usingSurface:surface];
- cairo_surface_destroy (surface);
-}
-
-- (void) observeEdgeStyle:(EdgeStyle*)style {
- [style addObserver:self
- forKeyPath:@"name"
- options:NSKeyValueObservingOptionNew
- context:NULL];
- [style addObserver:self
- forKeyPath:@"thickness"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"headStyle"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"tailStyle"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"decorationStyle"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"colorRGB.red"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"colorRGB.green"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"colorRGB.blue"
- options:0
- context:NULL];
-}
-
-- (void) stopObservingEdgeStyle:(EdgeStyle*)style {
- [style removeObserver:self forKeyPath:@"name"];
- [style removeObserver:self forKeyPath:@"thickness"];
- [style removeObserver:self forKeyPath:@"headStyle"];
- [style removeObserver:self forKeyPath:@"tailStyle"];
- [style removeObserver:self forKeyPath:@"decorationStyle"];
- [style removeObserver:self forKeyPath:@"colorRGB.red"];
- [style removeObserver:self forKeyPath:@"colorRGB.green"];
- [style removeObserver:self forKeyPath:@"colorRGB.blue"];
-}
-
-- (void) clearEdgeStylesModel {
- GtkTreeModel *model = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (model, &row)) {
- do {
- EdgeStyle *rowStyle;
- gtk_tree_model_get (model, &row, EDGE_STYLES_PTR_COL, &rowStyle, -1);
- [self stopObservingEdgeStyle:rowStyle];
- [rowStyle release];
- } while (gtk_tree_model_iter_next (model, &row));
- }
- gtk_list_store_clear (store);
-}
-
-- (void) reloadEdgeStyles {
- [self clearEdgeStylesModel];
- cairo_surface_t *surface = [self createEdgeIconSurface];
- for (EdgeStyle *style in [styleManager edgeStyles]) {
- [self addEdgeStyle:style usingSurface:surface];
- }
- cairo_surface_destroy (surface);
-}
-@end
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/EdgeStylesPalette.h b/tikzit-old/src/gtk/EdgeStylesPalette.h
deleted file mode 100644
index c0c6c4b..0000000
--- a/tikzit-old/src/gtk/EdgeStylesPalette.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class StyleManager;
-@class EdgeStyleSelector;
-@class EdgeStyleEditor;
-
-@interface EdgeStylesPalette: NSObject {
- EdgeStyleSelector *selector;
- EdgeStyleEditor *editor;
-
- GtkWidget *palette;
-
- GtkWidget *removeStyleButton;
- GtkWidget *applyStyleButton;
- GtkWidget *clearStyleButton;
-}
-
-@property (retain) StyleManager *styleManager;
-@property (readonly) GtkWidget *widget;
-
-- (id) initWithManager:(StyleManager*)m;
-
-@end
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/EdgeStylesPalette.m b/tikzit-old/src/gtk/EdgeStylesPalette.m
deleted file mode 100644
index 33264cf..0000000
--- a/tikzit-old/src/gtk/EdgeStylesPalette.m
+++ /dev/null
@@ -1,198 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "EdgeStylesPalette.h"
-
-#import "EdgeStylesModel.h"
-#import "EdgeStyleSelector.h"
-#import "EdgeStyleEditor.h"
-#import "StyleManager.h"
-
-// {{{ Internal interfaces
-// {{{ GTK+ Callbacks
-static void add_style_button_cb (GtkButton *widget, EdgeStylesPalette *palette);
-static void remove_style_button_cb (GtkButton *widget, EdgeStylesPalette *palette);
-// }}}
-// {{{ Notifications
-
-@interface EdgeStylesPalette (Notifications)
-- (void) selectedStyleChanged:(NSNotification*)notification;
-@end
-
-// }}}
-// {{{ Private
-
-@interface EdgeStylesPalette (Private)
-- (void) updateButtonState;
-- (void) removeSelectedStyle;
-- (void) addStyle;
-@end
-
-// }}}
-// }}}
-// {{{ API
-
-@implementation EdgeStylesPalette
-
-@synthesize widget=palette;
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithManager:(StyleManager*)m {
- self = [super init];
-
- if (self) {
- selector = [[EdgeStyleSelector alloc] initWithStyleManager:m];
- editor = [[EdgeStyleEditor alloc] init];
-
- palette = gtk_vbox_new (FALSE, 6);
- gtk_container_set_border_width (GTK_CONTAINER (palette), 6);
- g_object_ref_sink (palette);
-
- GtkWidget *mainBox = gtk_hbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (palette), mainBox, FALSE, FALSE, 0);
- gtk_widget_show (mainBox);
-
- GtkWidget *selectorScroller = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (selectorScroller),
- GTK_POLICY_NEVER,
- GTK_POLICY_AUTOMATIC);
- GtkWidget *selectorFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (selectorScroller), [selector widget]);
- gtk_container_add (GTK_CONTAINER (selectorFrame), selectorScroller);
- gtk_box_pack_start (GTK_BOX (mainBox), selectorFrame, TRUE, TRUE, 0);
- gtk_widget_show (selectorScroller);
- gtk_widget_show (selectorFrame);
- gtk_widget_show ([selector widget]);
-
- gtk_box_pack_start (GTK_BOX (mainBox), [editor widget], TRUE, TRUE, 0);
- gtk_widget_show ([editor widget]);
-
- GtkBox *buttonBox = GTK_BOX (gtk_hbox_new(FALSE, 0));
- gtk_box_pack_start (GTK_BOX (palette), GTK_WIDGET (buttonBox), FALSE, FALSE, 0);
-
- GtkWidget *addStyleButton = gtk_button_new ();
- gtk_widget_set_tooltip_text (addStyleButton, "Add a new style");
- GtkWidget *addIcon = gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (addStyleButton), addIcon);
- gtk_box_pack_start (buttonBox, addStyleButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (addStyleButton),
- "clicked",
- G_CALLBACK (add_style_button_cb),
- self);
-
- removeStyleButton = gtk_button_new ();
- g_object_ref_sink (removeStyleButton);
- gtk_widget_set_tooltip_text (removeStyleButton, "Delete selected style");
- GtkWidget *removeIcon = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (removeStyleButton), removeIcon);
- gtk_box_pack_start (buttonBox, removeStyleButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (removeStyleButton),
- "clicked",
- G_CALLBACK (remove_style_button_cb),
- self);
-
- gtk_widget_show_all (GTK_WIDGET (buttonBox));
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(selectedStyleChanged:)
- name:@"SelectedStyleChanged"
- object:selector];
-
- [self updateButtonState];
- }
-
- return self;
-}
-
-- (StyleManager*) styleManager {
- return [[selector model] styleManager];
-}
-
-- (void) setStyleManager:(StyleManager*)m {
- [[selector model] setStyleManager:m];
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [editor release];
- [selector release];
-
- g_object_unref (palette);
- g_object_unref (removeStyleButton);
-
- [super dealloc];
-}
-
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation EdgeStylesPalette (Notifications)
-- (void) selectedStyleChanged:(NSNotification*)notification {
- [editor setStyle:[selector selectedStyle]];
- [self updateButtonState];
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation EdgeStylesPalette (Private)
-- (void) updateButtonState {
- gboolean hasStyleSelection = [selector selectedStyle] != nil;
- gtk_widget_set_sensitive (removeStyleButton, hasStyleSelection);
-}
-
-- (void) removeSelectedStyle {
- EdgeStyle *style = [selector selectedStyle];
- if (style)
- [[[selector model] styleManager] removeEdgeStyle:style];
-}
-
-- (void) addStyle {
- EdgeStyle *newStyle = [EdgeStyle defaultEdgeStyleWithName:@"newstyle"];
- [[self styleManager] addEdgeStyle:newStyle];
- [selector setSelectedStyle:newStyle];
- [editor selectNameField];
-}
-
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void add_style_button_cb (GtkButton *widget, EdgeStylesPalette *palette) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [palette addStyle];
- [pool drain];
-}
-
-static void remove_style_button_cb (GtkButton *widget, EdgeStylesPalette *palette) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [palette removeSelectedStyle];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/FileChooserDialog.h b/tikzit-old/src/gtk/FileChooserDialog.h
deleted file mode 100644
index 80b03f5..0000000
--- a/tikzit-old/src/gtk/FileChooserDialog.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@interface FileChooserDialog: NSObject {
- GtkFileChooser *dialog;
-}
-
-+ (FileChooserDialog*) saveDialog;
-+ (FileChooserDialog*) saveDialogWithParent:(GtkWindow*)parent;
-+ (FileChooserDialog*) saveDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent;
-+ (FileChooserDialog*) openDialog;
-+ (FileChooserDialog*) openDialogWithParent:(GtkWindow*)parent;
-+ (FileChooserDialog*) openDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent;
-
-- (id) initSaveDialog;
-- (id) initSaveDialogWithParent:(GtkWindow*)parent;
-- (id) initSaveDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent;
-- (id) initOpenDialog;
-- (id) initOpenDialogWithParent:(GtkWindow*)parent;
-- (id) initOpenDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent;
-
-- (void) addStandardFilters;
-- (void) addFileFilter:(NSString*)filterName withPattern:(NSString*)filePattern;
-- (void) addFileFilter:(NSString*)filterName withPattern:(NSString*)filePattern setSelected:(BOOL)selected;
-
-- (void) setCurrentFolder:(NSString*)path;
-- (NSString*) currentFolder;
-
-- (void) setSuggestedName:(NSString*)fileName;
-
-- (NSString*) filePath;
-
-- (BOOL) showDialog;
-
-- (void) destroy;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/FileChooserDialog.m b/tikzit-old/src/gtk/FileChooserDialog.m
deleted file mode 100644
index 9498e4c..0000000
--- a/tikzit-old/src/gtk/FileChooserDialog.m
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "FileChooserDialog.h"
-
-@implementation FileChooserDialog: NSObject
-
-+ (FileChooserDialog*) saveDialog { return [[[self alloc] initSaveDialog] autorelease]; }
-+ (FileChooserDialog*) saveDialogWithParent:(GtkWindow*)parent
- { return [[[self alloc] initSaveDialogWithParent:parent] autorelease]; }
-+ (FileChooserDialog*) saveDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent
- { return [[[self alloc] initSaveDialogWithTitle:title parent:parent] autorelease]; }
-+ (FileChooserDialog*) openDialog { return [[[self alloc] initOpenDialog] autorelease]; }
-+ (FileChooserDialog*) openDialogWithParent:(GtkWindow*)parent
- { return [[[self alloc] initOpenDialogWithParent:parent] autorelease]; }
-+ (FileChooserDialog*) openDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent
- { return [[[self alloc] initOpenDialogWithTitle:title parent:parent] autorelease]; }
-
-- (id) initSaveDialog { return [self initSaveDialogWithParent:NULL]; }
-- (id) initSaveDialogWithParent:(GtkWindow*)parent
- { return [self initSaveDialogWithTitle:@"Save file" parent:parent]; }
-- (id) initSaveDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent {
- self = [super init];
-
- if (self) {
- dialog = GTK_FILE_CHOOSER (gtk_file_chooser_dialog_new (
- [title UTF8String],
- parent,
- GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
- NULL));
- gtk_file_chooser_set_do_overwrite_confirmation (dialog, TRUE);
- }
-
- return self;
-}
-
-- (id) initOpenDialog { return [self initOpenDialogWithParent:NULL]; }
-- (id) initOpenDialogWithParent:(GtkWindow*)parent
- { return [self initOpenDialogWithTitle:@"Open file" parent:parent]; }
-- (id) initOpenDialogWithTitle:(NSString*)title parent:(GtkWindow*)parent {
- self = [super init];
-
- if (self) {
- dialog = GTK_FILE_CHOOSER (gtk_file_chooser_dialog_new (
- [title UTF8String],
- parent,
- GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
- NULL));
- }
-
- return self;
-}
-
-- (void) addStandardFilters {
- GtkFileFilter *tikzfilter = gtk_file_filter_new();
- gtk_file_filter_set_name(tikzfilter, ".tikz files");
- gtk_file_filter_add_pattern(tikzfilter, "*.tikz");
- gtk_file_chooser_add_filter(dialog, tikzfilter);
- GtkFileFilter *allfilter = gtk_file_filter_new();
- gtk_file_filter_set_name(allfilter, "all files");
- gtk_file_filter_add_pattern(allfilter, "*");
- gtk_file_chooser_add_filter(dialog, allfilter);
- gtk_file_chooser_set_filter(dialog, tikzfilter);
-}
-
-- (void) addFileFilter:(NSString*)filterName withPattern:(NSString*)filePattern {
- [self addFileFilter:filterName withPattern:filePattern setSelected:NO];
-}
-
-- (void) addFileFilter:(NSString*)filterName withPattern:(NSString*)filePattern setSelected:(BOOL)selected {
- GtkFileFilter *oldFilter = selected ? NULL : gtk_file_chooser_get_filter (dialog);
- GtkFileFilter *filter = gtk_file_filter_new();
- gtk_file_filter_set_name(filter, [filterName UTF8String]);
- gtk_file_filter_add_pattern(filter, [filePattern UTF8String]);
- gtk_file_chooser_add_filter(dialog, filter);
- if (selected) {
- gtk_file_chooser_set_filter (dialog, filter);
- } else if (oldFilter) {
- gtk_file_chooser_set_filter (dialog, oldFilter);
- }
-}
-
-- (void) setCurrentFolder:(NSString*)path {
- gchar *folder = [path glibFilename];
- if (folder) {
- gtk_file_chooser_set_current_folder(dialog, folder);
- g_free (folder);
- }
-}
-
-- (NSString*) currentFolder {
- NSString *path = nil;
- gchar *folder = gtk_file_chooser_get_current_folder(dialog);
- if (folder) {
- path = [NSString stringWithGlibFilename:folder];
- g_free (folder);
- }
- return path;
-}
-
-- (void) setSuggestedName:(NSString*)fileName {
- gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), [fileName UTF8String]);
-}
-
-- (NSString*) filePath {
- NSString *path = nil;
- gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
- if (filename) {
- path = [NSString stringWithGlibFilename:filename];
- g_free (filename);
- }
- return path;
-}
-
-- (BOOL) showDialog {
- return (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) ? YES : NO;
-}
-
-- (void) destroy {
- gtk_widget_destroy (GTK_WIDGET (dialog));
- dialog = NULL;
-}
-
-- (void) dealloc {
- if (dialog) {
- g_warning ("Failed to destroy file chooser dialog!\n");
- gtk_widget_destroy (GTK_WIDGET (dialog));
- }
- [super dealloc];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/GraphEditorPanel.h b/tikzit-old/src/gtk/GraphEditorPanel.h
deleted file mode 100644
index 2b93259..0000000
--- a/tikzit-old/src/gtk/GraphEditorPanel.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Tool.h"
-#import <gtk/gtk.h>
-
-@class GraphInputHandler;
-@class GraphRenderer;
-@class TikzDocument;
-@class WidgetSurface;
-
-@protocol PreviewHandler <NSObject>
-- (void) showPreview;
-@end
-@interface GraphEditorPanel : NSObject {
- GraphRenderer *renderer;
- WidgetSurface *surface;
- GraphInputHandler *inputHandler;
- id<PreviewHandler> previewHandler;
- id<Tool> tool;
-}
-@property (retain) TikzDocument *document;
-@property (readonly) GtkWidget *widget;
-@property (retain) id<Tool> activeTool;
-@property (assign) id<PreviewHandler> previewHandler;
-
-- (id) init;
-- (id) initWithDocument:(TikzDocument*)document;
-- (void) grabTool;
-- (void) zoomInAboutPoint:(NSPoint)pos;
-- (void) zoomOutAboutPoint:(NSPoint)pos;
-- (void) zoomIn;
-- (void) zoomOut;
-- (void) zoomReset;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/GraphEditorPanel.m b/tikzit-old/src/gtk/GraphEditorPanel.m
deleted file mode 100644
index dac52a0..0000000
--- a/tikzit-old/src/gtk/GraphEditorPanel.m
+++ /dev/null
@@ -1,240 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "GraphEditorPanel.h"
-
-#import "Application.h"
-#import "GraphRenderer.h"
-#import "HandTool.h"
-#import "InputDelegate.h"
-#import "TikzDocument.h"
-#import "WidgetSurface.h"
-
-#import <gdk/gdkkeysyms.h>
-
-@class GraphRenderer;
-@class WidgetSurface;
-
-static const InputMask zoomPanMask = ControlMask;
-
-/**
- * Mostly just a multiplexer, but also handles zoom and pan
- * when ctrl is held
- */
-@interface GraphInputHandler : NSObject<InputDelegate> {
- GraphEditorPanel *panel;
- NSPoint dragOrigin;
- NSPoint oldGraphOrigin;
- BOOL zoomPanActive;
-}
-- (id) initForPanel:(GraphEditorPanel*)p;
-@end
-
-@implementation GraphEditorPanel
-
-@synthesize previewHandler;
-
-- (id) init {
- return [self initWithDocument:nil];
-}
-- (id) initWithDocument:(TikzDocument*)document {
- self = [super init];
- if (self) {
- surface = [[WidgetSurface alloc] init];
- [surface setDefaultScale:50.0f];
- [surface setKeepCentered:YES];
- [surface setCanFocus:YES];
- renderer = [[GraphRenderer alloc] initWithSurface:surface document:document];
-
- inputHandler = [[GraphInputHandler alloc] initForPanel:self];
- [surface setInputDelegate:inputHandler];
- }
- return self;
-}
-
-- (void) dealloc {
- [renderer release];
- [surface release];
- [inputHandler release];
-
- [super dealloc];
-}
-
-- (GraphRenderer*) renderer {
- return renderer;
-}
-- (TikzDocument*) document {
- return [renderer document];
-}
-- (void) setDocument:(TikzDocument*)doc {
- [renderer setDocument:doc];
-}
-- (GtkWidget*) widget {
- return [surface widget];
-}
-- (id<Tool>) activeTool {
- return tool;
-}
-- (void) setActiveTool:(id<Tool>)t {
- if (t == tool)
- return;
-
- [[[renderer document] pickSupport] deselectAllNodes];
- [[[renderer document] pickSupport] deselectAllEdges];
-
- id oldTool = tool;
- BOOL weHadTool = ([oldTool activeRenderer] == renderer);
- if (weHadTool) {
- [oldTool setActiveRenderer:nil];
- }
-
- tool = [t retain];
- [oldTool release];
-
- if (weHadTool) {
- [self grabTool];
- }
-}
-
-- (BOOL) hasTool {
- return [tool activeRenderer] == renderer;
-}
-
-- (void) grabTool {
- if ([tool activeRenderer] != renderer) {
- [[tool activeRenderer] setPostRenderer:nil];
- [tool setActiveRenderer:renderer];
- }
- [renderer setPostRenderer:tool];
-}
-
-- (void) zoomInAboutPoint:(NSPoint)pos { [surface zoomInAboutPoint:pos]; }
-- (void) zoomOutAboutPoint:(NSPoint)pos { [surface zoomOutAboutPoint:pos]; }
-- (void) zoomIn { [surface zoomIn]; }
-- (void) zoomOut { [surface zoomOut]; }
-- (void) zoomReset { [surface zoomReset]; }
-
-@end
-
-@implementation GraphInputHandler
-- (id) initForPanel:(GraphEditorPanel*)p {
- self = [super init];
- if (self) {
- // NB: no retention!
- panel = p;
- }
- return self;
-}
-- (id) init {
- [self release];
- return nil;
-}
-- (void) dealloc {
- [super dealloc];
-}
-
-// FIXME: share code with HandTool?
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (mask == zoomPanMask && button == LeftButton) {
- dragOrigin = pos;
- oldGraphOrigin = [[[panel renderer] transformer] origin];
- zoomPanActive = YES;
- } else {
- zoomPanActive = NO;
- [panel grabTool];
- id<Tool> tool = [panel activeTool];
- if ([tool respondsToSelector:@selector(mousePressAt:withButton:andMask:)]) {
- [tool mousePressAt:pos withButton:button andMask:mask];
- }
- }
-}
-
-- (void) mouseDoubleClickAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- [panel grabTool];
- id<Tool> tool = [panel activeTool];
- if ([tool respondsToSelector:@selector(mouseDoubleClickAt:withButton:andMask:)]) {
- [tool mouseDoubleClickAt:pos withButton:button andMask:mask];
- }
-}
-
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (zoomPanActive && button == LeftButton) {
- zoomPanActive = NO;
- } else if ([panel hasTool]) {
- id<Tool> tool = [panel activeTool];
- if ([tool respondsToSelector:@selector(mouseReleaseAt:withButton:andMask:)]) {
- [tool mouseReleaseAt:pos withButton:button andMask:mask];
- }
- }
-}
-
-- (void) mouseMoveTo:(NSPoint)pos withButtons:(MouseButton)buttons andMask:(InputMask)mask {
- if (zoomPanActive && (buttons & LeftButton)) {
- NSPoint newGraphOrigin = oldGraphOrigin;
- newGraphOrigin.x += pos.x - dragOrigin.x;
- newGraphOrigin.y += pos.y - dragOrigin.y;
- [[[panel renderer] transformer] setOrigin:newGraphOrigin];
- [[panel renderer] invalidateGraph];
- } else if ([panel hasTool]) {
- id<Tool> tool = [panel activeTool];
- if ([tool respondsToSelector:@selector(mouseMoveTo:withButtons:andMask:)]) {
- [tool mouseMoveTo:pos withButtons:buttons andMask:mask];
- }
- }
-}
-
-- (void) mouseScrolledAt:(NSPoint)pos inDirection:(ScrollDirection)dir withMask:(InputMask)mask {
- if (mask == zoomPanMask) {
- if (dir == ScrollUp) {
- [panel zoomInAboutPoint:pos];
- } else if (dir == ScrollDown) {
- [panel zoomOutAboutPoint:pos];
- }
- } else {
- id<Tool> tool = [panel activeTool];
- if ([panel hasTool] && [tool respondsToSelector:@selector(mouseScrolledAt:inDirection:withMask:)]) {
- [tool mouseScrolledAt:pos inDirection:dir withMask:mask];
- }
- }
-}
-
-- (void) keyPressed:(unsigned int)keyVal withMask:(InputMask)mask {
- if (keyVal == GDK_KEY_space && !mask) {
- return;
- }
- if (![app activateToolForKey:keyVal withMask:mask]) {
- id<Tool> tool = [panel activeTool];
- if ([panel hasTool] && [tool respondsToSelector:@selector(keyPressed:withMask:)]) {
- [tool keyPressed:keyVal withMask:mask];
- }
- }
-}
-
-- (void) keyReleased:(unsigned int)keyVal withMask:(InputMask)mask {
- if (keyVal == GDK_KEY_space && !mask) {
- [[panel previewHandler] showPreview];
- }
- if (![app activateToolForKey:keyVal withMask:mask]) {
- id<Tool> tool = [panel activeTool];
- if ([panel hasTool] && [tool respondsToSelector:@selector(keyReleased:withMask:)]) {
- [tool keyReleased:keyVal withMask:mask];
- }
- }
-}
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/GraphRenderer.h b/tikzit-old/src/gtk/GraphRenderer.h
deleted file mode 100644
index 730d606..0000000
--- a/tikzit-old/src/gtk/GraphRenderer.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-// classes
-#import "Graph.h"
-#import "Grid.h"
-#import "PickSupport.h"
-#import "TikzDocument.h"
-
-// protocols
-#import "Surface.h"
-
-@interface GraphRenderer: NSObject <RenderDelegate> {
- TikzDocument *doc;
- NSObject<Surface> *surface;
- Grid *grid;
- NSMutableSet *highlightedNodes;
- id<RenderDelegate> postRenderer;
-}
-
-@property (retain) id<RenderDelegate> postRenderer;
-
-- (id) initWithSurface:(NSObject <Surface> *)surface;
-- (id) initWithSurface:(NSObject <Surface> *)surface document:(TikzDocument*)document;
-- (void) renderWithContext:(id<RenderContext>)context;
-- (void) invalidateRect:(NSRect)rect;
-- (void) invalidateGraph;
-- (void) invalidateNode:(Node*)node;
-- (void) invalidateEdge:(Edge*)edge;
-- (void) invalidateNodesHitBy:(NSPoint)point;
-- (BOOL) point:(NSPoint)p hitsNode:(Node*)node;
-- (BOOL) point:(NSPoint)p hitsEdge:(Edge*)edge withFuzz:(float)fuzz;
-/**
- * Finds a node at the given screen location.
- *
- * If there is more than one node at this point (because they overlap),
- * an arbitrary one is returned.
- */
-- (Node*) anyNodeAt:(NSPoint)p;
-/**
- * Finds an edge at the given screen location.
- *
- * If there is more than one edge at this point (because they overlap),
- * an arbitrary one is returned.
- *
- * @param fuzz the fuzz for detecting edges: this will pick up
- * edges that are close to the point
- */
-- (Edge*) anyEdgeAt:(NSPoint)p withFuzz:(float)fuzz;
-
-- (id<Surface>) surface;
-- (Transformer*) transformer;
-- (Grid*) grid;
-- (PickSupport*) pickSupport;
-
-- (Graph*) graph;
-
-- (TikzDocument*) document;
-- (void) setDocument:(TikzDocument*)document;
-
-- (BOOL) isNodeHighlighted:(Node*)node;
-- (void) setNode:(Node*)node highlighted:(BOOL)h;
-- (void) clearHighlightedNodes;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/GraphRenderer.m b/tikzit-old/src/gtk/GraphRenderer.m
deleted file mode 100644
index b413d3e..0000000
--- a/tikzit-old/src/gtk/GraphRenderer.m
+++ /dev/null
@@ -1,476 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "GraphRenderer.h"
-#import "Edge+Render.h"
-#import "Node+Render.h"
-#import "Shape.h"
-
-void graph_renderer_expose_event(GtkWidget *widget, GdkEventExpose *event);
-
-@interface GraphRenderer (Private)
-- (enum NodeState) nodeState:(Node*)node;
-- (void) renderBoundingBoxWithContext:(id<RenderContext>)context;
-- (void) nodeNeedsRefreshing:(NSNotification*)notification;
-- (void) edgeNeedsRefreshing:(NSNotification*)notification;
-- (void) graphNeedsRefreshing:(NSNotification*)notification;
-- (void) graphChanged:(NSNotification*)notification;
-- (void) nodeStylePropertyChanged:(NSNotification*)notification;
-- (void) edgeStylePropertyChanged:(NSNotification*)notification;
-- (void) shapeDictionaryReplaced:(NSNotification*)notification;
-@end
-
-@implementation GraphRenderer
-
-- (id) initWithSurface:(NSObject <Surface> *)s {
- self = [super init];
-
- if (self) {
- surface = [s retain];
- grid = [[Grid alloc] initWithSpacing:1.0f subdivisions:4 transformer:[s transformer]];
- highlightedNodes = [[NSMutableSet alloc] initWithCapacity:10];
- [surface setRenderDelegate:self];
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeStylePropertyChanged:)
- name:@"NodeStylePropertyChanged"
- object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeStylePropertyChanged:)
- name:@"EdgeStylePropertyChanged"
- object:nil];
- }
-
- return self;
-}
-
-- (id) initWithSurface:(NSObject <Surface> *)s document:(TikzDocument*)document {
- self = [self initWithSurface:s];
-
- if (self) {
- [self setDocument:document];
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
- [doc release];
- [grid release];
- [highlightedNodes release];
- [surface release];
-
- [super dealloc];
-}
-
-- (id<RenderDelegate>) postRenderer {
- return postRenderer;
-}
-- (void) setPostRenderer:(id<RenderDelegate>)r {
- if (r == postRenderer)
- return;
-
- [r retain];
- [postRenderer release];
- postRenderer = r;
-
- [self invalidateGraph];
-}
-
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)s {
- [self renderWithContext:context];
- if ([s hasFocus]) {
- [s renderFocus];
- }
-}
-
-- (void) renderWithContext:(id<RenderContext>)context {
- // blank surface
- [context paintWithColor:WhiteRColor];
-
- // draw grid
- [grid renderGridInContext:context];
-
- // draw edges
- NSEnumerator *enumerator = [doc edgeEnumerator];
- Edge *edge;
- while ((edge = [enumerator nextObject]) != nil) {
- [edge renderToSurface:surface withContext:context selected:[doc isEdgeSelected:edge]];
- }
-
- // draw nodes
- enumerator = [doc nodeEnumerator];
- Node *node;
- while ((node = [enumerator nextObject]) != nil) {
- [node renderToSurface:surface withContext:context state:[self nodeState:node]];
- }
-
- [self renderBoundingBoxWithContext:context];
- [postRenderer renderWithContext:context onSurface:surface];
-}
-
-- (void) invalidateGraph {
- [surface invalidate];
-}
-
-- (void) invalidateRect:(NSRect)rect {
- [surface invalidateRect:rect];
-}
-
-- (void) invalidateNodes:(NSSet*)nodes {
- for (Node *node in nodes) {
- [self invalidateNode:node];
- }
-}
-
-- (void) invalidateEdges:(NSSet*)edges {
- for (Edge *edge in edges) {
- [self invalidateEdge:edge];
- }
-}
-
-- (void) invalidateNode:(Node*)node {
- if (node == nil) {
- return;
- }
- NSRect nodeRect = [node renderBoundsWithLabelForSurface:surface];
- nodeRect = NSInsetRect (nodeRect, -2.0f, -2.0f);
- [surface invalidateRect:nodeRect];
-}
-
-- (void) invalidateEdge:(Edge*)edge {
- if (edge == nil) {
- return;
- }
- BOOL selected = [doc isEdgeSelected:edge];
- NSRect edgeRect = [edge renderedBoundsWithTransformer:[surface transformer] whenSelected:selected];
- edgeRect = NSInsetRect (edgeRect, -2.0f, -2.0f);
- [surface invalidateRect:edgeRect];
-}
-
-- (void) invalidateNodesHitBy:(NSPoint)point {
- NSEnumerator *enumerator = [doc nodeEnumerator];
- Node *node = nil;
- while ((node = [enumerator nextObject]) != nil) {
- if ([self point:point hitsNode:node]) {
- [self invalidateNode:node];
- }
- }
-}
-
-- (BOOL) point:(NSPoint)p hitsNode:(Node*)node {
- return [node hitByPoint:p onSurface:surface];
-}
-
-- (BOOL) point:(NSPoint)p fuzzyHitsNode:(Node*)node {
- NSRect bounds = [node renderBoundsForSurface:surface];
- return NSPointInRect(p, bounds);
-}
-
-- (BOOL) point:(NSPoint)p hitsEdge:(Edge*)edge withFuzz:(float)fuzz {
- return [edge hitByPoint:p onSurface:surface withFuzz:fuzz];
-}
-
-- (Node*) anyNodeAt:(NSPoint)p {
- NSEnumerator *enumerator = [doc nodeEnumerator];
- Node *node;
- while ((node = [enumerator nextObject]) != nil) {
- if ([self point:p hitsNode:node]) {
- return node;
- }
- }
- return nil;
-}
-
-- (Edge*) anyEdgeAt:(NSPoint)p withFuzz:(float)fuzz {
- // FIXME: is there an efficient way to find the "nearest" edge
- // if the fuzz is the reason we hit more than one?
- NSEnumerator *enumerator = [doc edgeEnumerator];
- Edge *edge;
- while ((edge = [enumerator nextObject]) != nil) {
- if ([self point:p hitsEdge:edge withFuzz:fuzz]) {
- return edge;
- }
- }
- return nil;
-}
-
-- (id<Surface>) surface {
- return surface;
-}
-
-- (Transformer*) transformer {
- return [surface transformer];
-}
-
-- (Grid*) grid {
- return grid;
-}
-
-- (PickSupport*) pickSupport {
- return [doc pickSupport];
-}
-
-- (Graph*) graph {
- return [doc graph];
-}
-
-- (TikzDocument*) document {
- return doc;
-}
-
-- (void) setDocument:(TikzDocument*)document {
- if (doc == document) {
- return;
- }
-
- if (doc != nil) {
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:doc];
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:[doc pickSupport]];
- }
-
- [document retain];
- [doc release];
- doc = document;
-
- if (doc != nil) {
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(graphNeedsRefreshing:)
- name:@"GraphReplaced" object:doc];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(graphChanged:)
- name:@"GraphChanged" object:doc];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(graphChanged:)
- name:@"GraphBeingChanged" object:doc];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(graphChanged:)
- name:@"GraphChangeCancelled" object:doc];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(nodeNeedsRefreshing:)
- name:@"NodeSelected" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(nodeNeedsRefreshing:)
- name:@"NodeDeselected" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(graphNeedsRefreshing:)
- name:@"NodeSelectionReplaced" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(edgeNeedsRefreshing:)
- name:@"EdgeSelected" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(edgeNeedsRefreshing:)
- name:@"EdgeDeselected" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(graphNeedsRefreshing:)
- name:@"EdgeSelectionReplaced" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(shapeDictionaryReplaced:)
- name:@"ShapeDictionaryReplaced"
- object:[Shape class]];
- }
- [surface invalidate];
-}
-
-- (BOOL) isNodeHighlighted:(Node*)node {
- return [highlightedNodes containsObject:node];
-}
-- (void) setNode:(Node*)node highlighted:(BOOL)h {
- if (h) {
- if (![highlightedNodes containsObject:node]) {
- [highlightedNodes addObject:node];
- [self invalidateNode:node];
- }
- } else {
- if ([highlightedNodes containsObject:node]) {
- [highlightedNodes removeObject:node];
- [self invalidateNode:node];
- }
- }
-}
-- (void) clearHighlightedNodes {
- [self invalidateNodes:highlightedNodes];
- [highlightedNodes removeAllObjects];
-}
-
-@end
-
-@implementation GraphRenderer (Private)
-- (enum NodeState) nodeState:(Node*)node {
- if ([doc isNodeSelected:node]) {
- return NodeSelected;
- } else if ([self isNodeHighlighted:node]) {
- return NodeHighlighted;
- } else {
- return NodeNormal;
- }
-}
-
-- (void) renderBoundingBoxWithContext:(id<RenderContext>)context {
- if ([[self graph] hasBoundingBox]) {
- [context saveState];
-
- NSRect bbox = [[surface transformer] rectToScreen:[[self graph] boundingBox]];
-
- [context setAntialiasMode:AntialiasDisabled];
- [context setLineWidth:1.0];
- [context startPath];
- [context rect:bbox];
- [context strokePathWithColor:MakeSolidRColor (1.0, 0.7, 0.5)];
-
- [context restoreState];
- }
-}
-
-- (void) nodeNeedsRefreshing:(NSNotification*)notification {
- [self invalidateNode:[[notification userInfo] objectForKey:@"node"]];
-}
-
-- (void) edgeNeedsRefreshing:(NSNotification*)notification {
- Edge *edge = [[notification userInfo] objectForKey:@"edge"];
- NSRect edgeRect = [edge renderedBoundsWithTransformer:[surface transformer] whenSelected:YES];
- edgeRect = NSInsetRect (edgeRect, -2, -2);
- [surface invalidateRect:edgeRect];
-}
-
-- (void) graphNeedsRefreshing:(NSNotification*)notification {
- [self invalidateGraph];
-}
-
-- (void) invalidateBentIncidentEdgesForNode:(Node*)nd {
- for (Edge *e in [[self graph] inEdgesForNode:nd]) {
- if (![e isStraight]) {
- [self invalidateEdge:e];
- }
- }
- for (Edge *e in [[self graph] outEdgesForNode:nd]) {
- if (![e isStraight]) {
- [self invalidateEdge:e];
- }
- }
-}
-
-- (void) graphChanged:(NSNotification*)notification {
- GraphChange *change = [[notification userInfo] objectForKey:@"change"];
- switch ([change changeType]) {
- case GraphAddition:
- case GraphDeletion:
- [self invalidateNodes:[change affectedNodes]];
- [self invalidateEdges:[change affectedEdges]];
- break;
- case NodePropertyChange:
- if (!NSEqualPoints ([[change oldNode] point], [[change nwNode] point])) {
- // if the node has moved, it may be affecting edges
- [surface invalidate];
- } else if ([[change oldNode] style] != [[change nwNode] style]) {
- // change in style means that edges may touch at a different point,
- // but this only matters for bent edges
- [self invalidateBentIncidentEdgesForNode:[change nodeRef]];
- // invalide both old and new (old node may be larger)
- [self invalidateNode:[change oldNode]];
- [self invalidateNode:[change nwNode]];
- } else {
- // invalide both old and new (old node may be larger)
- [self invalidateNode:[change oldNode]];
- [self invalidateNode:[change nwNode]];
- }
- break;
- case EdgePropertyChange:
- // invalide both old and new (old bend may increase bounds)
- [self invalidateEdge:[change oldEdge]];
- [self invalidateEdge:[change nwEdge]];
- [self invalidateEdge:[change edgeRef]];
- break;
- case NodesPropertyChange:
- {
- NSEnumerator *enumerator = [[change oldNodeTable] keyEnumerator];
- Node *node = nil;
- while ((node = [enumerator nextObject]) != nil) {
- NSPoint oldPos = [[[change oldNodeTable] objectForKey:node] point];
- NSPoint newPos = [[[change nwNodeTable] objectForKey:node] point];
- NodeStyle *oldStyle = [[[change oldNodeTable] objectForKey:node] style];
- NodeStyle *newStyle = [[[change nwNodeTable] objectForKey:node] style];
- if (!NSEqualPoints (oldPos, newPos)) {
- [surface invalidate];
- break;
- } else if (oldStyle != newStyle) {
- [self invalidateBentIncidentEdgesForNode:node];
- [self invalidateNode:[[change oldNodeTable] objectForKey:node]];
- [self invalidateNode:[[change nwNodeTable] objectForKey:node]];
- } else {
- [self invalidateNode:[[change oldNodeTable] objectForKey:node]];
- [self invalidateNode:[[change nwNodeTable] objectForKey:node]];
- }
- }
- }
- break;
- case NodesShift:
- case NodesFlip:
- case BoundingBoxChange:
- [surface invalidate];
- break;
- default:
- // unknown change
- [surface invalidate];
- break;
- };
-}
-
-- (void) nodeStylePropertyChanged:(NSNotification*)notification {
- if (![@"name" isEqual:[[notification userInfo] objectForKey:@"propertyName"]]) {
- BOOL affected = NO;
- for (Node *node in [[self graph] nodes]) {
- if ([node style] == [notification object])
- affected = YES;
- }
- if (affected)
- [surface invalidate];
- }
-}
-
-- (void) edgeStylePropertyChanged:(NSNotification*)notification {
- if (![@"name" isEqual:[[notification userInfo] objectForKey:@"propertyName"]]) {
- BOOL affected = NO;
- for (Edge *edge in [[self graph] edges]) {
- if ([edge style] == [notification object])
- affected = YES;
- }
- if (affected)
- [surface invalidate];
- }
-}
-
-- (void) shapeDictionaryReplaced:(NSNotification*)notification {
- [surface invalidate];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/HandTool.h b/tikzit-old/src/gtk/HandTool.h
deleted file mode 100644
index c96de36..0000000
--- a/tikzit-old/src/gtk/HandTool.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Tool.h"
-
-@interface HandTool : NSObject <Tool> {
- GraphRenderer *renderer;
- NSPoint dragOrigin;
- NSPoint oldGraphOrigin;
-}
-
-
-+ (id) tool;
-- (id) init;
-@end
-
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/HandTool.m b/tikzit-old/src/gtk/HandTool.m
deleted file mode 100644
index c3a0fb4..0000000
--- a/tikzit-old/src/gtk/HandTool.m
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "HandTool.h"
-
-#import "GraphRenderer.h"
-#import "TikzDocument.h"
-#import "tzstockitems.h"
-
-@implementation HandTool
-- (NSString*) name { return @"Drag"; }
-- (const gchar*) stockId { return TIKZIT_STOCK_DRAG; }
-- (NSString*) helpText { return @"Move the diagram to view different parts"; }
-- (NSString*) shortcut { return @"m"; }
-@synthesize activeRenderer=renderer;
-
-+ (id) tool {
- return [[[self alloc] init] autorelease];
-}
-
-- (id) init {
- return [super init];
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [renderer release];
-
- [super dealloc];
-}
-
-- (GtkWidget*) configurationWidget { return NULL; }
-
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- dragOrigin = pos;
- oldGraphOrigin = [[renderer transformer] origin];
-}
-
-- (void) mouseMoveTo:(NSPoint)pos withButtons:(MouseButton)buttons andMask:(InputMask)mask {
- if (!(buttons & LeftButton))
- return;
-
- NSPoint newGraphOrigin = oldGraphOrigin;
- newGraphOrigin.x += pos.x - dragOrigin.x;
- newGraphOrigin.y += pos.y - dragOrigin.y;
- [[renderer transformer] setOrigin:newGraphOrigin];
- [renderer invalidateGraph];
-}
-
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {}
-
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface {}
-- (void) loadConfiguration:(Configuration*)config {}
-- (void) saveConfiguration:(Configuration*)config {}
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/InputDelegate.h b/tikzit-old/src/gtk/InputDelegate.h
deleted file mode 100644
index 9f9b426..0000000
--- a/tikzit-old/src/gtk/InputDelegate.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-
-typedef enum {
- LeftButton = 1,
- MiddleButton = 2,
- RightButton = 3,
- Button4 = 4,
- Button5 = 5
-} MouseButton;
-
-typedef enum {
- ShiftMask = 1,
- ControlMask = 2,
- MetaMask = 4
-} InputMask;
-
-typedef enum {
- ScrollUp = 1,
- ScrollDown = 2,
- ScrollLeft = 3,
- ScrollRight = 4,
-} ScrollDirection;
-
-@protocol InputDelegate <NSObject>
-@optional
-/**
- * A mouse button was pressed.
- */
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask;
-/**
- * A mouse button was released.
- */
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask;
-/**
- * A mouse button was double-clicked.
- *
- * Note that mouseDown and mouseUp events will still be delivered.
- * This will be triggered between the second mouseDown and the second
- * mouseUp.
- */
-- (void) mouseDoubleClickAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask;
-/**
- * The mouse was moved
- */
-- (void) mouseMoveTo:(NSPoint)pos withButtons:(MouseButton)button andMask:(InputMask)mask;
-/**
- * The mouse was scrolled
- */
-- (void) mouseScrolledAt:(NSPoint)pos inDirection:(ScrollDirection)dir withMask:(InputMask)mask;
-/**
- * A key was pressed
- */
-- (void) keyPressed:(unsigned int)keyVal withMask:(InputMask)mask;
-/**
- * A key was released
- */
-- (void) keyReleased:(unsigned int)keyVal withMask:(InputMask)mask;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Menu.h b/tikzit-old/src/gtk/Menu.h
deleted file mode 100644
index e0f78d4..0000000
--- a/tikzit-old/src/gtk/Menu.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Window;
-@class PickSupport;
-
-/**
- * Manages the menu
- */
-@interface Menu: NSObject {
- GtkWidget *menubar;
- GtkActionGroup *appActions;
- GtkActionGroup *windowActions;
- GtkAction *undoAction; // no ref
- GtkAction *redoAction; // no ref
- GtkAction *pasteAction; // no ref
- GtkAction **nodeSelBasedActions;
- guint nodeSelBasedActionCount;
- GtkAction **edgeSelBasedActions;
- guint edgeSelBasedActionCount;
- GtkAction **selBasedActions;
- guint selBasedActionCount;
-}
-
-/**
- * The menubar widget, to be inserted into the window
- */
-@property (readonly) GtkWidget *menubar;
-
-/**
- * Constructs the menu for @p window
- *
- * @param window the window that will be acted upon
- */
-- (id) initForWindow:(Window*)window;
-
-/**
- * Enables or disables the undo action
- */
-- (void) setUndoActionEnabled:(BOOL)enabled;
-/**
- * Sets the text that describes what action will be undone
- *
- * @param detail a text description of the action, or nil
- */
-- (void) setUndoActionDetail:(NSString*)detail;
-/**
- * Enables or disables the redo action
- */
-- (void) setRedoActionEnabled:(BOOL)enabled;
-/**
- * Sets the text that describes what action will be redone
- *
- * @param detail a text description of the action, or nil
- */
-- (void) setRedoActionDetail:(NSString*)detail;
-
-/**
- * Gets the paste action
- */
-- (GtkAction*) pasteAction;
-
-/**
- * Enables or disables the actions that act on a selection
- */
-- (void) notifySelectionChanged:(PickSupport*)pickSupport;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Menu.m b/tikzit-old/src/gtk/Menu.m
deleted file mode 100644
index 04c9c31..0000000
--- a/tikzit-old/src/gtk/Menu.m
+++ /dev/null
@@ -1,737 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * Stuff stolen from glade-window.c in Glade:
- * Copyright (C) 2001 Ximian, Inc.
- * Copyright (C) 2007 Vincent Geddes.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Menu.h"
-
-#import "Application.h"
-#import "Window.h"
-#import "Configuration.h"
-#import "PickSupport.h"
-#import "Shape.h"
-#import "Tool.h"
-#import "TikzDocument.h"
-
-#import <glib.h>
-#ifdef _
-#undef _
-#endif
-#import <glib/gi18n.h>
-#import <gtk/gtk.h>
-
-#import "gtkhelpers.h"
-
-#import "logo.h"
-
-// {{{ Application actions
-static void new_cb (GtkAction *action, Application *appl) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [appl newWindow];
- [pool drain];
-}
-
-static void refresh_shapes_cb (GtkAction *action, Application *appl) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [Shape refreshShapeDictionary];
- [pool drain];
-}
-
-static void show_preferences_cb (GtkAction *action, Application *appl) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [appl presentSettingsDialog];
- [pool drain];
-}
-
-#ifdef HAVE_POPPLER
-static void show_preamble_cb (GtkAction *action, Application *appl) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [appl presentPreamblesEditor];
- [pool drain];
-}
-#endif
-
-static void show_context_window_cb (GtkAction *action, Application *appl) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [appl presentContextWindow];
- [pool drain];
-}
-
-static void quit_cb (GtkAction *action, Application *appl) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [appl quit];
- [pool drain];
-}
-
-static void help_cb (GtkAction *action, Application *appl) {
- GError *gerror = NULL;
- gtk_show_uri (NULL, "http://tikzit.sourceforge.net/manual.html", GDK_CURRENT_TIME, &gerror);
- if (gerror != NULL) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- logGError (gerror, @"Could not show help");
- [pool drain];
- }
-}
-
-static void about_cb (GtkAction *action, Application *appl) {
- static const gchar * const authors[] =
- { "Aleks Kissinger <aleks0@gmail.com>",
- "Chris Heunen <chrisheunen@gmail.com>",
- "Alex Merry <dev@randomguy3.me.uk>",
- NULL };
-
- static const gchar license[] =
- N_("TikZiT is free software; you can redistribute it and/or modify "
- "it under the terms of the GNU General Public License as "
- "published by the Free Software Foundation; either version 2 of the "
- "License, or (at your option) any later version."
- "\n\n"
- "TikZiT 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 General Public License for more details."
- "\n\n"
- "You should have received a copy of the GNU General Public License "
- "along with TikZiT; if not, write to the Free Software "
- "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, "
- "MA 02110-1301, USA.");
-
- static const gchar copyright[] =
- "Copyright \xc2\xa9 2010-2011 Aleks Kissinger, Chris Heunen and Alex Merry.";
-
- GdkPixbuf *logo = get_logo (LOGO_SIZE_128);
- gtk_show_about_dialog (NULL,
- "program-name", PACKAGE_NAME,
- "logo", logo,
- "authors", authors,
- "translator-credits", _("translator-credits"),
- "comments", _("A graph manipulation program for pgf/tikz graphs"),
- "license", _(license),
- "wrap-license", TRUE,
- "copyright", copyright,
- "version", PACKAGE_VERSION,
- "website", "http://tikzit.sourceforge.net",
- NULL);
- g_object_unref (logo);
-}
-
-static GtkActionEntry app_action_entries[] = {
- /*
- Fields:
- * action name
- * stock id or name of icon for action
- * label for action (mark for translation with N_)
- * accelerator (as understood by gtk_accelerator_parse())
- * tooltip (mark for translation with N_)
- * callback
- */
- { "New", GTK_STOCK_NEW, NULL, "<control>N",
- N_("Create a new graph"), G_CALLBACK (new_cb) },
-
- { "RefreshShapes", NULL, N_("_Refresh shapes"), NULL,
- N_(""), G_CALLBACK (refresh_shapes_cb) },
-
- { "Quit", GTK_STOCK_QUIT, NULL, "<control>Q",
- N_("Quit the program"), G_CALLBACK (quit_cb) },
-
- { "Tool", NULL, N_("_Tool") },
-
- { "ShowPreferences", GTK_STOCK_PREFERENCES, N_("Configure TikZiT..."), NULL,
- N_("Edit the TikZiT configuration"), G_CALLBACK (show_preferences_cb) },
-
-#ifdef HAVE_POPPLER
- { "ShowPreamble", NULL, N_("_Edit Preambles..."), NULL,
- N_("Edit the preambles used to generate the preview"), G_CALLBACK (show_preamble_cb) },
-#endif
-
- { "ShowContextWindow", NULL, N_("_Context Window"), NULL,
- N_("Show the contextual tools window"), G_CALLBACK (show_context_window_cb) },
-
- /* HelpMenu */
- { "HelpManual", GTK_STOCK_HELP, N_("_Online manual"), "F1",
- N_("TikZiT manual (online)"), G_CALLBACK (help_cb) },
-
- { "About", GTK_STOCK_ABOUT, NULL, NULL,
- N_("About this application"), G_CALLBACK (about_cb) },
-};
-static guint n_app_action_entries = G_N_ELEMENTS (app_action_entries);
-// }}}
-// {{{ Window actions
-
-static void open_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window openFile];
- [pool drain];
-}
-
-static void close_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window close];
- [pool drain];
-}
-
-static void save_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window saveActiveDocument];
- [pool drain];
-}
-
-static void save_as_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window saveActiveDocumentAs];
- [pool drain];
-}
-
-static void save_as_shape_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window saveActiveDocumentAsShape];
- [pool drain];
-}
-
-static void undo_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- TikzDocument *document = [window document];
- if ([document canUndo]) {
- [document undo];
- } else {
- g_warning ("Can't undo!\n");
- gtk_action_set_sensitive (action, FALSE);
- }
-
- [pool drain];
-}
-
-static void redo_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- TikzDocument *document = [window document];
- if ([document canRedo]) {
- [document redo];
- } else {
- g_warning ("Can't redo!\n");
- gtk_action_set_sensitive (action, FALSE);
- }
-
- [pool drain];
-}
-
-static void cut_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window selectionCutToClipboard];
- [pool drain];
-}
-
-static void copy_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window selectionCopyToClipboard];
- [pool drain];
-}
-
-static void paste_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window pasteFromClipboard];
- [pool drain];
-}
-
-static void delete_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] removeSelected];
- [pool drain];
-}
-
-static void select_all_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- TikzDocument *document = [window document];
- [[document pickSupport] selectAllNodes:[NSSet setWithArray:[[document graph] nodes]]];
- [pool drain];
-}
-
-static void deselect_all_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- TikzDocument *document = [window document];
- [[document pickSupport] deselectAllNodes];
- [[document pickSupport] deselectAllEdges];
- [pool drain];
-}
-
-static void flip_horiz_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] flipSelectedNodesHorizontally];
- [pool drain];
-}
-
-static void flip_vert_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] flipSelectedNodesVertically];
- [pool drain];
-}
-
-static void reverse_edges_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] reverseSelectedEdges];
- [pool drain];
-}
-
-static void bring_forward_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] bringSelectionForward];
- [pool drain];
-}
-
-static void send_backward_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] sendSelectionBackward];
- [pool drain];
-}
-
-static void bring_to_front_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] bringSelectionToFront];
- [pool drain];
-}
-
-static void send_to_back_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[window document] sendSelectionToBack];
- [pool drain];
-}
-
-#ifdef HAVE_POPPLER
-static void show_preview_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window presentPreview];
- [pool drain];
-}
-#endif
-
-static void zoom_in_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window zoomIn];
- [pool drain];
-}
-
-static void zoom_out_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window zoomOut];
- [pool drain];
-}
-
-static void zoom_reset_cb (GtkAction *action, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window zoomReset];
- [pool drain];
-}
-
-static void recent_chooser_item_activated_cb (GtkRecentChooser *chooser, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- gchar *uri, *path;
- GError *error = NULL;
-
- uri = gtk_recent_chooser_get_current_uri (chooser);
-
- path = g_filename_from_uri (uri, NULL, NULL);
- if (error) {
- g_warning ("Could not convert uri \"%s\" to a local path: %s", uri, error->message);
- g_error_free (error);
- return;
- }
-
- [window openFileAtPath:[NSString stringWithGlibFilename:path]];
-
- g_free (uri);
- g_free (path);
-
- [pool drain];
-}
-
-
-static GtkActionEntry window_action_entries[] = {
- /*
- Fields:
- * action name
- * stock id or name of icon for action
- * label for action (mark for translation with N_)
- * accelerator (as understood by gtk_accelerator_parse())
- * tooltip (mark for translation with N_)
- * callback
- */
- { "FileMenu", NULL, N_("_File") },
- { "EditMenu", NULL, N_("_Edit") },
- { "ViewMenu", NULL, N_("_View") },
- { "HelpMenu", NULL, N_("_Help") },
-
- { "Arrange", NULL, N_("_Arrange") },
- { "Zoom", NULL, N_("_Zoom") },
-
- { "Open", GTK_STOCK_OPEN, N_("_Open\342\200\246") ,"<control>O",
- N_("Open a graph"), G_CALLBACK (open_cb) },
-
- { "Close", GTK_STOCK_CLOSE, NULL, "<control>W",
- N_("Close the current graph"), G_CALLBACK (close_cb) },
-
- { "ZoomIn", GTK_STOCK_ZOOM_IN, NULL, "<control>plus",
- NULL, G_CALLBACK (zoom_in_cb) },
-
- { "ZoomOut", GTK_STOCK_ZOOM_OUT, NULL, "<control>minus",
- NULL, G_CALLBACK (zoom_out_cb) },
-
- { "ZoomReset", GTK_STOCK_ZOOM_100, N_("_Reset zoom"), "<control>0",
- NULL, G_CALLBACK (zoom_reset_cb) },
-
- { "Save", GTK_STOCK_SAVE, NULL, "<control>S",
- N_("Save the current graph"), G_CALLBACK (save_cb) },
-
- { "SaveAs", GTK_STOCK_SAVE_AS, N_("Save _As\342\200\246"), NULL,
- N_("Save the current graph with a different name"), G_CALLBACK (save_as_cb) },
-
- { "SaveAsShape", NULL, N_("Save As S_hape\342\200\246"), NULL,
- N_("Save the current graph as a shape for use in styles"), G_CALLBACK (save_as_shape_cb) },
-
- { "Undo", GTK_STOCK_UNDO, NULL, "<control>Z",
- N_("Undo the last action"), G_CALLBACK (undo_cb) },
-
- { "Redo", GTK_STOCK_REDO, NULL, "<shift><control>Z",
- N_("Redo the last action"), G_CALLBACK (redo_cb) },
-
- { "Cut", GTK_STOCK_CUT, NULL, NULL,
- N_("Cut the selection"), G_CALLBACK (cut_cb) },
-
- { "Copy", GTK_STOCK_COPY, NULL, NULL,
- N_("Copy the selection"), G_CALLBACK (copy_cb) },
-
- { "Paste", GTK_STOCK_PASTE, NULL, NULL,
- N_("Paste the clipboard"), G_CALLBACK (paste_cb) },
-
- { "Delete", GTK_STOCK_DELETE, NULL, "Delete",
- N_("Delete the selection"), G_CALLBACK (delete_cb) },
-
- { "SelectAll", GTK_STOCK_SELECT_ALL, NULL, "<control>A",
- N_("Select all nodes on the graph"), G_CALLBACK (select_all_cb) },
-
- { "DeselectAll", NULL, N_("D_eselect all"), "<shift><control>A",
- N_("Deselect everything"), G_CALLBACK (deselect_all_cb) },
-
- { "FlipHoriz", NULL, N_("Flip nodes _horizonally"), NULL,
- N_("Flip the selected nodes horizontally"), G_CALLBACK (flip_horiz_cb) },
-
- { "FlipVert", NULL, N_("Flip nodes _vertically"), NULL,
- N_("Flip the selected nodes vertically"), G_CALLBACK (flip_vert_cb) },
-
- { "ReverseEdges", NULL, N_("Rever_se edges"), NULL,
- N_("Reverse the selected edges"), G_CALLBACK (reverse_edges_cb) },
-
- { "SendToBack", NULL, N_("Send to _back"), NULL,
- N_("Send the selected nodes and edges to the back of the graph"), G_CALLBACK (send_to_back_cb) },
-
- { "SendBackward", NULL, N_("Send b_ackward"), NULL,
- N_("Send the selected nodes and edges backward"), G_CALLBACK (send_backward_cb) },
-
- { "BringForward", NULL, N_("Bring f_orward"), NULL,
- N_("Bring the selected nodes and edges forward"), G_CALLBACK (bring_forward_cb) },
-
- { "BringToFront", NULL, N_("Bring to _front"), NULL,
- N_("Bring the selected nodes and edges to the front of the graph"), G_CALLBACK (bring_to_front_cb) },
-
- /* ViewMenu */
-#ifdef HAVE_POPPLER
- { "ShowPreview", NULL, N_("_Preview"), "<control>L",
- N_("See the graph as it will look when rendered in LaTeX"), G_CALLBACK (show_preview_cb) },
-#endif
-};
-static guint n_window_action_entries = G_N_ELEMENTS (window_action_entries);
-
-// }}}
-// {{{ UI XML
-
-static const gchar ui_info[] =
-"<ui>"
-" <menubar name='MenuBar'>"
-" <menu action='FileMenu'>"
-" <menuitem action='New'/>"
-" <menuitem action='Open'/>"
-" <menuitem action='OpenRecent'/>"
-" <separator/>"
-" <menuitem action='Save'/>"
-" <menuitem action='SaveAs'/>"
-" <separator/>"
-" <menuitem action='SaveAsShape'/>"
-" <menuitem action='RefreshShapes'/>"
-" <separator/>"
-" <menuitem action='Close'/>"
-" <menuitem action='Quit'/>"
-" </menu>"
-" <menu action='EditMenu'>"
-" <menu action='Tool'>"
-" </menu>"
-" <separator/>"
-" <menuitem action='Undo'/>"
-" <menuitem action='Redo'/>"
-" <separator/>"
-" <menuitem action='Cut'/>"
-" <menuitem action='Copy'/>"
-" <menuitem action='Paste'/>"
-" <menuitem action='Delete'/>"
-" <separator/>"
-" <menuitem action='SelectAll'/>"
-" <menuitem action='DeselectAll'/>"
-" <separator/>"
-" <menuitem action='FlipVert'/>"
-" <menuitem action='FlipHoriz'/>"
-" <menuitem action='ReverseEdges'/>"
-" <separator/>"
-" <menu action='Arrange'>"
-" <menuitem action='SendToBack'/>"
-" <menuitem action='SendBackward'/>"
-" <menuitem action='BringForward'/>"
-" <menuitem action='BringToFront'/>"
-" </menu>"
-" <separator/>"
-" <menuitem action='ShowPreferences'/>"
-" </menu>"
-" <menu action='ViewMenu'>"
-" <menuitem action='ShowContextWindow'/>"
-#ifdef HAVE_POPPLER
-" <menuitem action='ShowPreamble'/>"
-" <menuitem action='ShowPreview'/>"
-#endif
-" <menu action='Zoom'>"
-" <menuitem action='ZoomIn'/>"
-" <menuitem action='ZoomOut'/>"
-" <menuitem action='ZoomReset'/>"
-" </menu>"
-" </menu>"
-" <menu action='HelpMenu'>"
-" <menuitem action='HelpManual'/>"
-" <separator/>"
-" <menuitem action='About'/>"
-" </menu>"
-" </menubar>"
-/*
-" <toolbar name='ToolBar'>"
-" <toolitem action='New'/>"
-" <toolitem action='Open'/>"
-" <toolitem action='Save'/>"
-" <separator/>"
-" <toolitem action='Cut'/>"
-" <toolitem action='Copy'/>"
-" <toolitem action='Paste'/>"
-" <separator/>"
-" <toolitem action='SelectMode'/>"
-" <toolitem action='CreateNodeMode'/>"
-" <toolitem action='DrawEdgeMode'/>"
-" <toolitem action='BoundingBoxMode'/>"
-" <toolitem action='HandMode'/>"
-" </toolbar>"
-*/
-"</ui>";
-
-
-
-// }}}
-// {{{ Helper methods
-
-static void configure_recent_chooser (GtkRecentChooser *chooser)
-{
- gtk_recent_chooser_set_local_only (chooser, TRUE);
- gtk_recent_chooser_set_show_icons (chooser, FALSE);
- gtk_recent_chooser_set_sort_type (chooser, GTK_RECENT_SORT_MRU);
-
- GtkRecentFilter *filter = gtk_recent_filter_new ();
- gtk_recent_filter_add_application (filter, g_get_application_name());
- gtk_recent_chooser_set_filter (chooser, filter);
-}
-
-static void tool_cb (GtkAction *action, id<Tool> tool) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [app setActiveTool:tool];
- [pool drain];
-}
-
-
-
-// }}}
-// {{{ API
-
-@implementation Menu
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initForWindow:(Window*)window {
- self = [super init];
- if (!self) {
- return nil;
- }
-
- GError *error = NULL;
-
- appActions = gtk_action_group_new ("TZApp");
- //gtk_action_group_set_translation_domain (actions, GETTEXT_PACKAGE);
- gtk_action_group_add_actions (appActions,
- app_action_entries,
- n_app_action_entries,
- app);
- for (id<Tool> tool in [app tools]) {
- NSString *tooltip = [NSString stringWithFormat:
- @"%@: %@ (%@)", [tool name], [tool helpText], [tool shortcut]];
- GtkAction *action = gtk_action_new (
- [[tool name] UTF8String],
- [[tool name] UTF8String],
- [tooltip UTF8String],
- [tool stockId]);
- gtk_action_group_add_action_with_accel (
- appActions,
- action,
- NULL);
- g_signal_connect (
- G_OBJECT (action),
- "activate",
- G_CALLBACK (tool_cb),
- tool);
- g_object_unref (action);
- }
-
- windowActions = gtk_action_group_new ("TZWindow");
- //gtk_action_group_set_translation_domain (windowActions, GETTEXT_PACKAGE);
-
- gtk_action_group_add_actions (windowActions,
- window_action_entries,
- n_window_action_entries,
- window);
-
- GtkAction *action = gtk_recent_action_new ("OpenRecent", N_("Open _Recent"), NULL, NULL);
- g_signal_connect (G_OBJECT (action),
- "item-activated",
- G_CALLBACK (recent_chooser_item_activated_cb),
- window);
- configure_recent_chooser (GTK_RECENT_CHOOSER (action));
- gtk_action_group_add_action_with_accel (windowActions, action, NULL);
- g_object_unref (action);
-
- /* Save refs to actions that will need to be updated */
- undoAction = gtk_action_group_get_action (windowActions, "Undo");
- redoAction = gtk_action_group_get_action (windowActions, "Redo");
- pasteAction = gtk_action_group_get_action (windowActions, "Paste");
-
- nodeSelBasedActionCount = 4;
- nodeSelBasedActions = g_new (GtkAction*, nodeSelBasedActionCount);
- nodeSelBasedActions[0] = gtk_action_group_get_action (windowActions, "Cut");
- nodeSelBasedActions[1] = gtk_action_group_get_action (windowActions, "Copy");
- nodeSelBasedActions[2] = gtk_action_group_get_action (windowActions, "FlipHoriz");
- nodeSelBasedActions[3] = gtk_action_group_get_action (windowActions, "FlipVert");
- edgeSelBasedActionCount = 1;
- edgeSelBasedActions = g_new (GtkAction*, edgeSelBasedActionCount);
- edgeSelBasedActions[0] = gtk_action_group_get_action (windowActions, "ReverseEdges");
- selBasedActionCount = 2;
- selBasedActions = g_new (GtkAction*, selBasedActionCount);
- selBasedActions[0] = gtk_action_group_get_action (windowActions, "Delete");
- selBasedActions[1] = gtk_action_group_get_action (windowActions, "DeselectAll");
-
-
- GtkUIManager *ui = gtk_ui_manager_new ();
- gtk_ui_manager_insert_action_group (ui, windowActions, 0);
- gtk_ui_manager_insert_action_group (ui, appActions, 1);
- gtk_window_add_accel_group ([window gtkWindow], gtk_ui_manager_get_accel_group (ui));
- if (!gtk_ui_manager_add_ui_from_string (ui, ui_info, -1, &error))
- {
- g_message ("Building menus failed: %s", error->message);
- g_error_free (error);
- g_object_unref (ui);
- [self release];
- return nil;
- }
- guint tool_merge_id = gtk_ui_manager_new_merge_id (ui);
- for (id<Tool> tool in [app tools]) {
- gtk_ui_manager_add_ui (ui,
- tool_merge_id,
- "/ui/MenuBar/EditMenu/Tool",
- [[tool name] UTF8String],
- [[tool name] UTF8String],
- GTK_UI_MANAGER_AUTO,
- FALSE);
- }
- menubar = gtk_ui_manager_get_widget (ui, "/MenuBar");
- g_object_ref_sink (menubar);
- g_object_unref (ui);
-
- return self;
-}
-
-- (void) dealloc {
- g_free (nodeSelBasedActions);
- g_free (edgeSelBasedActions);
- g_free (selBasedActions);
- g_object_unref (menubar);
- g_object_unref (appActions);
- g_object_unref (windowActions);
-
- [super dealloc];
-}
-
-@synthesize menubar;
-
-- (void) setUndoActionEnabled:(BOOL)enabled {
- gtk_action_set_sensitive (undoAction, enabled);
-}
-
-- (void) setUndoActionDetail:(NSString*)detail {
- gtk_action_set_detailed_label (undoAction, "_Undo", [detail UTF8String]);
-}
-
-- (void) setRedoActionEnabled:(BOOL)enabled {
- gtk_action_set_sensitive (redoAction, enabled);
-}
-
-- (void) setRedoActionDetail:(NSString*)detail {
- gtk_action_set_detailed_label (redoAction, "_Redo", [detail UTF8String]);
-}
-
-- (GtkAction*) pasteAction {
- return pasteAction;
-}
-
-- (void) notifySelectionChanged:(PickSupport*)pickSupport {
- BOOL hasSelectedNodes = [[pickSupport selectedNodes] count] > 0;
- BOOL hasSelectedEdges = [[pickSupport selectedEdges] count] > 0;
- for (int i = 0; i < nodeSelBasedActionCount; ++i) {
- if (nodeSelBasedActions[i]) {
- gtk_action_set_sensitive (nodeSelBasedActions[i], hasSelectedNodes);
- }
- }
- for (int i = 0; i < edgeSelBasedActionCount; ++i) {
- if (edgeSelBasedActions[i]) {
- gtk_action_set_sensitive (edgeSelBasedActions[i], hasSelectedEdges);
- }
- }
- for (int i = 0; i < selBasedActionCount; ++i) {
- if (selBasedActions[i]) {
- gtk_action_set_sensitive (selBasedActions[i], hasSelectedNodes || hasSelectedEdges);
- }
- }
-}
-
-@end
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/NSError+Glib.h b/tikzit-old/src/gtk/NSError+Glib.h
deleted file mode 100644
index 137977e..0000000
--- a/tikzit-old/src/gtk/NSError+Glib.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import <glib.h>
-
-@interface NSError(Glib)
-+ (id) errorWithGError:(GError*)gerror;
-@end
-
-void GErrorToNSError(GError *errorIn, NSError **errorOut);
-void logGError (GError *error, NSString *message);
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NSError+Glib.m b/tikzit-old/src/gtk/NSError+Glib.m
deleted file mode 100644
index f466d9e..0000000
--- a/tikzit-old/src/gtk/NSError+Glib.m
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NSError+Glib.h"
-#import "TZFoundation.h"
-
-@implementation NSError(Glib)
-+ (id) errorWithGError:(GError*)gerror {
- if (!gerror)
- return nil;
-
- NSString *message = [NSString stringWithUTF8String:gerror->message];
- NSString *domain = [NSString stringWithUTF8String:g_quark_to_string(gerror->domain)];
-
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionaryWithObject:message
- forKey:NSLocalizedDescriptionKey];
- return [self errorWithDomain:domain code:gerror->code userInfo:errorDetail];
-}
-@end
-
-void GErrorToNSError(GError *errorIn, NSError **errorOut)
-{
- if (errorOut && errorIn) {
- *errorOut = [NSError errorWithGError:errorIn];
- }
-}
-
-void logGError (GError *error, NSString *message) {
- if (message == nil) {
- NSLog (@"%s", error->message);
- } else {
- NSLog (@"%@: %s", message, error->message);
- }
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NSFileManager+Glib.h b/tikzit-old/src/gtk/NSFileManager+Glib.h
deleted file mode 100644
index cb49fcb..0000000
--- a/tikzit-old/src/gtk/NSFileManager+Glib.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface NSFileManager(Glib)
-/**
- * Creates a directory in the system temp directory
- */
-- (NSString*) createTempDirectoryWithError:(NSError**)error;
-/**
- * Creates a directory in the system temp directory
- */
-- (NSString*) createTempDirectory;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NSFileManager+Glib.m b/tikzit-old/src/gtk/NSFileManager+Glib.m
deleted file mode 100644
index b3e9de6..0000000
--- a/tikzit-old/src/gtk/NSFileManager+Glib.m
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NSFileManager+Glib.h"
-#import "TZFoundation.h"
-#import "mkdtemp.h"
-
-@implementation NSFileManager(Glib)
-
-- (NSString*) createTempDirectoryWithError:(NSError**)error {
- NSString *result = nil;
-#if GLIB_CHECK_VERSION (2, 30, 0)
- GError *gerror = NULL;
- gchar *dir = g_dir_make_tmp ("tikzitXXXXXX", &gerror);
- GErrorToNSError (gerror, error);
- if (dir)
- result = [NSString stringWithGlibFilename:dir];
- g_free (dir);
-#else
-//#if (!GLIB_CHECK_VERSION (2, 26, 0))
-#define g_mkdtemp mkdtemp
-//#endif
- gchar *dir = g_build_filename (g_get_tmp_dir(), "tikzitXXXXXX", NULL);
- gchar *rdir = g_mkdtemp (dir);
- if (rdir) {
- result = [NSString stringWithGlibFilename:dir];
- } else if (error) {
- *error = [NSError errorWithLibcError:errno];
- }
- g_free (dir);
-#endif
- return result;
-}
-
-- (NSString*) createTempDirectory {
- return [self createTempDirectoryWithError:NULL];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NSString+Glib.h b/tikzit-old/src/gtk/NSString+Glib.h
deleted file mode 100644
index ac59833..0000000
--- a/tikzit-old/src/gtk/NSString+Glib.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import <glib.h>
-
-@interface NSString(Glib)
-/**
- * Initialise a string with a string in the GLib filename encoding
- */
-- (id) initWithGlibFilename:(const gchar *)filename;
-/**
- * Create a string from a string in the GLib filename encoding
- */
-+ (id) stringWithGlibFilename:(const gchar *)filename;
-/**
- * Get a copy of the string in GLib filename encoding.
- *
- * This will need to be freed with g_free.
- */
-- (gchar*)glibFilename;
-/**
- * Get a copy of the string as a GLib URI
- *
- * This will need to be freed with g_free.
- */
-- (gchar*)glibUriWithError:(NSError**)error;
-/**
- * Get a copy of the string as a GLib URI
- *
- * This will need to be freed with g_free.
- */
-- (gchar*)glibUri;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NSString+Glib.m b/tikzit-old/src/gtk/NSString+Glib.m
deleted file mode 100644
index b6dc765..0000000
--- a/tikzit-old/src/gtk/NSString+Glib.m
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NSString+Glib.h"
-#import "TZFoundation.h"
-
-@implementation NSString(Glib)
-+ (id) stringWithGlibFilename:(const gchar *)filename {
- return [[[self alloc] initWithGlibFilename:filename] autorelease];
-}
-
-- (id) initWithGlibFilename:(const gchar *)filename {
- if (self == nil) {
- return nil;
- }
-
- if (filename == NULL) {
- [self release];
- return nil;
- }
-
- GError *error = NULL;
- gchar *utf8file = g_filename_to_utf8 (filename, -1, NULL, NULL, &error);
- if (utf8file == NULL) {
- if (error)
- logGError (error, @"Failed to convert a GLib filename to UTF8");
- [self release];
- return nil;
- }
-
- self = [self initWithUTF8String:utf8file];
- g_free (utf8file);
-
- return self;
-}
-
-- (gchar*)glibFilenameWithError:(NSError**)error {
- GError *gerror = NULL;
- gchar *result = g_filename_from_utf8 ([self UTF8String], -1, NULL, NULL, &gerror);
- GErrorToNSError (gerror, error);
- if (gerror) {
- logGError (gerror, @"Failed to convert a UTF8 string to a GLib filename");
- }
- return result;
-}
-
-- (gchar*)glibFilename {
- return [self glibFilenameWithError:NULL];
-}
-
-- (gchar*)glibUriWithError:(NSError**)error {
- gchar *filepath;
- gchar *uri;
- NSError *cause = nil;
-
- filepath = [self glibFilenameWithError:&cause];
- if (!filepath) {
- if (error) {
- NSString *message = [NSString stringWithFormat:@"Could not convert \"%@\" to the GLib filename encoding", self];
- *error = [NSError errorWithMessage:message code:TZ_ERR_OTHER cause:cause];
- }
- return NULL;
- }
-
- GError *gerror = NULL;
- GError **gerrorptr = error ? &gerror : NULL;
- uri = g_filename_to_uri (filepath, NULL, gerrorptr);
- if (!uri && error) {
- NSString *message = [NSString stringWithFormat:@"Could not convert \"%@\" to a GLib URI", self];
- *error = [NSError errorWithMessage:message code:TZ_ERR_BADFORMAT cause:[NSError errorWithGError:gerror]];
- }
- g_free (filepath);
- return uri;
-}
-
-- (gchar*)glibUri {
- return [self glibUriWithError:NULL];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Node+Render.h b/tikzit-old/src/gtk/Node+Render.h
deleted file mode 100644
index 60d2573..0000000
--- a/tikzit-old/src/gtk/Node+Render.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Node.h"
-#import "RenderContext.h"
-#import "Surface.h"
-
-enum NodeState {
- NodeNormal,
- NodeSelected,
- NodeHighlighted
-};
-
-@interface Node(Render)
-
-- (Transformer*) shapeTransformerForSurface:(id<Surface>)surface;
-// the total rendered bounds, excluding label
-- (NSRect) renderBoundsForSurface:(id<Surface>)surface;
-- (NSRect) renderBoundsWithLabelForSurface:(id<Surface>)surface;
-- (NSString*) renderedLabel;
-- (NSSize) renderedLabelSizeInContext:(id<RenderContext>)context;
-- (void) renderLabelToSurface:(id<Surface>)surface withContext:(id<RenderContext>)context;
-- (void) renderLabelAt:(NSPoint)point withContext:(id<RenderContext>)context;
-- (void) renderToSurface:(id<Surface>)surface withContext:(id<RenderContext>)context state:(enum NodeState)state;
-- (BOOL) hitByPoint:(NSPoint)p onSurface:(id<Surface>)surface;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Node+Render.m b/tikzit-old/src/gtk/Node+Render.m
deleted file mode 100644
index 907d818..0000000
--- a/tikzit-old/src/gtk/Node+Render.m
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Node+Render.h"
-#import "Shape.h"
-#import "Shape+Render.h"
-#import "ShapeNames.h"
-
-#define MAX_LABEL_LENGTH 10
-#define LABEL_PADDING_X 2
-#define LABEL_PADDING_Y 2
-
-@implementation Node (Render)
-
-- (Shape*) shapeToRender {
- if (style) {
- return [Shape shapeForName:[style shapeName]];
- } else {
- return [Shape shapeForName:SHAPE_CIRCLE];
- }
-}
-
-- (Transformer*) shapeTransformerForSurface:(id<Surface>)surface {
- return [self shapeTransformerFromTransformer:[surface transformer]];
-}
-
-- (NSRect) renderBoundsUsingShapeTransform:(Transformer*)shapeTrans {
- float strokeThickness = style ? [style strokeThickness] : [NodeStyle defaultStrokeThickness];
- NSRect screenBounds = [shapeTrans rectToScreen:[[self shapeToRender] boundingRect]];
- screenBounds = NSInsetRect(screenBounds, -strokeThickness, -strokeThickness);
- return screenBounds;
-}
-
-- (NSRect) renderBoundsForSurface:(id<Surface>)surface {
- return [self renderBoundsUsingShapeTransform:[self shapeTransformerForSurface:surface]];
-}
-
-- (NSRect) renderBoundsWithLabelForSurface:(id<Surface>)surface {
- NSRect nodeBounds = [self renderBoundsForSurface:surface];
- NSRect labelRect = NSZeroRect;
- if (![label isEqual:@""]) {
- id<RenderContext> cr = [surface createRenderContext];
- labelRect.size = [self renderedLabelSizeInContext:cr];
- NSPoint nodePos = [[surface transformer] toScreen:point];
- labelRect.origin.x = nodePos.x - (labelRect.size.width / 2);
- labelRect.origin.y = nodePos.y - (labelRect.size.height / 2);
- }
- return NSUnionRect(nodeBounds, labelRect);
-}
-
-- (RColor) strokeColor {
- if (style) {
- return [[style strokeColorRGB] rColor];
- } else {
- return MakeRColor (0.4, 0.4, 0.7, 0.8);
- }
-}
-
-- (RColor) fillColor {
- if (style) {
- return [[style fillColorRGB] rColor];
- } else {
- return MakeRColor (0.4, 0.4, 0.7, 0.3);
- }
-}
-
-- (NSString*) renderedLabel {
- NSString *r_label = [label stringByExpandingLatexConstants];
- if ([r_label length] > MAX_LABEL_LENGTH) {
- r_label = [[[r_label substringToIndex:MAX_LABEL_LENGTH-1] stringByTrimmingSpaces] stringByAppendingString:@"..."];
- } else {
- r_label = [r_label stringByTrimmingSpaces];
- }
- return r_label;
-}
-
-- (NSSize) renderedLabelSizeInContext:(id<RenderContext>)context {
- NSSize result = {0, 0};
- if (![label isEqual:@""]) {
- NSString *r_label = [self renderedLabel];
-
- id<TextLayout> layout = [context layoutText:r_label withSize:9];
-
- result = [layout size];
- result.width += LABEL_PADDING_X;
- result.height += LABEL_PADDING_Y;
- }
- return result;
-}
-
-- (void) renderLabelToSurface:(id <Surface>)surface withContext:(id<RenderContext>)context {
- [self renderLabelAt:[[surface transformer] toScreen:point] withContext:context];
-}
-
-- (void) renderLabelAt:(NSPoint)p withContext:(id<RenderContext>)context {
- // draw latex code overlayed on node
- if (![label isEqual:@""]) {
- [context saveState];
-
- NSString *r_label = [self renderedLabel];
- id<TextLayout> layout = [context layoutText:r_label withSize:9];
-
- NSSize labelSize = [layout size];
-
- NSRect textBounds = NSMakeRect (p.x - labelSize.width/2,
- p.y - labelSize.height/2,
- labelSize.width,
- labelSize.height);
- NSRect backRect = NSInsetRect (textBounds, -LABEL_PADDING_X, -LABEL_PADDING_Y);
-
- [context startPath];
- [context setLineWidth:1.0];
- [context rect:backRect];
- RColor fColor = MakeRColor (1.0, 1.0, 0.5, 0.7);
- RColor sColor = MakeRColor (0.5, 0.0, 0.0, 0.7);
- [context strokePathWithColor:sColor andFillWithColor:fColor];
-
- [layout showTextAt:textBounds.origin withColor:BlackRColor];
-
- [context restoreState];
- }
-}
-
-- (void) renderToSurface:(id <Surface>)surface withContext:(id<RenderContext>)context state:(enum NodeState)state {
- Transformer *shapeTrans = [self shapeTransformerForSurface:surface];
- float strokeThickness = style ? [style strokeThickness] : [NodeStyle defaultStrokeThickness];
-
- [context saveState];
-
- [[self shapeToRender] drawPathWithTransform:shapeTrans andContext:context];
-
- [context setLineWidth:strokeThickness];
- if (!style) {
- [context setLineDash:3.0];
- }
- [context strokePathWithColor:[self strokeColor] andFillWithColor:[self fillColor]];
-
- if (state != NodeNormal) {
- [context setLineWidth:strokeThickness + 4.0];
- [context setLineDash:0.0];
- float alpha = 0.0f;
- if (state == NodeSelected)
- alpha = 0.5f;
- else if (state == NodeHighlighted)
- alpha = 0.25f;
- RColor selectionColor = MakeSolidRColor(0.61f, 0.735f, 1.0f);
-
- [[self shapeToRender] drawPathWithTransform:shapeTrans andContext:context];
- [context strokePathWithColor:selectionColor andFillWithColor:selectionColor usingAlpha:alpha];
- }
-
- [context restoreState];
- [self renderLabelToSurface:surface withContext:context];
-}
-
-- (BOOL) hitByPoint:(NSPoint)p onSurface:(id<Surface>)surface {
- Transformer *shapeTrans = [self shapeTransformerForSurface:surface];
-
- NSRect screenBounds = [self renderBoundsUsingShapeTransform:shapeTrans];
- if (!NSPointInRect(p, screenBounds)) {
- return NO;
- }
-
- float strokeThickness = style ? [style strokeThickness] : [NodeStyle defaultStrokeThickness];
- id<RenderContext> ctx = [surface createRenderContext];
- [ctx setLineWidth:strokeThickness];
- [[self shapeToRender] drawPathWithTransform:shapeTrans andContext:ctx];
- return [ctx strokeIncludesPoint:p] || [ctx fillIncludesPoint:p];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyle+Gtk.h b/tikzit-old/src/gtk/NodeStyle+Gtk.h
deleted file mode 100644
index 4fa5edd..0000000
--- a/tikzit-old/src/gtk/NodeStyle+Gtk.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "NodeStyle.h"
-#import <gtk/gtk.h>
-
-@interface NodeStyle (Gtk)
-
-- (GdkColor) strokeColor;
-- (void) setStrokeColor:(GdkColor)color;
-- (GdkColor) fillColor;
-- (void) setFillColor:(GdkColor)color;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyle+Gtk.m b/tikzit-old/src/gtk/NodeStyle+Gtk.m
deleted file mode 100644
index 1954def..0000000
--- a/tikzit-old/src/gtk/NodeStyle+Gtk.m
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NodeStyle+Gtk.h"
-#import "ColorRGB+Gtk.h"
-
-@implementation NodeStyle (Gtk)
-
-- (GdkColor) strokeColor {
- return [[self strokeColorRGB] gdkColor];
-}
-
-- (void) setStrokeColor:(GdkColor)color {
- [self setStrokeColorRGB:[ColorRGB colorWithGdkColor:color]];
-}
-
-- (GdkColor) fillColor {
- return [[self fillColorRGB] gdkColor];
-}
-
-- (void) setFillColor:(GdkColor)color {
- [self setFillColorRGB:[ColorRGB colorWithGdkColor:color]];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyle+Render.h b/tikzit-old/src/gtk/NodeStyle+Render.h
deleted file mode 100644
index 00edd27..0000000
--- a/tikzit-old/src/gtk/NodeStyle+Render.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "NodeStyle.h"
-#import "RenderContext.h"
-#import "Surface.h"
-
-@interface NodeStyle (Render)
-
-- (void) renderToSurface:(id<Surface>)surface withContext:(id<RenderContext>)context at:(NSPoint)p;
-- (BOOL) hitByPoint:(NSPoint)p onSurface:(id<Surface>)surface;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyle+Storage.h b/tikzit-old/src/gtk/NodeStyle+Storage.h
deleted file mode 100644
index 7649414..0000000
--- a/tikzit-old/src/gtk/NodeStyle+Storage.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "NodeStyle.h"
-#import "Configuration.h"
-
-@interface NodeStyle (Storage)
-
-- (id) initFromConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile;
-- (void) storeToConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyle+Storage.m b/tikzit-old/src/gtk/NodeStyle+Storage.m
deleted file mode 100644
index 088b062..0000000
--- a/tikzit-old/src/gtk/NodeStyle+Storage.m
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- * Copyright 2010 Chris Heunen
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NodeStyle+Storage.h"
-#import "ColorRGB+IntegerListStorage.h"
-
-@implementation NodeStyle (Storage)
-
-- (id) initFromConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile {
- self = [self init];
-
- if (self) {
- [self setName:[configFile stringEntry:@"Name" inGroup:groupName withDefault:name]];
- [self setCategory:[configFile stringEntry:@"Category" inGroup:groupName withDefault:category]];
- [self setShapeName:[configFile stringEntry:@"ShapeName" inGroup:groupName withDefault:shapeName]];
- [self setScale:[configFile doubleEntry:@"Scale" inGroup:groupName withDefault:scale]];
- [self setStrokeThickness:[configFile integerEntry:@"StrokeThickness"
- inGroup:groupName
- withDefault:strokeThickness]];
- [self setStrokeColorRGB:
- [ColorRGB colorFromValueList:
- [configFile integerListEntry:@"StrokeColor"
- inGroup:groupName
- withDefault:[strokeColorRGB valueList]]]];
- [self setFillColorRGB:
- [ColorRGB colorFromValueList:
- [configFile integerListEntry:@"FillColor"
- inGroup:groupName
- withDefault:[fillColorRGB valueList]]]];
- }
-
- return self;
-}
-
-- (void) storeToConfigurationGroup:(NSString*)groupName config:(Configuration*)configFile {
- [configFile setStringEntry:@"Name" inGroup:groupName value:[self name]];
- [configFile setStringEntry:@"Category" inGroup:groupName value:[self category]];
- [configFile setStringEntry:@"ShapeName" inGroup:groupName value:[self shapeName]];
- [configFile setDoubleEntry:@"Scale" inGroup:groupName value:[self scale]];
- [configFile setIntegerEntry:@"StrokeThickness" inGroup:groupName value:[self strokeThickness]];
- [configFile setIntegerListEntry:@"StrokeColor" inGroup:groupName value:[[self strokeColorRGB] valueList]];
- [configFile setIntegerListEntry:@"FillColor" inGroup:groupName value:[[self fillColorRGB] valueList]];
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyleEditor.h b/tikzit-old/src/gtk/NodeStyleEditor.h
deleted file mode 100644
index b45c992..0000000
--- a/tikzit-old/src/gtk/NodeStyleEditor.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class NodeStyle;
-
-@interface NodeStyleEditor: NSObject {
- NodeStyle *style;
- GtkTable *table;
- GtkEntry *nameEdit;
- GtkComboBox *shapeNameCombo;
- GtkColorButton *strokeColorButton;
- GtkWidget *makeStrokeTexSafeButton;
- GtkColorButton *fillColorButton;
- GtkWidget *makeFillTexSafeButton;
- GtkAdjustment *scaleAdj;
- BOOL blockSignals;
-}
-
-@property (retain) NodeStyle *style;
-@property (readonly) GtkWidget *widget;
-
-- (id) init;
-
-- (void) selectNameField;
-
-@end
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/NodeStyleEditor.m b/tikzit-old/src/gtk/NodeStyleEditor.m
deleted file mode 100644
index fcf4147..0000000
--- a/tikzit-old/src/gtk/NodeStyleEditor.m
+++ /dev/null
@@ -1,477 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NodeStyleEditor.h"
-#import "NodeStyle.h"
-#import "NodeStyle+Gtk.h"
-#import "Shape.h"
-
-static const guint row_count = 5;
-
-// {{{ Internal interfaces
-// {{{ GTK+ Callbacks
-static void style_name_edit_changed_cb (GtkEditable *widget, NodeStyleEditor *editor);
-static void style_shape_combo_changed_cb (GtkComboBox *widget, NodeStyleEditor *editor);
-static void stroke_color_changed_cb (GtkColorButton *widget, NodeStyleEditor *editor);
-static void fill_color_changed_cb (GtkColorButton *widget, NodeStyleEditor *editor);
-static void make_stroke_safe_button_clicked_cb (GtkButton *widget, NodeStyleEditor *editor);
-static void make_fill_safe_button_clicked_cb (GtkButton *widget, NodeStyleEditor *editor);
-static void scale_adjustment_changed_cb (GtkAdjustment *widget, NodeStyleEditor *editor);
-// }}}
-// {{{ Notifications
-
-@interface NodeStyleEditor (Notifications)
-- (void) shapeDictionaryReplaced:(NSNotification*)n;
-- (void) nameChangedTo:(NSString*)value;
-- (void) shapeNameChangedTo:(NSString*)value;
-- (void) strokeColorChangedTo:(GdkColor)value;
-- (void) makeStrokeColorTexSafe;
-- (void) fillColorChangedTo:(GdkColor)value;
-- (void) makeFillColorTexSafe;
-- (void) scaleChangedTo:(double)value;
-@end
-
-// }}}
-// {{{ Private
-
-@interface NodeStyleEditor (Private)
-- (void) loadShapeNames;
-- (void) setActiveShapeName:(NSString*)name;
-@end
-
-// }}}
-// }}}
-// {{{ API
-
-@implementation NodeStyleEditor
-
-- (void) _addWidget:(GtkWidget*)w withLabel:(gchar *)label atRow:(guint)row {
- NSAssert(row < row_count, @"row_count is wrong!");
-
- GtkWidget *l = gtk_label_new (label);
- gtk_misc_set_alignment (GTK_MISC (l), 0, 0.5);
- gtk_widget_show (l);
- gtk_widget_show (w);
-
- gtk_table_attach (table, l,
- 0, 1, row, row+1, // l, r, t, b
- GTK_FILL, // x opts
- GTK_FILL | GTK_EXPAND, // y opts
- 5, // x padding
- 0); // y padding
-
- gtk_table_attach (table, w,
- 1, 2, row, row+1, // l, r, t, b
- GTK_FILL | GTK_EXPAND, // x opts
- GTK_FILL | GTK_EXPAND, // y opts
- 0, // x padding
- 0); // y padding
-}
-
-- (GtkWidget*) _createMakeColorTexSafeButton:(NSString*)type {
- GtkWidget *b = gtk_button_new ();
- GtkWidget *icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_BUTTON);
- gtk_widget_show (icon);
- gtk_container_add (GTK_CONTAINER (b), icon);
- NSString *ttip = [NSString stringWithFormat:@"The %@ colour is not a predefined TeX colour.\nClick here to choose the nearest TeX-safe colour.", type];
- gtk_widget_set_tooltip_text (b, [ttip UTF8String]);
- return b;
-}
-
-- (id) init {
- self = [super init];
-
- if (self != nil) {
- style = nil;
- table = GTK_TABLE (gtk_table_new (row_count, 2, FALSE));
- gtk_table_set_col_spacings (table, 6);
- gtk_table_set_row_spacings (table, 6);
- gtk_widget_set_sensitive (GTK_WIDGET (table), FALSE);
- blockSignals = NO;
-
- /**
- * Name
- */
- nameEdit = GTK_ENTRY (gtk_entry_new ());
- g_object_ref_sink (nameEdit);
- [self _addWidget:GTK_WIDGET (nameEdit)
- withLabel:"Name"
- atRow:0];
- g_signal_connect (G_OBJECT (nameEdit),
- "changed",
- G_CALLBACK (style_name_edit_changed_cb),
- self);
-
-
- /**
- * Shape
- */
- GtkListStore *store = gtk_list_store_new (1, G_TYPE_STRING);
- shapeNameCombo = GTK_COMBO_BOX (gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)));
- GtkCellRenderer *cellRend = gtk_cell_renderer_text_new ();
- gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (shapeNameCombo),
- cellRend,
- TRUE);
- gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (shapeNameCombo), cellRend, "text", 0);
- g_object_ref_sink (shapeNameCombo);
- [self _addWidget:GTK_WIDGET (shapeNameCombo)
- withLabel:"Shape"
- atRow:1];
- g_signal_connect (G_OBJECT (shapeNameCombo),
- "changed",
- G_CALLBACK (style_shape_combo_changed_cb),
- self);
-
-
- /**
- * Stroke colour
- */
- GtkWidget *strokeBox = gtk_hbox_new (FALSE, 0);
- [self _addWidget:strokeBox
- withLabel:"Stroke colour"
- atRow:2];
- strokeColorButton = GTK_COLOR_BUTTON (gtk_color_button_new ());
- g_object_ref_sink (strokeColorButton);
- gtk_widget_show (GTK_WIDGET (strokeColorButton));
- gtk_box_pack_start (GTK_BOX (strokeBox), GTK_WIDGET (strokeColorButton),
- FALSE, FALSE, 0);
- makeStrokeTexSafeButton = [self _createMakeColorTexSafeButton:@"stroke"];
- g_object_ref_sink (makeStrokeTexSafeButton);
- gtk_box_pack_start (GTK_BOX (strokeBox), makeStrokeTexSafeButton,
- FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (strokeColorButton),
- "color-set",
- G_CALLBACK (stroke_color_changed_cb),
- self);
- g_signal_connect (G_OBJECT (makeStrokeTexSafeButton),
- "clicked",
- G_CALLBACK (make_stroke_safe_button_clicked_cb),
- self);
-
-
- /**
- * Fill colour
- */
- GtkWidget *fillBox = gtk_hbox_new (FALSE, 0);
- [self _addWidget:fillBox
- withLabel:"Fill colour"
- atRow:3];
- fillColorButton = GTK_COLOR_BUTTON (gtk_color_button_new ());
- g_object_ref_sink (fillColorButton);
- gtk_widget_show (GTK_WIDGET (fillColorButton));
- gtk_box_pack_start (GTK_BOX (fillBox), GTK_WIDGET (fillColorButton),
- FALSE, FALSE, 0);
- makeFillTexSafeButton = [self _createMakeColorTexSafeButton:@"fill"];
- g_object_ref_sink (makeFillTexSafeButton);
- gtk_box_pack_start (GTK_BOX (fillBox), makeFillTexSafeButton,
- FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (fillColorButton),
- "color-set",
- G_CALLBACK (fill_color_changed_cb),
- self);
- g_signal_connect (G_OBJECT (makeFillTexSafeButton),
- "clicked",
- G_CALLBACK (make_fill_safe_button_clicked_cb),
- self);
-
-
- /**
- * Scale
- */
- scaleAdj = GTK_ADJUSTMENT (gtk_adjustment_new (
- 1.0, // value
- 0.0, // lower
- 50.0, // upper
- 0.20, // step
- 1.0, // page
- 0.0)); // (irrelevant)
- g_object_ref_sink (scaleAdj);
- GtkWidget *scaleSpin = gtk_spin_button_new (scaleAdj, 0.0, 2);
- [self _addWidget:scaleSpin
- withLabel:"Scale"
- atRow:4];
- g_signal_connect (G_OBJECT (scaleAdj),
- "value-changed",
- G_CALLBACK (scale_adjustment_changed_cb),
- self);
-
- [self loadShapeNames];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(shapeDictionaryReplaced:)
- name:@"ShapeDictionaryReplaced"
- object:[Shape class]];
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (nameEdit);
- g_object_unref (shapeNameCombo);
- g_object_unref (strokeColorButton);
- g_object_unref (makeStrokeTexSafeButton);
- g_object_unref (fillColorButton);
- g_object_unref (makeFillTexSafeButton);
- g_object_unref (scaleAdj);
- g_object_unref (table);
- [style release];
-
- [super dealloc];
-}
-
-- (NodeStyle*) style {
- return style;
-}
-
-- (void) setStyle:(NodeStyle*)s {
- blockSignals = YES;
- NodeStyle *oldStyle = style;
- style = [s retain];
-
- if (style != nil) {
- gtk_widget_set_sensitive (GTK_WIDGET (table), TRUE);
-
- gtk_entry_set_text(nameEdit, [[style name] UTF8String]);
-
- [self setActiveShapeName:[style shapeName]];
-
- GdkColor c = [style strokeColor];
- gtk_color_button_set_color(strokeColorButton, &c);
-
- gtk_widget_set_visible (makeStrokeTexSafeButton, ([[style strokeColorRGB] name] == nil));
-
- c = [style fillColor];
- gtk_color_button_set_color(fillColorButton, &c);
-
- gtk_widget_set_visible (makeFillTexSafeButton, ([[style fillColorRGB] name] == nil));
-
- gtk_adjustment_set_value(scaleAdj, [style scale]);
- } else {
- gtk_entry_set_text(nameEdit, "");
- [self setActiveShapeName:nil];
- gtk_widget_set_visible (makeStrokeTexSafeButton, FALSE);
- gtk_widget_set_visible (makeFillTexSafeButton, FALSE);
- gtk_adjustment_set_value(scaleAdj, 1.0);
- gtk_widget_set_sensitive (GTK_WIDGET (table), FALSE);
- }
-
- [oldStyle release];
- blockSignals = NO;
-}
-
-- (GtkWidget*) widget {
- return GTK_WIDGET (table);
-}
-
-- (void) selectNameField {
- gtk_widget_grab_focus (GTK_WIDGET (nameEdit));
- gtk_editable_select_region (GTK_EDITABLE (nameEdit), 0, -1);
-}
-
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation NodeStyleEditor (Notifications)
-- (void) shapeDictionaryReplaced:(NSNotification*)n {
- blockSignals = YES;
-
- [self loadShapeNames];
- [self setActiveShapeName:[style shapeName]];
-
- blockSignals = NO;
-}
-
-- (void) nameChangedTo:(NSString*)value {
- [style setName:value];
-}
-
-- (void) shapeNameChangedTo:(NSString*)value {
- [style setShapeName:value];
-}
-
-- (void) strokeColorChangedTo:(GdkColor)value {
- [style setStrokeColor:value];
- gtk_widget_set_visible (makeStrokeTexSafeButton,
- [[style strokeColorRGB] name] == nil);
-}
-
-- (void) makeStrokeColorTexSafe {
- if (style != nil) {
- [[style strokeColorRGB] setToClosestHashed];
- GdkColor color = [style strokeColor];
- gtk_color_button_set_color(strokeColorButton, &color);
- gtk_widget_set_visible (makeStrokeTexSafeButton, FALSE);
- }
-}
-
-- (void) fillColorChangedTo:(GdkColor)value {
- [style setFillColor:value];
- gtk_widget_set_visible (makeFillTexSafeButton,
- [[style fillColorRGB] name] == nil);
-}
-
-- (void) makeFillColorTexSafe {
- if (style != nil) {
- [[style fillColorRGB] setToClosestHashed];
- GdkColor color = [style fillColor];
- gtk_color_button_set_color(fillColorButton, &color);
- gtk_widget_set_visible (makeFillTexSafeButton, FALSE);
- }
-}
-
-- (void) scaleChangedTo:(double)value {
- [style setScale:value];
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation NodeStyleEditor (Private)
-- (BOOL) signalsBlocked { return blockSignals; }
-
-- (void) loadShapeNames {
- blockSignals = YES;
-
- gtk_combo_box_set_active (shapeNameCombo, -1);
-
- GtkListStore *list = GTK_LIST_STORE (gtk_combo_box_get_model (shapeNameCombo));
- gtk_list_store_clear (list);
-
- NSEnumerator *en = [[Shape shapeDictionary] keyEnumerator];
- NSString *shapeName;
- GtkTreeIter iter;
- while ((shapeName = [en nextObject]) != nil) {
- gtk_list_store_append (list, &iter);
- gtk_list_store_set (list, &iter, 0, [shapeName UTF8String], -1);
- }
-
- blockSignals = NO;
-}
-
-- (void) setActiveShapeName:(NSString*)name {
- if (name == nil) {
- gtk_combo_box_set_active (shapeNameCombo, -1);
- return;
- }
- const gchar *shapeName = [name UTF8String];
-
- GtkTreeModel *model = gtk_combo_box_get_model (shapeNameCombo);
- GtkTreeIter iter;
- if (gtk_tree_model_get_iter_first (model, &iter)) {
- do {
- gchar *rowShapeName;
- gtk_tree_model_get (model, &iter, 0, &rowShapeName, -1);
- if (g_strcmp0 (shapeName, rowShapeName) == 0) {
- gtk_combo_box_set_active_iter (shapeNameCombo, &iter);
- g_free (rowShapeName);
- return;
- }
- g_free (rowShapeName);
- } while (gtk_tree_model_iter_next (model, &iter));
- }
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void style_name_edit_changed_cb (GtkEditable *widget, NodeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- const gchar *contents = gtk_entry_get_text (GTK_ENTRY (widget));
- [editor nameChangedTo:[NSString stringWithUTF8String:contents]];
-
- [pool drain];
-}
-
-static void style_shape_combo_changed_cb (GtkComboBox *widget, NodeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GtkTreeIter iter;
- gtk_combo_box_get_active_iter (widget, &iter);
- gchar *shapeName = NULL;
- gtk_tree_model_get (gtk_combo_box_get_model (widget), &iter, 0, &shapeName, -1);
- [editor shapeNameChangedTo:[NSString stringWithUTF8String:shapeName]];
- g_free (shapeName);
-
- [pool drain];
-}
-
-static void stroke_color_changed_cb (GtkColorButton *widget, NodeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GdkColor color;
- gtk_color_button_get_color (widget, &color);
- [editor strokeColorChangedTo:color];
-
- [pool drain];
-}
-
-static void fill_color_changed_cb (GtkColorButton *widget, NodeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- GdkColor color;
- gtk_color_button_get_color (widget, &color);
- [editor fillColorChangedTo:color];
-
- [pool drain];
-}
-
-static void make_stroke_safe_button_clicked_cb (GtkButton *widget, NodeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor makeStrokeColorTexSafe];
- [pool drain];
-}
-
-static void make_fill_safe_button_clicked_cb (GtkButton *widget, NodeStyleEditor *editor) {
- if ([editor signalsBlocked])
- return;
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor makeFillColorTexSafe];
- [pool drain];
-}
-
-static void scale_adjustment_changed_cb (GtkAdjustment *adj, NodeStyleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor scaleChangedTo:gtk_adjustment_get_value (adj)];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/NodeStyleSelector.h b/tikzit-old/src/gtk/NodeStyleSelector.h
deleted file mode 100644
index a699dc8..0000000
--- a/tikzit-old/src/gtk/NodeStyleSelector.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class NodeStyle;
-@class NodeStylesModel;
-@class StyleManager;
-
-@interface NodeStyleSelector: NSObject {
- NodeStylesModel *model;
- GtkIconView *view;
-}
-
-/*!
- @property widget
- @brief The GTK widget
- */
-@property (readonly) GtkWidget *widget;
-
-/*!
- @property model
- @brief The model to use.
- */
-@property (retain) NodeStylesModel *model;
-
-/*!
- @property selectedStyle
- @brief The selected style.
-
- When this changes, a SelectedStyleChanged notification will be posted
- */
-@property (assign) NodeStyle *selectedStyle;
-
-/*!
- * Initialise with a new model for the given style manager
- */
-- (id) initWithStyleManager:(StyleManager*)manager;
-/*!
- * Initialise with the given model
- */
-- (id) initWithModel:(NodeStylesModel*)model;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStyleSelector.m b/tikzit-old/src/gtk/NodeStyleSelector.m
deleted file mode 100644
index 14cdc75..0000000
--- a/tikzit-old/src/gtk/NodeStyleSelector.m
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NodeStyleSelector.h"
-
-#import "NodeStylesModel.h"
-
-// {{{ Internal interfaces
-static void selection_changed_cb (GtkIconView *widget, NodeStyleSelector *mgr);
-// }}}
-// {{{ API
-
-@implementation NodeStyleSelector
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)m {
- return [self initWithModel:[NodeStylesModel modelWithStyleManager:m]];
-}
-- (id) initWithModel:(NodeStylesModel*)m {
- self = [super init];
-
- if (self) {
- model = [m retain];
-
- view = GTK_ICON_VIEW (gtk_icon_view_new ());
- g_object_ref_sink (view);
-
- gtk_icon_view_set_model (view, [model model]);
- gtk_icon_view_set_pixbuf_column (view, NODE_STYLES_ICON_COL);
- gtk_icon_view_set_tooltip_column (view, NODE_STYLES_NAME_COL);
- gtk_icon_view_set_selection_mode (view, GTK_SELECTION_SINGLE);
-
- g_signal_connect (G_OBJECT (view),
- "selection-changed",
- G_CALLBACK (selection_changed_cb),
- self);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (view);
- [model release];
-
- [super dealloc];
-}
-
-- (NodeStylesModel*) model {
- return model;
-}
-
-- (void) setModel:(NodeStylesModel*)m {
- if (m == model)
- return;
-
- NodeStylesModel *oldModel = model;
- model = [m retain];
- gtk_icon_view_set_model (view, [model model]);
- [oldModel release];
-}
-
-- (GtkWidget*) widget {
- return GTK_WIDGET (view);
-}
-
-- (NodeStyle*) selectedStyle {
- GList *list = gtk_icon_view_get_selected_items (view);
- if (!list) {
- return nil;
- }
- if (list->next != NULL) {
- NSLog(@"Multiple selected items in NodeStyleSelector!");
- }
-
- GtkTreePath *path = (GtkTreePath*) list->data;
- NodeStyle *style = [model styleFromPath:path];
-
- g_list_foreach (list, (GFunc)gtk_tree_path_free, NULL);
- g_list_free (list);
-
- return style;
-}
-
-- (void) setSelectedStyle:(NodeStyle*)style {
- if (style == nil) {
- gtk_icon_view_unselect_all (view);
- return;
- }
-
- GtkTreePath *path = [model pathFromStyle:style];
- if (path) {
- gtk_icon_view_unselect_all (view);
- gtk_icon_view_select_path (view, path);
- gtk_tree_path_free (path);
- }
-}
-
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void selection_changed_cb (GtkIconView *view, NodeStyleSelector *mgr) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"SelectedStyleChanged"
- object:mgr];
-
- [pool drain];
-}
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/NodeStylesModel.h b/tikzit-old/src/gtk/NodeStylesModel.h
deleted file mode 100644
index a048560..0000000
--- a/tikzit-old/src/gtk/NodeStylesModel.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class NodeStyle;
-@class StyleManager;
-
-enum {
- NODE_STYLES_NAME_COL = 0,
- NODE_STYLES_ICON_COL,
- NODE_STYLES_PTR_COL,
- NODE_STYLES_N_COLS
-};
-
-@interface NodeStylesModel: NSObject {
- GtkListStore *store;
- StyleManager *styleManager;
-}
-
-/*!
- @property model
- @brief The GTK+ tree model
- */
-@property (readonly) GtkTreeModel *model;
-
-/*!
- @property manager
- @brief The StyleManager to use.
- */
-@property (retain) StyleManager *styleManager;
-
-/*!
- * Initialise with the given style manager
- */
-- (id) initWithStyleManager:(StyleManager*)m;
-
-+ (id) modelWithStyleManager:(StyleManager*)m;
-
-- (NodeStyle*) styleFromPath:(GtkTreePath*)path;
-- (GtkTreePath*) pathFromStyle:(NodeStyle*)style;
-- (NodeStyle*) styleFromIter:(GtkTreeIter*)iter;
-- (GtkTreeIter*) iterFromStyle:(NodeStyle*)style;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/NodeStylesModel.m b/tikzit-old/src/gtk/NodeStylesModel.m
deleted file mode 100644
index 3cc5771..0000000
--- a/tikzit-old/src/gtk/NodeStylesModel.m
+++ /dev/null
@@ -1,381 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NodeStylesModel.h"
-
-#import "CairoRenderContext.h"
-#import "NodeStyle.h"
-#import "Shape.h"
-#import "Shape+Render.h"
-#import "ShapeNames.h"
-#import "StyleManager.h"
-
-#import "gtkhelpers.h"
-
-#import <gdk-pixbuf/gdk-pixbuf.h>
-
-// {{{ Internal interfaces
-
-@interface NodeStylesModel (Notifications)
-- (void) nodeStylesReplaced:(NSNotification*)notification;
-- (void) nodeStyleAdded:(NSNotification*)notification;
-- (void) nodeStyleRemoved:(NSNotification*)notification;
-- (void) shapeDictionaryReplaced:(NSNotification*)n;
-- (void) observeValueForKeyPath:(NSString*)keyPath
- ofObject:(id)object
- change:(NSDictionary*)change
- context:(void*)context;
-@end
-
-@interface NodeStylesModel (Private)
-- (cairo_surface_t*) createNodeIconSurface;
-- (GdkPixbuf*) pixbufOfNodeInStyle:(NodeStyle*)style;
-- (GdkPixbuf*) pixbufOfNodeInStyle:(NodeStyle*)style usingSurface:(cairo_surface_t*)surface;
-- (void) addNodeStyle:(NodeStyle*)style;
-- (void) addNodeStyle:(NodeStyle*)style usingSurface:(cairo_surface_t*)surface;
-- (void) observeNodeStyle:(NodeStyle*)style;
-- (void) stopObservingNodeStyle:(NodeStyle*)style;
-- (void) clearNodeStylesModel;
-- (void) reloadNodeStyles;
-@end
-
-// }}}
-// {{{ API
-
-@implementation NodeStylesModel
-
-+ (id) modelWithStyleManager:(StyleManager*)m {
- return [[[self alloc] initWithStyleManager:m] autorelease];
-}
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)m {
- self = [super init];
-
- if (self) {
- store = gtk_list_store_new (NODE_STYLES_N_COLS,
- G_TYPE_STRING,
- GDK_TYPE_PIXBUF,
- G_TYPE_POINTER);
- g_object_ref_sink (store);
-
- [self setStyleManager:m];
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(shapeDictionaryReplaced:)
- name:@"ShapeDictionaryReplaced"
- object:[Shape class]];
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [self clearNodeStylesModel];
- g_object_unref (store);
- [styleManager release];
-
- [super dealloc];
-}
-
-- (StyleManager*) styleManager {
- return styleManager;
-}
-
-- (void) setStyleManager:(StyleManager*)m {
- if (m == nil) {
- [NSException raise:NSInvalidArgumentException format:@"Style manager cannot be nil"];
- }
- [m retain];
-
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:styleManager];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeStylesReplaced:)
- name:@"NodeStylesReplaced"
- object:m];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeStyleAdded:)
- name:@"NodeStyleAdded"
- object:m];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeStyleRemoved:)
- name:@"NodeStyleRemoved"
- object:m];
-
- [styleManager release];
- styleManager = m;
-
- [self reloadNodeStyles];
-}
-
-- (GtkTreeModel*) model {
- return GTK_TREE_MODEL (store);
-}
-
-- (NodeStyle*) styleFromPath:(GtkTreePath*)path {
- GtkTreeIter iter;
- gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &iter, path);
- NodeStyle *style = nil;
- gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, NODE_STYLES_PTR_COL, &style, -1);
- return style;
-}
-
-- (GtkTreePath*) pathFromStyle:(NodeStyle*)style {
- GtkTreeModel *m = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (m, &row)) {
- do {
- NodeStyle *rowStyle;
- gtk_tree_model_get (m, &row, NODE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- return gtk_tree_model_get_path (m, &row);
- }
- } while (gtk_tree_model_iter_next (m, &row));
- }
- return NULL;
-}
-
-- (NodeStyle*) styleFromIter:(GtkTreeIter*)iter {
- NodeStyle *style = nil;
- gtk_tree_model_get (GTK_TREE_MODEL (store), iter, NODE_STYLES_PTR_COL, &style, -1);
- return style;
-}
-
-- (GtkTreeIter*) iterFromStyle:(NodeStyle*)style {
- GtkTreeModel *m = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (m, &row)) {
- do {
- NodeStyle *rowStyle;
- gtk_tree_model_get (m, &row, NODE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- return gtk_tree_iter_copy (&row);
- }
- } while (gtk_tree_model_iter_next (m, &row));
- }
- return NULL;
-}
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation NodeStylesModel (Notifications)
-
-- (void) nodeStylesReplaced:(NSNotification*)notification {
- [self reloadNodeStyles];
-}
-
-- (void) nodeStyleAdded:(NSNotification*)notification {
- [self addNodeStyle:[[notification userInfo] objectForKey:@"style"]];
-}
-
-- (void) nodeStyleRemoved:(NSNotification*)notification {
- NodeStyle *style = [[notification userInfo] objectForKey:@"style"];
-
- GtkTreeModel *model = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (model, &row)) {
- do {
- NodeStyle *rowStyle;
- gtk_tree_model_get (model, &row, NODE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- gtk_list_store_remove (store, &row);
- [self stopObservingNodeStyle:rowStyle];
- [rowStyle release];
- return;
- }
- } while (gtk_tree_model_iter_next (model, &row));
- }
-}
-
-- (void) observeValueForKeyPath:(NSString*)keyPath
- ofObject:(id)object
- change:(NSDictionary*)change
- context:(void*)context
-{
- if ([object class] == [NodeStyle class]) {
- NodeStyle *style = object;
-
- GtkTreeModel *model = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (model, &row)) {
- do {
- NodeStyle *rowStyle;
- gtk_tree_model_get (model, &row, NODE_STYLES_PTR_COL, &rowStyle, -1);
- if (style == rowStyle) {
- if ([@"name" isEqual:keyPath]) {
- gtk_list_store_set (store, &row, NODE_STYLES_NAME_COL, [[style name] UTF8String], -1);
- } else {
- GdkPixbuf *pixbuf = [self pixbufOfNodeInStyle:style];
- gtk_list_store_set (store, &row, NODE_STYLES_ICON_COL, pixbuf, -1);
- g_object_unref (pixbuf);
- }
- }
- } while (gtk_tree_model_iter_next (model, &row));
- }
- }
-}
-
-- (void) shapeDictionaryReplaced:(NSNotification*)n {
- [self reloadNodeStyles];
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation NodeStylesModel (Private)
-- (cairo_surface_t*) createNodeIconSurface {
- return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 24, 24);
-}
-
-- (GdkPixbuf*) pixbufOfNodeInStyle:(NodeStyle*)style {
- cairo_surface_t *surface = [self createNodeIconSurface];
- GdkPixbuf *pixbuf = [self pixbufOfNodeInStyle:style usingSurface:surface];
- cairo_surface_destroy (surface);
- return pixbuf;
-}
-
-- (GdkPixbuf*) pixbufOfNodeInStyle:(NodeStyle*)style usingSurface:(cairo_surface_t*)surface {
- Shape *shape = [Shape shapeForName:[style shapeName]];
-
- int width = cairo_image_surface_get_width (surface);
- int height = cairo_image_surface_get_height (surface);
- NSRect pixbufBounds = NSMakeRect(0.0, 0.0, width, height);
- const CGFloat lineWidth = [style strokeThickness];
- Transformer *shapeTrans = [Transformer transformerToFit:[shape boundingRect]
- intoScreenRect:NSInsetRect(pixbufBounds, lineWidth, lineWidth)
- flippedAboutXAxis:YES];
- if ([style scale] < 1.0)
- [shapeTrans setScale:[style scale] * [shapeTrans scale]];
-
- CairoRenderContext *context = [[CairoRenderContext alloc] initForSurface:surface];
- [context clearSurface];
- [shape drawPathWithTransform:shapeTrans andContext:context];
- [context setLineWidth:lineWidth];
- [context strokePathWithColor:[[style strokeColorRGB] rColor]
- andFillWithColor:[[style fillColorRGB] rColor]];
- [context release];
-
- return pixbuf_get_from_surface (surface);
-}
-
-- (void) addNodeStyle:(NodeStyle*)style usingSurface:(cairo_surface_t*)surface {
- GtkTreeIter iter;
- gtk_list_store_append (store, &iter);
-
- GdkPixbuf *pixbuf = [self pixbufOfNodeInStyle:style usingSurface:surface];
- gtk_list_store_set (store, &iter,
- NODE_STYLES_NAME_COL, [[style name] UTF8String],
- NODE_STYLES_ICON_COL, pixbuf,
- NODE_STYLES_PTR_COL, (gpointer)[style retain],
- -1);
- g_object_unref (pixbuf);
- [self observeNodeStyle:style];
-}
-
-- (void) addNodeStyle:(NodeStyle*)style {
- cairo_surface_t *surface = [self createNodeIconSurface];
- [self addNodeStyle:style usingSurface:surface];
- cairo_surface_destroy (surface);
-}
-
-- (void) observeNodeStyle:(NodeStyle*)style {
- [style addObserver:self
- forKeyPath:@"name"
- options:NSKeyValueObservingOptionNew
- context:NULL];
- [style addObserver:self
- forKeyPath:@"strokeThickness"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"strokeColorRGB.red"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"strokeColorRGB.green"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"strokeColorRGB.blue"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"fillColorRGB.red"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"fillColorRGB.green"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"fillColorRGB.blue"
- options:0
- context:NULL];
- [style addObserver:self
- forKeyPath:@"shapeName"
- options:0
- context:NULL];
-}
-
-- (void) stopObservingNodeStyle:(NodeStyle*)style {
- [style removeObserver:self forKeyPath:@"name"];
- [style removeObserver:self forKeyPath:@"strokeThickness"];
- [style removeObserver:self forKeyPath:@"strokeColorRGB.red"];
- [style removeObserver:self forKeyPath:@"strokeColorRGB.green"];
- [style removeObserver:self forKeyPath:@"strokeColorRGB.blue"];
- [style removeObserver:self forKeyPath:@"fillColorRGB.red"];
- [style removeObserver:self forKeyPath:@"fillColorRGB.green"];
- [style removeObserver:self forKeyPath:@"fillColorRGB.blue"];
- [style removeObserver:self forKeyPath:@"shapeName"];
-}
-
-- (void) clearNodeStylesModel {
- GtkTreeModel *model = GTK_TREE_MODEL (store);
- GtkTreeIter row;
- if (gtk_tree_model_get_iter_first (model, &row)) {
- do {
- NodeStyle *rowStyle;
- gtk_tree_model_get (model, &row, NODE_STYLES_PTR_COL, &rowStyle, -1);
- [self stopObservingNodeStyle:rowStyle];
- [rowStyle release];
- } while (gtk_tree_model_iter_next (model, &row));
- }
- gtk_list_store_clear (store);
-}
-
-- (void) reloadNodeStyles {
- [self clearNodeStylesModel];
- cairo_surface_t *surface = [self createNodeIconSurface];
- for (NodeStyle *style in [styleManager nodeStyles]) {
- [self addNodeStyle:style usingSurface:surface];
- }
- cairo_surface_destroy (surface);
-}
-@end
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/NodeStylesPalette.h b/tikzit-old/src/gtk/NodeStylesPalette.h
deleted file mode 100644
index ac712ea..0000000
--- a/tikzit-old/src/gtk/NodeStylesPalette.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class StyleManager;
-@class NodeStyleSelector;
-@class NodeStyleEditor;
-
-@interface NodeStylesPalette: NSObject {
- NodeStyleSelector *selector;
- NodeStyleEditor *editor;
-
- GtkWidget *palette;
-
- GtkWidget *removeStyleButton;
- GtkWidget *applyStyleButton;
- GtkWidget *clearStyleButton;
-}
-
-@property (retain) StyleManager *styleManager;
-@property (readonly) GtkWidget *widget;
-
-- (id) initWithManager:(StyleManager*)m;
-
-@end
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/NodeStylesPalette.m b/tikzit-old/src/gtk/NodeStylesPalette.m
deleted file mode 100644
index e28edbb..0000000
--- a/tikzit-old/src/gtk/NodeStylesPalette.m
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "NodeStylesPalette.h"
-
-#import "NodeStyleSelector.h"
-#import "NodeStyleEditor.h"
-#import "NodeStylesModel.h"
-#import "StyleManager.h"
-
-// {{{ Internal interfaces
-// {{{ GTK+ Callbacks
-static void add_style_button_cb (GtkButton *widget, NodeStylesPalette *palette);
-static void remove_style_button_cb (GtkButton *widget, NodeStylesPalette *palette);
-// }}}
-// {{{ Notifications
-
-@interface NodeStylesPalette (Notifications)
-- (void) selectedStyleChanged:(NSNotification*)notification;
-@end
-
-// }}}
-// {{{ Private
-
-@interface NodeStylesPalette (Private)
-- (void) updateButtonState;
-- (void) removeSelectedStyle;
-- (void) addStyle;
-@end
-
-// }}}
-// }}}
-// {{{ API
-
-@implementation NodeStylesPalette
-
-@synthesize widget=palette;
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithManager:(StyleManager*)m {
- self = [super init];
-
- if (self) {
- selector = [[NodeStyleSelector alloc] initWithStyleManager:m];
- editor = [[NodeStyleEditor alloc] init];
-
- palette = gtk_vbox_new (FALSE, 6);
- gtk_container_set_border_width (GTK_CONTAINER (palette), 6);
- g_object_ref_sink (palette);
-
- GtkWidget *mainBox = gtk_hbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (palette), mainBox, FALSE, FALSE, 0);
- gtk_widget_show (mainBox);
-
- GtkWidget *selectorScroller = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (selectorScroller),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
- GtkWidget *selectorFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (selectorScroller), [selector widget]);
- gtk_container_add (GTK_CONTAINER (selectorFrame), selectorScroller);
- gtk_box_pack_start (GTK_BOX (mainBox), selectorFrame, TRUE, TRUE, 0);
- gtk_widget_show (selectorScroller);
- gtk_widget_show (selectorFrame);
- gtk_widget_show ([selector widget]);
-
- gtk_box_pack_start (GTK_BOX (mainBox), [editor widget], TRUE, TRUE, 0);
- gtk_widget_show ([editor widget]);
-
- GtkBox *buttonBox = GTK_BOX (gtk_hbox_new(FALSE, 0));
- gtk_box_pack_start (GTK_BOX (palette), GTK_WIDGET (buttonBox), FALSE, FALSE, 0);
-
- GtkWidget *addStyleButton = gtk_button_new ();
- gtk_widget_set_tooltip_text (addStyleButton, "Add a new style");
- GtkWidget *addIcon = gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (addStyleButton), addIcon);
- gtk_box_pack_start (buttonBox, addStyleButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (addStyleButton),
- "clicked",
- G_CALLBACK (add_style_button_cb),
- self);
-
- removeStyleButton = gtk_button_new ();
- g_object_ref_sink (removeStyleButton);
- gtk_widget_set_tooltip_text (removeStyleButton, "Delete selected style");
- GtkWidget *removeIcon = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (removeStyleButton), removeIcon);
- gtk_box_pack_start (buttonBox, removeStyleButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (removeStyleButton),
- "clicked",
- G_CALLBACK (remove_style_button_cb),
- self);
-
- gtk_widget_show_all (GTK_WIDGET (buttonBox));
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(selectedStyleChanged:)
- name:@"SelectedStyleChanged"
- object:selector];
-
- [self updateButtonState];
- }
-
- return self;
-}
-
-- (StyleManager*) styleManager {
- return [[selector model] styleManager];
-}
-
-- (void) setStyleManager:(StyleManager*)m {
- [[selector model] setStyleManager:m];
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
- [editor release];
- [selector release];
- g_object_unref (palette);
- g_object_unref (removeStyleButton);
-
- [super dealloc];
-}
-
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation NodeStylesPalette (Notifications)
-- (void) selectedStyleChanged:(NSNotification*)notification {
- [editor setStyle:[selector selectedStyle]];
- [self updateButtonState];
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation NodeStylesPalette (Private)
-- (void) updateButtonState {
- gboolean hasStyleSelection = [selector selectedStyle] != nil;
-
- gtk_widget_set_sensitive (removeStyleButton, hasStyleSelection);
-}
-
-- (void) removeSelectedStyle {
- NodeStyle *style = [selector selectedStyle];
- if (style)
- [[[selector model] styleManager] removeNodeStyle:style];
-}
-
-- (void) addStyle {
- NodeStyle *newStyle = [NodeStyle defaultNodeStyleWithName:@"newstyle"];
- [[self styleManager] addNodeStyle:newStyle];
- [selector setSelectedStyle:newStyle];
- [editor selectNameField];
-}
-
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void add_style_button_cb (GtkButton *widget, NodeStylesPalette *palette) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [palette addStyle];
- [pool drain];
-}
-
-static void remove_style_button_cb (GtkButton *widget, NodeStylesPalette *palette) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [palette removeSelectedStyle];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/PreambleEditor.h b/tikzit-old/src/gtk/PreambleEditor.h
deleted file mode 100644
index f181446..0000000
--- a/tikzit-old/src/gtk/PreambleEditor.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Preambles;
-
-@interface PreambleEditor: NSObject {
- Preambles *preambles;
-
- // we don't keep any refs, as we control
- // the top window
- GtkWindow *parentWindow;
- GtkWindow *window;
- GtkListStore *preambleListStore;
- GtkTreeView *preambleSelector;
- GtkTextView *preambleView;
- BOOL blockSignals;
- BOOL adding;
-}
-
-- (id) initWithPreambles:(Preambles*)p;
-
-- (void) setParentWindow:(GtkWindow*)parent;
-
-- (Preambles*) preambles;
-
-- (void) present;
-- (void) show;
-- (void) hide;
-- (BOOL) isVisible;
-- (void) setVisible:(BOOL)visible;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/PreambleEditor.m b/tikzit-old/src/gtk/PreambleEditor.m
deleted file mode 100644
index d1f72ee..0000000
--- a/tikzit-old/src/gtk/PreambleEditor.m
+++ /dev/null
@@ -1,568 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "PreambleEditor.h"
-
-#import "Application.h"
-#import "Preambles.h"
-#import <gdk/gdk.h>
-
-enum {
- NAME_COLUMN,
- IS_CUSTOM_COLUMN,
- N_COLUMNS
-};
-
-// {{{ Internal interfaces
-// {{{ Signals
-static gboolean window_delete_event_cb (GtkWidget *widget,
- GdkEvent *event,
- PreambleEditor *editor);
-static gboolean window_focus_out_event_cb (GtkWidget *widget,
- GdkEvent *event,
- PreambleEditor *editor);
-static void close_button_clicked_cb (GtkButton *widget, PreambleEditor *editor);
-static void add_button_clicked_cb (GtkButton *widget, PreambleEditor *editor);
-static void remove_button_clicked_cb (GtkButton *widget, PreambleEditor *editor);
-/*
-static void undo_button_clicked_cb (GtkButton *widget, PreambleEditor *editor);
-static void redo_button_clicked_cb (GtkButton *widget, PreambleEditor *editor);
-*/
-static void preamble_name_edited_cb (GtkCellRendererText *renderer,
- gchar *path,
- gchar *new_text,
- PreambleEditor *editor);
-static void preamble_selection_changed_cb (GtkTreeSelection *treeselection,
- PreambleEditor *editor);
-// }}}
-
-@interface PreambleEditor (Private)
-- (void) loadUi;
-- (void) save;
-- (void) revert;
-- (void) update;
-- (void) fillListStore;
-- (BOOL) isDefaultPreambleSelected;
-- (NSString*) selectedPreambleName;
-- (void) addPreamble;
-- (void) deletePreamble;
-- (void) renamePreambleAtPath:(gchar*)path to:(gchar*)newValue;
-- (void) nodeStylePropertyChanged:(NSNotification*)notification;
-- (void) edgeStylePropertyChanged:(NSNotification*)notification;
-@end
-
-// }}}
-// {{{ API
-
-@implementation PreambleEditor
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithPreambles:(Preambles*)p {
- self = [super init];
-
- if (self) {
- preambles = [p retain];
- parentWindow = NULL;
- window = NULL;
- preambleView = NULL;
- preambleSelector = NULL;
- blockSignals = NO;
- adding = NO;
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeStylePropertyChanged:)
- name:@"NodeStylePropertyChanged"
- object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeStylePropertyChanged:)
- name:@"EdgeStylePropertyChanged"
- object:nil];
- }
-
- return self;
-}
-
-- (Preambles*) preambles {
- return preambles;
-}
-
-- (void) setParentWindow:(GtkWindow*)parent {
- GtkWindow *oldParent = parentWindow;
-
- if (parentWindow)
- g_object_ref (parentWindow);
- parentWindow = parent;
- if (oldParent)
- g_object_unref (oldParent);
-
- if (window) {
- gtk_window_set_transient_for (window, parentWindow);
- }
-}
-
-- (void) present {
- [self loadUi];
- gtk_window_present (GTK_WINDOW (window));
- [self revert];
-}
-
-- (void) show {
- [self loadUi];
- gtk_widget_show (GTK_WIDGET (window));
- [self revert];
-}
-
-- (void) hide {
- if (!window) {
- return;
- }
- [self save];
- gtk_widget_hide (GTK_WIDGET (window));
-}
-
-- (BOOL) isVisible {
- if (!window) {
- return NO;
- }
- gboolean visible;
- g_object_get (G_OBJECT (window), "visible", &visible, NULL);
- return visible ? YES : NO;
-}
-
-- (void) setVisible:(BOOL)visible {
- if (visible) {
- [self show];
- } else {
- [self hide];
- }
-}
-
-- (void) dealloc {
- [preambles release];
- preambles = nil;
- if (window) {
- gtk_widget_destroy (GTK_WIDGET (window));
- window = NULL;
- }
- if (parentWindow) {
- g_object_ref (parentWindow);
- }
-
- [super dealloc];
-}
-
-@end
-
-// }}}
-// {{{ Private
-
-@implementation PreambleEditor (Private)
-- (GtkWidget*) createPreambleList {
- preambleListStore = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_BOOLEAN);
- preambleSelector = GTK_TREE_VIEW (gtk_tree_view_new_with_model (
- GTK_TREE_MODEL (preambleListStore)));
- gtk_widget_set_size_request (GTK_WIDGET (preambleSelector), 150, -1);
- gtk_tree_view_set_headers_visible (preambleSelector, FALSE);
-
- GtkCellRenderer *renderer;
- GtkTreeViewColumn *column;
-
- renderer = gtk_cell_renderer_text_new ();
- column = gtk_tree_view_column_new_with_attributes ("Preamble",
- renderer,
- "text", NAME_COLUMN,
- "editable", IS_CUSTOM_COLUMN,
- NULL);
- gtk_tree_view_append_column (preambleSelector, column);
- g_signal_connect (G_OBJECT (renderer),
- "edited",
- G_CALLBACK (preamble_name_edited_cb),
- self);
-
- GtkWidget *listScroller = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (listScroller),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
- gtk_container_add (GTK_CONTAINER (listScroller),
- GTK_WIDGET (preambleSelector));
-
- [self fillListStore];
-
- GtkTreeSelection *sel = gtk_tree_view_get_selection (preambleSelector);
- gtk_tree_selection_set_mode (sel, GTK_SELECTION_BROWSE);
- g_signal_connect (G_OBJECT (sel),
- "changed",
- G_CALLBACK (preamble_selection_changed_cb),
- self);
-
- return listScroller;
-}
-
-- (void) loadUi {
- if (window) {
- return;
- }
-
- window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
- gtk_window_set_title (window, "Preamble editor");
- gtk_window_set_position (window, GTK_WIN_POS_CENTER_ON_PARENT);
- gtk_window_set_default_size (window, 600, 400);
- gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DIALOG);
- if (parentWindow) {
- gtk_window_set_transient_for (window, parentWindow);
- }
- GdkEventMask mask;
- g_object_get (G_OBJECT (window), "events", &mask, NULL);
- mask |= GDK_FOCUS_CHANGE_MASK;
- g_object_set (G_OBJECT (window), "events", mask, NULL);
- g_signal_connect (window,
- "delete-event",
- G_CALLBACK (window_delete_event_cb),
- self);
- g_signal_connect (window,
- "focus-out-event",
- G_CALLBACK (window_focus_out_event_cb),
- self);
-
- GtkWidget *mainBox = gtk_vbox_new (FALSE, 18);
- gtk_container_set_border_width (GTK_CONTAINER (mainBox), 12);
- gtk_container_add (GTK_CONTAINER (window), mainBox);
-
- GtkPaned *paned = GTK_PANED (gtk_hpaned_new ());
- gtk_box_pack_start (GTK_BOX (mainBox),
- GTK_WIDGET (paned),
- TRUE, TRUE, 0);
-
- GtkWidget *listWidget = [self createPreambleList];
- GtkWidget *listFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (listFrame), listWidget);
-
- GtkBox *listBox = GTK_BOX (gtk_vbox_new (FALSE, 6));
- gtk_box_pack_start (listBox, listFrame, TRUE, TRUE, 0);
-
- GtkContainer *listButtonBox = GTK_CONTAINER (gtk_hbox_new (FALSE, 6));
- gtk_box_pack_start (listBox, GTK_WIDGET (listButtonBox), FALSE, TRUE, 0);
- GtkWidget *addButton = gtk_button_new_from_stock (GTK_STOCK_ADD);
- g_signal_connect (addButton,
- "clicked",
- G_CALLBACK (add_button_clicked_cb),
- self);
- gtk_container_add (listButtonBox, addButton);
- GtkWidget *removeButton = gtk_button_new_from_stock (GTK_STOCK_REMOVE);
- g_signal_connect (removeButton,
- "clicked",
- G_CALLBACK (remove_button_clicked_cb),
- self);
- gtk_container_add (listButtonBox, removeButton);
-
- gtk_paned_pack1 (paned, GTK_WIDGET (listBox), FALSE, TRUE);
-
- preambleView = GTK_TEXT_VIEW (gtk_text_view_new ());
- gtk_text_view_set_left_margin (preambleView, 3);
- gtk_text_view_set_right_margin (preambleView, 3);
- GtkWidget *scroller = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroller),
- GTK_POLICY_AUTOMATIC, // horiz
- GTK_POLICY_ALWAYS); // vert
- gtk_container_add (GTK_CONTAINER (scroller), GTK_WIDGET (preambleView));
- GtkWidget *editorFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (editorFrame), scroller);
- gtk_paned_pack2 (paned, editorFrame, TRUE, TRUE);
-
- GtkContainer *buttonBox = GTK_CONTAINER (gtk_hbutton_box_new ());
- gtk_box_set_spacing (GTK_BOX (buttonBox), 6);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (buttonBox), GTK_BUTTONBOX_END);
- gtk_box_pack_start (GTK_BOX (mainBox),
- GTK_WIDGET (buttonBox),
- FALSE, TRUE, 0);
- GtkWidget *closeButton = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
- gtk_container_add (buttonBox, closeButton);
- g_signal_connect (closeButton,
- "clicked",
- G_CALLBACK (close_button_clicked_cb),
- self);
- /*
- GtkWidget *undoButton = gtk_button_new_from_stock (GTK_STOCK_UNDO);
- gtk_container_add (buttonBox, undoButton);
- gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (buttonBox),
- undoButton,
- TRUE);
- g_signal_connect (undoButton,
- "clicked",
- G_CALLBACK (undo_button_clicked_cb),
- self);
- GtkWidget *redoButton = gtk_button_new_from_stock (GTK_STOCK_REDO);
- gtk_container_add (buttonBox, redoButton);
- gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (buttonBox),
- redoButton,
- TRUE);
- g_signal_connect (redoButton,
- "clicked",
- G_CALLBACK (redo_button_clicked_cb),
- self);
- */
- [self revert];
-
- gtk_widget_show_all (mainBox);
-}
-
-- (void) save {
- if (!preambleView)
- return;
- if ([self isDefaultPreambleSelected])
- return;
- GtkTextIter start,end;
- GtkTextBuffer *preambleBuffer = gtk_text_view_get_buffer (preambleView);
- gtk_text_buffer_get_bounds(preambleBuffer, &start, &end);
- gchar *text = gtk_text_buffer_get_text(preambleBuffer, &start, &end, FALSE);
- NSString *preamble = [NSString stringWithUTF8String:text];
- g_free (text);
- [preambles setCurrentPreamble:preamble];
- [app saveConfiguration];
-}
-
-- (void) revert {
- if (!preambleView)
- return;
- GtkTextBuffer *preambleBuffer = gtk_text_view_get_buffer (preambleView);
- gtk_text_buffer_set_text (preambleBuffer, [[preambles currentPreamble] UTF8String], -1);
- gtk_text_view_set_editable (preambleView, ![self isDefaultPreambleSelected]);
-}
-
-- (void) update {
- if (!blockSignals) {
- [self save];
- }
- GtkTreeSelection *sel = gtk_tree_view_get_selection (preambleSelector);
- GtkTreeIter row;
- GtkTreeModel *model;
- if (gtk_tree_selection_get_selected (sel, &model, &row)) {
- gchar *name;
- gtk_tree_model_get (model, &row, NAME_COLUMN, &name, -1);
- NSString *preambleName = [NSString stringWithUTF8String:name];
- [preambles setSelectedPreambleName:preambleName];
- g_free (name);
- }
- [self revert];
-}
-
-- (void) fillListStore {
- blockSignals = YES;
-
- GtkTreeIter row;
- gtk_list_store_clear (preambleListStore);
-
- gtk_list_store_append (preambleListStore, &row);
- gtk_list_store_set (preambleListStore, &row,
- NAME_COLUMN, [[preambles defaultPreambleName] UTF8String],
- IS_CUSTOM_COLUMN, FALSE,
- -1);
- GtkTreeSelection *sel = gtk_tree_view_get_selection (preambleSelector);
- if ([self isDefaultPreambleSelected]) {
- gtk_tree_selection_select_iter (sel, &row);
- }
-
- NSEnumerator *en = [preambles customPreambleNameEnumerator];
- NSString *preambleName;
- while ((preambleName = [en nextObject])) {
- gtk_list_store_append (preambleListStore, &row);
- gtk_list_store_set (preambleListStore, &row,
- NAME_COLUMN, [preambleName UTF8String],
- IS_CUSTOM_COLUMN, TRUE,
- -1);
- if ([preambleName isEqualToString:[self selectedPreambleName]]) {
- gtk_tree_selection_select_iter (sel, &row);
- }
- }
-
- blockSignals = NO;
-}
-
-- (BOOL) isDefaultPreambleSelected {
- return [preambles selectedPreambleIsDefault];
-}
-
-- (NSString*) selectedPreambleName {
- return [preambles selectedPreambleName];
-}
-
-- (void) addPreamble {
- NSString *newName = [preambles addPreamble];
-
- GtkTreeIter row;
- gtk_list_store_append (preambleListStore, &row);
- gtk_list_store_set (preambleListStore, &row,
- NAME_COLUMN, [newName UTF8String],
- IS_CUSTOM_COLUMN, TRUE,
- -1);
-
- GtkTreeSelection *sel = gtk_tree_view_get_selection (preambleSelector);
- gtk_tree_selection_select_iter (sel, &row);
-}
-
-- (void) deletePreamble {
- if ([self isDefaultPreambleSelected])
- return;
-
- NSString *name = [self selectedPreambleName];
-
- GtkTreeIter row;
- GtkTreeModel *model = GTK_TREE_MODEL (preambleListStore);
-
- gtk_tree_model_get_iter_first (model, &row);
- // ignore first; it is the default one
- gboolean found = FALSE;
- while (!found && gtk_tree_model_iter_next (model, &row)) {
- gchar *candidate;
- gtk_tree_model_get (model, &row, NAME_COLUMN, &candidate, -1);
- if (g_strcmp0 (candidate, [name UTF8String]) == 0) {
- found = TRUE;
- }
- g_free (candidate);
- }
-
- if (!found)
- return;
-
- if (![preambles removePreamble:name])
- return;
-
- blockSignals = YES;
-
- gboolean had_next = gtk_list_store_remove (preambleListStore, &row);
- if (!had_next) {
- // select the last item
- gint length = gtk_tree_model_iter_n_children (model, NULL);
- gtk_tree_model_iter_nth_child (model, &row, NULL, length - 1);
- }
-
- GtkTreeSelection *sel = gtk_tree_view_get_selection (preambleSelector);
- gtk_tree_selection_select_iter (sel, &row);
-
- [self revert];
-
- blockSignals = NO;
-}
-
-- (void) renamePreambleAtPath:(gchar*)path to:(gchar*)newValue {
- NSString *newName = [NSString stringWithUTF8String:newValue];
-
- GtkTreeIter row;
- GtkTreeModel *model = GTK_TREE_MODEL (preambleListStore);
-
- if (!gtk_tree_model_get_iter_from_string (model, &row, path))
- return;
-
- gchar *oldValue;
- gtk_tree_model_get (model, &row, NAME_COLUMN, &oldValue, -1);
-
- NSString* oldName = [NSString stringWithUTF8String:oldValue];
- if ([preambles renamePreambleFrom:oldName to:newName]) {
- gtk_list_store_set (preambleListStore, &row,
- NAME_COLUMN, newValue,
- -1);
- }
-}
-
-- (void) nodeStylePropertyChanged:(NSNotification*)notification {
- if ([self isDefaultPreambleSelected]) {
- [self revert];
- }
-}
-
-- (void) edgeStylePropertyChanged:(NSNotification*)notification {
- if ([self isDefaultPreambleSelected]) {
- [self revert];
- }
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static gboolean window_delete_event_cb (GtkWidget *widget,
- GdkEvent *event,
- PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor hide];
- [pool drain];
- return TRUE; // we dealt with this event
-}
-
-static gboolean window_focus_out_event_cb (GtkWidget *widget,
- GdkEvent *event,
- PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor save];
- [pool drain];
- return FALSE;
-}
-
-static void close_button_clicked_cb (GtkButton *widget, PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor hide];
- [pool drain];
-}
-
-static void add_button_clicked_cb (GtkButton *widget, PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor addPreamble];
- [pool drain];
-}
-
-static void remove_button_clicked_cb (GtkButton *widget, PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor deletePreamble];
- [pool drain];
-}
-
-/*
-static void undo_button_clicked_cb (GtkButton *widget, PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSLog(@"Undo");
- [pool drain];
-}
-
-static void redo_button_clicked_cb (GtkButton *widget, PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSLog(@"Redo");
- [pool drain];
-}
-*/
-
-static void preamble_name_edited_cb (GtkCellRendererText *renderer,
- gchar *path,
- gchar *new_text,
- PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor renamePreambleAtPath:path to:new_text];
- [pool drain];
-}
-
-static void preamble_selection_changed_cb (GtkTreeSelection *treeselection,
- PreambleEditor *editor) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor update];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/Preambles+Storage.h b/tikzit-old/src/gtk/Preambles+Storage.h
deleted file mode 100644
index 76f56cc..0000000
--- a/tikzit-old/src/gtk/Preambles+Storage.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Preambles.h"
-
-@interface Preambles (Storage)
-
-+ (Preambles*) preamblesFromDirectory:(NSString*)directory;
-- (id) initFromDirectory:(NSString*)directory;
-- (void) loadFromDirectory:(NSString*)directory;
-- (void) storeToDirectory:(NSString*)directory;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Preambles+Storage.m b/tikzit-old/src/gtk/Preambles+Storage.m
deleted file mode 100644
index bd3ea03..0000000
--- a/tikzit-old/src/gtk/Preambles+Storage.m
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Preambles+Storage.h"
-
-static NSString *ext = @"preamble";
-
-@implementation Preambles (Storage)
-
-+ (Preambles*) preamblesFromDirectory:(NSString*)directory {
- return [[[self alloc] initFromDirectory:directory] autorelease];
-}
-
-- (id) initFromDirectory:(NSString*)directory {
- BOOL isDir = NO;
- if ([[NSFileManager defaultManager] fileExistsAtPath:directory isDirectory:&isDir] && isDir) {
- self = [super init];
-
- if (self) {
- selectedPreambleName = @"default";
- preambleDict = nil;
- [self loadFromDirectory:directory];
- }
- } else {
- self = [self init];
- }
-
- return self;
-}
-
-- (void) loadFromDirectory:(NSString*)directory {
- preambleDict = [[NSMutableDictionary alloc] initWithCapacity:1];
- NSDirectoryEnumerator *en = [[NSFileManager defaultManager] enumeratorAtPath:directory];
- NSString *filename;
- while ((filename = [en nextObject]) != nil) {
- if ([filename hasSuffix:ext] && [[en fileAttributes] fileType] == NSFileTypeRegular) {
- NSString *path = [directory stringByAppendingPathComponent:filename];
- NSString *contents = [NSString stringWithContentsOfFile:path];
- if (contents) {
- [preambleDict setObject:contents forKey:[filename stringByDeletingPathExtension]];
- }
- }
- }
-}
-
-- (void) storeToDirectory:(NSString*)directory {
- NSDirectoryEnumerator *den = [[NSFileManager defaultManager] enumeratorAtPath:directory];
- NSString *filename;
- while ((filename = [den nextObject]) != nil) {
- if ([filename hasSuffix:ext] && [[den fileAttributes] fileType] == NSFileTypeRegular) {
- NSString *path = [directory stringByAppendingPathComponent:filename];
- NSString *entry = [filename stringByDeletingPathExtension];
- if ([preambleDict objectForKey:entry] == nil) {
- [[NSFileManager defaultManager] removeFileAtPath:path handler:nil];
- }
- }
- }
-
- NSEnumerator *en = [self customPreambleNameEnumerator];
- NSString *entry;
- while ((entry = [en nextObject]) != nil) {
- NSString *path = [directory stringByAppendingPathComponent:[entry stringByAppendingPathExtension:ext]];
- NSString *contents = [preambleDict objectForKey:entry];
- [contents writeToFile:path atomically:YES];
- }
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/PreviewRenderer.h b/tikzit-old/src/gtk/PreviewRenderer.h
deleted file mode 100644
index d691722..0000000
--- a/tikzit-old/src/gtk/PreviewRenderer.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <poppler.h>
-
-#import "Surface.h"
-
-@class Configuration;
-@class Preambles;
-@class TikzDocument;
-
-@interface PreviewRenderer: NSObject<RenderDelegate> {
- Configuration *config;
- Preambles *preambles;
- TikzDocument *document;
- PopplerDocument *pdfDocument;
- PopplerPage *pdfPage;
-}
-
-@property (readonly) Preambles *preambles;
-@property (retain) TikzDocument *document;
-@property (readonly) double height;
-@property (readonly) double width;
-
-- (id) initWithPreambles:(Preambles*)p config:(Configuration*)c;
-
-- (BOOL) updateWithError:(NSError**)error;
-- (BOOL) update;
-- (BOOL) isValid;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/PreviewRenderer.m b/tikzit-old/src/gtk/PreviewRenderer.m
deleted file mode 100644
index 28113d6..0000000
--- a/tikzit-old/src/gtk/PreviewRenderer.m
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "PreviewRenderer.h"
-
-#import "CairoRenderContext.h"
-#import "Configuration.h"
-#import "Preambles.h"
-#import "TikzDocument.h"
-
-@implementation PreviewRenderer
-
-@synthesize preambles, document;
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithPreambles:(Preambles*)p config:(Configuration*)c {
- self = [super init];
-
- if (self) {
- document = nil;
- config = [c retain];
- preambles = [p retain];
- pdfDocument = NULL;
- pdfPage = NULL;
- }
-
- return self;
-}
-
-- (void) dealloc {
- [document release];
- [config release];
- [preambles release];
-
- if (pdfDocument) {
- g_object_unref (pdfDocument);
- pdfDocument = NULL;
- }
- if (pdfPage) {
- g_object_unref (pdfPage);
- pdfPage = NULL;
- }
-
- [super dealloc];
-}
-
-- (BOOL) update {
- NSError *error = nil;
- BOOL result = [self updateWithError:&error];
- if (error) {
- logError (error, @"Could not update preview");
- if ([error code] == TZ_ERR_TOOL_FAILED) {
- NSLog (@"Output: %@", [[error userInfo] objectForKey:TZToolOutputErrorKey]);
- }
- }
- return result;
-}
-
-- (BOOL) updateWithError:(NSError**)error {
- if (document == nil) {
- if (error) {
- *error = [NSError errorWithMessage:@"No document given" code:TZ_ERR_BADSTATE];
- }
- if (pdfDocument) {
- g_object_unref (pdfDocument);
- pdfDocument = NULL;
- }
- if (pdfPage) {
- g_object_unref (pdfPage);
- pdfPage = NULL;
- }
- return NO;
- }
-
- NSString *tex = [preambles buildDocumentForTikz:[document tikz]];
-
- NSString *tempDir = [[NSFileManager defaultManager] createTempDirectoryWithError:error];
- if (!tempDir) {
- if (error) {
- *error = [NSError errorWithMessage:@"Could not create temporary directory" code:TZ_ERR_IO cause:*error];
- }
- return NO;
- }
-
- // write tex code to temporary file
- NSString *texFile = [NSString stringWithFormat:@"%@/tikzit.tex", tempDir];
- NSString *pdfFile = [NSString stringWithFormat:@"file://%@/tikzit.pdf", tempDir];
- [tex writeToFile:texFile atomically:YES];
-
- NSTask *latexTask = [[NSTask alloc] init];
- [latexTask setCurrentDirectoryPath:tempDir];
-
- // GNUStep is clever enough to use PATH
- NSString *path = [config stringEntry:@"pdflatex"
- inGroup:@"Previews"
- withDefault:@"pdflatex"];
- [latexTask setLaunchPath:path];
-
- NSArray *args = [NSArray arrayWithObjects:
- @"-fmt=latex",
- @"-output-format=pdf",
- @"-interaction=nonstopmode",
- @"-halt-on-error",
- texFile,
- nil];
- [latexTask setArguments:args];
-
- NSPipe *pout = [NSPipe pipe];
- [latexTask setStandardOutput:pout];
-
- NSFileHandle *latexOut = [pout fileHandleForReading];
-
- BOOL success = NO;
-
- NS_DURING {
- [latexTask launch];
- [latexTask waitUntilExit];
- } NS_HANDLER {
- NSLog(@"Failed to run '%@'; error was: %@", path, [localException reason]);
- (void)localException;
- if (error) {
- NSString *desc = [NSString stringWithFormat:@"Failed to run '%@'", path];
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionaryWithCapacity:2];
- [errorDetail setValue:desc forKey:NSLocalizedDescriptionKey];
- *error = [NSError errorWithDomain:TZErrorDomain code:TZ_ERR_IO userInfo:errorDetail];
- }
-
- // remove all temporary files
- [[NSFileManager defaultManager] removeFileAtPath:tempDir handler:NULL];
- [latexTask release];
-
- return NO;
- } NS_ENDHANDLER
-
- if ([latexTask terminationStatus] != 0) {
- if (error) {
- NSData *data = [latexOut readDataToEndOfFile];
- NSString *str = [[NSString alloc] initWithData:data
- encoding:NSUTF8StringEncoding];
- NSMutableDictionary *errorDetail = [NSMutableDictionary dictionaryWithCapacity:2];
- [errorDetail setValue:@"Generating a PDF file with pdflatex failed" forKey:NSLocalizedDescriptionKey];
- [errorDetail setValue:str forKey:TZToolOutputErrorKey];
- *error = [NSError errorWithDomain:TZErrorDomain code:TZ_ERR_TOOL_FAILED userInfo:errorDetail];
- [str release];
- }
- } else {
- // load pdf document
- GError* gerror = NULL;
- pdfDocument = poppler_document_new_from_file([pdfFile UTF8String], NULL, &gerror);
- if (!pdfDocument) {
- if (error) {
- *error = [NSError errorWithMessage:[NSString stringWithFormat:@"Could not load PDF document", pdfFile]
- code:TZ_ERR_IO
- cause:[NSError errorWithGError:gerror]];
- }
- g_error_free(gerror);
- } else {
- pdfPage = poppler_document_get_page(pdfDocument, 0);
- if(!pdfPage) {
- if (error) {
- *error = [NSError errorWithMessage:@"Could not open first page of PDF document"
- code:TZ_ERR_OTHER];
- }
- g_object_unref(pdfDocument);
- } else {
- success = YES;
- }
- }
- }
-
- // remove all temporary files
- [[NSFileManager defaultManager] removeFileAtPath:tempDir handler:NULL];
- [latexTask release];
-
- return success;
-}
-
-- (BOOL) isValid {
- return pdfPage ? YES : NO;
-}
-
-- (double) width {
- double w = 0.0;
- if (pdfPage)
- poppler_page_get_size(pdfPage, &w, NULL);
- return w;
-}
-
-- (double) height {
- double h = 0.0;
- if (pdfPage)
- poppler_page_get_size(pdfPage, NULL, &h);
- return h;
-}
-
-- (void) renderWithContext:(id<RenderContext>)c onSurface:(id<Surface>)surface {
- if (document != nil && pdfPage) {
- CairoRenderContext *context = (CairoRenderContext*)c;
-
- double w = 0.0;
- double h = 0.0;
- poppler_page_get_size(pdfPage, &w, &h);
- if (w==0) w = 1.0;
- if (h==0) h = 1.0;
-
- double scale = ([surface height] / h) * 0.95;
- if (w * scale > [surface width]) scale = [surface width] / w;
- [[surface transformer] setScale:scale];
-
- NSPoint origin;
- w *= scale;
- h *= scale;
- origin.x = ([surface width] - w) / 2;
- origin.y = ([surface height] - h) / 2;
-
- [[surface transformer] setOrigin:origin];
-
- [context saveState];
- [context applyTransform:[surface transformer]];
-
- // white-out
- [context paintWithColor:WhiteRColor];
-
- poppler_page_render (pdfPage, [context cairoContext]);
-
- [context restoreState];
- }
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/PreviewWindow.h b/tikzit-old/src/gtk/PreviewWindow.h
deleted file mode 100644
index 8bcd3e5..0000000
--- a/tikzit-old/src/gtk/PreviewWindow.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Configuration;
-@class Preambles;
-@class PreviewRenderer;
-@class TikzDocument;
-@class WidgetSurface;
-
-@interface PreviewWindow: NSObject {
- PreviewRenderer *previewer;
- GtkWindow *window;
- WidgetSurface *surface;
- GtkWindow *parent;
-}
-
-- (id) initWithPreambles:(Preambles*)p config:(Configuration*)c;
-
-- (void) setParentWindow:(GtkWindow*)parent;
-
-- (TikzDocument*) document;
-- (void) setDocument:(TikzDocument*)doc;
-
-- (BOOL) update;
-
-- (void) present;
-- (void) show;
-- (void) hide;
-- (BOOL) isVisible;
-- (void) setVisible:(BOOL)visible;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/PreviewWindow.m b/tikzit-old/src/gtk/PreviewWindow.m
deleted file mode 100644
index fc0e7a3..0000000
--- a/tikzit-old/src/gtk/PreviewWindow.m
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "PreviewWindow.h"
-
-#import "Preambles.h"
-#import "PreviewRenderer.h"
-#import "TikzDocument.h"
-#import "WidgetSurface.h"
-
-#import "gtkhelpers.h"
-
-@interface PreviewWindow (Private)
-- (BOOL) updateOrShowError;
-- (void) updateDefaultSize;
-@end
-
-// {{{ API
-
-@implementation PreviewWindow
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithPreambles:(Preambles*)p config:(Configuration*)c {
- self = [super init];
-
- if (self) {
- parent = NULL;
- previewer = [[PreviewRenderer alloc] initWithPreambles:p config:c];
-
- window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
- gtk_window_set_title (window, "Preview");
- gtk_window_set_resizable (window, TRUE);
- gtk_window_set_default_size (window, 150.0, 150.0);
- g_signal_connect (G_OBJECT (window),
- "delete-event",
- G_CALLBACK (gtk_widget_hide_on_delete),
- NULL);
-
- GtkWidget *pdfArea = gtk_drawing_area_new ();
- gtk_container_add (GTK_CONTAINER (window), pdfArea);
- gtk_widget_show (pdfArea);
- surface = [[WidgetSurface alloc] initWithWidget:pdfArea];
- [surface setRenderDelegate:previewer];
- Transformer *t = [surface transformer];
- [t setFlippedAboutXAxis:![t isFlippedAboutXAxis]];
- }
-
- return self;
-}
-
-- (void) setParentWindow:(GtkWindow*)p {
- parent = p;
- gtk_window_set_transient_for (window, p);
- if (p != NULL) {
- gtk_window_set_position (window, GTK_WIN_POS_CENTER_ON_PARENT);
- }
-}
-
-- (TikzDocument*) document {
- return [previewer document];
-}
-
-- (void) setDocument:(TikzDocument*)doc {
- [previewer setDocument:doc];
-}
-
-- (void) present {
- if ([self updateOrShowError]) {
- [self updateDefaultSize];
- gtk_window_present (GTK_WINDOW (window));
- [surface invalidate];
- }
-}
-
-- (BOOL) update {
- if ([self updateOrShowError]) {
- [self updateDefaultSize];
- return YES;
- }
-
- return NO;
-}
-
-- (void) show {
- if ([self updateOrShowError]) {
- [self updateDefaultSize];
- gtk_widget_show (GTK_WIDGET (window));
- [surface invalidate];
- }
-}
-
-- (void) hide {
- gtk_widget_hide (GTK_WIDGET (window));
-}
-
-- (BOOL) isVisible {
- gboolean visible;
- g_object_get (G_OBJECT (window), "visible", &visible, NULL);
- return visible ? YES : NO;
-}
-
-- (void) setVisible:(BOOL)visible {
- if (visible) {
- [self show];
- } else {
- [self hide];
- }
-}
-
-- (void) dealloc {
- gtk_widget_destroy (GTK_WIDGET (window));
- [previewer release];
- [surface release];
-
- [super dealloc];
-}
-
-@end
-// }}}
-
-@implementation PreviewWindow (Private)
-- (BOOL) updateOrShowError {
- NSError *error = nil;
- if (![previewer updateWithError:&error]) {
- GtkWindow *dparent = gtk_widget_get_visible (GTK_WIDGET (window))
- ? window
- : parent;
- GtkWidget *dialog = gtk_message_dialog_new (dparent,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "Failed to generate the preview: %s",
- [[error localizedDescription] UTF8String]);
-#if GTK_CHECK_VERSION(2,22,0)
- if ([error code] == TZ_ERR_TOOL_FAILED) {
- GtkBox *box = GTK_BOX (gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog)));
- GtkWidget *label = gtk_label_new ("pdflatex said:");
- gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5f);
- gtk_widget_show (label);
- gtk_box_pack_start (box, label, FALSE, TRUE, 0);
-
- GtkWidget *view = gtk_text_view_new ();
- GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
- gtk_text_buffer_set_text (buffer, [[error toolOutput] UTF8String], -1);
- gtk_text_view_set_editable (GTK_TEXT_VIEW (view), FALSE);
- gtk_widget_show (view);
- GtkWidget *scrolledView = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledView),
- GTK_POLICY_NEVER, // horiz
- GTK_POLICY_ALWAYS); // vert
- gtk_widget_set_size_request (scrolledView, -1, 120);
- gtk_container_add (GTK_CONTAINER (scrolledView), view);
- gtk_widget_show (scrolledView);
- gtk_box_pack_start (box, scrolledView, TRUE, TRUE, 0);
- }
-#endif // GTK+ 2.22.0
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- return NO;
- }
- return YES;
-}
-
-- (void) updateDefaultSize {
- double width = 150;
- double height = 150;
- if ([previewer isValid]) {
- double pWidth = [previewer width];
- double pHeight = [previewer height];
- width = (width < pWidth + 4) ? pWidth + 4 : width;
- height = (height < pHeight + 4) ? pHeight + 4 : height;
- }
- gtk_window_set_default_size (window, width, height);
-}
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/PropertiesPane.h b/tikzit-old/src/gtk/PropertiesPane.h
deleted file mode 100644
index c76efae..0000000
--- a/tikzit-old/src/gtk/PropertiesPane.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Configuration;
-@class EdgePropertyDelegate;
-@class EdgeStylesModel;
-@class GraphPropertyDelegate;
-@class NodePropertyDelegate;
-@class NodeStylesModel;
-@class PropertyListEditor;
-@class StyleManager;
-@class TikzDocument;
-
-@interface PropertiesPane: NSObject {
- TikzDocument *document;
- BOOL blockUpdates;
-
- PropertyListEditor *graphProps;
- PropertyListEditor *nodeProps;
- PropertyListEditor *edgeProps;
- PropertyListEditor *edgeNodeProps;
-
- GraphPropertyDelegate *graphPropDelegate;
- NodePropertyDelegate *nodePropDelegate;
- EdgePropertyDelegate *edgePropDelegate;
-
- GtkWidget *layout;
-
- GtkWidget *currentPropsWidget; // no ref!
-
- GtkWidget *graphPropsWidget;
- GtkWidget *nodePropsWidget;
- GtkWidget *edgePropsWidget;
-
- GtkEntry *nodeLabelEntry;
- GtkToggleButton *edgeNodeToggle;
- GtkWidget *edgeNodePropsWidget;
- GtkEntry *edgeNodeLabelEntry;
- GtkEntry *edgeSourceAnchorEntry;
- GtkEntry *edgeTargetAnchorEntry;
-}
-
-@property (retain) TikzDocument *document;
-@property (assign) BOOL visible;
-@property (readonly) GtkWidget *gtkWidget;
-
-- (void) loadConfiguration:(Configuration*)config;
-- (void) saveConfiguration:(Configuration*)config;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/PropertiesPane.m b/tikzit-old/src/gtk/PropertiesPane.m
deleted file mode 100644
index ba43298..0000000
--- a/tikzit-old/src/gtk/PropertiesPane.m
+++ /dev/null
@@ -1,763 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "PropertiesPane.h"
-
-#import "GraphElementProperty.h"
-#import "PropertyListEditor.h"
-#import "TikzDocument.h"
-
-#import "gtkhelpers.h"
-
-// {{{ Internal interfaces
-// {{{ GTK+ helpers
-static GtkWidget *createLabelledEntry (const gchar *labelText, GtkEntry **entry);
-static GtkWidget *createPropsPaneWithLabelEntry (PropertyListEditor *props, GtkEntry **labelEntry);
-static GtkWidget *createBoldLabel (const gchar *text);
-// }}}
-// {{{ GTK+ callbacks
-static void node_label_changed_cb (GtkEditable *widget, PropertiesPane *pane);
-static void edge_node_label_changed_cb (GtkEditable *widget, PropertiesPane *pane);
-static void edge_node_toggled_cb (GtkToggleButton *widget, PropertiesPane *pane);
-static void edge_source_anchor_changed_cb (GtkEditable *widget, PropertiesPane *pane);
-static void edge_target_anchor_changed_cb (GtkEditable *widget, PropertiesPane *pane);
-// }}}
-
-@interface PropertiesPane (Notifications)
-- (void) nodeSelectionChanged:(NSNotification*)n;
-- (void) edgeSelectionChanged:(NSNotification*)n;
-- (void) graphChanged:(NSNotification*)n;
-- (void) nodeLabelEdited:(NSString*)newValue;
-- (void) edgeNodeLabelEdited:(NSString*)newValue;
-- (void) edgeNodeToggled:(BOOL)newValue;
-- (BOOL) edgeSourceAnchorEdited:(NSString*)newValue;
-- (BOOL) edgeTargetAnchorEdited:(NSString*)newValue;
-@end
-
-@interface PropertiesPane (Private)
-- (void) _updatePane;
-- (void) _setDisplayedWidget:(GtkWidget*)widget;
-@end
-
-// {{{ Delegates
-
-@interface GraphPropertyDelegate : NSObject<PropertyChangeDelegate> {
- TikzDocument *doc;
-}
-- (void) setDocument:(TikzDocument*)d;
-@end
-
-@interface NodePropertyDelegate : NSObject<PropertyChangeDelegate> {
- TikzDocument *doc;
- Node *node;
-}
-- (void) setDocument:(TikzDocument*)d;
-- (void) setNode:(Node*)n;
-@end
-
-@interface EdgePropertyDelegate : NSObject<PropertyChangeDelegate> {
- TikzDocument *doc;
- Edge *edge;
-}
-- (void) setDocument:(TikzDocument*)d;
-- (void) setEdge:(Edge*)e;
-@end
-
-// }}}
-
-// }}}
-// {{{ API
-
-@implementation PropertiesPane
-
-- (id) init {
- self = [super init];
-
- if (self) {
- document = nil;
- blockUpdates = NO;
-
- graphProps = [[PropertyListEditor alloc] init];
- graphPropDelegate = [[GraphPropertyDelegate alloc] init];
- [graphProps setDelegate:graphPropDelegate];
-
- nodeProps = [[PropertyListEditor alloc] init];
- nodePropDelegate = [[NodePropertyDelegate alloc] init];
- [nodeProps setDelegate:nodePropDelegate];
-
- edgeProps = [[PropertyListEditor alloc] init];
- edgePropDelegate = [[EdgePropertyDelegate alloc] init];
- [edgeProps setDelegate:edgePropDelegate];
-
- edgeNodeProps = [[PropertyListEditor alloc] init];
- [edgeNodeProps setDelegate:edgePropDelegate];
-
- layout = gtk_vbox_new (FALSE, 0);
- g_object_ref_sink (layout);
- gtk_widget_show (layout);
-
- /*
- * Graph properties
- */
- graphPropsWidget = gtk_vbox_new (FALSE, 6);
- g_object_ref_sink (graphPropsWidget);
- gtk_widget_show (graphPropsWidget);
-
- GtkWidget *label = createBoldLabel ("Graph properties");
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (graphPropsWidget),
- label,
- FALSE, FALSE, 0);
-
- gtk_widget_show ([graphProps widget]);
- gtk_box_pack_start (GTK_BOX (graphPropsWidget),
- [graphProps widget],
- TRUE, TRUE, 0);
-
- gtk_box_pack_start (GTK_BOX (layout),
- graphPropsWidget,
- TRUE, TRUE, 0);
-
-
- /*
- * Node properties
- */
- nodePropsWidget = gtk_vbox_new (FALSE, 6);
- g_object_ref_sink (nodePropsWidget);
- gtk_box_pack_start (GTK_BOX (layout),
- nodePropsWidget,
- TRUE, TRUE, 0);
-
- label = createBoldLabel ("Node properties");
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (nodePropsWidget),
- label,
- FALSE, FALSE, 0);
-
- GtkWidget *labelWidget = createLabelledEntry ("Label", &nodeLabelEntry);
- gtk_widget_show (labelWidget);
- gtk_box_pack_start (GTK_BOX (nodePropsWidget),
- labelWidget,
- FALSE, FALSE, 0);
-
- gtk_widget_show ([nodeProps widget]);
- gtk_box_pack_start (GTK_BOX (nodePropsWidget),
- [nodeProps widget],
- TRUE, TRUE, 0);
-
- g_signal_connect (G_OBJECT (nodeLabelEntry),
- "changed",
- G_CALLBACK (node_label_changed_cb),
- self);
-
- /*
- * Edge properties
- */
- edgePropsWidget = gtk_vbox_new (FALSE, 6);
- g_object_ref_sink (edgePropsWidget);
- gtk_box_pack_start (GTK_BOX (layout),
- edgePropsWidget,
- TRUE, TRUE, 0);
-
- label = createBoldLabel ("Edge properties");
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- label,
- FALSE, FALSE, 0);
-
- gtk_widget_show ([edgeProps widget]);
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- [edgeProps widget],
- TRUE, TRUE, 0);
-
- GtkWidget *split = gtk_hseparator_new ();
- gtk_widget_show (split);
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- split,
- FALSE, FALSE, 0);
-
- GtkWidget *anchorTable = gtk_table_new (2, 2, FALSE);
-
- label = gtk_label_new ("Source anchor:");
- gtk_table_attach_defaults (GTK_TABLE (anchorTable), label,
- 0, 1, 0, 1);
- edgeSourceAnchorEntry = GTK_ENTRY (gtk_entry_new ());
- g_object_ref_sink (edgeSourceAnchorEntry);
- gtk_table_attach_defaults (GTK_TABLE (anchorTable),
- GTK_WIDGET (edgeSourceAnchorEntry),
- 1, 2, 0, 1);
- g_signal_connect (G_OBJECT (edgeSourceAnchorEntry),
- "changed",
- G_CALLBACK (edge_source_anchor_changed_cb),
- self);
-
- label = gtk_label_new ("Target anchor:");
- gtk_table_attach_defaults (GTK_TABLE (anchorTable), label,
- 0, 1, 1, 2);
- edgeTargetAnchorEntry = GTK_ENTRY (gtk_entry_new ());
- g_object_ref_sink (edgeTargetAnchorEntry);
- gtk_table_attach_defaults (GTK_TABLE (anchorTable),
- GTK_WIDGET (edgeTargetAnchorEntry),
- 1, 2, 1, 2);
- g_signal_connect (G_OBJECT (edgeTargetAnchorEntry),
- "changed",
- G_CALLBACK (edge_target_anchor_changed_cb),
- self);
-
- gtk_widget_show_all (anchorTable);
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- anchorTable,
- FALSE, FALSE, 0);
-
- split = gtk_hseparator_new ();
- gtk_widget_show (split);
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- split,
- FALSE, FALSE, 0);
-
- edgeNodeToggle = GTK_TOGGLE_BUTTON (gtk_check_button_new_with_label ("Child node"));
- g_object_ref_sink (edgeNodeToggle);
- gtk_widget_show (GTK_WIDGET (edgeNodeToggle));
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- GTK_WIDGET (edgeNodeToggle),
- FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (GTK_WIDGET (edgeNodeToggle)),
- "toggled",
- G_CALLBACK (edge_node_toggled_cb),
- self);
-
- edgeNodePropsWidget = createPropsPaneWithLabelEntry(edgeNodeProps, &edgeNodeLabelEntry);
- g_object_ref_sink (edgeNodePropsWidget);
- g_object_ref_sink (edgeNodeLabelEntry);
- gtk_box_pack_start (GTK_BOX (edgePropsWidget),
- edgeNodePropsWidget,
- TRUE, TRUE, 0);
- g_signal_connect (G_OBJECT (edgeNodeLabelEntry),
- "changed",
- G_CALLBACK (edge_node_label_changed_cb),
- self);
-
- /*
- * Misc setup
- */
-
- [self _setDisplayedWidget:graphPropsWidget];
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (graphPropsWidget);
- g_object_unref (nodePropsWidget);
- g_object_unref (edgePropsWidget);
-
- g_object_unref (nodeLabelEntry);
- g_object_unref (edgeNodeToggle);
- g_object_unref (edgeNodePropsWidget);
- g_object_unref (edgeNodeLabelEntry);
- g_object_unref (edgeSourceAnchorEntry);
- g_object_unref (edgeTargetAnchorEntry);
-
- g_object_unref (layout);
-
- [graphProps release];
- [nodeProps release];
- [edgeProps release];
- [edgeNodeProps release];
-
- [graphPropDelegate release];
- [nodePropDelegate release];
- [edgePropDelegate release];
-
- [document release];
-
- [super dealloc];
-}
-
-- (TikzDocument*) document {
- return document;
-}
-
-- (void) setDocument:(TikzDocument*)doc {
- if (document != nil) {
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:document];
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:[document pickSupport]];
- }
-
- [doc retain];
- [document release];
- document = doc;
-
- [graphPropDelegate setDocument:doc];
- [nodePropDelegate setDocument:doc];
- [edgePropDelegate setDocument:doc];
-
- if (doc != nil) {
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeSelectionChanged:)
- name:@"NodeSelectionChanged" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeSelectionChanged:)
- name:@"EdgeSelectionChanged" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(graphChanged:)
- name:@"TikzChanged" object:doc];
- }
-
- [self _updatePane];
-}
-
-- (BOOL) visible {
- return gtk_widget_get_visible (layout);
-}
-
-- (void) setVisible:(BOOL)visible {
- gtk_widget_set_visible (layout, visible);
-}
-
-- (GtkWidget*) gtkWidget {
- return layout;
-}
-
-- (void) loadConfiguration:(Configuration*)config {
-}
-
-- (void) saveConfiguration:(Configuration*)config {
-}
-
-@end
-// }}}
-// {{{ Notifications
-
-@implementation PropertiesPane (Notifications)
-
-- (void) nodeSelectionChanged:(NSNotification*)n {
- [self _updatePane];
-}
-
-- (void) edgeSelectionChanged:(NSNotification*)n {
- [self _updatePane];
-}
-
-- (void) graphChanged:(NSNotification*)n {
- [self _updatePane];
-}
-
-- (void) nodeLabelEdited:(NSString*)newValue {
- if (blockUpdates)
- return;
-
- NSSet *sel = [[document pickSupport] selectedNodes];
- if ([sel count] != 1) {
- NSLog(@"Expected single node selected; got %lu", [sel count]);
- return;
- }
-
- if ([newValue isValidTikzPropertyNameOrValue]) {
- Node *node = [sel anyObject];
- [document startModifyNode:node];
- [node setLabel:newValue];
- [document endModifyNode];
- } else {
- widget_set_error (GTK_WIDGET (nodeLabelEntry));
- }
-}
-
-- (void) edgeNodeLabelEdited:(NSString*)newValue {
- if (blockUpdates)
- return;
-
- NSSet *sel = [[document pickSupport] selectedEdges];
- if ([sel count] != 1) {
- NSLog(@"Expected single edge selected; got %lu", [sel count]);
- return;
- }
-
- Edge *edge = [sel anyObject];
- if (![edge hasEdgeNode]) {
- NSLog(@"Expected edge with edge node");
- return;
- }
-
- if ([newValue isValidTikzPropertyNameOrValue]) {
- [document startModifyEdge:edge];
- [[edge edgeNode] setLabel:newValue];
- [document endModifyEdge];
- } else {
- widget_set_error (GTK_WIDGET (edgeNodeLabelEntry));
- }
-}
-
-- (void) edgeNodeToggled:(BOOL)newValue {
- if (blockUpdates)
- return;
-
- NSSet *sel = [[document pickSupport] selectedEdges];
- if ([sel count] != 1) {
- NSLog(@"Expected single edge selected; got %lu", [sel count]);
- return;
- }
-
- Edge *edge = [sel anyObject];
-
- [document startModifyEdge:edge];
- [edge setHasEdgeNode:newValue];
- [document endModifyEdge];
-}
-
-- (BOOL) edgeSourceAnchorEdited:(NSString*)newValue {
- if (blockUpdates)
- return YES;
-
- NSSet *sel = [[document pickSupport] selectedEdges];
- if ([sel count] != 1) {
- NSLog(@"Expected single edge selected; got %lu", [sel count]);
- return YES;
- }
-
- Edge *edge = [sel anyObject];
- if ([newValue isValidAnchor]) {
- [document startModifyEdge:edge];
- [edge setSourceAnchor:newValue];
- [document endModifyEdge];
- return YES;
- } else {
- return NO;
- }
-}
-
-- (BOOL) edgeTargetAnchorEdited:(NSString*)newValue {
- if (blockUpdates)
- return YES;
-
- NSSet *sel = [[document pickSupport] selectedEdges];
- if ([sel count] != 1) {
- NSLog(@"Expected single edge selected; got %lu", [sel count]);
- return YES;
- }
-
- Edge *edge = [sel anyObject];
- if ([newValue isValidAnchor]) {
- [document startModifyEdge:edge];
- [edge setTargetAnchor:newValue];
- [document endModifyEdge];
- return YES;
- } else {
- return NO;
- }
-}
-
-@end
-// }}}
-// {{{ Private
-
-@implementation PropertiesPane (Private)
-
-- (void) _setDisplayedWidget:(GtkWidget*)widget {
- if (currentPropsWidget != widget) {
- if (currentPropsWidget)
- gtk_widget_hide (currentPropsWidget);
- currentPropsWidget = widget;
- if (widget)
- gtk_widget_show (widget);
- }
-}
-
-- (void) _updatePane {
- blockUpdates = YES;
-
- BOOL editGraphProps = YES;
- GraphElementData *data = [[document graph] data];
- [graphProps setData:data];
-
- NSSet *nodeSel = [[document pickSupport] selectedNodes];
- if ([nodeSel count] == 1) {
- Node *n = [nodeSel anyObject];
- [nodePropDelegate setNode:n];
- [nodeProps setData:[n data]];
- gtk_entry_set_text (nodeLabelEntry, [[n label] UTF8String]);
- widget_clear_error (GTK_WIDGET (nodeLabelEntry));
- [self _setDisplayedWidget:nodePropsWidget];
- editGraphProps = NO;
- } else {
- [nodePropDelegate setNode:nil];
- [nodeProps setData:nil];
- gtk_entry_set_text (nodeLabelEntry, "");
-
- NSSet *edgeSel = [[document pickSupport] selectedEdges];
- if ([edgeSel count] == 1) {
- Edge *e = [edgeSel anyObject];
- [edgePropDelegate setEdge:e];
- [edgeProps setData:[e data]];
- gtk_entry_set_text (edgeSourceAnchorEntry,
- [[e sourceAnchor] UTF8String]);
- gtk_entry_set_text (edgeTargetAnchorEntry,
- [[e targetAnchor] UTF8String]);
- widget_clear_error (GTK_WIDGET (edgeSourceAnchorEntry));
- widget_clear_error (GTK_WIDGET (edgeTargetAnchorEntry));
- widget_clear_error (GTK_WIDGET (edgeNodeLabelEntry));
- if ([e hasEdgeNode]) {
- gtk_toggle_button_set_active (edgeNodeToggle, TRUE);
- gtk_widget_show (edgeNodePropsWidget);
- gtk_entry_set_text (edgeNodeLabelEntry, [[[e edgeNode] label] UTF8String]);
- [edgeNodeProps setData:[[e edgeNode] data]];
- gtk_widget_set_sensitive (edgeNodePropsWidget, TRUE);
- } else {
- gtk_toggle_button_set_active (edgeNodeToggle, FALSE);
- gtk_widget_hide (edgeNodePropsWidget);
- gtk_entry_set_text (edgeNodeLabelEntry, "");
- [edgeNodeProps setData:nil];
- gtk_widget_set_sensitive (edgeNodePropsWidget, FALSE);
- }
- [self _setDisplayedWidget:edgePropsWidget];
- editGraphProps = NO;
- } else {
- [edgePropDelegate setEdge:nil];
- [edgeProps setData:nil];
- [edgeNodeProps setData:nil];
- gtk_entry_set_text (edgeNodeLabelEntry, "");
- }
- }
-
- if (editGraphProps) {
- [self _setDisplayedWidget:graphPropsWidget];
- }
-
- blockUpdates = NO;
-}
-
-@end
-
-// }}}
-// {{{ Delegates
-
-@implementation GraphPropertyDelegate
-- (id) init {
- self = [super init];
- if (self) {
- doc = nil;
- }
- return self;
-}
-- (void) dealloc {
- // doc is not retained
- [super dealloc];
-}
-- (void) setDocument:(TikzDocument*)d {
- doc = d;
-}
-- (BOOL)startEdit {
- if ([doc graph] != nil) {
- [doc startChangeGraphProperties];
- return YES;
- }
- return NO;
-}
-- (void)endEdit {
- [doc endChangeGraphProperties];
-}
-- (void)cancelEdit {
- [doc cancelChangeGraphProperties];
-}
-@end
-
-@implementation NodePropertyDelegate
-- (id) init {
- self = [super init];
- if (self) {
- doc = nil;
- node = nil;
- }
- return self;
-}
-- (void) dealloc {
- // doc,node not retained
- [super dealloc];
-}
-- (void) setDocument:(TikzDocument*)d {
- doc = d;
- node = nil;
-}
-- (void) setNode:(Node*)n {
- node = n;
-}
-- (BOOL)startEdit {
- if (node != nil) {
- [doc startModifyNode:node];
- return YES;
- }
- return NO;
-}
-- (void)endEdit {
- [doc endModifyNode];
-}
-- (void)cancelEdit {
- [doc cancelModifyNode];
-}
-@end
-
-@implementation EdgePropertyDelegate
-- (id) init {
- self = [super init];
- if (self) {
- doc = nil;
- edge = nil;
- }
- return self;
-}
-- (void) dealloc {
- // doc,edge not retained
- [super dealloc];
-}
-- (void) setDocument:(TikzDocument*)d {
- doc = d;
- edge = nil;
-}
-- (void) setEdge:(Edge*)e {
- edge = e;
-}
-- (BOOL)startEdit {
- if (edge != nil) {
- [doc startModifyEdge:edge];
- return YES;
- }
- return NO;
-}
-- (void)endEdit {
- [doc endModifyEdge];
-}
-- (void)cancelEdit {
- [doc cancelModifyEdge];
-}
-@end
-
-// }}}
-// {{{ GTK+ helpers
-
-static GtkWidget *createLabelledEntry (const gchar *labelText, GtkEntry **entry) {
- GtkBox *box = GTK_BOX (gtk_hbox_new (FALSE, 0));
- GtkWidget *label = gtk_label_new (labelText);
- gtk_widget_show (label);
- GtkWidget *entryWidget = gtk_entry_new ();
- gtk_widget_show (entryWidget);
- // container widget expand fill pad
- gtk_box_pack_start (box, label, FALSE, TRUE, 5);
- gtk_box_pack_start (box, entryWidget, TRUE, TRUE, 0);
- if (entry)
- *entry = GTK_ENTRY (entryWidget);
- return GTK_WIDGET (box);
-}
-
-static GtkWidget *createPropsPaneWithLabelEntry (PropertyListEditor *props, GtkEntry **labelEntry) {
- GtkBox *box = GTK_BOX (gtk_vbox_new (FALSE, 6));
-
- GtkWidget *labelWidget = createLabelledEntry ("Label", labelEntry);
- gtk_widget_show (labelWidget);
- // box widget expand fill pad
- gtk_box_pack_start (box, labelWidget, FALSE, FALSE, 0);
- gtk_box_pack_start (box, [props widget], TRUE, TRUE, 0);
- gtk_widget_show ([props widget]);
- return GTK_WIDGET (box);
-}
-
-static GtkWidget *createBoldLabel (const gchar *text) {
- GtkWidget *label = gtk_label_new (text);
- label_set_bold (GTK_LABEL (label));
- return label;
-}
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void node_label_changed_cb (GtkEditable *editable, PropertiesPane *pane) {
- if (!gtk_widget_is_sensitive (GTK_WIDGET (editable))) {
- // clearly wasn't the user editing
- return;
- }
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- NSString *newValue = gtk_editable_get_string (editable, 0, -1);
- [pane nodeLabelEdited:newValue];
-
- [pool drain];
-}
-
-static void edge_node_label_changed_cb (GtkEditable *editable, PropertiesPane *pane) {
- if (!gtk_widget_is_sensitive (GTK_WIDGET (editable))) {
- // clearly wasn't the user editing
- return;
- }
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- NSString *newValue = gtk_editable_get_string (editable, 0, -1);
- [pane edgeNodeLabelEdited:newValue];
-
- [pool drain];
-}
-
-static void edge_node_toggled_cb (GtkToggleButton *toggle, PropertiesPane *pane) {
- if (!gtk_widget_is_sensitive (GTK_WIDGET (toggle))) {
- // clearly wasn't the user editing
- return;
- }
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- gboolean newValue = gtk_toggle_button_get_active (toggle);
- [pane edgeNodeToggled:newValue];
-
- [pool drain];
-}
-
-static void edge_source_anchor_changed_cb (GtkEditable *editable, PropertiesPane *pane) {
- if (!gtk_widget_is_sensitive (GTK_WIDGET (editable))) {
- // clearly wasn't the user editing
- return;
- }
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- NSString *newValue = gtk_editable_get_string (editable, 0, -1);
- if (![pane edgeSourceAnchorEdited:newValue])
- widget_set_error (GTK_WIDGET (editable));
-
- [pool drain];
-}
-
-static void edge_target_anchor_changed_cb (GtkEditable *editable, PropertiesPane *pane) {
- if (!gtk_widget_is_sensitive (GTK_WIDGET (editable))) {
- // clearly wasn't the user editing
- return;
- }
-
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- NSString *newValue = gtk_editable_get_string (editable, 0, -1);
- if (![pane edgeTargetAnchorEdited:newValue])
- widget_set_error (GTK_WIDGET (editable));
-
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/PropertyListEditor.h b/tikzit-old/src/gtk/PropertyListEditor.h
deleted file mode 100644
index 2d3166a..0000000
--- a/tikzit-old/src/gtk/PropertyListEditor.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-#import "GraphElementData.h"
-#import "GraphElementProperty.h"
-
-@protocol PropertyChangeDelegate
-@optional
-- (BOOL)startEdit;
-- (void)endEdit;
-- (void)cancelEdit;
-@end
-
-@interface PropertyListEditor: NSObject {
- GraphElementData *data;
- NSObject<PropertyChangeDelegate> *delegate;
-
- GtkListStore *list;
- GtkWidget *view;
- GtkWidget *widget;
- GtkWidget *removeButton;
-}
-
-/*!
- @property widget
- @brief The widget displaying the editable list
- */
-@property (readonly) GtkWidget *widget;
-
-/*!
- @property data
- @brief The GraphElementData that should be reflected in the list
- */
-@property (retain) GraphElementData *data;
-
-/*!
- @property delegate
- @brief A delegate for dealing with property changes
- */
-@property (retain) NSObject<PropertyChangeDelegate> *delegate;
-
-/*!
- * Reload the properties from the data store
- */
-- (void) reloadProperties;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/PropertyListEditor.m b/tikzit-old/src/gtk/PropertyListEditor.m
deleted file mode 100644
index 9760618..0000000
--- a/tikzit-old/src/gtk/PropertyListEditor.m
+++ /dev/null
@@ -1,501 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "PropertyListEditor.h"
-#import "gtkhelpers.h"
-
-// {{{ Constants
-
-enum {
- PLM_NAME_COL = 0,
- PLM_VALUE_COL,
- PLM_IS_PROPERTY_COL,
- PLM_PROPERTY_COL,
- PLM_N_COLS
-};
-
-// }}}
-// {{{ Internal interfaces
-// {{{ Signals
-
-static void value_edited_cb (GtkCellRendererText *renderer,
- gchar *path,
- gchar *new_text,
- PropertyListEditor *editor);
-static void name_edited_cb (GtkCellRendererText *renderer,
- gchar *path,
- gchar *new_text,
- PropertyListEditor *editor);
-static void add_prop_clicked_cb (GtkButton *button,
- PropertyListEditor *editor);
-static void add_atom_clicked_cb (GtkButton *button,
- PropertyListEditor *editor);
-static void remove_clicked_cb (GtkButton *button,
- PropertyListEditor *editor);
-static void text_editing_started (GtkCellRenderer *cell,
- GtkCellEditable *editable,
- const gchar *path,
- PropertyListEditor *editor);
-static void text_changed_cb (GtkEditable *editable,
- PropertyListEditor *pane);
-static void selection_changed_cb (GtkTreeSelection *selection,
- PropertyListEditor *pane);
-
-// }}}
-// {{{ Private
-
-@interface PropertyListEditor (Private)
-- (void) updatePath:(gchar*)path withValue:(NSString*)newText;
-- (void) updatePath:(gchar*)path withName:(NSString*)newText;
-- (void) addProperty;
-- (void) addAtom;
-- (void) removeSelected;
-- (void) selectionCountChanged:(int)newSelectionCount;
-- (void) clearStore;
-@end
-
-// }}}
-// }}}
-// {{{ API
-
-@implementation PropertyListEditor
-
-- (id) init {
- self = [super init];
-
- if (self) {
- list = gtk_list_store_new (PLM_N_COLS,
- G_TYPE_STRING,
- G_TYPE_STRING,
- G_TYPE_BOOLEAN,
- G_TYPE_POINTER);
- g_object_ref_sink (G_OBJECT (list));
- view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list));
- g_object_ref_sink (G_OBJECT (view));
- GtkWidget *scrolledview = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledview),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
- gtk_container_add (GTK_CONTAINER (scrolledview), view);
- gtk_widget_set_size_request (view, -1, 150);
- data = nil;
- delegate = nil;
-
- GtkCellRenderer *renderer;
- GtkTreeViewColumn *column;
-
- renderer = gtk_cell_renderer_text_new ();
- g_object_set (G_OBJECT (renderer),
- "editable", TRUE,
- NULL);
- column = gtk_tree_view_column_new_with_attributes ("Key/Atom",
- renderer,
- "text", PLM_NAME_COL,
- NULL);
- gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
- g_signal_connect (G_OBJECT (renderer),
- "editing-started",
- G_CALLBACK (text_editing_started),
- self);
- g_signal_connect (G_OBJECT (renderer),
- "edited",
- G_CALLBACK (name_edited_cb),
- self);
-
- renderer = gtk_cell_renderer_text_new ();
- column = gtk_tree_view_column_new_with_attributes ("Value",
- renderer,
- "text", PLM_VALUE_COL,
- "editable", PLM_IS_PROPERTY_COL,
- "sensitive", PLM_IS_PROPERTY_COL,
- NULL);
- gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
- g_signal_connect (G_OBJECT (renderer),
- "edited",
- G_CALLBACK (value_edited_cb),
- self);
-
- widget = gtk_vbox_new (FALSE, 0);
- gtk_box_set_spacing (GTK_BOX (widget), 6);
- g_object_ref_sink (G_OBJECT (widget));
-
- GtkWidget *listFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (listFrame), scrolledview);
- gtk_widget_show (listFrame);
- gtk_container_add (GTK_CONTAINER (widget), listFrame);
-
- GtkBox *buttonBox = GTK_BOX (gtk_hbox_new(FALSE, 0));
- gtk_box_pack_start (GTK_BOX (widget), GTK_WIDGET (buttonBox), FALSE, FALSE, 0);
-
- GtkWidget *addPropButton = gtk_button_new ();
- //gtk_widget_set_size_request (addPropButton, 27, 27);
- gtk_widget_set_tooltip_text (addPropButton, "Add property");
- GtkWidget *addPropContents = gtk_hbox_new(FALSE, 0);
- GtkWidget *addPropIcon = gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (addPropContents), addPropIcon);
- gtk_container_add (GTK_CONTAINER (addPropContents), gtk_label_new ("P"));
- gtk_container_add (GTK_CONTAINER (addPropButton), addPropContents);
- gtk_box_pack_start (buttonBox, addPropButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (addPropButton),
- "clicked",
- G_CALLBACK (add_prop_clicked_cb),
- self);
-
- GtkWidget *addAtomButton = gtk_button_new ();
- //gtk_widget_set_size_request (addAtomButton, 27, 27);
- gtk_widget_set_tooltip_text (addAtomButton, "Add atom");
- GtkWidget *addAtomContents = gtk_hbox_new(FALSE, 0);
- GtkWidget *addAtomIcon = gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (addAtomContents), addAtomIcon);
- gtk_container_add (GTK_CONTAINER (addAtomContents), gtk_label_new ("A"));
- gtk_container_add (GTK_CONTAINER (addAtomButton), addAtomContents);
- gtk_box_pack_start (buttonBox, addAtomButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (addAtomButton),
- "clicked",
- G_CALLBACK (add_atom_clicked_cb),
- self);
-
- removeButton = gtk_button_new ();
- g_object_ref_sink (G_OBJECT (removeButton));
- gtk_widget_set_sensitive (removeButton, FALSE);
- //gtk_widget_set_size_request (removeButton, 27, 27);
- gtk_widget_set_tooltip_text (removeButton, "Remove selected");
- GtkWidget *removeIcon = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_BUTTON);
- gtk_container_add (GTK_CONTAINER (removeButton), removeIcon);
- gtk_box_pack_start (buttonBox, removeButton, FALSE, FALSE, 0);
- g_signal_connect (G_OBJECT (removeButton),
- "clicked",
- G_CALLBACK (remove_clicked_cb),
- self);
-
- GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
- g_signal_connect (G_OBJECT (selection),
- "changed",
- G_CALLBACK (selection_changed_cb),
- self);
-
- gtk_widget_show_all (GTK_WIDGET (buttonBox));
- gtk_widget_show_all (scrolledview);
-
- gtk_widget_set_sensitive (widget, FALSE);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [self clearStore];
-
- [data release];
- [delegate release];
-
- g_object_unref (list);
- g_object_unref (view);
- g_object_unref (widget);
- g_object_unref (removeButton);
-
- [super dealloc];
-}
-
-@synthesize widget, delegate;
-
-- (GraphElementData*) data { return data; }
-- (void) setData:(GraphElementData*)d {
- [d retain];
- [data release];
- data = d;
- [self reloadProperties];
- gtk_widget_set_sensitive (widget, data != nil);
-}
-
-- (void) reloadProperties {
- [self clearStore];
- int pos = 0;
- for (GraphElementProperty *p in data) {
- GtkTreeIter iter;
- [p retain];
- gtk_list_store_insert_with_values (list, &iter, pos,
- PLM_NAME_COL, [[p key] UTF8String],
- PLM_VALUE_COL, [[p value] UTF8String],
- PLM_IS_PROPERTY_COL, ![p isAtom],
- PLM_PROPERTY_COL, (void *)p,
- -1);
- ++pos;
- }
-}
-
-@end
-
-// }}}
-// {{{ Private
-
-@implementation PropertyListEditor (Private)
-- (void) updatePath:(gchar*)pathStr withValue:(NSString*)newText {
- if (![newText isValidTikzPropertyNameOrValue])
- return;
-
- GtkTreeIter iter;
- GtkTreePath *path = gtk_tree_path_new_from_string (pathStr);
-
- if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (list), &iter, path)) {
- gtk_tree_path_free (path);
- return;
- }
-
- void *propPtr;
- gtk_tree_model_get (GTK_TREE_MODEL (list), &iter,
- PLM_PROPERTY_COL, &propPtr,
- -1);
- GraphElementProperty *prop = (GraphElementProperty*)propPtr;
-
- if (![prop isAtom]) {
- if (![delegate respondsToSelector:@selector(startEdit)] || [delegate startEdit]) {
- [prop setValue:newText];
- gtk_list_store_set (list, &iter,
- PLM_VALUE_COL, [newText UTF8String],
- -1);
- [delegate endEdit];
- }
- }
-
- gtk_tree_path_free (path);
-}
-
-- (void) updatePath:(gchar*)pathStr withName:(NSString*)newText {
- if (![newText isValidTikzPropertyNameOrValue])
- return;
-
- GtkTreeIter iter;
- GtkTreePath *path = gtk_tree_path_new_from_string (pathStr);
-
- if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (list), &iter, path)) {
- gtk_tree_path_free (path);
- return;
- }
-
- void *propPtr;
- gtk_tree_model_get (GTK_TREE_MODEL (list), &iter,
- PLM_PROPERTY_COL, &propPtr,
- -1);
- GraphElementProperty *prop = (GraphElementProperty*)propPtr;
-
- if (![delegate respondsToSelector:@selector(startEdit)] || [delegate startEdit]) {
- if ([newText isEqualToString:@""]) {
- [data removeObjectIdenticalTo:prop];
- gtk_list_store_remove (list, &iter);
- [prop release];
- } else {
- [prop setKey:newText];
- gtk_list_store_set (list, &iter,
- PLM_NAME_COL, [newText UTF8String],
- -1);
- }
- [delegate endEdit];
- }
-
- gtk_tree_path_free (path);
-}
-
-- (void) addProperty {
- GtkTreeIter iter;
- GraphElementProperty *p = [[GraphElementProperty alloc] initWithPropertyValue:@"" forKey:@"new property"];
- if (![delegate respondsToSelector:@selector(startEdit)] || [delegate startEdit]) {
- [data addObject:p];
- gint pos = [data count] - 1;
- gtk_list_store_insert_with_values (list, &iter, pos,
- PLM_NAME_COL, "new property",
- PLM_VALUE_COL, "",
- PLM_IS_PROPERTY_COL, TRUE,
- PLM_PROPERTY_COL, (void *)p,
- -1);
- [delegate endEdit];
- } else {
- [p release];
- }
-}
-
-- (void) addAtom {
- GtkTreeIter iter;
- GraphElementProperty *p = [[GraphElementProperty alloc] initWithAtomName:@"new atom"];
- if (![delegate respondsToSelector:@selector(startEdit)] || [delegate startEdit]) {
- [data addObject:p];
- gint pos = [data count] - 1;
- gtk_list_store_insert_with_values (list, &iter, pos,
- PLM_NAME_COL, "new atom",
- PLM_VALUE_COL, [[p value] UTF8String],
- PLM_IS_PROPERTY_COL, FALSE,
- PLM_PROPERTY_COL, (void *)p,
- -1);
- [delegate endEdit];
- } else {
- [p release];
- }
-}
-
-- (void) removeSelected {
- GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
- GList *selPaths = gtk_tree_selection_get_selected_rows (selection, NULL);
- GList *selIters = NULL;
-
- // Convert to iters, as GtkListStore has persistent iters
- GList *curr = selPaths;
- while (curr != NULL) {
- GtkTreeIter iter;
- gtk_tree_model_get_iter (GTK_TREE_MODEL (list),
- &iter,
- (GtkTreePath*)curr->data);
- selIters = g_list_prepend (selIters, gtk_tree_iter_copy (&iter));
- curr = g_list_next (curr);
- }
-
- // remove all iters
- curr = selIters;
- while (curr != NULL) {
- GtkTreeIter *iter = (GtkTreeIter*)curr->data;
- void *propPtr;
- gtk_tree_model_get (GTK_TREE_MODEL (list), iter,
- PLM_PROPERTY_COL, &propPtr,
- -1);
- GraphElementProperty *prop = (GraphElementProperty*)propPtr;
- if (![delegate respondsToSelector:@selector(startEdit)] || [delegate startEdit]) {
- [data removeObjectIdenticalTo:prop];
- gtk_list_store_remove (list, iter);
- [prop release];
- [delegate endEdit];
- }
- curr = g_list_next (curr);
- }
-
- g_list_foreach (selIters, (GFunc) gtk_tree_iter_free, NULL);
- g_list_free (selIters);
- g_list_foreach (selPaths, (GFunc) gtk_tree_path_free, NULL);
- g_list_free (selPaths);
-}
-
-- (void) selectionCountChanged:(int)count {
- gtk_widget_set_sensitive (removeButton, count > 0);
-}
-
-- (void) clearStore {
- GtkTreeIter iter;
- if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (list), &iter)) {
- do {
- void *prop;
- gtk_tree_model_get (GTK_TREE_MODEL (list), &iter,
- PLM_PROPERTY_COL, &prop,
- -1);
- [(id)prop release];
- } while (gtk_tree_model_iter_next (GTK_TREE_MODEL (list), &iter));
- gtk_list_store_clear (list);
- }
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void value_edited_cb (GtkCellRendererText *renderer,
- gchar *path,
- gchar *new_text,
- PropertyListEditor *editor)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor updatePath:path withValue:[NSString stringWithUTF8String:new_text]];
- [pool drain];
-}
-
-static void name_edited_cb (GtkCellRendererText *renderer,
- gchar *path,
- gchar *new_text,
- PropertyListEditor *editor)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor updatePath:path withName:[NSString stringWithUTF8String:new_text]];
- [pool drain];
-}
-
-static void add_prop_clicked_cb (GtkButton *button,
- PropertyListEditor *editor)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor addProperty];
- [pool drain];
-}
-
-static void add_atom_clicked_cb (GtkButton *button,
- PropertyListEditor *editor)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor addAtom];
- [pool drain];
-}
-
-static void remove_clicked_cb (GtkButton *button,
- PropertyListEditor *editor)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [editor removeSelected];
- [pool drain];
-}
-
-static void text_editing_started (GtkCellRenderer *cell,
- GtkCellEditable *editable,
- const gchar *path,
- PropertyListEditor *editor)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- if (GTK_IS_EDITABLE (editable) && GTK_IS_WIDGET (editable)) {
- g_signal_handlers_disconnect_by_func (G_OBJECT (editable),
- G_CALLBACK (text_changed_cb),
- editor);
- widget_clear_error (GTK_WIDGET (editable));
- g_signal_connect (G_OBJECT (editable),
- "changed",
- G_CALLBACK (text_changed_cb),
- editor);
- }
-
- [pool drain];
-}
-
-static void text_changed_cb (GtkEditable *editable, PropertyListEditor *pane)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- NSString *newValue = gtk_editable_get_string (editable, 0, -1);
- if (![newValue isValidTikzPropertyNameOrValue]) {
- widget_set_error (GTK_WIDGET (editable));
- } else {
- widget_clear_error (GTK_WIDGET (editable));
- }
-
- [pool drain];
-}
-
-static void selection_changed_cb (GtkTreeSelection *selection,
- PropertyListEditor *pane)
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- int selcount = gtk_tree_selection_count_selected_rows (selection);
- [pane selectionCountChanged:selcount];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/RecentManager.h b/tikzit-old/src/gtk/RecentManager.h
deleted file mode 100644
index e2c2793..0000000
--- a/tikzit-old/src/gtk/RecentManager.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-
-@interface RecentManager: NSObject {
-}
-
-+ (RecentManager*) defaultManager;
-
-- (void)addRecentFile:(NSString*)path;
-- (void)removeRecentFile:(NSString*)path;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/RecentManager.m b/tikzit-old/src/gtk/RecentManager.m
deleted file mode 100644
index c6074c6..0000000
--- a/tikzit-old/src/gtk/RecentManager.m
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "RecentManager.h"
-#import <gtk/gtk.h>
-
-static RecentManager *defMan = nil;
-
-@implementation RecentManager
-- (id) init {
- self = [super init];
- return self;
-}
-
-+ (RecentManager*) defaultManager {
- if (defMan == nil) {
- defMan = [[self alloc] init];
- }
- return defMan;
-}
-
-- (void)addRecentFile:(NSString*)path {
- NSError *error = nil;
- gchar *uri = [path glibUriWithError:&error];
- if (error) {
- logError (error, @"Could not add recent file");
- return;
- }
-
- GtkRecentData recent_data;
- recent_data.display_name = NULL;
- recent_data.description = NULL;
- recent_data.mime_type = "text/x-tikz";
- recent_data.app_name = (gchar *) g_get_application_name ();
- recent_data.app_exec = g_strjoin (" ", g_get_prgname (), "%u", NULL);
- recent_data.groups = NULL;
- recent_data.is_private = FALSE;
-
- gtk_recent_manager_add_full (gtk_recent_manager_get_default(), uri, &recent_data);
-
- g_free (uri);
- g_free (recent_data.app_exec);
-}
-
-- (void)removeRecentFile:(NSString*)path {
- NSError *error = nil;
- gchar *uri = [path glibUriWithError:&error];
- if (error) {
- logError (error, @"Could not remove recent file");
- return;
- }
-
- gtk_recent_manager_remove_item (gtk_recent_manager_get_default(), uri, NULL);
-
- g_free (uri);
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/SelectTool.h b/tikzit-old/src/gtk/SelectTool.h
deleted file mode 100644
index 65f511a..0000000
--- a/tikzit-old/src/gtk/SelectTool.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Tool.h"
-
-@class Edge;
-@class Node;
-
-// FIXME: replace this with delegates
-typedef enum {
- QuietState,
- SelectBoxState,
- ToggleSelectState,
- MoveSelectedNodesState,
- DragEdgeControlPoint1,
- DragEdgeControlPoint2
-} SelectToolState;
-
-typedef enum {
- DragSelectsNodes = 1,
- DragSelectsEdges = 2,
- DragSelectsBoth = DragSelectsNodes | DragSelectsEdges
-} DragSelectMode;
-
-@interface SelectTool : NSObject <Tool> {
- GraphRenderer *renderer;
- SelectToolState state;
- float edgeFuzz;
- DragSelectMode dragSelectMode;
- NSPoint dragOrigin;
- Node *leaderNode;
- NSPoint oldLeaderPos;
- Edge *modifyEdge;
- NSRect selectionBox;
- NSMutableSet *selectionBoxContents;
-
- GtkWidget *configWidget;
- GSList *dragSelectModeButtons;
-}
-
-@property (assign) float edgeFuzz;
-@property (assign) DragSelectMode dragSelectMode;
-
-- (id) init;
-+ (id) tool;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/SelectTool.m b/tikzit-old/src/gtk/SelectTool.m
deleted file mode 100644
index b3121ae..0000000
--- a/tikzit-old/src/gtk/SelectTool.m
+++ /dev/null
@@ -1,590 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "SelectTool.h"
-
-#import "Configuration.h"
-#import "Edge+Render.h"
-#import "GraphRenderer.h"
-#import "TikzDocument.h"
-#import "tzstockitems.h"
-
-#import <gdk/gdkkeysyms.h>
-
-#define DRAG_SELECT_MODE_KEY "tikzit-drag-select-mode"
-
-static const InputMask unionSelectMask = ShiftMask;
-
-static void drag_select_mode_cb (GtkToggleButton *button, SelectTool *tool);
-
-@interface SelectTool (Private)
-- (TikzDocument*) doc;
-- (void) shiftNodesByMovingLeader:(Node*)leader to:(NSPoint)to;
-- (void) deselectAllNodes;
-- (void) deselectAllEdges;
-- (void) deselectAll;
-- (BOOL) circleWithCenter:(NSPoint)c andRadius:(float)r containsPoint:(NSPoint)p;
-- (void) lookForControlPointAt:(NSPoint)pos;
-- (void) setSelectionBox:(NSRect)box;
-- (void) clearSelectionBox;
-- (BOOL) selectionBoxContainsNode:(Node*)node;
-@end
-
-@implementation SelectTool
-- (NSString*) name { return @"Select"; }
-- (const gchar*) stockId { return TIKZIT_STOCK_SELECT; }
-- (NSString*) helpText { return @"Select, move and edit nodes and edges"; }
-- (NSString*) shortcut { return @"s"; }
-@synthesize configurationWidget=configWidget;
-@synthesize edgeFuzz;
-
-+ (id) tool {
- return [[[self alloc] init] autorelease];
-}
-
-- (id) init {
- self = [super init];
-
- if (self) {
- state = QuietState;
- edgeFuzz = 3.0f;
- dragSelectMode = DragSelectsNodes;
-
- configWidget = gtk_vbox_new (FALSE, 0);
- g_object_ref_sink (configWidget);
-
- GtkWidget *label = gtk_label_new ("Drag selects:");
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
- gtk_box_pack_start (GTK_BOX (configWidget),
- label,
- FALSE,
- FALSE,
- 0);
-
- GtkWidget *nodeOpt = gtk_radio_button_new_with_label (NULL, "nodes (N)");
- g_object_set_data (G_OBJECT (nodeOpt),
- DRAG_SELECT_MODE_KEY,
- (gpointer)DragSelectsNodes);
- gtk_box_pack_start (GTK_BOX (configWidget),
- nodeOpt,
- FALSE,
- FALSE,
- 0);
- g_signal_connect (G_OBJECT (nodeOpt),
- "toggled",
- G_CALLBACK (drag_select_mode_cb),
- self);
-
- GtkWidget *edgeOpt = gtk_radio_button_new_with_label (
- gtk_radio_button_get_group (GTK_RADIO_BUTTON (nodeOpt)),
- "edges (E)");
- g_object_set_data (G_OBJECT (edgeOpt),
- DRAG_SELECT_MODE_KEY,
- (gpointer)DragSelectsEdges);
- gtk_box_pack_start (GTK_BOX (configWidget),
- edgeOpt,
- FALSE,
- FALSE,
- 0);
- g_signal_connect (G_OBJECT (edgeOpt),
- "toggled",
- G_CALLBACK (drag_select_mode_cb),
- self);
-
- GtkWidget *bothOpt = gtk_radio_button_new_with_label (
- gtk_radio_button_get_group (GTK_RADIO_BUTTON (edgeOpt)),
- "both (B)");
- g_object_set_data (G_OBJECT (bothOpt),
- DRAG_SELECT_MODE_KEY,
- (gpointer)DragSelectsBoth);
- gtk_box_pack_start (GTK_BOX (configWidget),
- bothOpt,
- FALSE,
- FALSE,
- 0);
- g_signal_connect (G_OBJECT (bothOpt),
- "toggled",
- G_CALLBACK (drag_select_mode_cb),
- self);
- dragSelectModeButtons = gtk_radio_button_get_group (GTK_RADIO_BUTTON (bothOpt));
-
- gtk_widget_show_all (configWidget);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [renderer release];
- [leaderNode release];
- [modifyEdge release];
-
- g_object_unref (G_OBJECT (configWidget));
-
- [super dealloc];
-}
-
-- (DragSelectMode) dragSelectMode {
- return dragSelectMode;
-}
-
-- (void) setDragSelectMode:(DragSelectMode)mode {
- if (dragSelectMode == mode)
- return;
-
- dragSelectMode = mode;
-
- GSList *entry = dragSelectModeButtons;
- while (entry) {
- GtkToggleButton *button = GTK_TOGGLE_BUTTON (entry->data);
- DragSelectMode buttonMode =
- (DragSelectMode) g_object_get_data (
- G_OBJECT (button),
- DRAG_SELECT_MODE_KEY);
- if (buttonMode == dragSelectMode) {
- gtk_toggle_button_set_active (button, TRUE);
- break;
- }
-
- entry = g_slist_next (entry);
- }
-}
-
-- (GraphRenderer*) activeRenderer { return renderer; }
-- (void) setActiveRenderer:(GraphRenderer*)r {
- if (r == renderer)
- return;
-
- [r retain];
- [renderer release];
- renderer = r;
-
- state = QuietState;
-}
-
-- (void) mousePressAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- dragOrigin = pos;
-
- // we should already be in a quiet state, but no harm in making sure
- state = QuietState;
-
- modifyEdge = nil;
- [self lookForControlPointAt:pos];
-
- if (modifyEdge == nil) {
- // we didn't find a control point
-
- BOOL unionSelect = (mask & unionSelectMask);
-
- leaderNode = [renderer anyNodeAt:pos];
- // if we hit a node, deselect other nodes (if Shift is up) and go to move mode
- if (leaderNode != nil) {
- BOOL alreadySelected = [[self doc] isNodeSelected:leaderNode];
- if (!unionSelect && !alreadySelected) {
- [self deselectAll];
- }
- if (unionSelect && alreadySelected) {
- state = ToggleSelectState;
- } else {
- [[[self doc] pickSupport] selectNode:leaderNode];
- state = MoveSelectedNodesState;
- oldLeaderPos = [leaderNode point];
- [[self doc] startShiftNodes:[[[self doc] pickSupport] selectedNodes]];
- }
- }
-
- // if mouse did not hit a node, check if mouse hit an edge
- if (leaderNode == nil) {
- Edge *edge = [renderer anyEdgeAt:pos withFuzz:edgeFuzz];
- if (edge != nil) {
- BOOL alreadySelected = [[self doc] isEdgeSelected:edge];
- if (!unionSelect) {
- [self deselectAll];
- }
- if (unionSelect && alreadySelected) {
- [[[self doc] pickSupport] deselectEdge:edge];
- } else {
- [[[self doc] pickSupport] selectEdge:edge];
- }
- } else {
- // if mouse did not hit anything, put us in box mode
- if (!unionSelect) {
- [self deselectAll];
- }
- [renderer clearHighlightedNodes];
- state = SelectBoxState;
- }
- }
- }
-}
-
-- (void) mouseMoveTo:(NSPoint)pos withButtons:(MouseButton)buttons andMask:(InputMask)mask {
- if (!(buttons & LeftButton))
- return;
-
- Transformer *transformer = [renderer transformer];
-
- if (state == ToggleSelectState) {
- state = MoveSelectedNodesState;
- oldLeaderPos = [leaderNode point];
- [[self doc] startShiftNodes:[[[self doc] pickSupport] selectedNodes]];
- }
-
- if (state == SelectBoxState) {
- [self setSelectionBox:NSRectAroundPoints(dragOrigin, pos)];
-
- NSEnumerator *enumerator = [[self doc] nodeEnumerator];
- Node *node;
- while ((node = [enumerator nextObject]) != nil) {
- NSPoint nodePos = [transformer toScreen:[node point]];
- if (NSPointInRect(nodePos, selectionBox)) {
- [renderer setNode:node highlighted:YES];
- } else {
- [renderer setNode:node highlighted:NO];
- }
- }
- } else if (state == MoveSelectedNodesState) {
- if (leaderNode != nil) {
- [self shiftNodesByMovingLeader:leaderNode to:pos];
- NSPoint shiftSoFar;
- shiftSoFar.x = [leaderNode point].x - oldLeaderPos.x;
- shiftSoFar.y = [leaderNode point].y - oldLeaderPos.y;
- [[self doc] shiftNodesUpdate:shiftSoFar];
- }
- } else if (state == DragEdgeControlPoint1 || state == DragEdgeControlPoint2) {
- // invalidate once before we start changing it: we may be shrinking
- // the control circles
- [[self doc] modifyEdgeCheckPoint];
- if (state == DragEdgeControlPoint1) {
- [modifyEdge moveCp1To:[transformer fromScreen:pos]
- withWeightCourseness:0.1f
- andBendCourseness:15
- forceLinkControlPoints:(mask & ControlMask)];
- } else {
- [modifyEdge moveCp2To:[transformer fromScreen:pos]
- withWeightCourseness:0.1f
- andBendCourseness:15
- forceLinkControlPoints:(mask & ControlMask)];
- }
- [[self doc] modifyEdgeCheckPoint];
- }
-}
-
-- (void) mouseReleaseAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- if (state == SelectBoxState) {
- PickSupport *ps = [[self doc] pickSupport];
- Transformer *transformer = [renderer transformer];
-
- if (!(mask & unionSelectMask)) {
- [ps deselectAllNodes];
- [ps deselectAllEdges];
- }
-
- Graph *graph = [[self doc] graph];
- if (dragSelectMode & DragSelectsNodes) {
- for (Node *node in [graph nodes]) {
- NSPoint nodePos = [transformer toScreen:[node point]];
- if (NSPointInRect(nodePos, selectionBox)) {
- [ps selectNode:node];
- }
- }
- }
- if (dragSelectMode & DragSelectsEdges) {
- for (Edge *edge in [graph edges]) {
- NSPoint edgePos = [transformer toScreen:[edge mid]];
- if (NSPointInRect(edgePos, selectionBox)) {
- [ps selectEdge:edge];
- }
- }
- }
-
- [self clearSelectionBox];
- } else if (state == ToggleSelectState) {
- [[[self doc] pickSupport] deselectNode:leaderNode];
- leaderNode = nil;
- } else if (state == MoveSelectedNodesState) {
- if (NSEqualPoints (oldLeaderPos, [leaderNode point])) {
- [[self doc] cancelShiftNodes];
- } else {
- [[self doc] endShiftNodes];
- }
- leaderNode = nil;
- } else if (state == DragEdgeControlPoint1 || state == DragEdgeControlPoint2) {
- // FIXME: check if there was any real change
- [[self doc] endModifyEdge];
- }
-
- state = QuietState;
-}
-
-- (void) mouseDoubleClickAt:(NSPoint)pos withButton:(MouseButton)button andMask:(InputMask)mask {
- if (button != LeftButton)
- return;
-
- if (state != QuietState) {
- return;
- }
- // convert bend mode on edge under mouse cursor
- Edge *edge = [renderer anyEdgeAt:pos withFuzz:edgeFuzz];
- if (edge != nil) {
- [[self doc] startModifyEdge:edge];
- if ([edge bendMode]==EdgeBendModeBasic) {
- [edge convertBendToAngles];
- [edge setBendMode:EdgeBendModeInOut];
- } else {
- [edge setBendMode:EdgeBendModeBasic];
- }
- [[self doc] endModifyEdge];
-
- [self deselectAllEdges];
- [[[self doc] pickSupport] selectEdge:edge];
- }
-}
-
-- (void) keyPressed:(unsigned int)keyVal withMask:(InputMask)mask {
- if (keyVal == GDK_KEY_N && mask == ShiftMask) {
- [self setDragSelectMode:DragSelectsNodes];
- } else if (keyVal == GDK_KEY_E && mask == ShiftMask) {
- [self setDragSelectMode:DragSelectsEdges];
- } else if (keyVal == GDK_KEY_B && mask == ShiftMask) {
- [self setDragSelectMode:DragSelectsBoth];
- } else if (keyVal == GDK_KEY_D && (!mask || mask == ShiftMask)) {
- PickSupport *ps = [[self doc] pickSupport];
- for (Node* node in [ps selectedNodes]) {
- NSRect b = [node boundingRect];
- NSLog(@"%@ @ (%f,%f) {style=%@, label=%@, data=%@, bounds=(%f,%f),(%fx%f)}",
- [node name],
- [node point].x,
- [node point].y,
- [[node style] name],
- [node label],
- [[node data] tikzList],
- b.origin.x, b.origin.y, b.size.width, b.size.height);
- }
- for (Edge* edge in [ps selectedEdges]) {
- NSRect b = [edge boundingRect];
- NSLog(@"%@:%@->%@:%@ {\n"
- @" style=%@, data=%@,\n"
- @" bend=%d, weight=%f, inAngle=%d, outAngle=%d, bendMode=%d,\n"
- @" head=(%f,%f), headTan=(%f,%f) leftHeadNormal=(%f,%f), rightHeadNormal=(%f,%f),\n"
- @" cp1=(%f,%f),\n"
- @" mid=(%f,%f), midTan=(%f,%f), leftNormal=(%f,%f), rightNormal=(%f,%f)\n"
- @" cp2=(%f,%f),\n"
- @" tail=(%f,%f), tailTan=(%f,%f), leftTailNormal=(%f,%f), rightTailNormal=(%f,%f),\n"
- @" isSelfLoop=%s, isStraight=%s,\n"
- @" bounds=(%f,%f),(%fx%f)\n"
- @"}",
- [[edge source] name],
- [edge sourceAnchor],
- [[edge target] name],
- [edge targetAnchor],
- [[edge style] name],
- [[edge data] tikzList],
- [edge bend],
- [edge weight],
- [edge inAngle],
- [edge outAngle],
- [edge bendMode],
- [edge head].x,
- [edge head].y,
- [edge headTan].x,
- [edge headTan].y,
- [edge leftHeadNormal].x,
- [edge leftHeadNormal].y,
- [edge rightHeadNormal].x,
- [edge rightHeadNormal].y,
- [edge cp1].x,
- [edge cp1].y,
- [edge mid].x,
- [edge mid].y,
- [edge midTan].x,
- [edge midTan].y,
- [edge leftNormal].x,
- [edge leftNormal].y,
- [edge rightNormal].x,
- [edge rightNormal].y,
- [edge cp2].x,
- [edge cp2].y,
- [edge tail].x,
- [edge tail].y,
- [edge tailTan].x,
- [edge tailTan].y,
- [edge leftTailNormal].x,
- [edge leftTailNormal].y,
- [edge rightTailNormal].x,
- [edge rightTailNormal].y,
- [edge isSelfLoop] ? "yes" : "no",
- [edge isStraight] ? "yes" : "no",
- b.origin.x, b.origin.y, b.size.width, b.size.height);
- }
- }
-}
-
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface {
- if (!NSIsEmptyRect (selectionBox)) {
- [context saveState];
-
- [context setAntialiasMode:AntialiasDisabled];
- [context setLineWidth:1.0];
- [context startPath];
- [context rect:selectionBox];
- RColor fColor = MakeRColor (0.8, 0.8, 0.8, 0.2);
- RColor sColor = MakeSolidRColor (0.6, 0.6, 0.6);
- [context strokePathWithColor:sColor andFillWithColor:fColor];
-
- [context restoreState];
- }
-}
-
-- (void) loadConfiguration:(Configuration*)config {
- NSString *mode = [config stringEntry:@"Drag select mode"
- inGroup:@"SelectTool"];
- if ([mode isEqualToString:@"nodes"]) {
- [self setDragSelectMode:DragSelectsNodes];
- } else if ([mode isEqualToString:@"edges"]) {
- [self setDragSelectMode:DragSelectsEdges];
- } else if ([mode isEqualToString:@"both"]) {
- [self setDragSelectMode:DragSelectsBoth];
- }
-}
-
-- (void) saveConfiguration:(Configuration*)config {
- switch (dragSelectMode) {
- case DragSelectsNodes:
- [config setStringEntry:@"Drag select mode"
- inGroup:@"SelectTool"
- value:@"nodes"];
- break;
- case DragSelectsEdges:
- [config setStringEntry:@"Drag select mode"
- inGroup:@"SelectTool"
- value:@"edges"];
- break;
- case DragSelectsBoth:
- [config setStringEntry:@"Drag select mode"
- inGroup:@"SelectTool"
- value:@"both"];
- break;
- }
-}
-
-@end
-
-@implementation SelectTool (Private)
-- (TikzDocument*) doc {
- return [renderer document];
-}
-
-- (void) shiftNodesByMovingLeader:(Node*)leader to:(NSPoint)to {
- Transformer *transformer = [renderer transformer];
-
- NSPoint from = [transformer toScreen:[leader point]];
- to = [[renderer grid] snapScreenPoint:to];
- float dx = to.x - from.x;
- float dy = to.y - from.y;
-
- for (Node *node in [[[self doc] pickSupport] selectedNodes]) {
- NSPoint p = [transformer toScreen:[node point]];
- p.x += dx;
- p.y += dy;
- [node setPoint:[transformer fromScreen:p]];
- }
-}
-
-- (void) deselectAllNodes {
- [[[self doc] pickSupport] deselectAllNodes];
-}
-
-- (void) deselectAllEdges {
- [[[self doc] pickSupport] deselectAllEdges];
-}
-
-- (void) deselectAll {
- [[[self doc] pickSupport] deselectAllNodes];
- [[[self doc] pickSupport] deselectAllEdges];
-}
-
-- (BOOL) circleWithCenter:(NSPoint)c andRadius:(float)r containsPoint:(NSPoint)p {
- return (NSDistanceBetweenPoints(c, p) <= r);
-}
-
-- (void) lookForControlPointAt:(NSPoint)pos {
- const float cpr = [Edge controlPointRadius];
- for (Edge *e in [[[self doc] pickSupport] selectedEdges]) {
- NSPoint cp1 = [[renderer transformer] toScreen:[e cp1]];
- if ([self circleWithCenter:cp1 andRadius:cpr containsPoint:pos]) {
- state = DragEdgeControlPoint1;
- modifyEdge = e;
- [[self doc] startModifyEdge:e];
- return;
- }
- NSPoint cp2 = [[renderer transformer] toScreen:[e cp2]];
- if ([self circleWithCenter:cp2 andRadius:cpr containsPoint:pos]) {
- state = DragEdgeControlPoint2;
- modifyEdge = e;
- [[self doc] startModifyEdge:e];
- return;
- }
- }
-}
-
-- (void) setSelectionBox:(NSRect)box {
- NSRect invRect = NSUnionRect (selectionBox, box);
- selectionBox = box;
- [renderer invalidateRect:NSInsetRect (invRect, -2, -2)];
-}
-
-- (void) clearSelectionBox {
- NSRect oldRect = selectionBox;
-
- selectionBox = NSZeroRect;
-
- [renderer invalidateRect:NSInsetRect (oldRect, -2, -2)];
- [renderer clearHighlightedNodes];
-}
-
-- (BOOL) selectionBoxContainsNode:(Node*)node {
- if (!NSIsEmptyRect (selectionBox))
- return NO;
-
- Transformer *transf = [[renderer surface] transformer];
- NSPoint screenPt = [transf toScreen:[node point]];
- return NSPointInRect(screenPt, selectionBox);
-}
-@end
-
-static void drag_select_mode_cb (GtkToggleButton *button, SelectTool *tool) {
- if (gtk_toggle_button_get_active (button)) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- DragSelectMode buttonMode =
- (DragSelectMode) g_object_get_data (
- G_OBJECT (button),
- DRAG_SELECT_MODE_KEY);
- [tool setDragSelectMode:buttonMode];
- [pool drain];
- }
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/SelectionPane.h b/tikzit-old/src/gtk/SelectionPane.h
deleted file mode 100644
index 57a766a..0000000
--- a/tikzit-old/src/gtk/SelectionPane.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Configuration;
-@class EdgeStylesModel;
-@class NodeStylesModel;
-@class StyleManager;
-@class TikzDocument;
-
-@interface SelectionPane: NSObject {
- TikzDocument *document;
-
- NodeStylesModel *nodeStylesModel;
- EdgeStylesModel *edgeStylesModel;
-
- GtkWidget *layout;
-
- GtkWidget *nodeStyleCombo;
- GtkWidget *applyNodeStyleButton;
- GtkWidget *clearNodeStyleButton;
- GtkWidget *edgeStyleCombo;
- GtkWidget *applyEdgeStyleButton;
- GtkWidget *clearEdgeStyleButton;
-}
-
-@property (retain) TikzDocument *document;
-@property (assign) BOOL visible;
-@property (readonly) GtkWidget *gtkWidget;
-
-- (id) initWithStyleManager:(StyleManager*)mgr;
-- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm
- andEdgeStylesModel:(EdgeStylesModel*)esm;
-
-- (void) loadConfiguration:(Configuration*)config;
-- (void) saveConfiguration:(Configuration*)config;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/SelectionPane.m b/tikzit-old/src/gtk/SelectionPane.m
deleted file mode 100644
index 2931258..0000000
--- a/tikzit-old/src/gtk/SelectionPane.m
+++ /dev/null
@@ -1,432 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "SelectionPane.h"
-
-#import "Configuration.h"
-#import "EdgeStylesModel.h"
-#import "NodeStylesModel.h"
-#import "TikzDocument.h"
-
-#import "gtkhelpers.h"
-
-// {{{ Internal interfaces
-
-static void node_style_changed_cb (GtkComboBox *widget, SelectionPane *pane);
-static void apply_node_style_button_cb (GtkButton *widget, SelectionPane *pane);
-static void clear_node_style_button_cb (GtkButton *widget, SelectionPane *pane);
-static void edge_style_changed_cb (GtkComboBox *widget, SelectionPane *pane);
-static void apply_edge_style_button_cb (GtkButton *widget, SelectionPane *pane);
-static void clear_edge_style_button_cb (GtkButton *widget, SelectionPane *pane);
-
-static void setup_style_cell_layout (GtkCellLayout *cell_layout, gint pixbuf_col, gint name_col);
-
-@interface SelectionPane (Notifications)
-- (void) nodeSelectionChanged:(NSNotification*)n;
-- (void) edgeSelectionChanged:(NSNotification*)n;
-@end
-
-@interface SelectionPane (Private)
-- (void) _updateNodeStyleButtons;
-- (void) _updateEdgeStyleButtons;
-- (NodeStyle*) _selectedNodeStyle;
-- (EdgeStyle*) _selectedEdgeStyle;
-- (void) _applyNodeStyle;
-- (void) _clearNodeStyle;
-- (void) _applyEdgeStyle;
-- (void) _clearEdgeStyle;
-@end
-
-// }}}
-// {{{ API
-
-@implementation SelectionPane
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithStyleManager:(StyleManager*)sm {
- return [self initWithNodeStylesModel:[NodeStylesModel modelWithStyleManager:sm]
- andEdgeStylesModel:[EdgeStylesModel modelWithStyleManager:sm]];
-}
-
-- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm
- andEdgeStylesModel:(EdgeStylesModel*)esm {
- self = [super init];
-
- if (self) {
- nodeStylesModel = [nsm retain];
- edgeStylesModel = [esm retain];
-
- layout = gtk_vbox_new (FALSE, 0);
- g_object_ref_sink (layout);
- gtk_widget_show (layout);
-
- GtkWidget *label = gtk_label_new ("Selection");
- label_set_bold (GTK_LABEL (label));
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (layout), label,
- FALSE, FALSE, 0);
-
- GtkWidget *lvl1_box = gtk_vbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (layout), lvl1_box,
- FALSE, FALSE, 3);
-
- nodeStyleCombo = gtk_combo_box_new_with_model ([nodeStylesModel model]);
- g_object_ref_sink (nodeStyleCombo);
- setup_style_cell_layout (GTK_CELL_LAYOUT (nodeStyleCombo),
- NODE_STYLES_ICON_COL,
- NODE_STYLES_NAME_COL);
- g_signal_connect (G_OBJECT (nodeStyleCombo),
- "changed",
- G_CALLBACK (node_style_changed_cb),
- self);
- gtk_box_pack_start (GTK_BOX (lvl1_box), nodeStyleCombo,
- FALSE, FALSE, 0);
-
- GtkWidget *lvl2_box = gtk_hbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (lvl1_box), lvl2_box,
- FALSE, FALSE, 0);
-
- applyNodeStyleButton = gtk_button_new_with_label ("Apply");
- g_object_ref_sink (applyNodeStyleButton);
- gtk_widget_set_tooltip_text (applyNodeStyleButton, "Apply style to selected nodes");
- gtk_widget_set_sensitive (applyNodeStyleButton, FALSE);
- g_signal_connect (G_OBJECT (applyNodeStyleButton),
- "clicked",
- G_CALLBACK (apply_node_style_button_cb),
- self);
- gtk_box_pack_start (GTK_BOX (lvl2_box), applyNodeStyleButton,
- FALSE, FALSE, 0);
-
- clearNodeStyleButton = gtk_button_new_with_label ("Clear");
- g_object_ref_sink (clearNodeStyleButton);
- gtk_widget_set_tooltip_text (clearNodeStyleButton, "Clear style from selected nodes");
- gtk_widget_set_sensitive (clearNodeStyleButton, FALSE);
- g_signal_connect (G_OBJECT (clearNodeStyleButton),
- "clicked",
- G_CALLBACK (clear_node_style_button_cb),
- self);
- gtk_box_pack_start (GTK_BOX (lvl2_box), clearNodeStyleButton,
- FALSE, FALSE, 0);
-
- lvl1_box = gtk_vbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (layout), lvl1_box,
- FALSE, FALSE, 3);
-
- edgeStyleCombo = gtk_combo_box_new_with_model ([edgeStylesModel model]);
- g_object_ref_sink (edgeStyleCombo);
- setup_style_cell_layout (GTK_CELL_LAYOUT (edgeStyleCombo),
- EDGE_STYLES_ICON_COL,
- EDGE_STYLES_NAME_COL);
- g_signal_connect (G_OBJECT (edgeStyleCombo),
- "changed",
- G_CALLBACK (edge_style_changed_cb),
- self);
- gtk_box_pack_start (GTK_BOX (lvl1_box), edgeStyleCombo,
- FALSE, FALSE, 0);
-
- lvl2_box = gtk_hbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (lvl1_box), lvl2_box,
- FALSE, FALSE, 0);
-
- applyEdgeStyleButton = gtk_button_new_with_label ("Apply");
- g_object_ref_sink (applyEdgeStyleButton);
- gtk_widget_set_tooltip_text (applyEdgeStyleButton, "Apply style to selected edges");
- gtk_widget_set_sensitive (applyEdgeStyleButton, FALSE);
- g_signal_connect (G_OBJECT (applyEdgeStyleButton),
- "clicked",
- G_CALLBACK (apply_edge_style_button_cb),
- self);
- gtk_box_pack_start (GTK_BOX (lvl2_box), applyEdgeStyleButton,
- FALSE, FALSE, 0);
-
- clearEdgeStyleButton = gtk_button_new_with_label ("Clear");
- g_object_ref_sink (clearEdgeStyleButton);
- gtk_widget_set_tooltip_text (clearEdgeStyleButton, "Clear style from selected edges");
- gtk_widget_set_sensitive (clearEdgeStyleButton, FALSE);
- g_signal_connect (G_OBJECT (clearEdgeStyleButton),
- "clicked",
- G_CALLBACK (clear_edge_style_button_cb),
- self);
- gtk_box_pack_start (GTK_BOX (lvl2_box), clearEdgeStyleButton,
- FALSE, FALSE, 0);
-
- gtk_widget_show_all (layout);
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- g_object_unref (nodeStyleCombo);
- g_object_unref (applyNodeStyleButton);
- g_object_unref (clearNodeStyleButton);
- g_object_unref (edgeStyleCombo);
- g_object_unref (applyEdgeStyleButton);
- g_object_unref (clearEdgeStyleButton);
-
- g_object_unref (layout);
-
- [nodeStylesModel release];
- [edgeStylesModel release];
-
- [document release];
-
- [super dealloc];
-}
-
-- (TikzDocument*) document {
- return document;
-}
-
-- (void) setDocument:(TikzDocument*)doc {
- if (document != nil) {
- [[NSNotificationCenter defaultCenter]
- removeObserver:self
- name:nil
- object:[document pickSupport]];
- }
-
- [doc retain];
- [document release];
- document = doc;
-
- if (doc != nil) {
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(nodeSelectionChanged:)
- name:@"NodeSelectionChanged" object:[doc pickSupport]];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(edgeSelectionChanged:)
- name:@"EdgeSelectionChanged" object:[doc pickSupport]];
- }
-
- [self _updateNodeStyleButtons];
- [self _updateEdgeStyleButtons];
-}
-
-- (BOOL) visible {
- return gtk_widget_get_visible (layout);
-}
-
-- (void) setVisible:(BOOL)visible {
- gtk_widget_set_visible (layout, visible);
-}
-
-- (GtkWidget*) gtkWidget {
- return layout;
-}
-
-- (void) loadConfiguration:(Configuration*)config {
- NSString *nodeStyleName = [config stringEntry:@"SelectedNodeStyle"
- inGroup:@"SelectionPane"
- withDefault:nil];
- NodeStyle *nodeStyle = [[nodeStylesModel styleManager] nodeStyleForName:nodeStyleName];
- if (nodeStyle == nil) {
- gtk_combo_box_set_active (GTK_COMBO_BOX (nodeStyleCombo), -1);
- } else {
- GtkTreeIter *iter = [nodeStylesModel iterFromStyle:nodeStyle];
- if (iter) {
- gtk_combo_box_set_active_iter (GTK_COMBO_BOX (nodeStyleCombo), iter);
- gtk_tree_iter_free (iter);
- }
- }
-
- NSString *edgeStyleName = [config stringEntry:@"SelectedEdgeStyle"
- inGroup:@"SelectionPane"
- withDefault:nil];
- EdgeStyle *edgeStyle = [[edgeStylesModel styleManager] edgeStyleForName:edgeStyleName];
- if (edgeStyle == nil) {
- gtk_combo_box_set_active (GTK_COMBO_BOX (edgeStyleCombo), -1);
- } else {
- GtkTreeIter *iter = [edgeStylesModel iterFromStyle:edgeStyle];
- if (iter) {
- gtk_combo_box_set_active_iter (GTK_COMBO_BOX (edgeStyleCombo), iter);
- gtk_tree_iter_free (iter);
- }
- }
-}
-
-- (void) saveConfiguration:(Configuration*)config {
- [config setStringEntry:@"SelectedNodeStyle"
- inGroup:@"SelectionPane"
- value:[[self _selectedNodeStyle] name]];
- [config setStringEntry:@"SelectedEdgeStyle"
- inGroup:@"SelectionPane"
- value:[[self _selectedEdgeStyle] name]];
-}
-
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation SelectionPane (Notifications)
-- (void) nodeSelectionChanged:(NSNotification*)n {
- [self _updateNodeStyleButtons];
-}
-
-- (void) edgeSelectionChanged:(NSNotification*)n {
- [self _updateEdgeStyleButtons];
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation SelectionPane (Private)
-- (void) _updateNodeStyleButtons {
- gboolean hasNodeSelection = [[[document pickSupport] selectedNodes] count] > 0;
-
- gtk_widget_set_sensitive (applyNodeStyleButton,
- hasNodeSelection && [self _selectedNodeStyle] != nil);
- gtk_widget_set_sensitive (clearNodeStyleButton, hasNodeSelection);
-}
-
-- (void) _updateEdgeStyleButtons {
- gboolean hasEdgeSelection = [[[document pickSupport] selectedEdges] count] > 0;
-
- gtk_widget_set_sensitive (applyEdgeStyleButton,
- hasEdgeSelection && [self _selectedEdgeStyle] != nil);
- gtk_widget_set_sensitive (clearEdgeStyleButton, hasEdgeSelection);
-}
-
-- (NodeStyle*) _selectedNodeStyle {
- GtkTreeIter iter;
- if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (nodeStyleCombo), &iter)) {
- return [nodeStylesModel styleFromIter:&iter];
- } else {
- return nil;
- }
-}
-
-- (EdgeStyle*) _selectedEdgeStyle {
- GtkTreeIter iter;
- if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (edgeStyleCombo), &iter)) {
- return [edgeStylesModel styleFromIter:&iter];
- } else {
- return nil;
- }
-}
-
-- (void) _applyNodeStyle {
- [document startModifyNodes:[[document pickSupport] selectedNodes]];
-
- NodeStyle *style = [self _selectedNodeStyle];
- for (Node *node in [[document pickSupport] selectedNodes]) {
- [node setStyle:style];
- }
-
- [document endModifyNodes];
-}
-
-- (void) _clearNodeStyle {
- [document startModifyNodes:[[document pickSupport] selectedNodes]];
-
- for (Node *node in [[document pickSupport] selectedNodes]) {
- [node setStyle:nil];
- }
-
- [document endModifyNodes];
-}
-
-- (void) _applyEdgeStyle {
- [document startModifyEdges:[[document pickSupport] selectedEdges]];
-
- EdgeStyle *style = [self _selectedEdgeStyle];
- for (Edge *edge in [[document pickSupport] selectedEdges]) {
- [edge setStyle:style];
- }
-
- [document endModifyEdges];
-}
-
-- (void) _clearEdgeStyle {
- [document startModifyEdges:[[document pickSupport] selectedEdges]];
-
- for (Edge *edge in [[document pickSupport] selectedEdges]) {
- [edge setStyle:nil];
- }
-
- [document endModifyEdges];
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void node_style_changed_cb (GtkComboBox *widget, SelectionPane *pane) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [pane _updateNodeStyleButtons];
- [pool drain];
-}
-
-static void apply_node_style_button_cb (GtkButton *widget, SelectionPane *pane) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [pane _applyNodeStyle];
- [pool drain];
-}
-
-static void clear_node_style_button_cb (GtkButton *widget, SelectionPane *pane) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [pane _clearNodeStyle];
- [pool drain];
-}
-
-static void edge_style_changed_cb (GtkComboBox *widget, SelectionPane *pane) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [pane _updateEdgeStyleButtons];
- [pool drain];
-}
-
-static void apply_edge_style_button_cb (GtkButton *widget, SelectionPane *pane) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [pane _applyEdgeStyle];
- [pool drain];
-}
-
-static void clear_edge_style_button_cb (GtkButton *widget, SelectionPane *pane) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [pane _clearEdgeStyle];
- [pool drain];
-}
-
-// }}}
-//
-static void setup_style_cell_layout (GtkCellLayout *cell_layout, gint pixbuf_col, gint name_col) {
- gtk_cell_layout_clear (cell_layout);
- GtkCellRenderer *pixbuf_renderer = gtk_cell_renderer_pixbuf_new ();
- gtk_cell_layout_pack_start (cell_layout, pixbuf_renderer, FALSE);
- gtk_cell_layout_set_attributes (
- cell_layout,
- pixbuf_renderer,
- "pixbuf", pixbuf_col,
- NULL);
- GtkCellRenderer *text_renderer = gtk_cell_renderer_text_new ();
- gtk_cell_layout_pack_start (cell_layout, text_renderer, FALSE);
- gtk_cell_layout_set_attributes (
- cell_layout,
- text_renderer,
- "text", name_col,
- NULL);
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/SettingsDialog.h b/tikzit-old/src/gtk/SettingsDialog.h
deleted file mode 100644
index 0f687b3..0000000
--- a/tikzit-old/src/gtk/SettingsDialog.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Configuration;
-@class EdgeStylesPalette;
-@class NodeStylesPalette;
-@class StyleManager;
-
-@interface SettingsDialog: NSObject {
- Configuration *configuration;
- StyleManager *styleManager;
- StyleManager *tempStyleManager;
- NodeStylesPalette *nodePalette;
- EdgeStylesPalette *edgePalette;
-
- GtkWindow *parentWindow;
- GtkWindow *window;
-
- // we don't keep any refs, as we control
- // the top window
- GtkEntry *pdflatexPathEntry;
-}
-
-@property (retain) Configuration *configuration;
-@property (retain) StyleManager *styleManager;
-@property (assign) GtkWindow *parentWindow;
-@property (assign,getter=isVisible) BOOL visible;
-
-- (id) initWithConfiguration:(Configuration*)c andStyleManager:(StyleManager*)m;
-
-- (void) present;
-- (void) show;
-- (void) hide;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/SettingsDialog.m b/tikzit-old/src/gtk/SettingsDialog.m
deleted file mode 100644
index bdb5db6..0000000
--- a/tikzit-old/src/gtk/SettingsDialog.m
+++ /dev/null
@@ -1,328 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "SettingsDialog.h"
-
-#import "Application.h"
-#import "Configuration.h"
-#import "EdgeStylesPalette.h"
-#import "NodeStylesPalette.h"
-#import "StyleManager.h"
-
-// {{{ Internal interfaces
-// {{{ Signals
-static gboolean window_delete_event_cb (GtkWidget *widget,
- GdkEvent *event,
- SettingsDialog *dialog);
-static void ok_button_clicked_cb (GtkButton *widget, SettingsDialog *dialog);
-static void cancel_button_clicked_cb (GtkButton *widget, SettingsDialog *dialog);
-// }}}
-
-@interface SettingsDialog (Private)
-- (void) loadUi;
-- (void) save;
-- (void) revert;
-@end
-
-// }}}
-// {{{ API
-
-@implementation SettingsDialog
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithConfiguration:(Configuration*)c andStyleManager:(StyleManager*)m {
- self = [super init];
-
- if (self) {
- configuration = [c retain];
- styleManager = [m retain];
- tempStyleManager = [m copy];
- }
-
- return self;
-}
-
-- (void) dealloc {
- if (window) {
- gtk_widget_destroy (GTK_WIDGET (window));
- }
- if (parentWindow) {
- g_object_unref (parentWindow);
- }
-
- [configuration release];
- [tempStyleManager release];
- [styleManager release];
- [nodePalette release];
- [edgePalette release];
-
- [super dealloc];
-}
-
-- (Configuration*) configuration {
- return configuration;
-}
-
-- (void) setConfiguration:(Configuration*)c {
- [c retain];
- [configuration release];
- configuration = c;
- [self revert];
-}
-
-- (StyleManager*) styleManager {
- return styleManager;
-}
-
-- (void) setStyleManager:(StyleManager*)m {
- [m retain];
- [styleManager release];
- styleManager = m;
-}
-
-- (GtkWindow*) parentWindow {
- return parentWindow;
-}
-
-- (void) setParentWindow:(GtkWindow*)parent {
- GtkWindow *oldParent = parentWindow;
-
- if (parent)
- g_object_ref (parent);
- parentWindow = parent;
- if (oldParent)
- g_object_unref (oldParent);
-
- if (window) {
- gtk_window_set_transient_for (window, parentWindow);
- }
-}
-
-- (void) present {
- [self loadUi];
- [self revert];
- gtk_window_present (GTK_WINDOW (window));
-}
-
-- (void) show {
- [self loadUi];
- [self revert];
- gtk_widget_show (GTK_WIDGET (window));
-}
-
-- (void) hide {
- if (!window) {
- return;
- }
- gtk_widget_hide (GTK_WIDGET (window));
-}
-
-- (BOOL) isVisible {
- if (!window) {
- return NO;
- }
- gboolean visible;
- g_object_get (G_OBJECT (window), "visible", &visible, NULL);
- return visible ? YES : NO;
-}
-
-- (void) setVisible:(BOOL)visible {
- if (visible) {
- [self show];
- } else {
- [self hide];
- }
-}
-
-@end
-
-// }}}
-// {{{ Private
-
-@implementation SettingsDialog (Private)
-- (void) loadUi {
- if (window) {
- return;
- }
-
- nodePalette = [[NodeStylesPalette alloc] initWithManager:tempStyleManager];
- edgePalette = [[EdgeStylesPalette alloc] initWithManager:tempStyleManager];
-
- window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
- gtk_window_set_default_size (window, 570, -1);
- gtk_window_set_title (window, "TikZiT Configuration");
- gtk_window_set_modal (window, TRUE);
- gtk_window_set_position (window, GTK_WIN_POS_CENTER_ON_PARENT);
- gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DIALOG);
- if (parentWindow) {
- gtk_window_set_transient_for (window, parentWindow);
- }
- g_signal_connect (window,
- "delete-event",
- G_CALLBACK (window_delete_event_cb),
- self);
-
- GtkWidget *mainBox = gtk_vbox_new (FALSE, 18);
- gtk_container_set_border_width (GTK_CONTAINER (mainBox), 12);
- gtk_container_add (GTK_CONTAINER (window), mainBox);
- gtk_widget_show (mainBox);
-
-#ifdef HAVE_POPPLER
- /*
- * Path for pdflatex
- */
-
- GtkWidget *pdflatexFrame = gtk_frame_new ("Previews");
- gtk_box_pack_start (GTK_BOX (mainBox), pdflatexFrame, TRUE, TRUE, 0);
-
- GtkBox *pdflatexBox = GTK_BOX (gtk_hbox_new (FALSE, 6));
- gtk_container_add (GTK_CONTAINER (pdflatexFrame), GTK_WIDGET (pdflatexBox));
- gtk_container_set_border_width (GTK_CONTAINER (pdflatexBox), 6);
-
- GtkWidget *pdflatexLabel = gtk_label_new ("Path to pdflatex:");
- gtk_misc_set_alignment (GTK_MISC (pdflatexLabel), 0, 0.5);
- gtk_box_pack_start (pdflatexBox,
- pdflatexLabel,
- FALSE, TRUE, 0);
-
- pdflatexPathEntry = GTK_ENTRY (gtk_entry_new ());
- gtk_box_pack_start (pdflatexBox,
- GTK_WIDGET (pdflatexPathEntry),
- TRUE, TRUE, 0);
-
- gtk_widget_show_all (pdflatexFrame);
-#else
- pdflatexPathEntry = NULL;
-#endif
-
- /*
- * Node styles
- */
- GtkWidget *nodeStylesFrame = gtk_frame_new ("Node Styles");
- gtk_widget_show (nodeStylesFrame);
- gtk_box_pack_start (GTK_BOX (mainBox), nodeStylesFrame, TRUE, TRUE, 0);
- gtk_container_add (GTK_CONTAINER (nodeStylesFrame),
- GTK_WIDGET ([nodePalette widget]));
- gtk_widget_show ([nodePalette widget]);
-
-
- /*
- * Edge styles
- */
- GtkWidget *edgeStylesFrame = gtk_frame_new ("Edge Styles");
- gtk_widget_show (edgeStylesFrame);
- gtk_box_pack_start (GTK_BOX (mainBox), edgeStylesFrame, TRUE, TRUE, 0);
- gtk_container_add (GTK_CONTAINER (edgeStylesFrame),
- GTK_WIDGET ([edgePalette widget]));
- gtk_widget_show ([edgePalette widget]);
-
-
- /*
- * Bottom buttons
- */
-
- GtkContainer *buttonBox = GTK_CONTAINER (gtk_hbutton_box_new ());
- gtk_box_set_spacing (GTK_BOX (buttonBox), 6);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (buttonBox), GTK_BUTTONBOX_END);
- gtk_box_pack_start (GTK_BOX (mainBox),
- GTK_WIDGET (buttonBox),
- FALSE, TRUE, 0);
-
- GtkWidget *okButton = gtk_button_new_from_stock (GTK_STOCK_OK);
- gtk_container_add (buttonBox, okButton);
- g_signal_connect (okButton,
- "clicked",
- G_CALLBACK (ok_button_clicked_cb),
- self);
-
- GtkWidget *cancelButton = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
- gtk_container_add (buttonBox, cancelButton);
- g_signal_connect (cancelButton,
- "clicked",
- G_CALLBACK (cancel_button_clicked_cb),
- self);
-
- gtk_widget_show_all (GTK_WIDGET (buttonBox));
-
- [self revert];
-}
-
-- (void) save {
- if (!window)
- return;
-
-#ifdef HAVE_POPPLER
- const gchar *path = gtk_entry_get_text (pdflatexPathEntry);
- if (path && *path) {
- [configuration setStringEntry:@"pdflatex"
- inGroup:@"Previews"
- value:[NSString stringWithUTF8String:path]];
- }
-#endif
-
- [styleManager updateFromManager:tempStyleManager];
-
- [app saveConfiguration];
-}
-
-- (void) revert {
- if (!window)
- return;
-
-#ifdef HAVE_POPPLER
- NSString *path = [configuration stringEntry:@"pdflatex"
- inGroup:@"Previews"
- withDefault:@"pdflatex"];
- gtk_entry_set_text (pdflatexPathEntry, [path UTF8String]);
-#endif
-
- [tempStyleManager updateFromManager:styleManager];
-}
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static gboolean window_delete_event_cb (GtkWidget *widget,
- GdkEvent *event,
- SettingsDialog *dialog) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [dialog hide];
- [pool drain];
- return TRUE; // we dealt with this event
-}
-
-static void ok_button_clicked_cb (GtkButton *widget, SettingsDialog *dialog) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [dialog save];
- [dialog hide];
- [pool drain];
-}
-
-static void cancel_button_clicked_cb (GtkButton *widget, SettingsDialog *dialog) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [dialog hide];
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=4:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/Shape+Render.h b/tikzit-old/src/gtk/Shape+Render.h
deleted file mode 100644
index a744c77..0000000
--- a/tikzit-old/src/gtk/Shape+Render.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "Shape.h"
-#import "RenderContext.h"
-#import "Surface.h"
-
-@interface Shape (Render)
-
-- (void) drawPathWithTransform:(Transformer*)transform andContext:(id<RenderContext>)context;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Shape+Render.m b/tikzit-old/src/gtk/Shape+Render.m
deleted file mode 100644
index 924bb24..0000000
--- a/tikzit-old/src/gtk/Shape+Render.m
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Shape+Render.h"
-
-#import "Edge.h"
-
-// we use cairo for finding the bounding box etc.
-#import <cairo/cairo.h>
-
-@implementation Shape (Render)
-
-- (void) drawPathWithTransform:(Transformer*)transform andContext:(id<RenderContext>)context {
- [context startPath];
-
- for (NSArray *arr in [self paths]) {
- BOOL fst = YES;
- NSPoint p, cp1, cp2;
-
- for (Edge *e in arr) {
- if (fst) {
- fst = NO;
- p = [transform toScreen:[[e source] point]];
- [context moveTo:p];
- }
-
- p = [transform toScreen:[[e target] point]];
- if ([e isStraight]) {
- [context lineTo:p];
- } else {
- cp1 = [transform toScreen:[e cp1]];
- cp2 = [transform toScreen:[e cp2]];
- [context curveTo:p withCp1:cp1 andCp2:cp2];
- }
- }
-
- [context closeSubPath];
- }
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/StyleManager+Storage.h b/tikzit-old/src/gtk/StyleManager+Storage.h
deleted file mode 100644
index 1727786..0000000
--- a/tikzit-old/src/gtk/StyleManager+Storage.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "StyleManager.h"
-
-@interface StyleManager (Storage)
-- (void) loadStylesUsingConfigurationName:(NSString*)name;
-- (void) saveStylesUsingConfigurationName:(NSString*)name;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/StyleManager+Storage.m b/tikzit-old/src/gtk/StyleManager+Storage.m
deleted file mode 100644
index f4c8232..0000000
--- a/tikzit-old/src/gtk/StyleManager+Storage.m
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "StyleManager+Storage.h"
-#import "Configuration.h"
-#import "NodeStyle+Storage.h"
-#import "EdgeStyle+Storage.h"
-
-static NSString *nodeStyleGroupPrefix = @"Style ";
-static NSString *edgeStyleGroupPrefix = @"EdgeStyle ";
-
-@implementation StyleManager (Storage)
-
-- (void) loadStylesUsingConfigurationName:(NSString*)name {
- if (![Configuration configurationExistsWithName:name]) {
- NSLog(@"No styles config found");
- return;
- }
- NSError *error = nil;
- Configuration *stylesConfig = [Configuration configurationWithName:name loadError:&error];
- if (error != nil) {
- logError (error, @"Could not load styles configuration");
- // stick with the default config
- return;
- }
- NSArray *groups = [stylesConfig groups];
- NSMutableArray *ns = [NSMutableArray arrayWithCapacity:[groups count]];
- NSMutableArray *es = [NSMutableArray arrayWithCapacity:[groups count]];
-
- for (NSString *groupName in groups) {
- if ([groupName hasPrefix:nodeStyleGroupPrefix]) {
- NodeStyle *style = [[NodeStyle alloc] initFromConfigurationGroup:groupName config:stylesConfig];
- [ns addObject:style];
- } else if ([groupName hasPrefix:edgeStyleGroupPrefix]) {
- EdgeStyle *style = [[EdgeStyle alloc] initFromConfigurationGroup:groupName config:stylesConfig];
- [es addObject:style];
- }
- }
-
- [self _setNodeStyles:ns];
- [self _setEdgeStyles:es];
-}
-
-- (void) saveStylesUsingConfigurationName:(NSString*)name {
- NSError *error = nil;
- Configuration *stylesConfig = [Configuration emptyConfigurationWithName:name];
- NSArray *ns = [self nodeStyles];
- NSArray *es = [self edgeStyles];
- NSUInteger length = [ns count];
- for (int i = 0; i < length; ++i) {
- NodeStyle *style = [ns objectAtIndex:i];
- NSString *groupName = [NSString stringWithFormat:@"%@%d", nodeStyleGroupPrefix, i];
- [style storeToConfigurationGroup:groupName config:stylesConfig];
- }
- length = [es count];
- for (int i = 0; i < length; ++i) {
- EdgeStyle *style = [es objectAtIndex:i];
- NSString *groupName = [NSString stringWithFormat:@"%@%d", edgeStyleGroupPrefix, i];
- [style storeToConfigurationGroup:groupName config:stylesConfig];
- }
- if (![stylesConfig writeToStoreWithError:&error]) {
- logError (error, @"Could not write styles configuration");
- }
-}
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Surface.h b/tikzit-old/src/gtk/Surface.h
deleted file mode 100644
index db4288e..0000000
--- a/tikzit-old/src/gtk/Surface.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "RenderContext.h"
-#import "Transformer.h"
-
-typedef enum {
- NormalCursor,
- ResizeRightCursor,
- ResizeBottomRightCursor,
- ResizeBottomCursor,
- ResizeBottomLeftCursor,
- ResizeLeftCursor,
- ResizeTopLeftCursor,
- ResizeTopCursor,
- ResizeTopRightCursor
-} Cursor;
-
-@protocol Surface;
-
-@protocol RenderDelegate <NSObject>
-- (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface;
-@end
-
-/**
- * Represents a surface that can be rendered to
- *
- * This protocol should be implemented by drawing surfaces. It
- * provides geometry information and methods to invalidate
- * regions of the surface, triggering a redraw.
- *
- * The surface should send a "SurfaceSizeChanged" notification
- * when the width or height changes.
- */
-@protocol Surface <NSObject>
-
-/**
- * The width of the surface, in surface units
- *
- * The surface should send a "SurfaceSizeChanged" notification
- * when this property changes.
- */
-@property (readonly) int width;
-/**
- * The height of the surface, in surface units
- *
- * The surface should send a "SurfaceSizeChanged" notification
- * when this property changes.
- */
-@property (readonly) int height;
-/**
- * The transformer that converts between graph units and surface units
- */
-@property (readonly) Transformer *transformer;
-/**
- * The render delegate.
- *
- * This will be used to redraw (parts of) the surface when necessary.
- */
-@property (assign) id<RenderDelegate> renderDelegate;
-
-/**
- * Create a render context for the surface.
- */
-- (id<RenderContext>) createRenderContext;
-/**
- * Invalidate a portion of the surface.
- *
- * This will request that part of the surface be redrawn.
- */
-- (void) invalidateRect:(NSRect)rect;
-/**
- * Invalidate the whole surface.
- *
- * This will request that the whole surface be redrawn.
- */
-- (void) invalidate;
-
-- (void) zoomIn;
-- (void) zoomOut;
-- (void) zoomReset;
-- (void) zoomInAboutPoint:(NSPoint)p;
-- (void) zoomOutAboutPoint:(NSPoint)p;
-- (void) zoomResetAboutPoint:(NSPoint)p;
-
-- (void) setCursor:(Cursor)c;
-
-- (BOOL) hasFocus;
-- (void) renderFocus;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/TZFoundation.h b/tikzit-old/src/gtk/TZFoundation.h
deleted file mode 100644
index 2ff20ca..0000000
--- a/tikzit-old/src/gtk/TZFoundation.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Foundation/Foundation.h>
-#import <glib.h>
-
-#import "NSError+Glib.h"
-#import "NSError+Tikzit.h"
-#import "NSFileManager+Glib.h"
-#import "NSFileManager+Utils.h"
-#import "NSString+Glib.h"
-#import "NSString+LatexConstants.h"
-#import "NSString+Tikz.h"
-#import "NSString+Util.h"
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/TikzDocument.h b/tikzit-old/src/gtk/TikzDocument.h
deleted file mode 100644
index 5d15d13..0000000
--- a/tikzit-old/src/gtk/TikzDocument.h
+++ /dev/null
@@ -1,149 +0,0 @@
-//
-// TikzDocument.h
-// TikZiT
-//
-// Copyright 2010 Chris Heunen
-// Copyright 2010 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TZFoundation.h"
-#import <Graph.h>
-#import "PickSupport.h"
-#import "StyleManager.h"
-
-@interface TikzDocument : NSObject {
- StyleManager *styleManager;
- Graph *graph;
- PickSupport *pickSupport;
- NSUndoManager *undoManager;
- NSString *tikz;
- NSString *path;
- NSSet *nodesetBeingModified;
- NSMapTable *nodesetBeingModifiedOldCopy;
- NSSet *edgesetBeingModified;
- NSMapTable *edgesetBeingModifiedOldCopy;
- NSPoint currentNodeShift;
- Node *nodeBeingModified;
- Node *nodeBeingModifiedOldCopy;
- Edge *edgeBeingModified;
- Edge *edgeBeingModifiedOldCopy;
- NSRect oldGraphBounds;
- GraphElementData *oldGraphData;
- BOOL hasChanges;
-}
-
-+ (TikzDocument*) documentWithStyleManager:(StyleManager*)manager;
-+ (TikzDocument*) documentWithGraph:(Graph*)g styleManager:(StyleManager*)manager;
-+ (TikzDocument*) documentWithTikz:(NSString*)t styleManager:(StyleManager*)manager error:(NSError**)error;
-+ (TikzDocument*) documentFromFile:(NSString*)path styleManager:(StyleManager*)manager error:(NSError**)error;
-
-- (id) initWithStyleManager:(StyleManager*)manager;
-- (id) initWithGraph:(Graph*)g styleManager:(StyleManager*)manager;
-- (id) initWithTikz:(NSString*)t styleManager:(StyleManager*)manager error:(NSError**)error;
-- (id) initFromFile:(NSString*)path styleManager:(StyleManager*)manager error:(NSError**)error;
-
-@property (readonly) Graph *graph;
-@property (readonly) PickSupport *pickSupport;
-@property (readonly) NSString *path;
-@property (readonly) NSString *name;
-@property (readonly) NSString *suggestedFileName;
-@property (readonly) BOOL hasUnsavedChanges;
-@property (retain) StyleManager *styleManager;
-@property (readonly) NSString *tikz;
-@property (readonly) BOOL canUndo;
-@property (readonly) BOOL canRedo;
-@property (readonly) NSString *undoName;
-@property (readonly) NSString *redoName;
-
-- (BOOL) updateTikz:(NSString*)t error:(NSError**)error;
-
-- (Graph*) selectionCut;
-- (Graph*) selectionCopy;
-- (void) paste:(Graph*)graph;
-- (void) pasteFromTikz:(NSString*)tikz;
-
-// some convenience methods:
-- (BOOL) isNodeSelected:(Node*)node;
-- (BOOL) isEdgeSelected:(Edge*)edge;
-- (NSEnumerator*) nodeEnumerator;
-- (NSEnumerator*) edgeEnumerator;
-
-- (void) undo;
-- (void) redo;
-
-- (void) startUndoGroup;
-- (void) nameAndEndUndoGroup:(NSString*)nm;
-- (void) endUndoGroup;
-
-- (void) startModifyNode:(Node*)node;
-- (void) modifyNodeCheckPoint;
-- (void) endModifyNode;
-- (void) cancelModifyNode;
-
-- (void) startModifyNodes:(NSSet*)nodes;
-- (void) modifyNodesCheckPoint;
-- (void) endModifyNodes;
-- (void) cancelModifyNodes;
-
-- (void) startShiftNodes:(NSSet*)nodes;
-- (void) shiftNodesUpdate:(NSPoint)shiftChange;
-- (void) endShiftNodes;
-- (void) cancelShiftNodes;
-
-- (void) startModifyEdge:(Edge*)edge;
-- (void) modifyEdgeCheckPoint;
-- (void) endModifyEdge;
-- (void) cancelModifyEdge;
-
-- (void) startModifyEdges:(NSSet*)edges;
-- (void) modifyEdgesCheckPoint;
-- (void) endModifyEdges;
-- (void) cancelModifyEdges;
-
-- (void) startChangeBoundingBox;
-- (void) changeBoundingBoxCheckPoint;
-- (void) endChangeBoundingBox;
-- (void) cancelChangeBoundingBox;
-
-- (void) startChangeGraphProperties;
-- (void) changeGraphPropertiesCheckPoint;
-- (void) endChangeGraphProperties;
-- (void) cancelChangeGraphProperties;
-
-- (void) removeSelected;
-- (void) addNode:(Node*)node;
-- (void) removeNode:(Node*)node;
-- (void) addEdge:(Edge*)edge;
-- (void) removeEdge:(Edge*)edge;
-- (void) shiftSelectedNodesByPoint:(NSPoint)offset;
-- (void) insertGraph:(Graph*)g;
-- (void) flipSelectedNodesHorizontally;
-- (void) flipSelectedNodesVertically;
-- (void) reverseSelectedEdges;
-- (void) bringSelectionForward;
-- (void) bringSelectionToFront;
-- (void) sendSelectionBackward;
-- (void) sendSelectionToBack;
-
-- (BOOL) saveCopyToPath: (NSString*)path error: (NSError**)error;
-- (BOOL) saveToPath: (NSString*)path error: (NSError**)error;
-- (BOOL) save: (NSError**)error;
-
-@end
-
-// vim:ft=objc:sts=4:sw=4:et
diff --git a/tikzit-old/src/gtk/TikzDocument.m b/tikzit-old/src/gtk/TikzDocument.m
deleted file mode 100644
index bff5a2e..0000000
--- a/tikzit-old/src/gtk/TikzDocument.m
+++ /dev/null
@@ -1,911 +0,0 @@
-//
-// TikzDocument.h
-// TikZiT
-//
-// Copyright 2010 Chris Heunen
-// Copyright 2010 Alex Merry
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TikzDocument.h"
-
-@interface TikzDocument (Private)
-- (void) styleRenamed:(NSNotification*)n;
-
-- (void) setPath:(NSString*)path;
-- (void) setGraph:(Graph*)g;
-
-- (void) registerUndoForChange:(GraphChange*)change;
-- (void) registerUndoGroupForChange:(GraphChange*)change withName:(NSString*)name;
-- (void) undoGraphChange:(GraphChange*)change;
-- (void) completedGraphChange:(GraphChange*)change withName:(NSString*)name;
-- (void) attachStylesToGraph:(Graph*)g;
-
-- (void) regenerateTikz;
-@end
-
-@implementation TikzDocument
-
-+ (TikzDocument*) documentWithStyleManager:(StyleManager*)manager
-{
- return [[[TikzDocument alloc] initWithStyleManager:manager] autorelease];
-}
-
-+ (TikzDocument*) documentWithGraph:(Graph*)g
- styleManager:(StyleManager*)manager
-{
- return [[[TikzDocument alloc] initWithGraph:g
- styleManager:manager] autorelease];
-}
-
-+ (TikzDocument*) documentWithTikz:(NSString*)t
- styleManager:(StyleManager*)manager
- error:(NSError**)error
-{
- return [[[TikzDocument alloc] initWithTikz:t
- styleManager:manager
- error:error] autorelease];
-}
-
-+ (TikzDocument*) documentFromFile:(NSString*)pth
- styleManager:(StyleManager*)manager
- error:(NSError**)error
-{
- return [[[TikzDocument alloc] initFromFile:pth
- styleManager:manager
- error:error] autorelease];
-}
-
-
-- (id) initWithStyleManager:(StyleManager*)manager {
- self = [self initWithGraph:[Graph graph] styleManager:manager];
- return self;
-}
-
-- (id) initWithGraph:(Graph*)g styleManager:(StyleManager*)manager {
- self = [super init];
-
- if (self) {
- graph = nil;
- styleManager = [manager retain];
- pickSupport = [[PickSupport alloc] init];
- undoManager = [[NSUndoManager alloc] init];
- [undoManager setGroupsByEvent:NO];
- tikz = nil;
- path = nil;
- nodesetBeingModified = nil;
- nodesetBeingModifiedOldCopy = nil;
- nodeBeingModified = nil;
- nodeBeingModifiedOldCopy = nil;
- edgeBeingModified = nil;
- edgeBeingModifiedOldCopy = nil;
-
- [undoManager disableUndoRegistration];
- [self setGraph:g];
- [undoManager enableUndoRegistration];
-
- hasChanges = NO;
-
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(styleRenamed:)
- name:@"NodeStyleRenamed"
- object:styleManager];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(styleRenamed:)
- name:@"EdgeStyleRenamed"
- object:styleManager];
- }
-
- return self;
-}
-
-- (id) initWithTikz:(NSString*)t
- styleManager:(StyleManager*)manager
- error:(NSError**)error
-{
- self = [self initWithStyleManager:manager];
-
- if (self) {
- [undoManager disableUndoRegistration];
- BOOL success = [self updateTikz:t error:error];
- if (!success) {
- [self release];
- return nil;
- }
- [undoManager enableUndoRegistration];
- hasChanges = NO;
- }
-
- return self;
-}
-
-- (id) initFromFile:(NSString*)pth
- styleManager:(StyleManager*)manager
- error:(NSError**)error
-{
- NSString *t = [NSString stringWithContentsOfFile:pth error:error];
- if (t == nil) {
- [self release];
- return nil;
- }
-
- self = [self initWithTikz:t styleManager:manager error:error];
-
- if (self) {
- [self setPath:pth];
- }
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [styleManager release];
- [graph release];
- [pickSupport release];
- [undoManager release];
- [tikz release];
- [path release];
- [nodesetBeingModified release];
- [nodesetBeingModifiedOldCopy release];
- [nodeBeingModified release];
- [nodeBeingModifiedOldCopy release];
- [edgeBeingModified release];
- [edgeBeingModifiedOldCopy release];
- [oldGraphData release];
- [super dealloc];
-}
-
-@synthesize graph, pickSupport, path;
-
-- (NSString*) name {
- if (path) {
- return [[NSFileManager defaultManager] displayNameAtPath: path];
- } else {
- return @"Untitled";
- }
-}
-
-- (NSString*) suggestedFileName {
- if (path) {
- return [path lastPathComponent];
- } else {
- return @"untitled.tikz";
- }
-}
-
-- (BOOL) hasUnsavedChanges {
- return hasChanges;
-}
-
-- (StyleManager*) styleManager {
- return styleManager;
-}
-
-- (void) setStyleManager:(StyleManager*)manager {
- StyleManager *oldManager = styleManager;
- [[NSNotificationCenter defaultCenter]
- removeObserver:self
- name:nil
- object:oldManager];
-
- styleManager = [manager retain];
-
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(styleRenamed:)
- name:@"NodeStyleRenamed"
- object:styleManager];
- [[NSNotificationCenter defaultCenter]
- addObserver:self
- selector:@selector(styleRenamed:)
- name:@"EdgeStyleRenamed"
- object:styleManager];
-
- [self attachStylesToGraph:graph];
- [oldManager release];
-}
-
-- (void) postGraphReplaced {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"GraphReplaced" object:self];
-}
-
-- (void) postGraphChange:(GraphChange*)change {
- NSDictionary *info = [NSDictionary dictionaryWithObject:change forKey:@"change"];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"GraphChanged" object:self userInfo:info];
-}
-
-- (void) postIncompleteGraphChange:(GraphChange*)change {
- NSDictionary *info = [NSDictionary dictionaryWithObject:change forKey:@"change"];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"GraphBeingChanged" object:self userInfo:info];
-}
-
-- (void) postCancelledGraphChange:(GraphChange*)change {
- NSDictionary *info = [NSDictionary dictionaryWithObject:change forKey:@"change"];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"GraphChangeCancelled" object:self userInfo:info];
-}
-
-- (void) postTikzChanged {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"TikzChanged" object:self];
-}
-
-- (void) postUndoStackChanged {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"UndoStackChanged" object:self];
-}
-
-- (NSString*) tikz {
- return tikz;
-}
-
-- (BOOL) updateTikz:(NSString*)t error:(NSError**)error {
- if (t == nil) {
- t = [NSString string];
- }
- if (t == tikz || [t isEqual:tikz]) {
- return YES;
- }
-
- Graph *g = [Graph graphFromTikz:t error:error];
- if (g) {
- // updateTikz actually generates a graph from the tikz,
- // and generates the final tikz from that
- [self startUndoGroup];
- [self setGraph:g];
- [self nameAndEndUndoGroup:@"Update tikz"];
- return YES;
- }
-
- return NO;
-}
-
-- (Graph*) selectionCut {
- Graph *selection = [self selectionCopy];
- [self startUndoGroup];
- [self removeSelected];
- [self nameAndEndUndoGroup:@"Cut"];
- return selection;
-}
-
-- (Graph*) selectionCopy {
- return [[graph copyOfSubgraphWithNodes:[pickSupport selectedNodes]] autorelease];
-}
-
-- (void) paste:(Graph*)g {
- if (g == nil || [[g nodes] count] == 0) {
- // nothing to paste
- return;
- }
-
- // place to the right of the existing graph
- NSRect bounds = [graph bounds];
- NSRect gBounds = [g bounds];
- float dx = NSMaxX (bounds) - gBounds.origin.x + 0.5f;
- [g shiftNodes:[g nodes] byPoint:NSMakePoint (dx, 0)];
-
- GraphChange *change = [graph insertGraph:g];
- [self completedGraphChange:change withName:@"Paste"];
-
- // select everything from the clipboard
- [pickSupport deselectAllEdges];
- [pickSupport selectAllNodes:[NSSet setWithArray:[g nodes]] replacingSelection:YES];
-}
-
-- (void) pasteFromTikz:(NSString*)t {
- Graph *clipboard = [Graph graphFromTikz:t];
- if (clipboard) {
- [self attachStylesToGraph:clipboard];
- [self paste:clipboard];
- }
-}
-
-- (BOOL) isNodeSelected:(Node*)node {
- return [pickSupport isNodeSelected:node];
-}
-
-- (BOOL) isEdgeSelected:(Edge*)edge {
- return [pickSupport isEdgeSelected:edge];
-}
-
-- (NSEnumerator*) nodeEnumerator {
- return [[graph nodes] objectEnumerator];
-}
-
-- (NSEnumerator*) edgeEnumerator {
- return [[graph edges] objectEnumerator];
-}
-
-- (BOOL) canUndo {
- return [undoManager canUndo];
-}
-
-- (void) undo {
- [undoManager undo];
- [self postUndoStackChanged];
-}
-
-- (BOOL) canRedo {
- return [undoManager canRedo];
-}
-
-- (void) redo {
- [undoManager redo];
- [self postUndoStackChanged];
-}
-
-- (NSString*) undoName {
- return [undoManager undoActionName];
-}
-
-- (NSString*) redoName {
- return [undoManager redoActionName];
-}
-
-- (void) startUndoGroup {
- [undoManager beginUndoGrouping];
-}
-
-- (void) nameAndEndUndoGroup:(NSString*)nm {
- [undoManager setActionName:nm];
- [undoManager endUndoGrouping];
- [self postUndoStackChanged];
-}
-
-- (void) endUndoGroup {
- [undoManager endUndoGrouping];
- [self postUndoStackChanged];
-}
-
-- (void) startModifyNode:(Node*)node {
- if (nodeBeingModified != nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Already modifying a node"];
- }
- nodeBeingModified = [node retain];
- nodeBeingModifiedOldCopy = [node copy];
-}
-
-- (void) modifyNodeCheckPoint {
- [self regenerateTikz];
- GraphChange *change = [GraphChange propertyChangeOfNode:nodeBeingModified
- fromOld:nodeBeingModifiedOldCopy
- toNew:[[nodeBeingModified copy] autorelease]];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishModifySequence:(GraphChange*)change withName:(NSString*)chName cancelled:(BOOL)cancelled {
- if (cancelled) {
- change = [change invert];
- [graph applyGraphChange:change];
- [self regenerateTikz];
- [self postCancelledGraphChange:change];
- } else {
- [self registerUndoGroupForChange:change withName:chName];
- [self regenerateTikz];
- [self postGraphChange:change];
- }
-}
-
-- (void) _finishModifyNodeCancelled:(BOOL)cancelled {
- if (nodeBeingModified == nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Not modifying a node"];
- }
-
- GraphChange *change = [GraphChange propertyChangeOfNode:nodeBeingModified
- fromOld:nodeBeingModifiedOldCopy
- toNew:[[nodeBeingModified copy] autorelease]];
- [self _finishModifySequence:change withName:@"Modify node" cancelled:cancelled];
-
- [nodeBeingModified release];
- nodeBeingModified = nil;
- [nodeBeingModifiedOldCopy release];
- nodeBeingModifiedOldCopy = nil;
-}
-
-- (void) endModifyNode { [self _finishModifyNodeCancelled:NO]; }
-- (void) cancelModifyNode { [self _finishModifyNodeCancelled:YES]; }
-
-- (void) startModifyNodes:(NSSet*)nodes {
- if (nodesetBeingModified != nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Already modifying a node set"];
- }
-
- nodesetBeingModified = [nodes copy];
- nodesetBeingModifiedOldCopy = [[Graph nodeTableForNodes:nodes] retain];
-}
-
-- (void) modifyNodesCheckPoint {
- [self regenerateTikz];
- GraphChange *change = [GraphChange propertyChangeOfNodesFromOldCopies:nodesetBeingModifiedOldCopy
- toNewCopies:[Graph nodeTableForNodes:nodesetBeingModified]];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishModifyNodes:(BOOL)cancelled {
- if (nodesetBeingModified == nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Not modifying a node set"];
- }
-
- GraphChange *change = [GraphChange propertyChangeOfNodesFromOldCopies:nodesetBeingModifiedOldCopy
- toNewCopies:[Graph nodeTableForNodes:nodesetBeingModified]];
- [self _finishModifySequence:change withName:@"Modify nodes" cancelled:cancelled];
-
- [nodesetBeingModified release];
- nodesetBeingModified = nil;
- [nodesetBeingModifiedOldCopy release];
- nodesetBeingModifiedOldCopy = nil;
-}
-
-- (void) endModifyNodes { [self _finishModifyNodes:NO]; }
-- (void) cancelModifyNodes { [self _finishModifyNodes:YES]; }
-
-- (void) startShiftNodes:(NSSet*)nodes {
- if (nodesetBeingModified != nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Already modifying a node set"];
- }
-
- nodesetBeingModified = [nodes copy];
- currentNodeShift = NSZeroPoint;
-}
-
-- (void) shiftNodesUpdate:(NSPoint)currentShift {
- if (nodesetBeingModified == nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Not modifying a node set"];
- }
-
- currentNodeShift = currentShift;
- [self regenerateTikz];
- GraphChange *change = [GraphChange shiftNodes:nodesetBeingModified
- byPoint:currentNodeShift];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishShiftNodesCancelled:(BOOL)cancelled {
- if (nodesetBeingModified == nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Not modifying a node set"];
- }
-
- if (!NSEqualPoints (currentNodeShift, NSZeroPoint)) {
- GraphChange *change = [GraphChange shiftNodes:nodesetBeingModified
- byPoint:currentNodeShift];
- [self _finishModifySequence:change withName:@"Move nodes" cancelled:cancelled];
- }
-
- [nodesetBeingModified release];
- nodesetBeingModified = nil;
-}
-
-- (void) endShiftNodes { [self _finishShiftNodesCancelled:NO]; }
-- (void) cancelShiftNodes { [self _finishShiftNodesCancelled:YES]; }
-
-- (void) startModifyEdge:(Edge*)edge {
- if (edgeBeingModified != nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Already modifying an edge"];
- }
- edgeBeingModified = [edge retain];
- edgeBeingModifiedOldCopy = [edge copy];
-}
-
-- (void) modifyEdgeCheckPoint {
- [self regenerateTikz];
- GraphChange *change = [GraphChange propertyChangeOfEdge:edgeBeingModified
- fromOld:edgeBeingModifiedOldCopy
- toNew:[[edgeBeingModified copy] autorelease]];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishModifyEdgeCancelled:(BOOL)cancelled {
- if (edgeBeingModified == nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Not modifying an edge"];
- }
-
- GraphChange *change = [GraphChange propertyChangeOfEdge:edgeBeingModified
- fromOld:edgeBeingModifiedOldCopy
- toNew:[[edgeBeingModified copy] autorelease]];
- [self _finishModifySequence:change withName:@"Modify edge" cancelled:cancelled];
-
- [edgeBeingModified release];
- edgeBeingModified = nil;
- [edgeBeingModifiedOldCopy release];
- edgeBeingModifiedOldCopy = nil;
-}
-
-- (void) endModifyEdge { [self _finishModifyEdgeCancelled:NO]; }
-- (void) cancelModifyEdge { [self _finishModifyEdgeCancelled:YES]; }
-
-- (void) startModifyEdges:(NSSet*)edges {
- if (edgesetBeingModified != nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Already modifying an edge set"];
- }
-
- edgesetBeingModified = [edges copy];
- edgesetBeingModifiedOldCopy = [[Graph edgeTableForEdges:edges] retain];
-}
-
-- (void) modifyEdgesCheckPoint {
- [self regenerateTikz];
- GraphChange *change = [GraphChange propertyChangeOfEdgesFromOldCopies:edgesetBeingModifiedOldCopy
- toNewCopies:[Graph edgeTableForEdges:edgesetBeingModified]];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishModifyEdgesCancelled:(BOOL)cancelled {
- if (edgesetBeingModified == nil) {
- [NSException raise:@"NSInternalInconsistencyException" format:@"Not modifying an edge"];
- }
-
- GraphChange *change = [GraphChange propertyChangeOfEdgesFromOldCopies:edgesetBeingModifiedOldCopy
- toNewCopies:[Graph edgeTableForEdges:edgesetBeingModified]];
- [self _finishModifySequence:change withName:@"Modify edges" cancelled:cancelled];
-
- [edgesetBeingModified release];
- edgesetBeingModified = nil;
- [edgesetBeingModifiedOldCopy release];
- edgesetBeingModifiedOldCopy = nil;
-}
-
-- (void) endModifyEdges { [self _finishModifyEdgesCancelled:NO]; }
-- (void) cancelModifyEdges { [self _finishModifyEdgesCancelled:YES]; }
-
-- (void) startChangeBoundingBox {
- oldGraphBounds = [graph boundingBox];
-}
-
-- (void) changeBoundingBoxCheckPoint {
- [self regenerateTikz];
- GraphChange *change = [GraphChange changeBoundingBoxFrom:oldGraphBounds
- to:[graph boundingBox]];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishChangeBoundingBoxCancelled:(BOOL)cancelled {
- GraphChange *change = [GraphChange changeBoundingBoxFrom:oldGraphBounds
- to:[graph boundingBox]];
- [self _finishModifySequence:change withName:@"Set bounding box" cancelled:cancelled];
-}
-- (void) endChangeBoundingBox { [self _finishChangeBoundingBoxCancelled:NO]; }
-- (void) cancelChangeBoundingBox { [self _finishChangeBoundingBoxCancelled:YES]; }
-
-- (void) startChangeGraphProperties {
- oldGraphData = [[graph data] copy];
-}
-
-- (void) changeGraphPropertiesCheckPoint {
- [self regenerateTikz];
- GraphChange *change = [GraphChange propertyChangeOfGraphFrom:oldGraphData
- to:[graph data]];
- [self postIncompleteGraphChange:change];
-}
-
-- (void) _finishChangeGraphPropertiesCancelled:(BOOL)cancelled {
- GraphChange *change = [GraphChange propertyChangeOfGraphFrom:oldGraphData
- to:[graph data]];
- [self _finishModifySequence:change withName:@"Change graph properties" cancelled:cancelled];
- [oldGraphData release];
- oldGraphData = nil;
-}
-- (void) endChangeGraphProperties { [self _finishChangeGraphPropertiesCancelled:NO]; }
-- (void) cancelChangeGraphProperties { [self _finishChangeGraphPropertiesCancelled:YES]; }
-
-- (void) removeSelected {
- NSUInteger selEdges = [[pickSupport selectedEdges] count];
- NSUInteger selNodes = [[pickSupport selectedNodes] count];
-
- if (selEdges == 0 && selNodes == 0) {
- return;
- }
-
- NSString *actionName = @"Remove selection";
-
- [self startUndoGroup];
- if (selEdges > 0) {
- GraphChange *change = [graph removeEdges:[pickSupport selectedEdges]];
- [self registerUndoForChange:change];
- [pickSupport deselectAllEdges];
- [self postGraphChange:change];
- } else {
- actionName = (selNodes == 1 ? @"Remove node" : @"Remove nodes");
- }
- if (selNodes > 0) {
- GraphChange *change = [graph removeNodes:[pickSupport selectedNodes]];
- [self registerUndoForChange:change];
- [pickSupport deselectAllNodes];
- [self postGraphChange:change];
- } else {
- actionName = (selEdges == 1 ? @"Remove edge" : @"Remove edges");
- }
- [self nameAndEndUndoGroup:actionName];
- [self regenerateTikz];
-}
-
-- (void) addNode:(Node*)node {
- GraphChange *change = [graph addNode:node];
- [self completedGraphChange:change withName:@"Add node"];
-}
-
-- (void) removeNode:(Node*)node {
- [pickSupport deselectNode:node];
- GraphChange *change = [graph removeNode:node];
- [self completedGraphChange:change withName:@"Remove node"];
-}
-
-- (void) addEdge:(Edge*)edge {
- GraphChange *change = [graph addEdge:edge];
- [self completedGraphChange:change withName:@"Add edge"];
-}
-
-- (void) removeEdge:(Edge*)edge {
- [pickSupport deselectEdge:edge];
- GraphChange *change = [graph removeEdge:edge];
- [self completedGraphChange:change withName:@"Remove edge"];
-}
-
-- (void) shiftSelectedNodesByPoint:(NSPoint)offset {
- if ([[pickSupport selectedNodes] count] > 0) {
- GraphChange *change = [graph shiftNodes:[pickSupport selectedNodes] byPoint:offset];
- [self completedGraphChange:change withName:@"Move nodes"];
- }
-}
-
-- (void) insertGraph:(Graph*)g {
- GraphChange *change = [graph insertGraph:g];
- [self completedGraphChange:change withName:@"Insert graph"];
-}
-
-- (void) flipSelectedNodesHorizontally {
- if ([[pickSupport selectedNodes] count] > 0) {
- GraphChange *change = [graph flipHorizontalNodes:[pickSupport selectedNodes]];
- [self completedGraphChange:change withName:@"Flip nodes horizontally"];
- }
-}
-
-- (void) flipSelectedNodesVertically {
- if ([[pickSupport selectedNodes] count] > 0) {
- GraphChange *change = [graph flipVerticalNodes:[pickSupport selectedNodes]];
- [self completedGraphChange:change withName:@"Flip nodes vertically"];
- }
-}
-
-- (void) reverseSelectedEdges {
- if ([[pickSupport selectedEdges] count] > 0) {
- GraphChange *change = [graph reverseEdges:[pickSupport selectedEdges]];
- [self completedGraphChange:change withName:@"Reverse edges"];
- }
-}
-
-- (void) bringSelectionForward {
- BOOL hasNodeSelection = [[pickSupport selectedNodes] count] > 0;
- BOOL hasEdgeSelection = [[pickSupport selectedEdges] count] > 0;
- if (!hasNodeSelection && !hasEdgeSelection)
- return;
-
- [self startUndoGroup];
- GraphChange *nodeChange;
- GraphChange *edgeChange;
- if (hasNodeSelection) {
- nodeChange = [graph bringNodesForward:[pickSupport selectedNodes]];
- [self registerUndoForChange:nodeChange];
- }
- if (hasEdgeSelection) {
- edgeChange = [graph bringEdgesForward:[pickSupport selectedEdges]];
- [self registerUndoForChange:edgeChange];
- }
- [self nameAndEndUndoGroup:@"Bring forward"];
- [self regenerateTikz];
- if (hasNodeSelection)
- [self postGraphChange:nodeChange];
- if (hasEdgeSelection)
- [self postGraphChange:edgeChange];
-}
-
-- (void) bringSelectionToFront {
- BOOL hasNodeSelection = [[pickSupport selectedNodes] count] > 0;
- BOOL hasEdgeSelection = [[pickSupport selectedEdges] count] > 0;
- if (!hasNodeSelection && !hasEdgeSelection)
- return;
-
- [self startUndoGroup];
- GraphChange *nodeChange;
- GraphChange *edgeChange;
- if (hasNodeSelection) {
- nodeChange = [graph bringNodesToFront:[pickSupport selectedNodes]];
- [self registerUndoForChange:nodeChange];
- }
- if (hasEdgeSelection) {
- edgeChange = [graph bringEdgesToFront:[pickSupport selectedEdges]];
- [self registerUndoForChange:edgeChange];
- }
- [self nameAndEndUndoGroup:@"Bring to front"];
- [self regenerateTikz];
- if (hasNodeSelection)
- [self postGraphChange:nodeChange];
- if (hasEdgeSelection)
- [self postGraphChange:edgeChange];
-}
-
-- (void) sendSelectionBackward {
- BOOL hasNodeSelection = [[pickSupport selectedNodes] count] > 0;
- BOOL hasEdgeSelection = [[pickSupport selectedEdges] count] > 0;
- if (!hasNodeSelection && !hasEdgeSelection)
- return;
-
- [self startUndoGroup];
- GraphChange *nodeChange;
- GraphChange *edgeChange;
- if (hasNodeSelection) {
- nodeChange = [graph sendNodesBackward:[pickSupport selectedNodes]];
- [self registerUndoForChange:nodeChange];
- }
- if (hasEdgeSelection) {
- edgeChange = [graph sendNodesBackward:[pickSupport selectedEdges]];
- [self registerUndoForChange:edgeChange];
- }
- [self nameAndEndUndoGroup:@"Send backward"];
- [self regenerateTikz];
- if (hasNodeSelection)
- [self postGraphChange:nodeChange];
- if (hasEdgeSelection)
- [self postGraphChange:edgeChange];
-}
-
-- (void) sendSelectionToBack {
- BOOL hasNodeSelection = [[pickSupport selectedNodes] count] > 0;
- BOOL hasEdgeSelection = [[pickSupport selectedEdges] count] > 0;
- if (!hasNodeSelection && !hasEdgeSelection)
- return;
-
- [self startUndoGroup];
- GraphChange *nodeChange;
- GraphChange *edgeChange;
- if (hasNodeSelection) {
- nodeChange = [graph sendNodesToBack:[pickSupport selectedNodes]];
- [self registerUndoForChange:nodeChange];
- }
- if (hasEdgeSelection) {
- edgeChange = [graph sendNodesToBack:[pickSupport selectedEdges]];
- [self registerUndoForChange:edgeChange];
- }
- [self nameAndEndUndoGroup:@"Send to back"];
- [self regenerateTikz];
- if (hasNodeSelection)
- [self postGraphChange:nodeChange];
- if (hasEdgeSelection)
- [self postGraphChange:edgeChange];
-}
-
-- (BOOL) saveCopyToPath: (NSString*)p error: (NSError**)error {
- if (!p) {
- [NSException raise:@"No document path" format:@"No path given"];
- }
- // we use glib for writing the file, because GNUStep sucks in this regard
- // (older versions don't have -[NSString writeToFile:atomically:encoding:error:])
- GError *gerror = NULL;
- gchar *filename = [p glibFilename];
- BOOL success = g_file_set_contents (filename, [tikz UTF8String], -1, &gerror) ? YES : NO;
- if (gerror) {
- GErrorToNSError (gerror, error);
- g_error_free (gerror);
- }
- g_free (filename);
- return success;
-}
-
-- (BOOL) saveToPath: (NSString*)p error: (NSError**)error {
- BOOL success = [self saveCopyToPath:p error:error];
- if (success) {
- [self setPath:p];
- hasChanges = NO;
- }
- return success;
-}
-
-- (BOOL) save: (NSError**)error {
- if (!path) {
- [NSException raise:@"No document path" format:@"Tried to save a document when there was no path"];
- }
- return [self saveToPath:path error:error];
-}
-
-@end
-
-@implementation TikzDocument (Private)
-- (void) styleRenamed:(NSNotification*)n {
- [self regenerateTikz];
-}
-
-- (void) setPath:(NSString*)p {
- [p retain];
- [path release];
- path = p;
-}
-
-- (void) setGraph:(Graph*)g {
- if (g == nil) {
- g = [Graph graph];
- }
- if (g == graph) {
- return;
- }
-
- [pickSupport deselectAllNodes];
- [pickSupport deselectAllEdges];
-
- [self startUndoGroup];
- [undoManager registerUndoWithTarget:self selector:@selector(setGraph:) object:graph];
- [g retain];
- [graph release];
- graph = g;
-
- [self attachStylesToGraph:graph];
-
- [self regenerateTikz];
- [self postGraphReplaced];
- [self nameAndEndUndoGroup:@"Replace graph"];
-}
-
-- (void) registerUndoForChange:(GraphChange*)change {
- [undoManager registerUndoWithTarget:self
- selector:@selector(undoGraphChange:)
- object:change];
-}
-
-- (void) registerUndoGroupForChange:(GraphChange*)change withName:(NSString*)nm {
- [self startUndoGroup];
- [self registerUndoForChange:change];
- [self nameAndEndUndoGroup:nm];
-}
-
-- (void) undoGraphChange:(GraphChange*)change {
- GraphChange *inverse = [change invert];
- [graph applyGraphChange:inverse];
- [self startUndoGroup];
- [undoManager registerUndoWithTarget:self
- selector:@selector(undoGraphChange:)
- object:inverse];
- [self endUndoGroup];
- [self regenerateTikz];
- [self postGraphChange:change];
-}
-
-- (void) completedGraphChange:(GraphChange*)change withName:(NSString*)name {
- if (change == nil) {
- NSLog(@"No graph change given for change %@", name);
- return;
- }
- [self registerUndoGroupForChange:change withName:name];
- [self regenerateTikz];
- [self postGraphChange:change];
-}
-
-- (void) attachStylesToGraph:(Graph*)g {
- for (Node *n in [g nodes]) {
- [n attachStyleFromTable:[styleManager nodeStyles]];
- }
- for (Edge *e in [g edges]) {
- [e attachStyleFromTable:[styleManager edgeStyles]];
- }
-}
-
-- (void) regenerateTikz {
- [tikz release];
- tikz = [[graph tikz] retain];
- hasChanges = YES;
- [self postTikzChanged];
-}
-@end
-
-// vim:ft=objc:sts=4:sw=4:et
diff --git a/tikzit-old/src/gtk/Tool.h b/tikzit-old/src/gtk/Tool.h
deleted file mode 100644
index 22c983e..0000000
--- a/tikzit-old/src/gtk/Tool.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "InputDelegate.h"
-#import "Surface.h"
-
-#import <gtk/gtk.h>
-#import <gdk-pixbuf/gdk-pixdata.h>
-
-@class Configuration;
-@class GraphRenderer;
-@protocol InputDelegate;
-@protocol RenderDelegate;
-
-@protocol Tool <RenderDelegate,InputDelegate>
-@property (readonly) NSString *name;
-@property (readonly) const gchar *stockId;
-@property (readonly) NSString *helpText;
-@property (readonly) NSString *shortcut;
-@property (retain) GraphRenderer *activeRenderer;
-@property (readonly) GtkWidget *configurationWidget;
-- (void) loadConfiguration:(Configuration*)config;
-- (void) saveConfiguration:(Configuration*)config;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/ToolBox.h b/tikzit-old/src/gtk/ToolBox.h
deleted file mode 100644
index 60074c1..0000000
--- a/tikzit-old/src/gtk/ToolBox.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class Configuration;
-@class Window;
-@protocol Tool;
-
-@interface ToolBox : NSObject {
- GtkWidget *window;
- GtkToolItemGroup *toolGroup;
- GtkWidget *titleLabel;
- GtkWidget *configWidgetContainer;
- GtkWidget *configWidget;
-}
-
-@property (assign) id<Tool> selectedTool;
-
-- (id) initWithTools:(NSArray*)tools;
-
-- (void) show;
-- (void) present;
-- (void) attachToWindow:(Window*)parent;
-
-- (void) loadConfiguration:(Configuration*)config;
-- (void) saveConfiguration:(Configuration*)config;
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/ToolBox.m b/tikzit-old/src/gtk/ToolBox.m
deleted file mode 100644
index c6d2ccf..0000000
--- a/tikzit-old/src/gtk/ToolBox.m
+++ /dev/null
@@ -1,280 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "ToolBox.h"
-
-#import "Application.h"
-#import "Configuration.h"
-#import "Tool.h"
-#import "Window.h"
-
-#import "gtkhelpers.h"
-#import "tztoolpalette.h"
-
-static void tool_button_toggled_cb (GtkWidget *widget, ToolBox *toolBox);
-
-#define TOOL_DATA_KEY "tikzit-tool"
-
-@implementation ToolBox
-
-- (id) init {
- [self release];
- return nil;
-}
-
-- (id) initWithTools:(NSArray*)tools {
- self = [super init];
-
- if (self) {
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_object_ref_sink (window);
- gtk_window_set_title (GTK_WINDOW (window), "Toolbox");
- gtk_window_set_role (GTK_WINDOW (window), "toolbox");
- gtk_window_set_type_hint (GTK_WINDOW (window),
- GDK_WINDOW_TYPE_HINT_UTILITY);
- gtk_window_set_deletable (GTK_WINDOW (window), FALSE);
-
- GtkWidget *mainLayout = gtk_vbox_new (FALSE, 5);
- gtk_widget_show (mainLayout);
- gtk_container_add (GTK_CONTAINER (window), mainLayout);
-
- GtkWidget *toolPalette = tz_tool_palette_new ();
- gtk_widget_show (toolPalette);
- gtk_box_pack_start (GTK_BOX (mainLayout),
- toolPalette,
- FALSE,
- FALSE,
- 0);
- gtk_tool_palette_set_style (GTK_TOOL_PALETTE (toolPalette),
- GTK_TOOLBAR_ICONS);
-
- toolGroup = GTK_TOOL_ITEM_GROUP (gtk_tool_item_group_new ("Tools"));
- g_object_ref_sink (G_OBJECT (toolGroup));
- gtk_tool_item_group_set_label_widget (
- toolGroup,
- NULL);
- gtk_container_add (GTK_CONTAINER (toolPalette), GTK_WIDGET (toolGroup));
- gtk_widget_show (GTK_WIDGET (toolGroup));
-
- GSList *item_group = NULL;
- for (id<Tool> tool in tools) {
- NSString *tooltip = [NSString stringWithFormat:
- @"%@: %@ (%@)",
- [tool name], [tool helpText], [tool shortcut]];
- GtkToolItem *item = gtk_radio_tool_button_new_from_stock (
- item_group,
- [tool stockId]);
- gtk_tool_item_set_tooltip_text (item, [tooltip UTF8String]);
- item_group = gtk_radio_tool_button_get_group (
- GTK_RADIO_TOOL_BUTTON (item));
- gtk_tool_item_group_insert (
- toolGroup,
- item,
- -1);
- gtk_widget_show (GTK_WIDGET (item));
- g_object_set_data_full (
- G_OBJECT(item),
- TOOL_DATA_KEY,
- [tool retain],
- release_obj);
-
- g_signal_connect (item, "toggled",
- G_CALLBACK (tool_button_toggled_cb),
- self);
- }
-
- GtkWidget *sep = gtk_hseparator_new ();
- gtk_widget_show (sep);
- gtk_box_pack_start (GTK_BOX (mainLayout),
- sep,
- FALSE,
- FALSE,
- 0);
-
- titleLabel = gtk_label_new ("");
- g_object_ref_sink (titleLabel);
- gtk_widget_show (titleLabel);
-
- PangoAttrList *attrs = pango_attr_list_new ();
- pango_attr_list_insert (attrs,
- pango_attr_weight_new (PANGO_WEIGHT_SEMIBOLD));
- gtk_label_set_attributes (GTK_LABEL (titleLabel), attrs);
- pango_attr_list_unref (attrs);
-
- gtk_box_pack_start (GTK_BOX (mainLayout),
- titleLabel,
- FALSE,
- FALSE,
- 0);
-
- configWidgetContainer = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
- g_object_ref_sink (configWidgetContainer);
- gtk_widget_show (configWidgetContainer);
- gtk_box_pack_start (GTK_BOX (mainLayout),
- configWidgetContainer,
- TRUE,
- TRUE,
- 0);
- gtk_alignment_set_padding (GTK_ALIGNMENT (configWidgetContainer),
- 5, 5, 5, 5);
-
- gint button_width;
- gint button_height;
-
- if (tz_tool_palette_get_button_size (TZ_TOOL_PALETTE (toolPalette),
- &button_width, &button_height))
- {
- GdkGeometry geometry;
-
- geometry.min_width = 2 * button_width;
- geometry.min_height = -1;
- geometry.base_width = button_width;
- geometry.base_height = 0;
- geometry.width_inc = button_width;
- geometry.height_inc = 1;
-
- gtk_window_set_geometry_hints (GTK_WINDOW (window),
- NULL,
- &geometry,
- GDK_HINT_MIN_SIZE |
- GDK_HINT_BASE_SIZE |
- GDK_HINT_RESIZE_INC |
- GDK_HINT_USER_POS);
- }
- gtk_window_set_default_size (GTK_WINDOW (window), button_width * 5, 500);
-
- // hack to position the toolbox window somewhere sensible
- // (upper left)
- gtk_window_parse_geometry (GTK_WINDOW (window), "+0+0");
- }
-
- return self;
-}
-
-- (void) dealloc {
- if (window) {
- g_object_unref (G_OBJECT (toolGroup));
- g_object_unref (G_OBJECT (titleLabel));
- g_object_unref (G_OBJECT (configWidgetContainer));
- if (configWidget)
- g_object_unref (G_OBJECT (configWidget));
- gtk_widget_destroy (window);
- g_object_unref (G_OBJECT (window));
- }
-
- [super dealloc];
-}
-
-- (id<Tool>) selectedTool {
- guint count = gtk_tool_item_group_get_n_items (toolGroup);
- for (guint i = 0; i < count; ++i) {
- GtkToolItem *item = gtk_tool_item_group_get_nth_item (toolGroup, i);
- if (gtk_toggle_tool_button_get_active (GTK_TOGGLE_TOOL_BUTTON (item))) {
- return (id)g_object_get_data (G_OBJECT (item), TOOL_DATA_KEY);
- }
- }
- return nil;
-}
-
-- (void) _setToolWidget:(GtkWidget*)widget {
- if (configWidget) {
- gtk_widget_hide (configWidget);
- gtk_container_remove (GTK_CONTAINER (configWidgetContainer),
- configWidget);
- g_object_unref (configWidget);
- }
- configWidget = widget;
- if (configWidget) {
- g_object_ref (configWidget);
- gtk_container_add (GTK_CONTAINER (configWidgetContainer),
- configWidget);
- gtk_widget_show (configWidget);
- }
-}
-
-- (void) setSelectedTool:(id<Tool>)tool {
- guint count = gtk_tool_item_group_get_n_items (toolGroup);
- for (guint i = 0; i < count; ++i) {
- GtkToolItem *item = gtk_tool_item_group_get_nth_item (toolGroup, i);
- id<Tool> data = (id)g_object_get_data (G_OBJECT (item), TOOL_DATA_KEY);
- if (data == tool) {
- gtk_toggle_tool_button_set_active (
- GTK_TOGGLE_TOOL_BUTTON (item),
- TRUE);
- break;
- }
- }
- gtk_label_set_label (GTK_LABEL (titleLabel),
- [[tool name] UTF8String]);
- [self _setToolWidget:[tool configurationWidget]];
-}
-
-- (void) show {
- gtk_widget_show (window);
-}
-
-- (void) present {
- gtk_window_present (GTK_WINDOW (window));
-}
-
-- (void) attachToWindow:(Window*)parent {
- utility_window_attach (GTK_WINDOW (window), [parent gtkWindow]);
-}
-
-- (void) loadConfiguration:(Configuration*)config {
- if ([config hasGroup:@"ToolBox"]) {
- tz_restore_window (GTK_WINDOW (window),
- [config integerEntry:@"x" inGroup:@"ToolBox"],
- [config integerEntry:@"y" inGroup:@"ToolBox"],
- [config integerEntry:@"w" inGroup:@"ToolBox"],
- [config integerEntry:@"h" inGroup:@"ToolBox"]);
- }
-}
-
-- (void) saveConfiguration:(Configuration*)config {
- gint x, y, w, h;
-
- gtk_window_get_position (GTK_WINDOW (window), &x, &y);
- gtk_window_get_size (GTK_WINDOW (window), &w, &h);
-
- [config setIntegerEntry:@"x" inGroup:@"ToolBox" value:x];
- [config setIntegerEntry:@"y" inGroup:@"ToolBox" value:y];
- [config setIntegerEntry:@"w" inGroup:@"ToolBox" value:w];
- [config setIntegerEntry:@"h" inGroup:@"ToolBox" value:h];
-}
-
-@end
-
-static void tool_button_toggled_cb (GtkWidget *widget, ToolBox *toolBox) {
- if (gtk_toggle_tool_button_get_active (GTK_TOGGLE_TOOL_BUTTON (widget))) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- id<Tool> tool = (id)g_object_get_data (G_OBJECT(widget), TOOL_DATA_KEY);
- [app setActiveTool:tool];
- NSDictionary *userInfo = [NSDictionary
- dictionaryWithObject:tool
- forKey:@"tool"];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"ToolSelectionChanged"
- object:toolBox
- userInfo:userInfo];
-
- [pool drain];
- }
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/WidgetSurface.h b/tikzit-old/src/gtk/WidgetSurface.h
deleted file mode 100644
index 667749f..0000000
--- a/tikzit-old/src/gtk/WidgetSurface.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-#import <InputDelegate.h>
-#import <Surface.h>
-
-/**
- * Provides a surface for rendering to a widget.
- */
-@interface WidgetSurface: NSObject <Surface> {
- GtkWidget *widget;
- Transformer *transformer;
- id <RenderDelegate> renderDelegate;
- id <InputDelegate> inputDelegate;
- BOOL keepCentered;
- BOOL buttonPressesRequired;
- CGFloat defaultScale;
- NSSize lastKnownSize;
-}
-
-@property (assign) BOOL canFocus;
-@property (assign) BOOL keepCentered;
-@property (assign) CGFloat defaultScale;
-
-- (id) initWithWidget:(GtkWidget*)widget;
-- (GtkWidget*) widget;
-
-- (id<InputDelegate>) inputDelegate;
-- (void) setInputDelegate:(id<InputDelegate>)delegate;
-
-/**
- * Set the minimum size that this widget wants
- */
-- (void) setSizeRequestWidth:(double)width height:(double)height;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/WidgetSurface.m b/tikzit-old/src/gtk/WidgetSurface.m
deleted file mode 100644
index 004e722..0000000
--- a/tikzit-old/src/gtk/WidgetSurface.m
+++ /dev/null
@@ -1,630 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "WidgetSurface.h"
-#import "gtkhelpers.h"
-#import "InputDelegate.h"
-#import "CairoRenderContext.h"
-
-// {{{ Internal interfaces
-// {{{ GTK+ callbacks
-static gboolean configure_event_cb (GtkWidget *widget, GdkEventConfigure *event, WidgetSurface *surface);
-static void realize_cb (GtkWidget *widget, WidgetSurface *surface);
-static gboolean expose_event_cb (GtkWidget *widget, GdkEventExpose *event, WidgetSurface *surface);
-static gboolean button_press_event_cb (GtkWidget *widget, GdkEventButton *event, WidgetSurface *surface);
-static gboolean button_release_event_cb (GtkWidget *widget, GdkEventButton *event, WidgetSurface *surface);
-static gboolean motion_notify_event_cb (GtkWidget *widget, GdkEventMotion *event, WidgetSurface *surface);
-static gboolean key_press_event_cb (GtkWidget *widget, GdkEventKey *event, WidgetSurface *surface);
-static gboolean key_release_event_cb (GtkWidget *widget, GdkEventKey *event, WidgetSurface *surface);
-static gboolean scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, WidgetSurface *surface);
-static void set_cursor (GtkWidget *widget, GdkCursor *cursor);
-static void unref_cursor (gpointer cursor, GClosure *closure);
-// }}}
-
-@interface WidgetSurface (Private)
-- (void) updateTransformer;
-- (void) widgetSizeChanged:(NSNotification*)notification;
-- (void) handleExposeEvent:(GdkEventExpose*)event;
-- (void) updateLastKnownSize;
-- (void) zoomTo:(CGFloat)scale aboutPoint:(NSPoint)p;
-- (void) zoomTo:(CGFloat)scale;
-- (void) addToEventMask:(GdkEventMask)values;
-- (void) removeFromEventMask:(GdkEventMask)values;
-@end
-// }}}
-// {{{ API
-@implementation WidgetSurface
-
-- (id) init {
- return [self initWithWidget:gtk_drawing_area_new ()];
-}
-
-- (id) initWithWidget:(GtkWidget*)w {
- self = [super init];
-
- if (self) {
- widget = w;
- g_object_ref_sink (G_OBJECT (widget));
- defaultScale = 1.0f;
- transformer = [[Transformer alloc] init];
- [transformer setFlippedAboutXAxis:YES];
- [self updateLastKnownSize];
- g_object_set (G_OBJECT (widget), "events", GDK_STRUCTURE_MASK, NULL);
- g_signal_connect (widget, "expose-event", G_CALLBACK (expose_event_cb), self);
- g_signal_connect (widget, "configure-event", G_CALLBACK (configure_event_cb), self);
- g_signal_connect (widget, "realize", G_CALLBACK (realize_cb), self);
- g_signal_connect (widget, "button-press-event", G_CALLBACK (button_press_event_cb), self);
- g_signal_connect (widget, "button-release-event", G_CALLBACK (button_release_event_cb), self);
- g_signal_connect (widget, "motion-notify-event", G_CALLBACK (motion_notify_event_cb), self);
- g_signal_connect (widget, "key-press-event", G_CALLBACK (key_press_event_cb), self);
- g_signal_connect (widget, "key-release-event", G_CALLBACK (key_release_event_cb), self);
- g_signal_connect (widget, "scroll-event", G_CALLBACK (scroll_event_cb), self);
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(widgetSizeChanged:)
- name:@"SurfaceSizeChanged"
- object:self];
- if ([self canFocus]) {
- [self addToEventMask:GDK_BUTTON_PRESS_MASK];
- } else {
- [self removeFromEventMask:GDK_BUTTON_PRESS_MASK];
- }
- }
-
- return self;
-}
-
-- (void) dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
- [transformer release];
- g_object_unref (G_OBJECT (widget));
-
- [super dealloc];
-}
-
-- (void) invalidateRect:(NSRect)rect {
- if (!NSIsEmptyRect (rect)) {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- GdkRectangle g_rect = gdk_rectangle_from_ns_rect (rect);
- gdk_window_invalidate_rect (window, &g_rect, TRUE);
- }
- }
-}
-
-- (void) invalidate {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- GdkRegion *visible = gdk_drawable_get_visible_region (GDK_DRAWABLE (window));
- gdk_window_invalidate_region (window, visible, TRUE);
- gdk_region_destroy (visible);
- }
-}
-
-- (id<RenderContext>) createRenderContext {
- return [CairoRenderContext contextForWidget:widget];
-}
-
-- (int) width {
- int width = 0;
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- gdk_drawable_get_size (window, &width, NULL);
- }
- return width;
-}
-
-- (int) height {
- int height = 0;
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- gdk_drawable_get_size (window, NULL, &height);
- }
- return height;
-}
-
-- (void) setSizeRequestWidth:(double)width height:(double)height {
- gtk_widget_set_size_request (widget, width, height);
-}
-
-- (Transformer*) transformer {
- return transformer;
-}
-
-- (GtkWidget*) widget {
- return widget;
-}
-
-- (void) setRenderDelegate:(id <RenderDelegate>)delegate {
- // NB: no retention!
- renderDelegate = delegate;
- if (renderDelegate == nil) {
- [self removeFromEventMask:GDK_EXPOSURE_MASK];
- } else {
- [self addToEventMask:GDK_EXPOSURE_MASK];
- }
-}
-
-- (id<InputDelegate>) inputDelegate {
- return inputDelegate;
-}
-
-- (void) setInputDelegate:(id<InputDelegate>)delegate {
- if (delegate == inputDelegate) {
- return;
- }
- buttonPressesRequired = NO;
- if (inputDelegate != nil) {
- [self removeFromEventMask:GDK_POINTER_MOTION_MASK
- | GDK_BUTTON_PRESS_MASK
- | GDK_BUTTON_RELEASE_MASK
- | GDK_KEY_PRESS_MASK
- | GDK_KEY_RELEASE_MASK];
- }
- inputDelegate = delegate;
- if (delegate != nil) {
- GdkEventMask mask = 0;
- if ([delegate respondsToSelector:@selector(mousePressAt:withButton:andMask:)]) {
- buttonPressesRequired = YES;
- mask |= GDK_BUTTON_PRESS_MASK;
- }
- if ([delegate respondsToSelector:@selector(mouseReleaseAt:withButton:andMask:)]) {
- mask |= GDK_BUTTON_RELEASE_MASK;
- }
- if ([delegate respondsToSelector:@selector(mouseDoubleClickAt:withButton:andMask:)]) {
- buttonPressesRequired = YES;
- mask |= GDK_BUTTON_PRESS_MASK;
- }
- if ([delegate respondsToSelector:@selector(mouseMoveTo:withButtons:andMask:)]) {
- mask |= GDK_POINTER_MOTION_MASK;
- }
- if ([delegate respondsToSelector:@selector(keyPressed:withMask:)]) {
- mask |= GDK_KEY_PRESS_MASK;
- }
- if ([delegate respondsToSelector:@selector(keyReleased:withMask:)]) {
- mask |= GDK_KEY_RELEASE_MASK;
- }
- [self addToEventMask:mask];
- }
-}
-
-- (id <RenderDelegate>) renderDelegate {
- return renderDelegate;
-}
-
-- (void) setKeepCentered:(BOOL)centered {
- keepCentered = centered;
- [self updateTransformer];
-}
-
-- (BOOL) keepCentered {
- return keepCentered;
-}
-
-- (BOOL) canFocus {
- return gtk_widget_get_can_focus (widget);
-}
-
-- (void) setCanFocus:(BOOL)focus {
- gtk_widget_set_can_focus (widget, focus);
- if (focus) {
- [self addToEventMask:GDK_BUTTON_PRESS_MASK];
- } else if (!buttonPressesRequired) {
- [self removeFromEventMask:GDK_BUTTON_PRESS_MASK];
- }
-}
-
-- (BOOL) hasFocus {
- return gtk_widget_has_focus (widget);
-}
-
-- (void) renderFocus {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- int width = 0;
- int height = 0;
- gdk_drawable_get_size (window, &width, &height);
- gtk_paint_focus (gtk_widget_get_style (widget),
- window,
- GTK_STATE_NORMAL,
- NULL,
- widget,
- NULL,
- 0,
- 0,
- width,
- height
- );
- }
-}
-
-- (CGFloat) defaultScale {
- return defaultScale;
-}
-
-- (void) setDefaultScale:(CGFloat)newDefault {
- if (defaultScale != newDefault) {
- CGFloat oldDefault = defaultScale;
- defaultScale = newDefault;
-
- CGFloat scale = [transformer scale];
- scale *= (newDefault / oldDefault);
- [transformer setScale:scale];
- [self invalidate];
- }
-}
-
-- (void) zoomIn {
- CGFloat scale = [transformer scale];
- scale *= 1.2f;
- [self zoomTo:scale];
-}
-
-- (void) zoomOut {
- CGFloat scale = [transformer scale];
- scale /= 1.2f;
- [self zoomTo:scale];
-}
-
-- (void) zoomReset {
- [self zoomTo:defaultScale];
-}
-
-- (void) zoomInAboutPoint:(NSPoint)p {
- CGFloat scale = [transformer scale];
- scale *= 1.2f;
- [self zoomTo:scale aboutPoint:p];
-}
-
-- (void) zoomOutAboutPoint:(NSPoint)p {
- CGFloat scale = [transformer scale];
- scale /= 1.2f;
- [self zoomTo:scale aboutPoint:p];
-}
-
-- (void) zoomResetAboutPoint:(NSPoint)p {
- [self zoomTo:defaultScale aboutPoint:p];
-}
-
-- (void) setCursor:(Cursor)c {
- GdkCursor *cursor = NULL;
- switch (c) {
- case ResizeRightCursor:
- cursor = gdk_cursor_new (GDK_RIGHT_SIDE);
- break;
- case ResizeBottomRightCursor:
- cursor = gdk_cursor_new (GDK_BOTTOM_RIGHT_CORNER);
- break;
- case ResizeBottomCursor:
- cursor = gdk_cursor_new (GDK_BOTTOM_SIDE);
- break;
- case ResizeBottomLeftCursor:
- cursor = gdk_cursor_new (GDK_BOTTOM_LEFT_CORNER);
- break;
- case ResizeLeftCursor:
- cursor = gdk_cursor_new (GDK_LEFT_SIDE);
- break;
- case ResizeTopLeftCursor:
- cursor = gdk_cursor_new (GDK_TOP_LEFT_CORNER);
- break;
- case ResizeTopCursor:
- cursor = gdk_cursor_new (GDK_TOP_SIDE);
- break;
- case ResizeTopRightCursor:
- cursor = gdk_cursor_new (GDK_TOP_RIGHT_CORNER);
- break;
- default: break;
- }
- GdkWindow *window = gtk_widget_get_window (widget);
- g_signal_handlers_disconnect_matched (window,
- G_SIGNAL_MATCH_FUNC, 0, 0, NULL,
- G_CALLBACK (set_cursor), NULL);
- if (window) {
- gdk_window_set_cursor (window, cursor);
- if (cursor != NULL) {
- gdk_cursor_unref (cursor);
- }
- } else {
- g_signal_connect_data (widget,
- "realize", G_CALLBACK (set_cursor), cursor,
- unref_cursor, 0);
- }
-}
-
-@end
-// }}}
-// {{{ Private
-@implementation WidgetSurface (Private)
-- (void) widgetSizeChanged:(NSNotification*)notification {
- [self updateTransformer];
- [self updateLastKnownSize];
-}
-
-- (void) updateTransformer {
- if (keepCentered) {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- int width = 0;
- int height = 0;
- gdk_drawable_get_size (window, &width, &height);
- NSPoint origin;
- if (lastKnownSize.width < 1 || lastKnownSize.height < 1) {
- origin.x = (float)width / 2.0f;
- origin.y = (float)height / 2.0f;
- } else {
- origin = [transformer origin];
- origin.x += ((float)width - lastKnownSize.width) / 2.0f;
- origin.y += ((float)height - lastKnownSize.height) / 2.0f;
- }
- [transformer setOrigin:origin];
- }
- }
-}
-
-- (void) handleExposeEvent:(GdkEventExpose*)event {
- if (renderDelegate != nil) {
- NSRect area = gdk_rectangle_to_ns_rect (event->area);
-
- id<RenderContext> context = [CairoRenderContext contextForWidget:widget];
- [context rect:area];
- [context clipToPath];
- [renderDelegate renderWithContext:context onSurface:self];
- }
-}
-
-- (void) updateLastKnownSize {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- int width = 0;
- int height = 0;
- gdk_drawable_get_size (window, &width, &height);
- lastKnownSize.width = (float)width;
- lastKnownSize.height = (float)height;
- } else {
- lastKnownSize = NSZeroSize;
- }
-}
-
-- (void) zoomTo:(CGFloat)scale aboutPoint:(NSPoint)p {
- NSPoint graphP = [transformer fromScreen:p];
-
- [transformer setScale:scale];
-
- NSPoint newP = [transformer toScreen:graphP];
- NSPoint origin = [transformer origin];
- origin.x += p.x - newP.x;
- origin.y += p.y - newP.y;
- [transformer setOrigin:origin];
-
- [self invalidate];
-}
-
-- (void) zoomTo:(CGFloat)scale {
- NSPoint centre = NSMakePoint (lastKnownSize.width/2.0f, lastKnownSize.height/2.0f);
- [self zoomTo:scale aboutPoint:centre];
-}
-
-- (void) addToEventMask:(GdkEventMask)values {
- GdkEventMask mask;
- g_object_get (G_OBJECT (widget), "events", &mask, NULL);
- mask |= values;
- g_object_set (G_OBJECT (widget), "events", mask, NULL);
-}
-
-- (void) removeFromEventMask:(GdkEventMask)values {
- GdkEventMask mask;
- g_object_get (G_OBJECT (widget), "events", &mask, NULL);
- mask ^= values;
- if (buttonPressesRequired || [self canFocus]) {
- mask |= GDK_BUTTON_PRESS_MASK;
- }
- g_object_set (G_OBJECT (widget), "events", mask, NULL);
-}
-
-@end
-// }}}
-// {{{ GTK+ callbacks
-static gboolean configure_event_cb(GtkWidget *widget, GdkEventConfigure *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"SurfaceSizeChanged" object:surface];
- [pool drain];
- return FALSE;
-}
-
-static void realize_cb (GtkWidget *widget, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [surface updateTransformer];
- [pool drain];
-}
-
-static gboolean expose_event_cb(GtkWidget *widget, GdkEventExpose *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [surface handleExposeEvent:event];
- [pool drain];
- return FALSE;
-}
-
-InputMask mask_from_gdk_modifier_state (GdkModifierType state) {
- InputMask mask = 0;
- if (state & GDK_SHIFT_MASK) {
- mask |= ShiftMask;
- }
- if (state & GDK_CONTROL_MASK) {
- mask |= ControlMask;
- }
- if (state & GDK_META_MASK) {
- mask |= MetaMask;
- }
- return mask;
-}
-
-ScrollDirection scroll_dir_from_gdk_scroll_dir (GdkScrollDirection dir) {
- switch (dir) {
- case GDK_SCROLL_UP: return ScrollUp;
- case GDK_SCROLL_DOWN: return ScrollDown;
- case GDK_SCROLL_LEFT: return ScrollLeft;
- case GDK_SCROLL_RIGHT: return ScrollRight;
- default: NSLog(@"Invalid scroll direction %i", (int)dir); return ScrollDown;
- }
-}
-
-MouseButton buttons_from_gdk_modifier_state (GdkModifierType state) {
- MouseButton buttons = 0;
- if (state & GDK_BUTTON1_MASK) {
- buttons |= LeftButton;
- }
- if (state & GDK_BUTTON2_MASK) {
- buttons |= MiddleButton;
- }
- if (state & GDK_BUTTON3_MASK) {
- buttons |= RightButton;
- }
- if (state & GDK_BUTTON4_MASK) {
- buttons |= Button4;
- }
- if (state & GDK_BUTTON5_MASK) {
- buttons |= Button5;
- }
- return buttons;
-}
-
-static gboolean button_press_event_cb(GtkWidget *widget, GdkEventButton *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- if ([surface canFocus]) {
- if (!gtk_widget_has_focus (widget)) {
- gtk_widget_grab_focus (widget);
- }
- }
-
- id<InputDelegate> delegate = [surface inputDelegate];
- if (delegate != nil) {
- NSPoint pos = NSMakePoint (event->x, event->y);
- MouseButton button = (MouseButton)event->button;
- InputMask mask = mask_from_gdk_modifier_state (event->state);
- if (event->type == GDK_BUTTON_PRESS && [delegate respondsToSelector:@selector(mousePressAt:withButton:andMask:)]) {
- [delegate mousePressAt:pos withButton:button andMask:mask];
- }
- if (event->type == GDK_2BUTTON_PRESS && [delegate respondsToSelector:@selector(mouseDoubleClickAt:withButton:andMask:)]) {
- [delegate mouseDoubleClickAt:pos withButton:button andMask:mask];
- }
- }
-
- [pool drain];
- return FALSE;
-}
-
-static gboolean button_release_event_cb(GtkWidget *widget, GdkEventButton *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- id<InputDelegate> delegate = [surface inputDelegate];
- if (delegate != nil) {
- if ([delegate respondsToSelector:@selector(mouseReleaseAt:withButton:andMask:)]) {
- NSPoint pos = NSMakePoint (event->x, event->y);
- MouseButton button = (MouseButton)event->button;
- InputMask mask = mask_from_gdk_modifier_state (event->state);
- [delegate mouseReleaseAt:pos withButton:button andMask:mask];
- }
- }
-
- [pool drain];
- return FALSE;
-}
-
-static gboolean motion_notify_event_cb(GtkWidget *widget, GdkEventMotion *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- id<InputDelegate> delegate = [surface inputDelegate];
- if (delegate != nil) {
- if ([delegate respondsToSelector:@selector(mouseMoveTo:withButtons:andMask:)]) {
- NSPoint pos = NSMakePoint (event->x, event->y);
- MouseButton buttons = buttons_from_gdk_modifier_state (event->state);
- InputMask mask = mask_from_gdk_modifier_state (event->state);
- [delegate mouseMoveTo:pos withButtons:buttons andMask:mask];
- }
- }
-
- [pool drain];
- return FALSE;
-}
-
-static gboolean key_press_event_cb(GtkWidget *widget, GdkEventKey *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- id<InputDelegate> delegate = [surface inputDelegate];
- if (delegate != nil) {
- if ([delegate respondsToSelector:@selector(keyPressed:withMask:)]) {
- InputMask mask = mask_from_gdk_modifier_state (event->state);
- [delegate keyPressed:event->keyval withMask:mask];
- }
- }
-
- [pool drain];
- return FALSE;
-}
-
-static gboolean key_release_event_cb(GtkWidget *widget, GdkEventKey *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- id<InputDelegate> delegate = [surface inputDelegate];
- if (delegate != nil) {
- if ([delegate respondsToSelector:@selector(keyReleased:withMask:)]) {
- InputMask mask = mask_from_gdk_modifier_state (event->state);
- [delegate keyReleased:event->keyval withMask:mask];
- }
- }
-
- [pool drain];
- return FALSE;
-}
-
-static gboolean scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, WidgetSurface *surface) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- id<InputDelegate> delegate = [surface inputDelegate];
- if (delegate != nil) {
- if ([delegate respondsToSelector:@selector(mouseScrolledAt:inDirection:withMask:)]) {
- NSPoint pos = NSMakePoint (event->x, event->y);
- InputMask mask = mask_from_gdk_modifier_state (event->state);
- ScrollDirection dir = scroll_dir_from_gdk_scroll_dir (event->direction);
- [delegate mouseScrolledAt:pos
- inDirection:dir
- withMask:mask];
- }
- }
-
- [pool drain];
- return FALSE;
-}
-
-static void unref_cursor (gpointer cursor, GClosure *closure) {
- if (cursor != NULL) {
- gdk_cursor_unref ((GdkCursor*)cursor);
- }
-}
-
-static void set_cursor (GtkWidget *widget, GdkCursor *cursor) {
- GdkWindow *window = gtk_widget_get_window (widget);
- if (window) {
- gdk_window_set_cursor (window, cursor);
- if (cursor != NULL) {
- gdk_cursor_unref (cursor);
- }
- }
-}
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/Window.h b/tikzit-old/src/gtk/Window.h
deleted file mode 100644
index a3ce8a4..0000000
--- a/tikzit-old/src/gtk/Window.h
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-
-@class GraphEditorPanel;
-@class Menu;
-@class PropertyPane;
-@class Preambles;
-@class PreambleEditor;
-@class PreviewWindow;
-@class SettingsDialog;
-@class StyleManager;
-@class StylesPane;
-@class TikzDocument;
-@protocol Tool;
-
-/**
- * Manages a document window
- */
-@interface Window: NSObject {
- // GTK+ widgets
- GtkWindow *window;
- GtkTextBuffer *tikzBuffer;
- GtkStatusbar *statusBar;
- GtkPaned *tikzPaneSplitter;
- GtkWidget *tikzPane;
-
- gulong clipboard_handler_id;
- GtkTextTag *errorHighlightTag; // owned by tikzBuffer
-
- // Classes that manage parts of the window
- Menu *menu;
- GraphEditorPanel *graphPanel;
-
- PreviewWindow *previewWindow;
-
- // state variables
- BOOL suppressTikzUpdates;
- BOOL hasParseError;
-
- // the document displayed by the window
- TikzDocument *document;
-}
-
-/**
- * The document displayed by the window
- */
-@property (retain) TikzDocument *document;
-@property (readonly) BOOL hasFocus;
-@property (readonly) GtkWindow *gtkWindow;
-
-/**
- * Create a window with an empty document
- */
-- (id) init;
-+ (id) window;
-
-/**
- * Create a window with the given document
- */
-- (id) initWithDocument:(TikzDocument*)doc;
-+ (id) windowWithDocument:(TikzDocument*)doc;
-
-/**
- * Present the window to the user
- */
-- (void) present;
-
-/**
- * Open a file, asking the user which file to open
- */
-- (void) openFile;
-/**
- * Open a file
- */
-- (BOOL) openFileAtPath:(NSString*)path;
-/**
- * Save the active document to the path it was opened from
- * or last saved to, or ask the user where to save it.
- */
-- (BOOL) saveActiveDocument;
-/**
- * Save the active document, asking the user where to save it.
- */
-- (BOOL) saveActiveDocumentAs;
-/**
- * Save the active document as a shape, asking the user what to name it.
- */
-- (void) saveActiveDocumentAsShape;
-
-/**
- * Close the window.
- *
- * May terminate the application if this is the last window.
- *
- * Will ask for user confirmation if the document is not saved.
- */
-- (void) close;
-
-/**
- * Cut the current selection to the clipboard.
- */
-- (void) selectionCutToClipboard;
-/**
- * Copy the current selection to the clipboard.
- */
-- (void) selectionCopyToClipboard;
-/**
- * Paste from the clipboard to the appropriate place.
- */
-- (void) pasteFromClipboard;
-
-/**
- * The GTK+ window that this class manages.
- */
-- (GtkWindow*) gtkWindow;
-/**
- * The menu for the window.
- */
-- (Menu*) menu;
-
-/**
- * Present an error to the user
- *
- * @param error the error to present
- */
-- (void) presentError:(NSError*)error;
-/**
- * Present an error to the user
- *
- * @param error the error to present
- * @param message a message to display with the error
- */
-- (void) presentError:(NSError*)error withMessage:(NSString*)message;
-/**
- * Present an error to the user
- *
- * @param error the error to present
- */
-- (void) presentGError:(GError*)error;
-/**
- * Present an error to the user
- *
- * @param error the error to present
- * @param message a message to display with the error
- */
-- (void) presentGError:(GError*)error withMessage:(NSString*)message;
-
-- (void) setActiveTool:(id<Tool>)tool;
-
-- (void) zoomIn;
-- (void) zoomOut;
-- (void) zoomReset;
-
-/**
- * Show or update the preview window.
- */
-- (void) presentPreview;
-/**
- * Show or update the preview window without it grabbing focus
- */
-- (void) updatePreview;
-
-@end
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/Window.m b/tikzit-old/src/gtk/Window.m
deleted file mode 100644
index 2d9e63a..0000000
--- a/tikzit-old/src/gtk/Window.m
+++ /dev/null
@@ -1,991 +0,0 @@
-/*
- * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "Window.h"
-
-#import <gtk/gtk.h>
-#import "gtkhelpers.h"
-#import "clipboard.h"
-
-#import "Application.h"
-#import "Configuration.h"
-#import "FileChooserDialog.h"
-#import "GraphEditorPanel.h"
-#import "Menu.h"
-#import "RecentManager.h"
-#import "Shape.h"
-#import "SupportDir.h"
-#import "TikzDocument.h"
-
-#ifdef HAVE_POPPLER
-#import "PreviewWindow.h"
-#endif
-
-enum {
- GraphInfoStatus,
- ParseStatus
-};
-
-// {{{ Internal interfaces
-// {{{ Clipboard support
-
-static void clipboard_provide_data (GtkClipboard *clipboard,
- GtkSelectionData *selection_data,
- guint info,
- gpointer clipboard_graph_data);
-static void clipboard_release_data (GtkClipboard *clipboard, gpointer clipboard_graph_data);
-static void clipboard_check_targets (GtkClipboard *clipboard,
- GdkAtom *atoms,
- gint n_atoms,
- gpointer action);
-static void clipboard_paste_contents (GtkClipboard *clipboard,
- GtkSelectionData *selection_data,
- gpointer document);
-
-// }}}
-// {{{ Signals
-
-static void window_toplevel_focus_changed_cb (GObject *gobject, GParamSpec *pspec, Window *window);
-static void graph_divider_position_changed_cb (GObject *gobject, GParamSpec *pspec, Window *window);
-static void tikz_buffer_changed_cb (GtkTextBuffer *buffer, Window *window);
-static gboolean main_window_delete_event_cb (GtkWidget *widget, GdkEvent *event, Window *window);
-static void main_window_destroy_cb (GtkWidget *widget, Window *window);
-static gboolean main_window_configure_event_cb (GtkWidget *widget, GdkEventConfigure *event, Window *window);
-static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAction *action);
-
-// }}}
-
-@interface Window (Notifications)
-- (void) tikzBufferChanged;
-- (void) windowSizeChangedWidth:(int)width height:(int)height;
-- (void) documentTikzChanged:(NSNotification*)notification;
-- (void) documentSelectionChanged:(NSNotification*)notification;
-- (void) undoStackChanged:(NSNotification*)notification;
-@end
-
-@interface Window (InitHelpers)
-- (void) _loadUi;
-- (void) _restoreUiState;
-- (void) _connectSignals;
-@end
-
-@interface Window (Private) <PreviewHandler>
-- (BOOL) _askCanClose;
-/** Open a document, dealing with errors as necessary */
-- (TikzDocument*) _openDocument:(NSString*)path;
-- (void) _placeGraphOnClipboard:(Graph*)graph;
-- (void) _clearParseError;
-- (void) _setParseError:(NSError*)error;
-/** Update the window title. */
-- (void) _updateTitle;
-/** Update the window status bar default text. */
-- (void) _updateStatus;
-/** Update the displayed tikz code to match the active document. */
-- (void) _updateTikz;
-/** Update the undo and redo actions to match the active document's
- * undo stack. */
-- (void) _updateUndoActions;
-- (void) showPreview;
-@end
-
-// }}}
-// {{{ API
-
-@implementation Window
-
-@synthesize gtkWindow=window;
-
-- (id) init {
- return [self initWithDocument:[TikzDocument documentWithStyleManager:[app styleManager]]];
-}
-+ (id) window {
- return [[[self alloc] init] autorelease];
-}
-- (id) initWithDocument:(TikzDocument*)doc {
- self = [super init];
-
- if (self) {
- [self _loadUi];
- [self _restoreUiState];
- [self _connectSignals];
-
- [self setDocument:doc];
-
- gtk_widget_show (GTK_WIDGET (window));
- }
-
- return self;
-}
-+ (id) windowWithDocument:(TikzDocument*)doc {
- return [[[self alloc] initWithDocument:doc] autorelease];
-}
-
-- (void) dealloc {
- // The GTK+ window has already been destroyed at this point
-
- [[NSNotificationCenter defaultCenter] removeObserver:self];
- g_signal_handler_disconnect (
- gtk_clipboard_get (GDK_SELECTION_CLIPBOARD),
- clipboard_handler_id);
-
- [previewWindow release];
- [menu release];
- [graphPanel release];
- [document release];
-
- g_object_unref (tikzBuffer);
- g_object_unref (tikzPane);
- g_object_unref (tikzPaneSplitter);
- g_object_unref (statusBar);
- g_object_unref (window);
-
- [super dealloc];
-}
-
-- (TikzDocument*) document {
- return document;
-}
-- (void) setDocument:(TikzDocument*)newDoc {
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:[document pickSupport]];
- [[NSNotificationCenter defaultCenter] removeObserver:self name:nil object:document];
-
- TikzDocument *oldDoc = document;
- document = [newDoc retain];
-
- [graphPanel setDocument:document];
- [previewWindow setDocument:document];
- [self _updateTikz];
- [self _updateTitle];
- [self _updateStatus];
- [self _updateUndoActions];
- [menu notifySelectionChanged:[document pickSupport]];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(documentTikzChanged:)
- name:@"TikzChanged" object:document];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(undoStackChanged:)
- name:@"UndoStackChanged" object:document];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(documentSelectionChanged:)
- name:@"NodeSelectionChanged" object:[document pickSupport]];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(documentSelectionChanged:)
- name:@"EdgeSelectionChanged" object:[document pickSupport]];
-
- if ([document path] != nil) {
- [[RecentManager defaultManager] addRecentFile:[document path]];
- }
-
- NSDictionary *userInfo;
- userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
- document, @"document",
- oldDoc, @"oldDocument",
- nil];
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"DocumentChanged"
- object:self
- userInfo:userInfo];
- [oldDoc release];
-}
-
-- (BOOL) hasFocus {
- return gtk_window_has_toplevel_focus (GTK_WINDOW (window));
-}
-
-- (void) present {
- gtk_window_present (GTK_WINDOW (window));
-}
-
-- (void) openFile {
- FileChooserDialog *dialog = [FileChooserDialog openDialogWithParent:window];
- [dialog addStandardFilters];
- if ([document path]) {
- [dialog setCurrentFolder:[[document path] stringByDeletingLastPathComponent]];
- } else if ([app lastOpenFolder]) {
- [dialog setCurrentFolder:[app lastOpenFolder]];
- }
-
- if ([dialog showDialog]) {
- if ([self openFileAtPath:[dialog filePath]]) {
- [app setLastOpenFolder:[dialog currentFolder]];
- }
- }
- [dialog destroy];
-}
-
-- (BOOL) openFileAtPath:(NSString*)path {
- TikzDocument *doc = [self _openDocument:path];
- if (doc != nil) {
- if (![document hasUnsavedChanges] && [document path] == nil) {
- // we just have a fresh, untitled document - replace it
- [self setDocument:doc];
- } else {
- [app newWindowWithDocument:doc];
- }
- return YES;
- }
- return NO;
-}
-
-- (BOOL) saveActiveDocument {
- if ([document path] == nil) {
- return [self saveActiveDocumentAs];
- } else {
- NSError *error = nil;
- if (![document save:&error]) {
- [self presentError:error];
- return NO;
- } else {
- [self _updateTitle];
- return YES;
- }
- }
-}
-
-- (BOOL) saveActiveDocumentAs {
- FileChooserDialog *dialog = [FileChooserDialog saveDialogWithParent:window];
- [dialog addStandardFilters];
- if ([document path] != nil) {
- [dialog setCurrentFolder:[[document path] stringByDeletingLastPathComponent]];
- } else if ([app lastSaveAsFolder] != nil) {
- [dialog setCurrentFolder:[app lastSaveAsFolder]];
- }
- [dialog setSuggestedName:[document suggestedFileName]];
-
- BOOL saved = NO;
- if ([dialog showDialog]) {
- NSString *nfile = [dialog filePath];
-
- NSError *error = nil;
- if (![document saveToPath:nfile error:&error]) {
- [self presentError:error];
- } else {
- [self _updateTitle];
- [[RecentManager defaultManager] addRecentFile:nfile];
- [app setLastSaveAsFolder:[dialog currentFolder]];
- saved = YES;
- }
- }
- [dialog destroy];
- return saved;
-}
-
-- (void) saveActiveDocumentAsShape {
- GtkWidget *dialog = gtk_dialog_new_with_buttons (
- "Save as shape",
- window,
- GTK_DIALOG_MODAL,
- GTK_STOCK_OK,
- GTK_RESPONSE_ACCEPT,
- GTK_STOCK_CANCEL,
- GTK_RESPONSE_REJECT,
- NULL);
- GtkBox *content = GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog)));
- GtkWidget *label1 = gtk_label_new ("Please choose a name for the shape");
- GtkWidget *label2 = gtk_label_new ("Name:");
- GtkWidget *input = gtk_entry_new ();
- GtkBox *hbox = GTK_BOX (gtk_hbox_new (FALSE, 5));
- gtk_box_pack_start (hbox, label2, FALSE, TRUE, 0);
- gtk_box_pack_start (hbox, input, TRUE, TRUE, 0);
- gtk_box_pack_start (content, label1, TRUE, TRUE, 5);
- gtk_box_pack_start (content, GTK_WIDGET (hbox), TRUE, TRUE, 5);
- gtk_widget_show_all (GTK_WIDGET (content));
- gint response = gtk_dialog_run (GTK_DIALOG (dialog));
- while (response == GTK_RESPONSE_ACCEPT) {
- response = GTK_RESPONSE_NONE;
- NSDictionary *shapeDict = [Shape shapeDictionary];
- const gchar *dialogInput = gtk_entry_get_text (GTK_ENTRY (input));
- NSString *shapeName = [NSString stringWithUTF8String:dialogInput];
- BOOL doSave = NO;
- if ([shapeName isEqual:@""]) {
- GtkWidget *emptyStrDialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "You must specify a shape name");
- gtk_dialog_run (GTK_DIALOG (emptyStrDialog));
- gtk_widget_destroy (emptyStrDialog);
- response = gtk_dialog_run (GTK_DIALOG (dialog));
- } else if ([shapeDict objectForKey:shapeName] != nil) {
- GtkWidget *overwriteDialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_YES_NO,
- "Do you want to replace the existing shape named '%s'?",
- dialogInput);
- gint overwriteResp = gtk_dialog_run (GTK_DIALOG (overwriteDialog));
- gtk_widget_destroy (overwriteDialog);
-
- if (overwriteResp == GTK_RESPONSE_YES) {
- doSave = YES;
- } else {
- response = gtk_dialog_run (GTK_DIALOG (dialog));
- }
- } else {
- doSave = YES;
- }
- if (doSave) {
- NSError *error = nil;
- NSString *userShapeDir = [[SupportDir userSupportDir] stringByAppendingPathComponent:@"shapes"];
- NSString *file = [NSString stringWithFormat:@"%@/%@.tikz", userShapeDir, shapeName];
- if (![[NSFileManager defaultManager] ensureDirectoryExists:userShapeDir error:&error]) {
- [self presentError:error withMessage:@"Could not create user shape directory"];
- } else {
- if (![document saveCopyToPath:file error:&error]) {
- [self presentError:error withMessage:@"Could not save shape file"];
- } else {
- [Shape refreshShapeDictionary];
- }
- }
- }
- }
- gtk_widget_destroy (dialog);
-}
-
-- (void) close {
- if ([self _askCanClose]) {
- gtk_widget_destroy (GTK_WIDGET (window));
- }
-}
-
-- (void) selectionCutToClipboard {
- if ([[[document pickSupport] selectedNodes] count] > 0) {
- [self _placeGraphOnClipboard:[document selectionCut]];
- }
-}
-
-- (void) selectionCopyToClipboard {
- if ([[[document pickSupport] selectedNodes] count] > 0) {
- [self _placeGraphOnClipboard:[document selectionCopy]];
- }
-}
-
-- (void) pasteFromClipboard {
- gtk_clipboard_request_contents (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD),
- tikzit_picture_atom,
- clipboard_paste_contents,
- document);
-}
-
-- (GtkWindow*) gtkWindow {
- return window;
-}
-
-- (Configuration*) mainConfiguration {
- return [app mainConfiguration];
-}
-
-- (Menu*) menu {
- return menu;
-}
-
-- (void) presentError:(NSError*)error {
- const gchar *errorDesc = "unknown error";
- if (error && [error localizedDescription]) {
- errorDesc = [[error localizedDescription] UTF8String];
- }
- GtkWidget *dialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "%s",
- errorDesc);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-}
-
-- (void) presentError:(NSError*)error withMessage:(NSString*)message {
- const gchar *errorDesc = "unknown error";
- if (error && [error localizedDescription]) {
- errorDesc = [[error localizedDescription] UTF8String];
- }
- GtkWidget *dialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "%s: %s",
- [message UTF8String],
- errorDesc);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-}
-
-- (void) presentGError:(GError*)error {
- const gchar *errorDesc = "unknown error";
- if (error && error->message) {
- errorDesc = error->message;
- }
- GtkWidget *dialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "%s",
- errorDesc);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-}
-
-- (void) presentGError:(GError*)error withMessage:(NSString*)message {
- const gchar *errorDesc = "unknown error";
- if (error && error->message) {
- errorDesc = error->message;
- }
- GtkWidget *dialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "%s: %s",
- [message UTF8String],
- errorDesc);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-}
-
-- (void) setActiveTool:(id<Tool>)tool {
- [graphPanel setActiveTool:tool];
- gboolean hasfocus;
- g_object_get (G_OBJECT (window), "has-toplevel-focus", &hasfocus, NULL);
- if (hasfocus) {
- [graphPanel grabTool];
- }
-}
-
-- (void) zoomIn {
- [graphPanel zoomIn];
-}
-
-- (void) zoomOut {
- [graphPanel zoomOut];
-}
-
-- (void) zoomReset {
- [graphPanel zoomReset];
-}
-
-- (void) presentPreview {
-#ifdef HAVE_POPPLER
- if (previewWindow == nil) {
- previewWindow = [[PreviewWindow alloc] initWithPreambles:[app preambles]
- config:[app mainConfiguration]];
- //[previewWindow setParentWindow:self];
- [previewWindow setDocument:document];
- }
- [previewWindow present];
-#endif
-}
-
-- (void) updatePreview {
-#ifdef HAVE_POPPLER
- if (previewWindow == nil) {
- previewWindow = [[PreviewWindow alloc] initWithPreambles:[app preambles]
- config:[app mainConfiguration]];
- //[previewWindow setParentWindow:self];
- [previewWindow setDocument:document];
- }
- [previewWindow show];
-#endif
-}
-
-@end
-
-// }}}
-// {{{ Notifications
-
-@implementation Window (Notifications)
-- (void) graphHeightChanged:(int)newHeight {
- [[app mainConfiguration] setIntegerEntry:@"graphHeight"
- inGroup:@"window"
- value:newHeight];
-}
-
-- (void) tikzBufferChanged {
- if (!suppressTikzUpdates) {
- suppressTikzUpdates = TRUE;
-
- GtkTextIter start, end;
- gtk_text_buffer_get_bounds (tikzBuffer, &start, &end);
- gchar *text = gtk_text_buffer_get_text (tikzBuffer, &start, &end, FALSE);
-
- NSError *error = nil;
- BOOL success = [document updateTikz:[NSString stringWithUTF8String:text] error:&error];
- if (success)
- [self _clearParseError];
- else
- [self _setParseError:error];
-
- g_free (text);
-
- suppressTikzUpdates = FALSE;
- }
-}
-
-- (void) windowSizeChangedWidth:(int)width height:(int)height {
- if (width > 0 && height > 0) {
- NSNumber *w = [NSNumber numberWithInt:width];
- NSNumber *h = [NSNumber numberWithInt:height];
- NSMutableArray *size = [NSMutableArray arrayWithCapacity:2];
- [size addObject:w];
- [size addObject:h];
- [[app mainConfiguration] setIntegerListEntry:@"windowSize"
- inGroup:@"window"
- value:size];
- }
-}
-
-- (void) documentTikzChanged:(NSNotification*)notification {
- [self _updateTitle];
- [self _updateTikz];
-}
-
-- (void) documentSelectionChanged:(NSNotification*)notification {
- [self _updateStatus];
- [menu notifySelectionChanged:[document pickSupport]];
-}
-
-- (void) undoStackChanged:(NSNotification*)notification {
- [self _updateUndoActions];
-}
-@end
-
-// }}}
-// {{{ InitHelpers
-
-@implementation Window (InitHelpers)
-
-- (void) _loadUi {
- window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
- g_object_ref_sink (window);
- gtk_window_set_title (window, "TikZiT");
- gtk_window_set_default_size (window, 700, 400);
-
- GtkBox *mainLayout = GTK_BOX (gtk_vbox_new (FALSE, 0));
- gtk_widget_show (GTK_WIDGET (mainLayout));
- gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (mainLayout));
-
- menu = [[Menu alloc] initForWindow:self];
-
- GtkWidget *menubar = [menu menubar];
- gtk_box_pack_start (mainLayout, menubar, FALSE, TRUE, 0);
- gtk_box_reorder_child (mainLayout, menubar, 0);
- gtk_widget_show (menubar);
-
- tikzPaneSplitter = GTK_PANED (gtk_vpaned_new ());
- g_object_ref_sink (tikzPaneSplitter);
- gtk_widget_show (GTK_WIDGET (tikzPaneSplitter));
- gtk_box_pack_start (mainLayout, GTK_WIDGET (tikzPaneSplitter), TRUE, TRUE, 0);
-
- graphPanel = [[GraphEditorPanel alloc] initWithDocument:document];
- [graphPanel setPreviewHandler:self];
- GtkWidget *graphEditorWidget = [graphPanel widget];
- gtk_widget_show (graphEditorWidget);
- GtkWidget *graphFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (graphFrame), graphEditorWidget);
- gtk_widget_show (graphFrame);
- gtk_paned_pack1 (tikzPaneSplitter, graphFrame, TRUE, TRUE);
-
- tikzBuffer = gtk_text_buffer_new (NULL);
- g_object_ref_sink (tikzBuffer);
- errorHighlightTag = gtk_text_buffer_create_tag (
- tikzBuffer, NULL,
- "foreground", "#d40000",
- "foreground-set", TRUE,
- "weight", PANGO_WEIGHT_SEMIBOLD,
- "weight-set", TRUE,
- NULL);
- GtkWidget *tikzScroller = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_show (tikzScroller);
-
- tikzPane = gtk_text_view_new_with_buffer (tikzBuffer);
- gtk_text_view_set_left_margin (GTK_TEXT_VIEW (tikzPane), 3);
- gtk_text_view_set_right_margin (GTK_TEXT_VIEW (tikzPane), 3);
- g_object_ref_sink (tikzPane);
- gtk_widget_show (tikzPane);
- gtk_container_add (GTK_CONTAINER (tikzScroller), tikzPane);
- GtkWidget *tikzFrame = gtk_frame_new (NULL);
- gtk_container_add (GTK_CONTAINER (tikzFrame), tikzScroller);
- gtk_widget_show (tikzFrame);
- gtk_paned_pack2 (tikzPaneSplitter, tikzFrame, FALSE, TRUE);
-
- statusBar = GTK_STATUSBAR (gtk_statusbar_new ());
- g_object_ref_sink (statusBar);
- gtk_widget_show (GTK_WIDGET (statusBar));
- gtk_box_pack_start (mainLayout, GTK_WIDGET (statusBar), FALSE, TRUE, 0);
-
- GtkClipboard *clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
- update_paste_action (clipboard, NULL, [menu pasteAction]);
-}
-
-- (void) _restoreUiState {
- Configuration *config = [app mainConfiguration];
- NSArray *windowSize = [config integerListEntry:@"windowSize"
- inGroup:@"window"];
- if (windowSize && [windowSize count] == 2) {
- gint width = [[windowSize objectAtIndex:0] intValue];
- gint height = [[windowSize objectAtIndex:1] intValue];
- if (width > 0 && height > 0) {
- gtk_window_set_default_size (window, width, height);
- }
- }
- int panePos = [config integerEntry:@"graphHeight"
- inGroup:@"window"];
- if (panePos > 0) {
- gtk_paned_set_position (tikzPaneSplitter, panePos);
- }
-}
-
-- (void) _connectSignals {
- GtkClipboard *clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
- clipboard_handler_id =
- g_signal_connect (G_OBJECT (clipboard),
- "owner-change",
- G_CALLBACK (update_paste_action),
- [menu pasteAction]);
- g_signal_connect (G_OBJECT (window),
- "key-press-event",
- G_CALLBACK (tz_hijack_key_press),
- NULL);
- g_signal_connect (G_OBJECT (window),
- "notify::has-toplevel-focus",
- G_CALLBACK (window_toplevel_focus_changed_cb),
- self);
- g_signal_connect (G_OBJECT (tikzPaneSplitter),
- "notify::position",
- G_CALLBACK (graph_divider_position_changed_cb),
- self);
- g_signal_connect (G_OBJECT (tikzBuffer),
- "changed",
- G_CALLBACK (tikz_buffer_changed_cb),
- self);
- g_signal_connect (G_OBJECT (window),
- "delete-event",
- G_CALLBACK (main_window_delete_event_cb),
- self);
- g_signal_connect (G_OBJECT (window),
- "destroy",
- G_CALLBACK (main_window_destroy_cb),
- self);
- g_signal_connect (G_OBJECT (window),
- "configure-event",
- G_CALLBACK (main_window_configure_event_cb),
- self);
-}
-@end
-
-// }}}
-// {{{ Private
-
-@implementation Window (Private)
-
-- (BOOL) _askCanClose {
- if ([document hasUnsavedChanges]) {
- GtkWidget *dialog = gtk_message_dialog_new (window,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_NONE,
- "Save changes to the document \"%s\" before closing?",
- [[document name] UTF8String]);
- gtk_dialog_add_buttons (GTK_DIALOG (dialog),
- "Save", GTK_RESPONSE_YES,
- "Don't save", GTK_RESPONSE_NO,
- "Cancel", GTK_RESPONSE_CANCEL,
- NULL);
- gint result = gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- if (result == GTK_RESPONSE_YES) {
- return [self saveActiveDocument];
- } else {
- return result == GTK_RESPONSE_NO;
- }
- } else {
- return YES;
- }
-}
-
-- (TikzDocument*) _openDocument:(NSString*)path {
- NSError *error = nil;
- TikzDocument *d = [TikzDocument documentFromFile:path
- styleManager:[app styleManager]
- error:&error];
- if (d != nil) {
- return d;
- } else {
- if ([error code] == TZ_ERR_PARSE) {
- [self presentError:error withMessage:@"Invalid file"];
- } else {
- [self presentError:error withMessage:@"Could not open file"];
- }
- [[RecentManager defaultManager] removeRecentFile:path];
- return nil;
- }
-}
-
-- (void) _placeGraphOnClipboard:(Graph*)graph {
- GtkClipboard *clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
-
- static const GtkTargetEntry targets[] = {
- { "TIKZITPICTURE", 0, TARGET_TIKZIT_PICTURE },
- { "UTF8_STRING", 0, TARGET_UTF8_STRING } };
-
- gtk_clipboard_set_with_data (clipboard,
- targets, G_N_ELEMENTS (targets),
- clipboard_provide_data,
- clipboard_release_data,
- clipboard_graph_data_new (graph));
-}
-
-- (void) _clearParseError {
- if (!hasParseError)
- return;
- gtk_statusbar_pop (statusBar, ParseStatus);
- text_buffer_clear_tag (tikzBuffer, errorHighlightTag);
- widget_clear_error (tikzPane);
- hasParseError = NO;
-}
-
-- (void) _setParseError:(NSError*)error {
- if (!hasParseError) {
- widget_set_error (tikzPane);
- hasParseError = YES;
- }
- NSString *message = [NSString stringWithFormat:@"Parse error: %@", [error localizedDescription]];
- gtk_statusbar_pop (statusBar, ParseStatus);
- gtk_statusbar_push (statusBar, ParseStatus, [message UTF8String]);
-
- text_buffer_clear_tag (tikzBuffer, errorHighlightTag);
-
- NSDictionary *errorInfo = [error userInfo];
- if ([errorInfo objectForKey:@"startLine"] != nil) {
- GtkTextIter symbolStart;
- GtkTextIter symbolEnd;
- gtk_text_buffer_get_iter_at_line_index (tikzBuffer, &symbolStart,
- [[errorInfo objectForKey:@"startLine"] intValue] - 1,
- [[errorInfo objectForKey:@"startColumn"] intValue] - 1);
- gtk_text_buffer_get_iter_at_line_index (tikzBuffer, &symbolEnd,
- [[errorInfo objectForKey:@"endLine"] intValue] - 1,
- [[errorInfo objectForKey:@"endColumn"] intValue]);
- gtk_text_buffer_apply_tag (tikzBuffer, errorHighlightTag,
- &symbolStart, &symbolEnd);
- }
-}
-
-- (void) _updateUndoActions {
- [menu setUndoActionEnabled:[document canUndo]];
- [menu setUndoActionDetail:[document undoName]];
-
- [menu setRedoActionEnabled:[document canRedo]];
- [menu setRedoActionDetail:[document redoName]];
-}
-
-- (void) _updateTitle {
- NSString *title = [NSString stringWithFormat:@"TikZiT - %@%s",
- [document name],
- ([document hasUnsavedChanges] ? "*" : "")];
- gtk_window_set_title(window, [title UTF8String]);
-}
-
-- (void) _updateStatus {
- // FIXME: show tooltips or something instead
- GString *buffer = g_string_sized_new (30);
- gchar *nextNode = 0;
-
- for (Node *n in [[document pickSupport] selectedNodes]) {
- if (nextNode) {
- if (buffer->len == 0) {
- g_string_printf(buffer, "Nodes %s", nextNode);
- } else {
- g_string_append_printf(buffer, ", %s", nextNode);
- }
- }
- nextNode = (gchar *)[[n name] UTF8String];
- }
- if (nextNode) {
- if (buffer->len == 0) {
- g_string_printf(buffer, "Node %s is selected", nextNode);
- } else {
- g_string_append_printf(buffer, " and %s are selected", nextNode);
- }
- }
-
- if (buffer->len == 0) {
- int nrNodes = [[[document graph] nodes] count];
- int nrEdges = [[[document graph] edges] count];
- g_string_printf(buffer, "Graph has %d node%s and %d edge%s",
- nrNodes,
- nrNodes!=1 ? "s" : "",
- nrEdges,
- nrEdges!=1 ? "s" : "");
- }
- gtk_statusbar_pop(statusBar, GraphInfoStatus);
- gtk_statusbar_push(statusBar, GraphInfoStatus, buffer->str);
-
- g_string_free (buffer, TRUE);
-}
-
-- (void) _updateTikz {
- if (document != nil && !suppressTikzUpdates) {
- suppressTikzUpdates = TRUE;
-
- if (document != nil) {
- const char *tikzString = [[document tikz] UTF8String];
- gtk_text_buffer_set_text (tikzBuffer, tikzString, -1);
- } else {
- gtk_text_buffer_set_text (tikzBuffer, "", -1);
- }
- [self _clearParseError];
-
- suppressTikzUpdates = FALSE;
- }
-}
-
-- (GraphEditorPanel*) _graphPanel {
- return graphPanel;
-}
-
-- (void) showPreview {
- [self updatePreview];
-}
-
-@end
-
-// }}}
-// {{{ GTK+ callbacks
-
-static void window_toplevel_focus_changed_cb (GObject *gobject, GParamSpec *pspec, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- gboolean hasfocus;
- g_object_get (gobject, "has-toplevel-focus", &hasfocus, NULL);
- if (hasfocus) {
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"WindowGainedFocus"
- object:window];
- [[window _graphPanel] grabTool];
- } else {
- [[NSNotificationCenter defaultCenter]
- postNotificationName:@"WindowLostFocus"
- object:window];
- }
- [pool drain];
-}
-
-static void graph_divider_position_changed_cb (GObject *gobject, GParamSpec *pspec, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- gint position;
- g_object_get (gobject, "position", &position, NULL);
- [window graphHeightChanged:position];
- [pool drain];
-}
-
-static void tikz_buffer_changed_cb (GtkTextBuffer *buffer, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window tikzBufferChanged];
- [pool drain];
-}
-
-static gboolean main_window_delete_event_cb (GtkWidget *widget, GdkEvent *event, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window close];
- [pool drain];
- return TRUE;
-}
-
-static void main_window_destroy_cb (GtkWidget *widget, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [[NSNotificationCenter defaultCenter] postNotificationName:@"WindowClosed"
- object:window];
- [pool drain];
-}
-
-static gboolean main_window_configure_event_cb (GtkWidget *widget, GdkEventConfigure *event, Window *window) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- [window windowSizeChangedWidth:event->width height:event->height];
- [pool drain];
- return FALSE;
-}
-
-static void clipboard_provide_data (GtkClipboard *clipboard,
- GtkSelectionData *selection_data,
- guint info,
- gpointer clipboard_graph_data) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- ClipboardGraphData *data = (ClipboardGraphData*)clipboard_graph_data;
- if (info == TARGET_UTF8_STRING || info == TARGET_TIKZIT_PICTURE) {
- clipboard_graph_data_convert (data);
- GdkAtom target = (info == TARGET_UTF8_STRING) ? utf8_atom : tikzit_picture_atom;
- gtk_selection_data_set (selection_data,
- target,
- 8*sizeof(gchar),
- (guchar*)data->tikz,
- data->tikz_length);
- }
-
- [pool drain];
-}
-
-static void clipboard_release_data (GtkClipboard *clipboard, gpointer data) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- clipboard_graph_data_free ((ClipboardGraphData*)data);
- [pool drain];
-}
-
-static void clipboard_check_targets (GtkClipboard *clipboard,
- GdkAtom *atoms,
- gint n_atoms,
- gpointer action) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- gboolean found = FALSE;
- for (gint i = 0; i < n_atoms; ++i) {
- if (atoms[i] == tikzit_picture_atom) {
- found = TRUE;
- break;
- }
- }
- gtk_action_set_sensitive (GTK_ACTION (action), found);
-
- [pool drain];
-}
-
-static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAction *action) {
- gtk_action_set_sensitive (action, FALSE);
- gtk_clipboard_request_targets (clipboard, clipboard_check_targets, action);
-}
-
-static void clipboard_paste_contents (GtkClipboard *clipboard,
- GtkSelectionData *selection_data,
- gpointer document) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- TikzDocument *doc = (TikzDocument*)document;
- gint length = gtk_selection_data_get_length (selection_data);
- if (length >= 0) {
- const guchar *raw_data = gtk_selection_data_get_data (selection_data);
- gchar *data = g_new (gchar, length+1);
- g_strlcpy (data, (const gchar *)raw_data, length+1);
- NSString *tikz = [NSString stringWithUTF8String:data];
- if (tikz != nil) {
- [doc pasteFromTikz:tikz];
- }
- g_free (data);
- }
-
- [pool drain];
-}
-
-// }}}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/cairo_helpers.h b/tikzit-old/src/gtk/cairo_helpers.h
deleted file mode 100644
index e95357b..0000000
--- a/tikzit-old/src/gtk/cairo_helpers.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import "RColor.h"
-#import <cairo/cairo.h>
-
-void cairo_ns_rectangle (cairo_t* cr, NSRect rect);
-void cairo_set_source_rcolor (cairo_t* cr, RColor color);
-
-// vim:ft=objc:sts=4:sw=4:et
diff --git a/tikzit-old/src/gtk/cairo_helpers.m b/tikzit-old/src/gtk/cairo_helpers.m
deleted file mode 100644
index 104e686..0000000
--- a/tikzit-old/src/gtk/cairo_helpers.m
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "cairo_helpers.h"
-
-void cairo_ns_rectangle (cairo_t* cr, NSRect rect) {
- cairo_rectangle (cr, rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
-}
-
-void cairo_set_source_rcolor (cairo_t* cr, RColor color) {
- cairo_set_source_rgba (cr, color.red, color.green, color.blue, color.alpha);
-}
-
-// vim:ft=objc:sts=4:sw=4:et
diff --git a/tikzit-old/src/gtk/clipboard.h b/tikzit-old/src/gtk/clipboard.h
deleted file mode 100644
index 568fc50..0000000
--- a/tikzit-old/src/gtk/clipboard.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-#import <Graph.h>
-
-enum {
- TARGET_UTF8_STRING,
- TARGET_TIKZIT_PICTURE
-};
-typedef struct
-{
- Graph *graph;
- gchar *tikz;
- gint tikz_length;
-} ClipboardGraphData;
-
-extern GdkAtom utf8_atom;
-extern GdkAtom tikzit_picture_atom;
-
-void clipboard_init ();
-ClipboardGraphData *clipboard_graph_data_new (Graph *graph);
-void clipboard_graph_data_free (ClipboardGraphData *data);
-void clipboard_graph_data_convert (ClipboardGraphData *data);
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/clipboard.m b/tikzit-old/src/gtk/clipboard.m
deleted file mode 100644
index 7001717..0000000
--- a/tikzit-old/src/gtk/clipboard.m
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "clipboard.h"
-
-GdkAtom utf8_atom;
-GdkAtom tikzit_picture_atom;
-
-void clipboard_init () {
- if (utf8_atom == GDK_NONE) {
- utf8_atom = gdk_atom_intern ("UTF8_STRING", FALSE);
- }
- if (tikzit_picture_atom == GDK_NONE) {
- tikzit_picture_atom = gdk_atom_intern ("TIKZITPICTURE", FALSE);
- }
-}
-
-ClipboardGraphData *clipboard_graph_data_new (Graph *graph) {
- ClipboardGraphData *data = g_new (ClipboardGraphData, 1);
- data->graph = [graph retain];
- data->tikz = NULL;
- data->tikz_length = 0;
- return data;
-}
-
-void clipboard_graph_data_free (ClipboardGraphData *data) {
- [data->graph release];
- if (data->tikz) {
- g_free (data->tikz);
- }
- g_free (data);
-}
-
-void clipboard_graph_data_convert (ClipboardGraphData *data) {
- if (data->graph != nil && !data->tikz) {
- data->tikz = g_strdup ([[data->graph tikz] UTF8String]);
- data->tikz_length = strlen (data->tikz);
- [data->graph release];
- data->graph = nil;
- }
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/gtkhelpers.h b/tikzit-old/src/gtk/gtkhelpers.h
deleted file mode 100644
index e4b79b8..0000000
--- a/tikzit-old/src/gtk/gtkhelpers.h
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// gtkhelpers.h
-// TikZiT
-//
-// Copyright 2010 Alex Merry. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "TZFoundation.h"
-#include <gtk/gtk.h>
-#import <gdk-pixbuf/gdk-pixbuf.h>
-
-/**
- * Releases the Objective-C object pointed to by data
- *
- * Intended for use as a cleanup function in Glib/GObject-based
- * code.
- */
-void release_obj (gpointer data);
-
-NSString * gtk_editable_get_string (GtkEditable *editable, gint start, gint end);
-
-GdkRectangle gdk_rectangle_from_ns_rect (NSRect rect);
-NSRect gdk_rectangle_to_ns_rect (GdkRectangle rect);
-
-void gtk_action_set_detailed_label (GtkAction *action, const gchar *baseLabel, const gchar *actionName);
-
-gint tz_hijack_key_press (GtkWindow *win,
- GdkEventKey *event,
- gpointer user_data);
-
-// Equivalent of GTK+3's gdk_pixbuf_get_from_surface()
-GdkPixbuf * pixbuf_get_from_surface(cairo_surface_t *surface);
-
-void tz_restore_window (GtkWindow *window, gint x, gint y, gint w, gint h);
-
-void label_set_bold (GtkLabel *label);
-
-void widget_set_error (GtkWidget *widget);
-void widget_clear_error (GtkWidget *widget);
-
-void text_buffer_clear_tag (GtkTextBuffer *buffer, GtkTextTag *tag);
-
-void utility_window_attach (GtkWindow *util_win, GtkWindow *parent_win);
-
-// vim:ft=objc:sts=2:sw=2:et
diff --git a/tikzit-old/src/gtk/gtkhelpers.m b/tikzit-old/src/gtk/gtkhelpers.m
deleted file mode 100644
index 9d26af5..0000000
--- a/tikzit-old/src/gtk/gtkhelpers.m
+++ /dev/null
@@ -1,275 +0,0 @@
-//
-// gtkhelpers.h
-// TikZiT
-//
-// Copyright 2010 Alex Merry. All rights reserved.
-//
-// Some code from Glade:
-// Copyright 2001 Ximian, Inc.
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "gtkhelpers.h"
-#import <gdk/gdkkeysyms.h>
-
-void release_obj (gpointer data) {
- id obj = (id)data;
- [obj release];
-}
-
-NSString * gtk_editable_get_string (GtkEditable *editable, gint start, gint end)
-{
- gchar *text = gtk_editable_get_chars (editable, start, end);
- NSString *string = [NSString stringWithUTF8String:text];
- g_free (text);
- return string;
-}
-
-GdkRectangle gdk_rectangle_from_ns_rect (NSRect box) {
- GdkRectangle rect;
- rect.x = box.origin.x;
- rect.y = box.origin.y;
- rect.width = box.size.width;
- rect.height = box.size.height;
- return rect;
-}
-
-NSRect gdk_rectangle_to_ns_rect (GdkRectangle rect) {
- NSRect result;
- result.origin.x = rect.x;
- result.origin.y = rect.y;
- result.size.width = rect.width;
- result.size.height = rect.height;
- return result;
-}
-
-void gtk_action_set_detailed_label (GtkAction *action, const gchar *baseLabel, const gchar *actionName) {
- if (actionName == NULL || *actionName == '\0') {
- gtk_action_set_label (action, baseLabel);
- } else {
- GString *label = g_string_sized_new (30);
- g_string_printf(label, "%s: %s", baseLabel, actionName);
- gtk_action_set_label (action, label->str);
- g_string_free (label, TRUE);
- }
-}
-
-/**
- * tz_hijack_key_press:
- * @win: a #GtkWindow
- * event: the GdkEventKey
- * user_data: unused
- *
- * This function is meant to be attached to key-press-event of a toplevel,
- * it simply allows the window contents to treat key events /before/
- * accelerator keys come into play (this way widgets dont get deleted
- * when cutting text in an entry etc.).
- *
- * Returns: whether the event was handled
- */
-gint
-tz_hijack_key_press (GtkWindow *win,
- GdkEventKey *event,
- gpointer user_data)
-{
- GtkWidget *focus_widget;
-
- focus_widget = gtk_window_get_focus (win);
- if (focus_widget &&
- (event->keyval == GDK_Delete || /* Filter Delete from accelerator keys */
- ((event->state & GDK_CONTROL_MASK) && /* CTRL keys... */
- ((event->keyval == GDK_c || event->keyval == GDK_C) || /* CTRL-C (copy) */
- (event->keyval == GDK_x || event->keyval == GDK_X) || /* CTRL-X (cut) */
- (event->keyval == GDK_v || event->keyval == GDK_V) || /* CTRL-V (paste) */
- (event->keyval == GDK_a || event->keyval == GDK_A) || /* CTRL-A (select-all) */
- (event->keyval == GDK_n || event->keyval == GDK_N))))) /* CTRL-N (new document) ?? */
- {
- return gtk_widget_event (focus_widget,
- (GdkEvent *)event);
- }
- return FALSE;
-}
-
-GdkPixbuf * pixbuf_get_from_surface(cairo_surface_t *surface) {
- cairo_surface_flush (surface);
-
- int width = cairo_image_surface_get_width (surface);
- int height = cairo_image_surface_get_height (surface);
- int stride = cairo_image_surface_get_stride (surface);
- unsigned char *data = cairo_image_surface_get_data (surface);
-
- GdkPixbuf *pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
- TRUE,
- 8,
- width,
- height);
- unsigned char *pbdata = gdk_pixbuf_get_pixels (pixbuf);
- int pbstride = gdk_pixbuf_get_rowstride (pixbuf);
-
- for (int y = 0; y < height; ++y) {
- uint32_t *line = (uint32_t*)(data + y*stride);
- unsigned char *pbline = pbdata + (y*pbstride);
- for (int x = 0; x < width; ++x) {
- uint32_t pixel = *(line + x);
- unsigned char *pbpixel = pbline + (x*4);
- // NB: We should un-pre-mult the alpha here.
- // However, in our world, alpha is always
- // on or off, so it doesn't really matter
- pbpixel[3] = ((pixel & 0xff000000) >> 24);
- pbpixel[0] = ((pixel & 0x00ff0000) >> 16);
- pbpixel[1] = ((pixel & 0x0000ff00) >> 8);
- pbpixel[2] = (pixel & 0x000000ff);
- }
- }
-
- return pixbuf;
-}
-
-/* This function mostly lifted from
- * gtk+/gdk/gdkscreen.c:gdk_screen_get_monitor_at_window()
- */
-static gint
-get_appropriate_monitor (GdkScreen *screen,
- gint x,
- gint y,
- gint w,
- gint h)
-{
- GdkRectangle rect;
- gint area = 0;
- gint monitor = -1;
- gint num_monitors;
- gint i;
-
- rect.x = x;
- rect.y = y;
- rect.width = w;
- rect.height = h;
-
- num_monitors = gdk_screen_get_n_monitors (screen);
-
- for (i = 0; i < num_monitors; i++)
- {
- GdkRectangle geometry;
-
- gdk_screen_get_monitor_geometry (screen, i, &geometry);
-
- if (gdk_rectangle_intersect (&rect, &geometry, &geometry) &&
- geometry.width * geometry.height > area)
- {
- area = geometry.width * geometry.height;
- monitor = i;
- }
- }
-
- if (monitor >= 0)
- return monitor;
- else
- return gdk_screen_get_monitor_at_point (screen,
- rect.x + rect.width / 2,
- rect.y + rect.height / 2);
-}
-
-/* This function mostly lifted from gimp_session_info_apply_geometry
- * in gimp-2.6/app/widgets/gimpsessioninfo.c
- */
-void tz_restore_window (GtkWindow *window, gint x, gint y, gint w, gint h)
-{
- gint forced_w = w;
- gint forced_h = h;
- if (w <= 0 || h <= 0) {
- gtk_window_get_default_size (window, &w, &h);
- }
- if (w <= 0 || h <= 0) {
- gtk_window_get_size (window, &w, &h);
- }
-
- GdkScreen *screen = gtk_widget_get_screen (GTK_WIDGET (window));
-
- gint monitor = 0;
- if (w > 0 && h > 0) {
- monitor = get_appropriate_monitor (screen, x, y, w, h);
- } else {
- monitor = gdk_screen_get_monitor_at_point (screen, x, y);
- }
-
- GdkRectangle rect;
- gdk_screen_get_monitor_geometry (screen, monitor, &rect);
-
- x = CLAMP (x,
- rect.x,
- rect.x + rect.width - (w > 0 ? w : 128));
- y = CLAMP (y,
- rect.y,
- rect.y + rect.height - (h > 0 ? h : 128));
-
- gchar geom[32];
- g_snprintf (geom, sizeof (geom), "%+d%+d", x, y);
-
- gtk_window_parse_geometry (window, geom);
-
- if (forced_w > 0 && forced_h > 0) {
- gtk_window_set_default_size (window, forced_w, forced_h);
- }
-}
-
-void label_set_bold (GtkLabel *label) {
- PangoAttrList *attrs = pango_attr_list_new ();
- pango_attr_list_insert (attrs,
- pango_attr_weight_new (PANGO_WEIGHT_SEMIBOLD));
- gtk_label_set_attributes (label, attrs);
- pango_attr_list_unref (attrs);
-}
-
-void widget_set_error (GtkWidget *widget) {
- GdkColor color = {0, 65535, 61184, 61184};
- gtk_widget_modify_base (widget, GTK_STATE_NORMAL, &color);
-}
-
-void widget_clear_error (GtkWidget *widget) {
- gtk_widget_modify_base (widget, GTK_STATE_NORMAL, NULL);
-}
-
-void text_buffer_clear_tag (GtkTextBuffer *buffer, GtkTextTag *tag) {
- GtkTextIter start;
- GtkTextIter end;
- gtk_text_buffer_get_start_iter (buffer, &start);
- gtk_text_buffer_get_end_iter (buffer, &end);
- gtk_text_buffer_remove_tag (buffer, tag, &start, &end);
-}
-
-void utility_window_attach (GtkWindow *util_win, GtkWindow *parent_win) {
- if (parent_win == gtk_window_get_transient_for (util_win))
- return;
-
- // HACK: X window managers tend to move windows around when they are
- // unmapped and mapped again, so we save the position
- gint x, y;
- gtk_window_get_position (util_win, &x, &y);
-
- // HACK: Altering WM_TRANSIENT_FOR on a non-hidden but unmapped window
- // (eg: when you have minimised the original parent window) can
- // cause the window to be lost forever, so we hide it first
- gtk_widget_hide (GTK_WIDGET (util_win));
- gtk_window_set_focus_on_map (util_win, FALSE);
- gtk_window_set_transient_for (util_win, parent_win);
- gtk_widget_show (GTK_WIDGET (util_win));
-
- // HACK: see above
- gtk_window_move (util_win, x, y);
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/logo.h b/tikzit-old/src/gtk/logo.h
deleted file mode 100644
index e778da9..0000000
--- a/tikzit-old/src/gtk/logo.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-typedef enum {
- LOGO_SIZE_16,
- LOGO_SIZE_24,
- LOGO_SIZE_32,
- LOGO_SIZE_48,
- LOGO_SIZE_64,
- LOGO_SIZE_128,
- LOGO_SIZE_COUNT
-} LogoSize;
-
-GdkPixbuf *get_logo (LogoSize size);
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/logo.m b/tikzit-old/src/gtk/logo.m
deleted file mode 100644
index 57533c7..0000000
--- a/tikzit-old/src/gtk/logo.m
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import "logo.h"
-#include <gdk-pixbuf/gdk-pixdata.h>
-
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpointer-sign"
-#import "logodata.m"
-#pragma GCC diagnostic pop
-
-static GdkPixbuf *pixbufCache[LOGO_SIZE_COUNT];
-
-GdkPixbuf *get_logo (LogoSize size) {
- const GdkPixdata *data = NULL;
- switch (size) {
- case LOGO_SIZE_16:
- data = &logo16;
- break;
- case LOGO_SIZE_24:
- data = &logo24;
- break;
- case LOGO_SIZE_32:
- data = &logo32;
- break;
- case LOGO_SIZE_48:
- data = &logo48;
- break;
- case LOGO_SIZE_64:
- data = &logo64;
- break;
- case LOGO_SIZE_128:
- data = &logo128;
- break;
- default:
- return NULL;
- };
- if (pixbufCache[size]) {
- g_object_ref (pixbufCache[size]);
- return pixbufCache[size];
- } else {
- GdkPixbuf *buf = gdk_pixbuf_from_pixdata (data, FALSE, NULL);
- pixbufCache[size] = buf;
- g_object_add_weak_pointer (G_OBJECT (buf), (void**)(&(pixbufCache[size])));
- return buf;
- }
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4
-
diff --git a/tikzit-old/src/gtk/main.m b/tikzit-old/src/gtk/main.m
deleted file mode 100644
index 5d9f4a4..0000000
--- a/tikzit-old/src/gtk/main.m
+++ /dev/null
@@ -1,111 +0,0 @@
-//
-// main.m
-// TikZiT
-//
-// Copyright 2010 Chris Heunen. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TZFoundation.h"
-#import <gtk/gtk.h>
-#import "clipboard.h"
-#import "logo.h"
-#import "tzstockitems.h"
-
-#import "Application.h"
-
-static GOptionEntry entries[] =
-{
- //{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Be verbose", NULL },
- { NULL }
-};
-
-void onUncaughtException(NSException* exception)
-{
- NSString *joinStr = @"\n ";
- NSLog(@"uncaught exception: %@\n backtrace: %@",
- [exception description],
- [[exception callStackSymbols] componentsJoinedByString:joinStr]);
-}
-
-int main (int argc, char *argv[]) {
- NSSetUncaughtExceptionHandler(&onUncaughtException);
-
- [[NSAutoreleasePool alloc] init];
-
- GError *error = NULL;
- GOptionContext *context;
- context = g_option_context_new ("[FILES] - PGF/TikZ-based graph editor");
- g_option_context_add_main_entries (context, entries, NULL);
- g_option_context_add_group (context, gtk_get_option_group (TRUE));
- if (!g_option_context_parse (context, &argc, &argv, &error))
- {
- if (error->domain == G_OPTION_ERROR) {
- g_print ("%s\nUse --help to see available options\n", error->message);
- } else {
- g_print ("Unexpected error parsing options: %s\n", error->message);
- }
- exit (1);
- }
- g_option_context_free (context);
-
-#ifndef WINDOWS
- GList *icon_list = NULL;
- icon_list = g_list_prepend (icon_list, get_logo(LOGO_SIZE_128));
- icon_list = g_list_prepend (icon_list, get_logo(LOGO_SIZE_64));
- icon_list = g_list_prepend (icon_list, get_logo(LOGO_SIZE_48));
- icon_list = g_list_prepend (icon_list, get_logo(LOGO_SIZE_32));
- icon_list = g_list_prepend (icon_list, get_logo(LOGO_SIZE_24));
- icon_list = g_list_prepend (icon_list, get_logo(LOGO_SIZE_16));
- gtk_window_set_default_icon_list (icon_list);
- GList *list_head = icon_list;
- while (list_head) {
- g_object_unref ((GObject*)list_head->data);
- list_head = list_head->next;
- }
-#endif
-
- NSAutoreleasePool *initPool = [[NSAutoreleasePool alloc] init];
-
- tz_register_stock_items();
- clipboard_init();
-
- Application *app = nil;
- if (argc > 1) {
- NSMutableArray *files = [NSMutableArray arrayWithCapacity:argc-1];
- for (int i = 1; i < argc; ++i) {
- [files insertObject:[NSString stringWithGlibFilename:argv[i]]
- atIndex:i-1];
- }
- NSLog(@"Files: %@", files);
- app = [[Application alloc] initWithFiles:files];
- } else {
- app = [[Application alloc] init];
- }
-
- [initPool drain];
-
- gtk_main ();
-
- [app saveConfiguration];
- [app release];
-
- return 0;
-}
-
-// vim:ft=objc:et:sts=4:sw=4
diff --git a/tikzit-old/src/gtk/mkdtemp.h b/tikzit-old/src/gtk/mkdtemp.h
deleted file mode 100644
index 65ee99e..0000000
--- a/tikzit-old/src/gtk/mkdtemp.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Creating a private temporary directory.
- Copyright (C) 2001-2002 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- 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 General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#if HAVE_MKDTEMP
-
-/* Get mkdtemp() declaration. */
-#include <stdlib.h>
-
-#else
-
-/* Create a unique temporary directory from TEMPLATE.
- The last six characters of TEMPLATE must be "XXXXXX";
- they are replaced with a string that makes the directory name unique.
- Returns TEMPLATE, or a null pointer if it cannot get a unique name.
- The directory is created mode 700. */
-extern char * mkdtemp (char *template);
-
-#endif
diff --git a/tikzit-old/src/gtk/mkdtemp.m b/tikzit-old/src/gtk/mkdtemp.m
deleted file mode 100644
index ee3cd7c..0000000
--- a/tikzit-old/src/gtk/mkdtemp.m
+++ /dev/null
@@ -1,180 +0,0 @@
-/* Copyright (C) 1999, 2001-2003 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- The GNU C Library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If not,
- see <http://www.gnu.org/licenses/>.
- */
-
-/* Extracted from misc/mkdtemp.c and sysdeps/posix/tempname.c. */
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-/* Specification. */
-#include "mkdtemp.h"
-
-#include <errno.h>
-#ifndef __set_errno
-# define __set_errno(Val) errno = (Val)
-#endif
-
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <stdio.h>
-#ifndef TMP_MAX
-# define TMP_MAX 238328
-#endif
-
-#if HAVE_STDINT_H || _LIBC
-# include <stdint.h>
-#endif
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-
-#if HAVE_UNISTD_H || _LIBC
-# include <unistd.h>
-#endif
-
-#if HAVE_GETTIMEOFDAY || _LIBC
-# if HAVE_SYS_TIME_H || _LIBC
-# include <sys/time.h>
-# endif
-#else
-# if HAVE_TIME_H || _LIBC
-# include <time.h>
-# endif
-#endif
-
-#include "stat.h"
-
-#ifdef __MINGW32__
-/* mingw's mkdir() function has 1 argument, but we pass 2 arguments.
- Therefore we have to disable the argument count checking. */
-# define mkdir ((int (*)()) mkdir)
-#endif
-
-#if !_LIBC
-# define __getpid getpid
-# define __gettimeofday gettimeofday
-# define __mkdir mkdir
-#endif
-
-/* Use the widest available unsigned type if uint64_t is not
- available. The algorithm below extracts a number less than 62**6
- (approximately 2**35.725) from uint64_t, so ancient hosts where
- uintmax_t is only 32 bits lose about 3.725 bits of randomness,
- which is better than not having mkstemp at all. */
-#if !defined UINT64_MAX && !defined uint64_t
-# define uint64_t uintmax_t
-#endif
-
-/* These are the characters used in temporary filenames. */
-static const char letters[] =
-"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
-
-/* Generate a temporary file name based on TMPL. TMPL must match the
- rules for mk[s]temp (i.e. end in "XXXXXX"). The name constructed
- does not exist at the time of the call to __gen_tempname. TMPL is
- overwritten with the result.
-
- KIND is:
- __GT_DIR: create a directory, which will be mode 0700.
-
- We use a clever algorithm to get hard-to-predict names. */
-static int
-gen_tempname (char *tmpl)
-{
- int len;
- char *XXXXXX;
- static uint64_t value;
- uint64_t random_time_bits;
- int count, fd = -1;
- int save_errno = errno;
-
- len = strlen (tmpl);
- if (len < 6 || strcmp (&tmpl[len - 6], "XXXXXX"))
- {
- __set_errno (EINVAL);
- return -1;
- }
-
- /* This is where the Xs start. */
- XXXXXX = &tmpl[len - 6];
-
- /* Get some more or less random data. */
-#ifdef RANDOM_BITS
- RANDOM_BITS (random_time_bits);
-#else
-# if HAVE_GETTIMEOFDAY || _LIBC
- {
- struct timeval tv;
- __gettimeofday (&tv, NULL);
- random_time_bits = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec;
- }
-# else
- random_time_bits = time (NULL);
-# endif
-#endif
- value += random_time_bits ^ __getpid ();
-
- for (count = 0; count < TMP_MAX; value += 7777, ++count)
- {
- uint64_t v = value;
-
- /* Fill in the random bits. */
- XXXXXX[0] = letters[v % 62];
- v /= 62;
- XXXXXX[1] = letters[v % 62];
- v /= 62;
- XXXXXX[2] = letters[v % 62];
- v /= 62;
- XXXXXX[3] = letters[v % 62];
- v /= 62;
- XXXXXX[4] = letters[v % 62];
- v /= 62;
- XXXXXX[5] = letters[v % 62];
-
- fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR);
-
- if (fd >= 0)
- {
- __set_errno (save_errno);
- return fd;
- }
- else if (errno != EEXIST)
- return -1;
- }
-
- /* We got out of the loop because we ran out of combinations to try. */
- __set_errno (EEXIST);
- return -1;
-}
-
-/* Generate a unique temporary directory from TEMPLATE.
- The last six characters of TEMPLATE must be "XXXXXX";
- they are replaced with a string that makes the filename unique.
- The directory is created, mode 700, and its name is returned.
- (This function comes from OpenBSD.) */
-char *
-mkdtemp (char *template)
-{
- if (gen_tempname (template))
- return NULL;
- else
- return template;
-}
diff --git a/tikzit-old/src/gtk/stat.h b/tikzit-old/src/gtk/stat.h
deleted file mode 100644
index a9829ae..0000000
--- a/tikzit-old/src/gtk/stat.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <sys/stat.h>
-#if STAT_MACROS_BROKEN
-# undef S_ISDIR
-#endif
-#if !defined S_ISDIR && defined S_IFDIR
-# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
-#endif
-#if !S_IRUSR && S_IREAD
-# define S_IRUSR S_IREAD
-#endif
-#if !S_IRUSR
-# define S_IRUSR 00400
-#endif
-#if !S_IWUSR && S_IWRITE
-# define S_IWUSR S_IWRITE
-#endif
-#if !S_IWUSR
-# define S_IWUSR 00200
-#endif
-#if !S_IXUSR && S_IEXEC
-# define S_IXUSR S_IEXEC
-#endif
-#if !S_IXUSR
-# define S_IXUSR 00100
-#endif
diff --git a/tikzit-old/src/gtk/test/gtk.m b/tikzit-old/src/gtk/test/gtk.m
deleted file mode 100644
index aabb0f2..0000000
--- a/tikzit-old/src/gtk/test/gtk.m
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// linux.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "test/test.h"
-
-void testGtk() {
-
-}
diff --git a/tikzit-old/src/gtk/test/main.m b/tikzit-old/src/gtk/test/main.m
deleted file mode 100644
index 639a335..0000000
--- a/tikzit-old/src/gtk/test/main.m
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// main.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#include "config.h"
-#import "test/test.h"
-#include <string.h>
-void testCommon();
-
-int main(int argc, char **argv) {
- if (argc == 2 && strcmp(argv[1], "--disable-color")==0) {
- setColorEnabled(NO);
- } else {
- setColorEnabled(YES);
- }
-
- PUTS(@"");
- PUTS(@"**********************************************");
- PUTS(@"TikZiT TESTS, LINUX VERSION %@", VERSION);
- PUTS(@"**********************************************");
- PUTS(@"");
-
- startTests();
- testCommon();
- testLinux();
-
- PUTS(@"");
- PUTS(@"**********************************************");
- endTests();
- PUTS(@"**********************************************");
- PUTS(@"");
-}
diff --git a/tikzit-old/src/gtk/tzstockitems.h b/tikzit-old/src/gtk/tzstockitems.h
deleted file mode 100644
index 5ad0da9..0000000
--- a/tikzit-old/src/gtk/tzstockitems.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#define TIKZIT_STOCK_SELECT "tikzit-select"
-#define TIKZIT_STOCK_CREATE_NODE "tikzit-create-node"
-#define TIKZIT_STOCK_CREATE_EDGE "tikzit-create-edge"
-#define TIKZIT_STOCK_BOUNDING_BOX "tikzit-bounding-box"
-#define TIKZIT_STOCK_DRAG "tikzit-drag"
-
-void tz_register_stock_items();
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/tzstockitems.m b/tikzit-old/src/gtk/tzstockitems.m
deleted file mode 100644
index 5eba912..0000000
--- a/tikzit-old/src/gtk/tzstockitems.m
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright 2012 Alex Merry <dev@randomguy3.me.uk>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "tzstockitems.h"
-#include <gtk/gtk.h>
-#include <gdk-pixbuf/gdk-pixdata.h>
-
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpointer-sign"
-#import "icondata.m"
-#pragma GCC diagnostic pop
-
-static GtkStockItem stock_items[] = {
- // gchar *stock_id;
- // gchar *label;
- // GdkModifierType modifier;
- // guint keyval;
- // gchar *translation_domain;
- { TIKZIT_STOCK_SELECT, "Select", 0, 0, NULL },
- { TIKZIT_STOCK_CREATE_NODE, "Create Node", 0, 0, NULL },
- { TIKZIT_STOCK_CREATE_EDGE, "Create Edge", 0, 0, NULL },
- { TIKZIT_STOCK_BOUNDING_BOX, "Bounding Box", 0, 0, NULL },
- { TIKZIT_STOCK_DRAG, "Drag", 0, 0, NULL },
-};
-static guint n_stock_items = G_N_ELEMENTS (stock_items);
-
-static void icon_factory_add_pixdata (GtkIconFactory *factory,
- const gchar *stock_id,
- const GdkPixdata *image_data) {
-
- GdkPixbuf *buf = gdk_pixbuf_from_pixdata (image_data, FALSE, NULL);
- GtkIconSet *icon_set = gtk_icon_set_new_from_pixbuf (buf);
- gtk_icon_factory_add (factory, stock_id, icon_set);
- gtk_icon_set_unref (icon_set);
- g_object_unref (G_OBJECT (buf));
-}
-
-void tz_register_stock_items() {
- gtk_stock_add_static (stock_items, n_stock_items);
-
- GtkIconFactory *factory = gtk_icon_factory_new ();
- icon_factory_add_pixdata (factory, TIKZIT_STOCK_SELECT, &select_rectangular);
- icon_factory_add_pixdata (factory, TIKZIT_STOCK_CREATE_NODE, &draw_ellipse);
- icon_factory_add_pixdata (factory, TIKZIT_STOCK_CREATE_EDGE, &draw_path);
- icon_factory_add_pixdata (factory, TIKZIT_STOCK_BOUNDING_BOX, &transform_crop_and_resize);
- icon_factory_add_pixdata (factory, TIKZIT_STOCK_DRAG, &transform_move);
- gtk_icon_factory_add_default (factory);
-}
-
-// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker
diff --git a/tikzit-old/src/gtk/tztoolpalette.h b/tikzit-old/src/gtk/tztoolpalette.h
deleted file mode 100644
index 45ec2ac..0000000
--- a/tikzit-old/src/gtk/tztoolpalette.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* GIMP - The GNU Image Manipulation Program
- * Copyright (C) 1995 Spencer Kimball and Peter Mattis
- *
- * tztoolpalette.h, based on gimptoolpalette.h
- * Copyright (C) 2010 Michael Natterer <mitch@gimp.org>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __TZ_TOOL_PALETTE_H__
-#define __TZ_TOOL_PALETTE_H__
-
-
-#define TZ_TYPE_TOOL_PALETTE (tz_tool_palette_get_type ())
-#define TZ_TOOL_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TZ_TYPE_TOOL_PALETTE, TzToolPalette))
-#define TZ_TOOL_PALETTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TZ_TYPE_TOOL_PALETTE, TzToolPaletteClass))
-#define TZ_IS_TOOL_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TZ_TYPE_TOOL_PALETTE))
-#define TZ_IS_TOOL_PALETTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TZ_TYPE_TOOL_PALETTE))
-#define TZ_TOOL_PALETTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TZ_TYPE_TOOL_PALETTE, TzToolPaletteClass))
-
-
-typedef struct _TzToolPaletteClass TzToolPaletteClass;
-typedef struct _TzToolPalette TzToolPalette;
-
-struct _TzToolPalette
-{
- GtkToolPalette parent_instance;
-};
-
-struct _TzToolPaletteClass
-{
- GtkToolPaletteClass parent_class;
-};
-
-
-GType tz_tool_palette_get_type (void) G_GNUC_CONST;
-
-GtkWidget * tz_tool_palette_new (void);
-
-gboolean tz_tool_palette_get_button_size (TzToolPalette *widget,
- gint *width,
- gint *height);
-
-
-#endif /* __TZ_TOOL_PALETTE_H__ */
diff --git a/tikzit-old/src/gtk/tztoolpalette.m b/tikzit-old/src/gtk/tztoolpalette.m
deleted file mode 100644
index a948127..0000000
--- a/tikzit-old/src/gtk/tztoolpalette.m
+++ /dev/null
@@ -1,158 +0,0 @@
-/* GIMP - The GNU Image Manipulation Program
- * Copyright (C) 1995 Spencer Kimball and Peter Mattis
- *
- * tztoolpalette.c, based on gimptoolpalette.c
- * Copyright (C) 2010 Michael Natterer <mitch@gimp.org>
- * Copyright (C) 2012 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <gtk/gtk.h>
-
-#include "tztoolpalette.h"
-
-
-#define DEFAULT_TOOL_ICON_SIZE GTK_ICON_SIZE_BUTTON
-#define DEFAULT_BUTTON_RELIEF GTK_RELIEF_NONE
-
-#define TOOL_BUTTON_DATA_KEY "tz-tool-palette-item"
-#define TOOL_INFO_DATA_KEY "tz-tool-info"
-
-
-typedef struct _TzToolPalettePrivate TzToolPalettePrivate;
-
-struct _TzToolPalettePrivate
-{
- gint tool_rows;
- gint tool_columns;
-};
-
-#define GET_PRIVATE(p) G_TYPE_INSTANCE_GET_PRIVATE (p, \
- TZ_TYPE_TOOL_PALETTE, \
- TzToolPalettePrivate)
-
-
-static void tz_tool_palette_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation);
-
-
-G_DEFINE_TYPE (TzToolPalette, tz_tool_palette, GTK_TYPE_TOOL_PALETTE)
-
-#define parent_class tz_tool_palette_parent_class
-
-
-static void
-tz_tool_palette_class_init (TzToolPaletteClass *klass)
-{
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
-
- widget_class->size_allocate = tz_tool_palette_size_allocate;
-
- g_type_class_add_private (klass, sizeof (TzToolPalettePrivate));
-}
-
-static void
-tz_tool_palette_init (TzToolPalette *palette)
-{
-}
-
-static GtkToolItemGroup *
-tz_tool_palette_tool_group (TzToolPalette *palette)
-{
- GList *children;
- GtkToolItemGroup *group;
-
- children = gtk_container_get_children (GTK_CONTAINER (palette));
- g_return_val_if_fail (children, NULL);
- group = GTK_TOOL_ITEM_GROUP (children->data);
- g_list_free (children);
-
- return group;
-}
-
-gboolean
-tz_tool_palette_get_button_size (TzToolPalette *palette,
- gint *width,
- gint *height)
-{
- g_return_val_if_fail (width || height, FALSE);
-
- GtkToolItemGroup *group = tz_tool_palette_tool_group (palette);
- g_return_val_if_fail (group, FALSE);
-
- guint tool_count = gtk_tool_item_group_get_n_items (group);
- if (tool_count > 0)
- {
- GtkWidget *tool_button;
- GtkRequisition button_requisition;
-
- tool_button = GTK_WIDGET (gtk_tool_item_group_get_nth_item (group, 0));
- gtk_widget_size_request (tool_button, &button_requisition);
- if (width)
- *width = button_requisition.width;
- if (height)
- *height = button_requisition.height;
- return TRUE;
- }
- return FALSE;
-}
-
-static void
-tz_tool_palette_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation)
-{
- TzToolPalettePrivate *private = GET_PRIVATE (widget);
- GtkToolItemGroup *group = tz_tool_palette_tool_group (TZ_TOOL_PALETTE (widget));
-
- g_return_if_fail (group);
-
- GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
-
- guint tool_count = gtk_tool_item_group_get_n_items (group);
- if (tool_count > 0)
- {
- GtkWidget *tool_button;
- GtkRequisition button_requisition;
- gint tool_rows;
- gint tool_columns;
-
- tool_button = GTK_WIDGET (gtk_tool_item_group_get_nth_item (group, 0));
- gtk_widget_size_request (tool_button, &button_requisition);
-
- tool_columns = MAX (1, (allocation->width / button_requisition.width));
- tool_rows = tool_count / tool_columns;
-
- if (tool_count % tool_columns)
- tool_rows++;
-
- if (private->tool_rows != tool_rows ||
- private->tool_columns != tool_columns)
- {
- private->tool_rows = tool_rows;
- private->tool_columns = tool_columns;
-
- gtk_widget_set_size_request (widget, -1,
- tool_rows * button_requisition.height);
- }
- }
-}
-
-GtkWidget *
-tz_tool_palette_new (void)
-{
- return g_object_new (TZ_TYPE_TOOL_PALETTE, NULL);
-}
-
-// vim:ft=objc:ts=8:et:sts=2:sw=2:foldmethod=marker
diff --git a/tikzit-old/src/osx/AppDelegate.h b/tikzit-old/src/osx/AppDelegate.h
deleted file mode 100644
index 92d9add..0000000
--- a/tikzit-old/src/osx/AppDelegate.h
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// AppDelegate.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "StylePaletteController.h"
-#import "ToolPaletteController.h"
-#import "PropertyInspectorController.h"
-#import "PreambleController.h"
-#import "PreviewController.h"
-#import "GraphicsView.h"
-#import "PreferenceController.h"
-
-@interface AppDelegate : NSObject {
- NSMapTable *table;
- StylePaletteController *stylePaletteController;
- PropertyInspectorController *propertyInspectorController;
- PreambleController *preambleController;
- PreviewController *previewController;
- PreferenceController *preferenceController;
- ToolPaletteController *toolPaletteController;
- IBOutlet GraphicsView *graphicsView;
- NSString *tempDir;
-}
-
-@property IBOutlet StylePaletteController *stylePaletteController;
-@property (strong) IBOutlet ToolPaletteController *toolPaletteController;
-
-- (void)awakeFromNib;
-+ (void)setDefaults;
-- (void)applicationWillTerminate:(NSNotification *)notification;
-- (IBAction)toggleStyleInspector:(id)sender;
-- (IBAction)togglePropertyInspector:(id)sender;
-- (IBAction)togglePreamble:(id)sender;
-- (IBAction)togglePreferences:(id)sender;
-- (IBAction)refreshShapes:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/AppDelegate.m b/tikzit-old/src/osx/AppDelegate.m
deleted file mode 100644
index 94f5507..0000000
--- a/tikzit-old/src/osx/AppDelegate.m
+++ /dev/null
@@ -1,124 +0,0 @@
-//
-// AppDelegate.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "AppDelegate.h"
-#import "TikzDocument.h"
-#import "Shape.h"
-#import "SupportDir.h"
-
-@implementation AppDelegate
-
-@synthesize stylePaletteController, toolPaletteController;
-
-+(void)initialize{
- [self setDefaults];
-}
-
-- (void)awakeFromNib {
- [SupportDir createUserSupportDir];
- NSString *supportDir = [SupportDir userSupportDir];
- //NSLog(stylePlist);
- stylePaletteController =
- [[StylePaletteController alloc] initWithWindowNibName:@"StylePalette"
- supportDir:supportDir];
-
- propertyInspectorController =
- [[PropertyInspectorController alloc] initWithWindowNibName:@"PropertyInspector"];
-
- [propertyInspectorController setStylePaletteController:stylePaletteController];
-
- NSString *preamblePlist = [supportDir stringByAppendingPathComponent:@"preambles.plist"];
- preambleController =
- [[PreambleController alloc] initWithNibName:@"Preamble"
- plist:preamblePlist
- styles:[stylePaletteController nodeStyles]
- edges:[stylePaletteController edgeStyles]];
-
-
- char template[] = "/tmp/tikzit_tmp_XXXXXXX";
- char *dir = mkdtemp(template);
- tempDir = [NSString stringWithUTF8String:dir];
-
- NSLog(@"created temp dir: %@", tempDir);
- NSLog(@"system support dir: %@", [SupportDir systemSupportDir]);
-
- previewController =
- [[PreviewController alloc] initWithWindowNibName:@"Preview"
- preambleController:preambleController
- tempDir:tempDir];
-
- preferenceController = [[PreferenceController alloc] initWithWindowNibName:@"Preferences" preambleController:preambleController];
-
- // each application has one global preview controller
- [PreviewController setDefaultPreviewController:previewController];
-}
-
-+ (void)setDefaults{
- NSString *userDefaultsValuesPath;
- NSDictionary *userDefaultsValuesDict;
-
- userDefaultsValuesPath=[[NSBundle mainBundle] pathForResource:@"UserDefaults"
- ofType:@"plist"];
- userDefaultsValuesDict=[NSDictionary dictionaryWithContentsOfFile:userDefaultsValuesPath];
-
- [[NSUserDefaults standardUserDefaults] registerDefaults:userDefaultsValuesDict];
-}
-
-- (void)applicationWillTerminate:(NSNotification *)notification {
- NSString *supportDir = [SupportDir userSupportDir];
- [stylePaletteController saveStyles:supportDir];
- [preambleController savePreambles:[supportDir stringByAppendingPathComponent:@"preambles.plist"]];
-
- NSLog(@"wiping temp dir: %@", tempDir);
- [[NSFileManager defaultManager] removeItemAtPath:tempDir error:NULL];
-}
-
-- (void)toggleController:(NSWindowController*)c {
- if ([[c window] isVisible]) {
- [c close];
- } else {
- [c showWindow:self];
- }
-}
-
-- (IBAction)toggleStyleInspector:(id)sender {
- [self toggleController:stylePaletteController];
-}
-
-- (IBAction)togglePropertyInspector:(id)sender {
- [self toggleController:propertyInspectorController];
-}
-
-- (IBAction)togglePreamble:(id)sender {
- [self toggleController:(NSWindowController *) preambleController];
-}
-
-- (IBAction)togglePreferences:(id)sender {
- [self toggleController:preferenceController];
-}
-
-- (IBAction)refreshShapes:(id)sender {
- [Shape refreshShapeDictionary];
-}
-
-@end
diff --git a/tikzit-old/src/osx/CALayer+DrawLabel.h b/tikzit-old/src/osx/CALayer+DrawLabel.h
deleted file mode 100644
index 32282d9..0000000
--- a/tikzit-old/src/osx/CALayer+DrawLabel.h
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// CALayer+DrawLabel.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 09/05/2011.
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/CoreAnimation.h>
-
-@class Transformer;
-
-@interface CALayer(DrawLabel)
-
-- (void)drawLabel:(NSString*)label
- atPoint:(NSPoint)pt
- inContext:(CGContextRef)context
- usingTrans:(Transformer*)t;
-
-@end
diff --git a/tikzit-old/src/osx/CALayer+DrawLabel.m b/tikzit-old/src/osx/CALayer+DrawLabel.m
deleted file mode 100644
index 4860a3c..0000000
--- a/tikzit-old/src/osx/CALayer+DrawLabel.m
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// CALayer+DrawLabel.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 09/05/2011.
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-
-#import "CALayer+DrawLabel.h"
-#import "Transformer.h"
-
-@implementation CALayer(DrawLabel)
-
-- (void)drawLabel:(NSString*)label
- atPoint:(NSPoint)pt
- inContext:(CGContextRef)context
- usingTrans:(Transformer*)t {
-
- CGContextSaveGState(context);
-
- if ([label length] > 15) {
- label = [[label substringToIndex:12] stringByAppendingString:@"..."];
- }
-
- float fontSize = [t scaleToScreen:0.18f]; // size 9 @ 100%
- if (fontSize > 18.0f) fontSize = 18.0f;
-
- // Prepare font
- CTFontRef font = CTFontCreateWithName(CFSTR("Monaco"), fontSize, NULL);
-
- // Create an attributed string
- CFStringRef keys[] = { kCTFontAttributeName };
- CFTypeRef values[] = { font };
- CFDictionaryRef attr = CFDictionaryCreate(NULL,
- (const void **)&keys,
- (const void **)&values,
- sizeof(keys) / sizeof(keys[0]),
- &kCFTypeDictionaryKeyCallBacks,
- &kCFTypeDictionaryValueCallBacks);
- CFAttributedStringRef attrString =
- CFAttributedStringCreate(NULL, (CFStringRef)label, attr);
- CFRelease(attr);
-
- // Draw the string
- CTLineRef line = CTLineCreateWithAttributedString(attrString);
- CGContextSetTextMatrix(context, CGAffineTransformIdentity);
- CGContextSetTextPosition(context, 0, 0);
-
- CGRect labelBounds = CGRectIntegral(CTLineGetImageBounds(line, context));
- //int shiftx = round(labelBounds.size.width / 2);
-
- CGContextSetTextPosition(context,
- round(pt.x - (labelBounds.size.width/2)),
- round(pt.y - (0.9*labelBounds.size.height/2)));
-
- labelBounds = CGRectIntegral(CTLineGetImageBounds(line, context));
- labelBounds.origin.x -= 2;
- labelBounds.origin.y -= 2;
- labelBounds.size.width += 4;
- labelBounds.size.height += 4;
-
- CGContextSetShouldAntialias(context, NO);
-
- CGContextSetRGBFillColor(context, 1.0f, 1.0f, 0.5f, 0.7f);
- CGContextSetRGBStrokeColor(context, 0.5f, 0.0f, 0.0f, 0.7f);
-
- CGContextFillRect(context, labelBounds);
- CGContextStrokeRect(context, labelBounds);
-
- CGContextSetShouldAntialias(context, YES);
-
- CGContextSetRGBFillColor(context, 0.3f, 0.3f, 0.3f, 0.7f);
-
- CTLineDraw(line, context);
-
- // Clean up
- CFRelease(line);
- CFRelease(attrString);
- CFRelease(font);
-
- CGContextRestoreGState(context);
-}
-
-@end
diff --git a/tikzit-old/src/osx/CoreGraphicsRenderContext.h b/tikzit-old/src/osx/CoreGraphicsRenderContext.h
deleted file mode 100644
index 7b00484..0000000
--- a/tikzit-old/src/osx/CoreGraphicsRenderContext.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Cocoa/Cocoa.h>
-#import "RenderContext.h"
-
-@interface CoreTextLayout: NSObject<TextLayout> {
- CFAttributedStringRef attrString;
- CTFontRef font;
- CTLineRef line;
- CGContextRef ctx;
-}
-
-+ (CoreTextLayout*) layoutForContext:(CGContextRef)c withString:(NSString*)string fontSize:(CGFloat)fontSize;
-- (id) initWithContext:(CGContextRef)cr withString:(NSString*)string fontSize:(CGFloat)fontSize;
-
-@end
-
-@interface CoreGraphicsRenderContext: NSObject<RenderContext> {
- CGContextRef ctx;
-}
-
-+ (CoreGraphicsRenderContext*) contextWithCGContext:(CGContextRef)c;
-+ (id) initWithCGContext:(CGContextRef)c;
-
-- (CGContextRef) ctx;
-
-@end
-
-// vim:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/osx/CoreGraphicsRenderContext.m b/tikzit-old/src/osx/CoreGraphicsRenderContext.m
deleted file mode 100644
index 1cb0daf..0000000
--- a/tikzit-old/src/osx/CoreGraphicsRenderContext.m
+++ /dev/null
@@ -1,234 +0,0 @@
-/*
- * Copyright 2011 Alex Merry <alex.merry@kdemail.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#import <Cocoa/Cocoa.h>
-#import "RenderContext.h"
-
-@implementation CoreTextLayout
-
-+ (CoreTextLayout*) layoutForContext:(CGContextRef)c withString:(NSString*)string fontSize:(CGFloat)fontSize {
- return [[[self alloc] initWithContext:c withString:string fontSize:fontSize] autorelease];
-}
-
-- (id) initWithContext:(CGContextRef)cr withString:(NSString*)string fontSize:(CGFloat)fontSize {
- self = [super init];
-
- if (self == nil) {
- return nil;
- }
-
- CGContextRetain (cr);
- ctx = cr;
- font = CTFontCreateWithName(CFSTR("Monaco"), fontSize, NULL);
-
- // Create an attributed string
- CFStringRef keys[] = { kCTFontAttributeName };
- CFTypeRef values[] = { font };
- CFDictionaryRef attr = CFDictionaryCreate(NULL,
- (const void **)&keys,
- (const void **)&values,
- sizeof(keys) / sizeof(keys[0]),
- &kCFTypeDictionaryKeyCallBacks,
- &kCFTypeDictionaryValueCallBacks);
- attrString = CFAttributedStringCreate(NULL, (CFStringRef)lab, attr);
- CFRelease(attr);
- line = CTLineCreateWithAttributedString(attrString);
-
- return self;
-}
-
-- (NSSize) size {
- CGRect labelBounds = CGRectIntegral(CTLineGetImageBounds(line, ctx));
- return labelBounds.size;
-}
-
-- (NSString*) text {
- return CFAttributedStringGetString (attrString);
-}
-
-- (void) showTextAt:(NSPoint)topLeft withColor:(RColor)color {
- CGContextSaveGState(ctx);
-
- CGContextSetRGBFillColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGContextSetRGBStrokeColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGContextSetShouldAntialias(ctx, YES);
-
- CGContextSetTextMatrix(ctx, CGAffineTransformIdentity);
- CGContextSetTextPosition(ctx, 0, 0);
- CGRect bounds = CGRectIntegral(CTLineGetImageBounds(line, ctx));
- CGContextSetTextPosition(ctx, topLeft.x - bounds.x, topLeft.y - bounds.y);
-
- CTLineDraw(line, ctx);
-
- CGContextRestoreGState(ctx);
-}
-
-- (void) dealloc {
- CFRelease(line);
- CFRelease(attrString);
- CFRelease(font);
- CGContextRelease (ctx);
-
- [super dealloc];
-}
-
-@end
-
-@implementation CoreGraphicsRenderContext
-
-+ (CoreGraphicsRenderContext*) contextWithCGContext:(CGContextRef)c {
- return [[[self alloc] initWithCGContext:c] autorelease];
-}
-
-+ (id) initWithCGContext:(CGContextRef)c {
- self = [super init];
-
- if (self) {
- ctx = c;
- CGContextRetain (ctx);
- }
-
- return self;
-}
-
-- (void) dealloc {
- CGContextRelease (ctx);
-
- [super dealloc];
-}
-
-- (CGContextRef) ctx {
- return ctx;
-}
-
-- (void) saveState {
- CGContextSaveGState(ctx);
-}
-
-- (void) restoreState {
- CGContextRestoreGState(ctx);
-}
-
-- (NSRect) clipBoundingBox {
- return CGContextGetClipBoundingBox (ctx);
-}
-
-- (BOOL) strokeIncludesPoint:(NSPoint)p {
- return CGContextPathContainsPoint(ctx, NSPointToCGPoint(p), kCGPathStroke);
-}
-
-- (BOOL) fillIncludesPoint:(NSPoint)p {
- return CGContextPathContainsPoint(ctx, NSPointToCGPoint(p), kCGPathFill);
-}
-
-- (id<TextLayout>) layoutText:(NSString*)text withSize:(CGFloat)fontSize {
- return [CoreTextLayout layoutForContext:ctx withString:text fontSize:fontSize];
-}
-
-// this may not affect text rendering
-- (void) setAntialiasMode:(AntialiasMode)mode {
- CGContextSetShouldAntialias(ctx, mode != AntialiasDisabled);
-}
-
-- (void) setLineWidth:(CGFloat)width {
- CGContextSetLineWidth(ctx, width);
-}
-
-// setting to 0 will unset the dash
-- (void) setLineDash:(CGFloat)dashLength {
- if (dashLength <= 0.0f) {
- CGContextSetLineDash(ctx, 0.0f, NULL, 0);
- } else {
- const CGFloat dash[] = {dashLength, dashLength};
- CGContextSetLineDash(ctx, 0.0f, dash, 2);
- }
-}
-
-// paths
-- (void) startPath {
- CGContextBeginPath (ctx);
-}
-
-- (void) closeSubPath {
- CGContextClosePath (ctx);
-}
-
-- (void) moveTo:(NSPoint)p {
- CGContextMoveToPoint (ctx, p.x, p.y);
-}
-
-- (void) curveTo:(NSPoint)end withCp1:(NSPoint)cp1 andCp2:(NSPoint)cp2 {
- CGContextAddCurveToPoint(ctx, cp1.x, cp1.y, cp2.x, cp2.y, end.x, end.y);
-}
-
-- (void) lineTo:(NSPoint)end {
- CGContextAddLineToPoint(ctx, end.x, end.y);
-}
-
-- (void) rect:(NSRect)rect {
- CGContextAddRect (ctx, rect);
-}
-
-- (void) circleAt:(NSPoint)c withRadius:(CGFloat)r {
- CGContextMoveToPoint (ctx, c.x + r, c.y);
- CGContextAddArc (ctx, c.x, c.y, r, 0.0f, M_PI, 1);
-}
-
-// these methods clear the path
-- (void) strokePathWithColor:(RColor)color {
- CGContextSetRGBStrokeColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGContextDrawPath (ctx, kCGPathStroke);
-}
-
-- (void) fillPathWithColor:(RColor)color {
- CGContextSetRGBFillColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGContextDrawPath (ctx, kCGPathFill);
-}
-
-- (void) strokePathWithColor:(RColor)scolor
- andFillWithColor:(RColor)fcolor {
- CGContextSetRGBFillColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGContextSetRGBStrokeColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGContextDrawPath (ctx, kCGPathFillStroke);
-}
-
-- (void) strokePathWithColor:(RColor)scolor
- andFillWithColor:(RColor)fcolor
- usingAlpha:(CGFloat)alpha {
- CGContextSetRGBFillColor(ctx, color.red, color.green, color.blue, color.alpha * alpha);
- CGContextSetRGBStrokeColor(ctx, color.red, color.green, color.blue, color.alpha * alpha);
- CGContextDrawPath (ctx, kCGPathFillStroke);
-}
-
-- (void) clipToPath {
- CGContextClip (ctx);
-}
-
-// paint everywhere within the clip
-- (void) paintWithColor:(RColor)color {
- CGContextSetRGBFillColor(ctx, color.red, color.green, color.blue, color.alpha);
- CGRect r = CGContextGetClipBoundingBox (ctx);
- r.origin.x -= 1;
- r.origin.y -= 1;
- r.size.width += 2;
- r.size.height += 2;
- CGContextFillRect(context, r);
-}
-
-@end
-
-// vim:ft=objc:ts=4:noet:sts=4:sw=4
diff --git a/tikzit-old/src/osx/CustomNodeCellView.h b/tikzit-old/src/osx/CustomNodeCellView.h
deleted file mode 100644
index 22606d7..0000000
--- a/tikzit-old/src/osx/CustomNodeCellView.h
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// CustomNodeCellView.h
-// TikZiT
-//
-// Created by Johan Paulsson on 12/12/13.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-#import "NodeLayer.h"
-#import "NodeStyle.h"
-#import "NodeStyle+Coder.h"
-
-@interface CustomNodeCellView : NSTableCellView{
- NodeLayer *nodeLayer;
- NodeStyle *nodeStyle;
- BOOL selected;
-}
-
-@property (strong) id objectValue;
-
-@end
diff --git a/tikzit-old/src/osx/CustomNodeCellView.m b/tikzit-old/src/osx/CustomNodeCellView.m
deleted file mode 100644
index 612394b..0000000
--- a/tikzit-old/src/osx/CustomNodeCellView.m
+++ /dev/null
@@ -1,83 +0,0 @@
-//
-// CustomNodeCellView.m
-// TikZiT
-//
-// Created by Johan Paulsson on 12/12/13.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-
-#import "CustomNodeCellView.h"
-
-@implementation CustomNodeCellView
-
-- (id)initWithFrame:(NSRect)frame
-{
- self = [super initWithFrame:frame];
- if (self) {
- // Initialization code here.
- }
- return self;
-}
-
-- (void)drawRect:(NSRect)dirtyRect
-{
- [super drawRect:dirtyRect];
-
- // Drawing code here.
-}
-
-- (id) objectValue{
- return [super objectValue];
-}
-
--(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context {
- if (nodeLayer!=nil) {
- if (![[[self layer] sublayers] containsObject:nodeLayer]) {
- [[self layer] addSublayer:nodeLayer];
- NSPoint c = NSMakePoint((CGRectGetMinX([[self layer] frame])+CGRectGetWidth([nodeLayer bounds])/2),
- CGRectGetMidY([[self layer] frame]));
- //c = NSMakePoint(-16.5,-16.5);
- [nodeLayer setCenter:c andAnimateWhen:NO];
- [[self textField] setFrame:NSMakeRect(CGRectGetWidth([nodeLayer bounds]), CGRectGetMidY([[self layer] frame]), CGRectGetWidth([[self textField] frame]), CGRectGetHeight([[self textField] frame]))];
- }
-
- if (selected){
- [nodeStyle setStrokeColor:[NSColor whiteColor]];
- [[nodeLayer node] setStyle:nodeStyle];
- }else{
- [nodeStyle setStrokeColor:[NSColor blackColor]];
- [[nodeLayer node] setStyle:nodeStyle];
- }
-
- [nodeLayer updateFrame];
- }
-}
-
-- (void) setObjectValue:(id)objectValue{
- if(objectValue == nil)
- return;
-
- nodeStyle = (NodeStyle *)objectValue;
- [[self textField] setStringValue:[nodeStyle shapeName]];
-
- if (nodeLayer == nil) {
- nodeLayer = [[NodeLayer alloc] initWithNode:[Node node]
- transformer:[Transformer defaultTransformer]];
- [nodeLayer setRescale:NO];
- }
- [nodeStyle setName:[nodeStyle shapeName]];
-
- [[nodeLayer node] setStyle:nodeStyle];
- [nodeLayer updateFrame];
-
- NSLog(@"asd");
-}
-
-- (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle {
- [super setBackgroundStyle:backgroundStyle];
-
- selected = (backgroundStyle == NSBackgroundStyleDark);
- [self setNeedsDisplay:YES];
-}
-
-@end
diff --git a/tikzit-old/src/osx/CustomNodeController.h b/tikzit-old/src/osx/CustomNodeController.h
deleted file mode 100644
index 67adf0b..0000000
--- a/tikzit-old/src/osx/CustomNodeController.h
+++ /dev/null
@@ -1,35 +0,0 @@
-//
-// CustomNodeController.h
-// TikZiT
-//
-// Created by Johan Paulsson on 12/4/13.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "Shape.h"
-#import "TikzShape.h"
-
-#import "GraphicsView.h"
-#import "TikzSourceController.h"
-
-#import "SupportDir.h"
-
-@interface CustomNodeController : NSViewController <NSTableViewDelegate>{
- NSDictionary *nodeStyles;
- NSMutableArray* customNodeStyles;
-
- GraphicsView *__weak graphicsView;
- TikzSourceController *__weak tikzSourceController;
- NSTableView *customNodeTable;
-}
-
-@property NSDictionary *nodeStyles;
-@property NSMutableArray* customNodeStyles;
-
-@property IBOutlet NSTableView *customNodeTable;
-
-@property (weak) IBOutlet GraphicsView *graphicsView;
-@property (weak) IBOutlet TikzSourceController *tikzSourceController;
-
-@end
diff --git a/tikzit-old/src/osx/CustomNodeController.m b/tikzit-old/src/osx/CustomNodeController.m
deleted file mode 100644
index 4f46acc..0000000
--- a/tikzit-old/src/osx/CustomNodeController.m
+++ /dev/null
@@ -1,58 +0,0 @@
-//
-// CustomNodeController.m
-// TikZiT
-//
-// Created by Johan Paulsson on 12/4/13.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-
-#import "CustomNodeController.h"
-#import "NodeStyle.h"
-
-@interface CustomNodeController ()
-
-@end
-
-@implementation CustomNodeController
-
-@synthesize nodeStyles, customNodeStyles;
-@synthesize graphicsView, tikzSourceController;
-@synthesize customNodeTable;
-
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
-{
- if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
- nodeStyles = [Shape shapeDictionary];
- customNodeStyles = [NSMutableArray array];
-
- for(id key in nodeStyles) {
- Shape *value = [nodeStyles objectForKey:key];
-
- if([value isKindOfClass:[TikzShape class]]){
- NodeStyle *newNodeStyle = [[NodeStyle alloc] init];
- [newNodeStyle setShapeName:key];
-
- [customNodeStyles addObject:newNodeStyle];
- }
- }
- }
-
- return self;
-}
-
-- (void)tableViewSelectionDidChange:(NSNotification *)aNotification{
- NSInteger selectedRow = [customNodeTable selectedRow];
-
- NodeStyle* selectedNodeStyle = [customNodeStyles objectAtIndex:selectedRow];
- TikzShape *tikzshape = (TikzShape *) [nodeStyles objectForKey:[selectedNodeStyle shapeName]];
-
- [[tikzSourceController graphicsView] setEnabled:NO];
- [tikzSourceController setTikz:[tikzshape tikzSrc]];
- [tikzSourceController parseTikz:self];
-}
-
-- (id)valueForUndefinedKey:(NSString *)key{
- return nil;
-}
-
-@end
diff --git a/tikzit-old/src/osx/CustomNodes.xib b/tikzit-old/src/osx/CustomNodes.xib
deleted file mode 100644
index 1cc8db2..0000000
--- a/tikzit-old/src/osx/CustomNodes.xib
+++ /dev/null
@@ -1,249 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="CustomNodeController">
- <connections>
- <outlet property="graphicsView" destination="3MT-Yc-Dhv" id="9gg-fS-oBl"/>
- <outlet property="tikzSourceController" destination="il5-cQ-3oh" id="Wny-jd-sKZ"/>
- <outlet property="view" destination="1" id="sH5-DU-xwB"/>
- </connections>
- </customObject>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
- <arrayController objectClassName="NodeStyle" id="iyU-U5-XAU" userLabel="Node Style Array Controller">
- <declaredKeys>
- <string>name</string>
- <string>strokeThickness</string>
- <string>strokeColor</string>
- <string>fillColor</string>
- <string>strokeColorIsKnown</string>
- <string>fillColorIsKnown</string>
- <string>representedObject.name</string>
- <string>shapeName</string>
- <string>scale</string>
- <string>@distinctUnionOfObjects.category</string>
- <string>category</string>
- </declaredKeys>
- <connections>
- <binding destination="-2" name="contentArray" keyPath="onodeStyles" id="Yzy-xv-qEa"/>
- </connections>
- </arrayController>
- <customObject id="il5-cQ-3oh" customClass="TikzSourceController">
- <connections>
- <outlet property="errorMessage" destination="6rJ-4b-syy" id="cin-Wb-6uD"/>
- <outlet property="errorNotification" destination="R3k-mz-hMn" id="jtn-fQ-Amk"/>
- <outlet property="graphicsView" destination="3MT-Yc-Dhv" id="hK1-h1-Dsr"/>
- <outlet property="sourceView" destination="QXu-0d-uF0" id="SEj-FL-5Ac"/>
- <outlet property="status" destination="6rJ-4b-syy" id="lVN-cK-3Cb"/>
- </connections>
- </customObject>
- <customView id="1">
- <rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <splitView dividerStyle="thin" vertical="YES" translatesAutoresizingMaskIntoConstraints="NO" id="DO1-FS-fZd">
- <rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="32" horizontalPageScroll="10" verticalLineScroll="32" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="Ry0-48-577">
- <rect key="frame" x="0.0" y="0.0" width="117" height="272"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <clipView key="contentView" id="9D3-br-lEi">
- <rect key="frame" x="1" y="1" width="115" height="270"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" rowHeight="30" rowSizeStyle="automatic" viewBased="YES" id="ieg-vU-MzM">
- <rect key="frame" x="0.0" y="0.0" width="115" height="270"/>
- <autoresizingMask key="autoresizingMask"/>
- <size key="intercellSpacing" width="3" height="2"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
- <tableColumns>
- <tableColumn width="112" minWidth="40" maxWidth="1000" id="k91-pc-nbl">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="ZaR-9P-sAp">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <prototypeCellViews>
- <tableCellView id="0ce-nA-hcl" customClass="CustomNodeCellView">
- <rect key="frame" x="1" y="1" width="112" height="30"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KUl-Qh-CHH">
- <rect key="frame" x="36" y="3" width="87" height="17"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Table View Cell" id="92K-au-Qpa">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <binding destination="0ce-nA-hcl" name="value" keyPath="objectValue" id="06y-KE-8wP"/>
- </connections>
- </textFieldCell>
- </textField>
- </subviews>
- <connections>
- <outlet property="textField" destination="KUl-Qh-CHH" id="Cze-5m-UmF"/>
- </connections>
- </tableCellView>
- </prototypeCellViews>
- </tableColumn>
- </tableColumns>
- <connections>
- <binding destination="-2" name="selectionIndexes" keyPath="selectedNode" id="C4J-62-GDG"/>
- <outlet property="delegate" destination="-2" id="M05-fU-pjz"/>
- </connections>
- </tableView>
- </subviews>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="QIL-7j-JmC">
- <rect key="frame" x="1" y="256" width="0.0" height="15"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="ElP-ub-Uwa">
- <rect key="frame" x="224" y="17" width="15" height="102"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- <view fixedFrame="YES" id="F5P-T2-9eB">
- <rect key="frame" x="118" y="0.0" width="362" height="272"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <splitView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KKi-SZ-dS6">
- <rect key="frame" x="0.0" y="0.0" width="362" height="272"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <customView fixedFrame="YES" id="d61-FR-v2c">
- <rect key="frame" x="0.0" y="0.0" width="362" height="156"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <customView wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3MT-Yc-Dhv" customClass="GraphicsView">
- <rect key="frame" x="0.0" y="0.0" width="362" height="155"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </customView>
- <customView wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="R3k-mz-hMn" customClass="ParseErrorView">
- <rect key="frame" x="0.0" y="113" width="361" height="42"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
- <subviews>
- <textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6rJ-4b-syy">
- <rect key="frame" x="5" y="10" width="354" height="27"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="left" placeholderString="parser information" allowsEditingTextAttributes="YES" id="3y1-Zn-Hv4">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- <button wantsLayer="YES" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Et8-Cc-Xac">
- <rect key="frame" x="340" y="21" width="17" height="19"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="squareTextured" bezelStyle="texturedSquare" image="NSStopProgressFreestandingTemplate" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" id="7vB-Le-tP4">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="closeParseError:" target="il5-cQ-3oh" id="jdZ-7K-cwe"/>
- </connections>
- </button>
- </subviews>
- </customView>
- </subviews>
- </customView>
- <customView fixedFrame="YES" id="Fal-9S-dwR">
- <rect key="frame" x="0.0" y="165" width="362" height="107"/>
- <autoresizingMask key="autoresizingMask"/>
- <subviews>
- <scrollView fixedFrame="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yLp-gf-r49">
- <rect key="frame" x="0.0" y="0.0" width="362" height="107"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <clipView key="contentView" ambiguous="YES" misplaced="YES" id="qOT-id-lqk">
- <rect key="frame" x="1" y="1" width="345" height="105"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <textView ambiguous="YES" importsGraphics="NO" richText="NO" findStyle="panel" allowsUndo="YES" usesRuler="YES" verticallyResizable="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="QXu-0d-uF0">
- <rect key="frame" x="0.0" y="0.0" width="345" height="105"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="345" height="105"/>
- <size key="maxSize" width="877" height="10000000"/>
- <attributedString key="textStorage">
- <fragment>
- <string key="content">\begin{tikzpicture}
-
-\end{tikzpicture}</string>
- <attributes>
- <font key="NSFont" metaFont="toolTip"/>
- <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
- </attributes>
- </fragment>
- </attributedString>
- <color key="insertionPointColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
- <size key="minSize" width="345" height="105"/>
- <size key="maxSize" width="877" height="10000000"/>
- <connections>
- <binding destination="il5-cQ-3oh" name="attributedString" keyPath="source" id="15z-o3-4ni"/>
- <outlet property="delegate" destination="il5-cQ-3oh" id="9Mr-J3-zvR"/>
- </connections>
- </textView>
- </subviews>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
- </clipView>
- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="BYM-Xm-JpT">
- <rect key="frame" x="-100" y="-100" width="87" height="18"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- <scroller key="verticalScroller" verticalHuggingPriority="750" doubleValue="0.90909090909090906" horizontal="NO" id="SEU-Jq-fwu">
- <rect key="frame" x="346" y="1" width="15" height="105"/>
- <autoresizingMask key="autoresizingMask"/>
- </scroller>
- </scrollView>
- </subviews>
- </customView>
- </subviews>
- <holdingPriorities>
- <real value="250"/>
- <real value="250"/>
- </holdingPriorities>
- </splitView>
- <textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="esG-a3-KD7">
- <rect key="frame" x="220" y="-184" width="128" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" id="7uu-y8-NcI">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
- </subviews>
- </view>
- </subviews>
- <holdingPriorities>
- <real value="250"/>
- <real value="250"/>
- </holdingPriorities>
- </splitView>
- </subviews>
- <constraints>
- <constraint firstAttribute="trailing" secondItem="DO1-FS-fZd" secondAttribute="trailing" id="Bow-1P-jx4"/>
- <constraint firstAttribute="bottom" secondItem="DO1-FS-fZd" secondAttribute="bottom" id="c94-eC-Rhp"/>
- <constraint firstItem="DO1-FS-fZd" firstAttribute="leading" secondItem="1" secondAttribute="leading" id="j1G-Ag-RLs"/>
- <constraint firstItem="DO1-FS-fZd" firstAttribute="top" secondItem="1" secondAttribute="top" id="tBr-89-Ipp"/>
- </constraints>
- </customView>
- </objects>
- <resources>
- <image name="NSStopProgressFreestandingTemplate" width="12" height="12"/>
- </resources>
-</document>
diff --git a/tikzit-old/src/osx/DraggablePDFView.h b/tikzit-old/src/osx/DraggablePDFView.h
deleted file mode 100644
index 9e53c44..0000000
--- a/tikzit-old/src/osx/DraggablePDFView.h
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// PreviewController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Quartz/Quartz.h>
-
-@interface DraggablePDFView : PDFView
-
-@end
diff --git a/tikzit-old/src/osx/DraggablePDFView.m b/tikzit-old/src/osx/DraggablePDFView.m
deleted file mode 100644
index ce393c7..0000000
--- a/tikzit-old/src/osx/DraggablePDFView.m
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// PreviewController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "DraggablePDFView.h"
-
-@implementation DraggablePDFView
-
-- (id)initWithFrame:(NSRect)frame
-{
- self = [super initWithFrame:frame];
- return self;
-}
-
-- (void)drawRect:(NSRect)dirtyRect
-{
- [super drawRect:dirtyRect];
-}
-
-- (void)mouseDown:(NSEvent *)theEvent
-{
- NSRect pageBox = [[[self document] pageAtIndex:0] boundsForBox:kPDFDisplayBoxMediaBox];
- NSRect pageRect= [self convertRect:pageBox fromPage:[[self document] pageAtIndex:0]];
-
- NSArray *fileList = [NSArray arrayWithObjects:[[[self document] documentURL] path], nil];
- NSPasteboard *pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
- [pboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType] owner:nil];
- [pboard setPropertyList:fileList forType:NSFilenamesPboardType];
-
- [self dragImage:[[NSImage alloc] initWithData:[[self document] dataRepresentation]]
- at:pageRect.origin
- offset:pageRect.size
- event:theEvent
- pasteboard:pboard
- source:self
- slideBack:YES];
-
- return;
-}
-
-@end
diff --git a/tikzit-old/src/osx/EdgeControlLayer.h b/tikzit-old/src/osx/EdgeControlLayer.h
deleted file mode 100644
index 4cdf8bc..0000000
--- a/tikzit-old/src/osx/EdgeControlLayer.h
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// EdgeControlLayer.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/CoreAnimation.h>
-#import "Edge.h"
-#import "Transformer.h"
-
-
-@interface EdgeControlLayer : CALayer {
- Edge *edge;
- Transformer *transformer;
- BOOL selected;
-}
-
-- (id)initWithEdge:(Edge*)e andTransformer:(Transformer*)t;
-- (void)highlight;
-- (void)unhighlight;
-- (void)select;
-- (void)deselect;
-
-+ (float)handleRadius;
-
-@end
diff --git a/tikzit-old/src/osx/EdgeControlLayer.m b/tikzit-old/src/osx/EdgeControlLayer.m
deleted file mode 100644
index facdd84..0000000
--- a/tikzit-old/src/osx/EdgeControlLayer.m
+++ /dev/null
@@ -1,150 +0,0 @@
-//
-// EdgeControlLayer.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "EdgeControlLayer.h"
-#import "util.h"
-
-
-@implementation EdgeControlLayer
-
-
-- (id)initWithEdge:(Edge*)e andTransformer:(Transformer*)t {
- if (!(self = [super init])) return nil;
- transformer = t;
- edge = e;
- self.opacity = 0.0f;
- return self;
-}
-
-- (void)select {
- selected = YES;
- self.opacity = 1.0f;
-}
-
-- (void)deselect {
- selected = NO;
- self.opacity = 0.0f;
-}
-
-- (void)highlight {
- if (!selected) {
- self.opacity = 0.5f;
- }
-}
-
-- (void)unhighlight {
- if (!selected) {
- self.opacity = 0.0f;
- }
-}
-
-- (void)drawInContext:(CGContextRef)ctx {
- CGContextSaveGState(ctx);
-
- [edge updateControls];
- CGPoint source = NSPointToCGPoint([transformer toScreen:[[edge source] point]]);
- CGPoint target = NSPointToCGPoint([transformer toScreen:[[edge target] point]]);
- CGPoint mid = NSPointToCGPoint([transformer toScreen:[edge mid]]);
- CGPoint cp1 = NSPointToCGPoint([transformer toScreen:[edge cp1]]);
- CGPoint cp2 = NSPointToCGPoint([transformer toScreen:[edge cp2]]);
-
- float dx = (target.x - source.x);
- float dy = (target.y - source.y);
-
- // draw a circle at the midpoint
- CGRect mid_rect = CGRectMake(mid.x-3.0f, mid.y-3.0f, 6.0f, 6.0f);
- CGContextAddEllipseInRect(ctx, mid_rect);
- CGContextSetLineWidth(ctx, 1.0f);
- CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 0.5f);
- CGContextSetRGBStrokeColor(ctx, 0.0f, 0.0f, 1.0f, 0.5f);
- CGContextDrawPath(ctx, kCGPathFillStroke);
-
-
- CGContextSetShouldAntialias(ctx, YES);
-
- // compute size of control circles
- float cdist;
- if (dx == 0 && dy == 0) cdist = [transformer scaleToScreen:edge.weight];
- else cdist = sqrt(dx*dx + dy*dy) * edge.weight;
-
- // if basic bend, draw blue, if inout, draw green
- if ([edge bendMode] == EdgeBendModeBasic) CGContextSetRGBStrokeColor(ctx, 0, 0, 1, 0.4f);
- else CGContextSetRGBStrokeColor(ctx, 0, 0.7f, 0, 0.4f);
-
- // draw source control circle
- CGRect ellipse1 = CGRectMake(source.x-cdist, source.y-cdist, cdist*2.0f, cdist*2.0f);
- CGContextAddEllipseInRect(ctx, ellipse1);
- if (dx!=0 || dy!=0) {
- CGRect ellipse2 = CGRectMake(target.x-cdist, target.y-cdist, cdist*2.0f, cdist*2.0f);
- CGContextAddEllipseInRect(ctx, ellipse2);
- }
-
- CGContextStrokePath(ctx);
-
- float handleRad = [EdgeControlLayer handleRadius];
-
- // handles
- CGRect ctrl1 = CGRectMake(cp1.x-handleRad, cp1.y-handleRad, 2*handleRad, 2*handleRad);
- CGRect ctrl2 = CGRectMake(cp2.x-handleRad, cp2.y-handleRad, 2*handleRad, 2*handleRad);
-
- CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 0.8f);
-
- // draw a line from source vertex to first handle
- if ([edge bendMode] == EdgeBendModeInOut) {
- if ([edge outAngle] % 45 == 0) CGContextSetRGBStrokeColor(ctx, 1, 0, 1, 0.6f);
- else CGContextSetRGBStrokeColor(ctx, 0, 0.7f, 0, 0.4f);
- } else {
- if ([edge bend] % 45 == 0) CGContextSetRGBStrokeColor(ctx, 1, 0, 1, 0.6f);
- else CGContextSetRGBStrokeColor(ctx, 0, 0, 1, 0.4f);
- }
-
- CGContextMoveToPoint(ctx, source.x, source.y);
- CGContextAddLineToPoint(ctx, cp1.x, cp1.y);
- CGContextStrokePath(ctx);
-
- CGContextAddEllipseInRect(ctx, ctrl1);
- CGContextDrawPath(ctx, kCGPathFillStroke);
-
-
- // draw a line from target vertex to second handle
- if ([edge bendMode] == EdgeBendModeInOut) {
- if ([edge inAngle] % 45 == 0) CGContextSetRGBStrokeColor(ctx, 1, 0, 1, 0.6f);
- else CGContextSetRGBStrokeColor(ctx, 0, 0.7f, 0, 0.4f);
- } else {
- if ([edge bend] % 45 == 0) CGContextSetRGBStrokeColor(ctx, 1, 0, 1, 0.6f);
- else CGContextSetRGBStrokeColor(ctx, 0, 0, 1, 0.4f);
- }
-
- CGContextMoveToPoint(ctx, target.x, target.y);
- CGContextAddLineToPoint(ctx, cp2.x, cp2.y);
- CGContextStrokePath(ctx);
-
- CGContextAddEllipseInRect(ctx, ctrl2);
- CGContextDrawPath(ctx, kCGPathFillStroke);
-
- CGContextRestoreGState(ctx);
-}
-
-+ (float)handleRadius { return 4.0f; }
-
-@end
diff --git a/tikzit-old/src/osx/EdgeStyle+Coder.h b/tikzit-old/src/osx/EdgeStyle+Coder.h
deleted file mode 100644
index e35c18f..0000000
--- a/tikzit-old/src/osx/EdgeStyle+Coder.h
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// EdgeStyle+Coder.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "EdgeStyle.h"
-
-@interface EdgeStyle (Coder)
-- (id)initWithCoder:(NSCoder*)coder;
-- (void)encodeWithCoder:(NSCoder*)coder;
-@end
diff --git a/tikzit-old/src/osx/EdgeStyle+Coder.m b/tikzit-old/src/osx/EdgeStyle+Coder.m
deleted file mode 100644
index 039344d..0000000
--- a/tikzit-old/src/osx/EdgeStyle+Coder.m
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// EdgeStyle+Coder.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "EdgeStyle+Coder.h"
-
-@implementation EdgeStyle (Coder)
-
-- (id)initWithCoder:(NSCoder*)coder {
- if (!(self = [super init])) return nil;
-
- name = [coder decodeObjectForKey:@"name"];
- category = [coder decodeObjectForKey:@"category"];
- headStyle = [coder decodeIntForKey:@"headStyle"];
- tailStyle = [coder decodeIntForKey:@"tailStyle"];
- decorationStyle = [coder decodeIntForKey:@"decorationStyle"];
- thickness = [coder decodeFloatForKey:@"thickness"];
-
- return self;
-}
-
-- (void)encodeWithCoder:(NSCoder*)coder {
- [coder encodeObject:name forKey:@"name"];
- [coder encodeObject:category forKey:@"category"];
- [coder encodeInt:headStyle forKey:@"headStyle"];
- [coder encodeInt:tailStyle forKey:@"tailStyle"];
- [coder encodeInt:decorationStyle forKey:@"decorationStyle"];
- [coder encodeFloat:thickness forKey:@"thickness"];
-}
-
-@end
diff --git a/tikzit-old/src/osx/Graph+Coder.h b/tikzit-old/src/osx/Graph+Coder.h
deleted file mode 100644
index 1404fc2..0000000
--- a/tikzit-old/src/osx/Graph+Coder.h
+++ /dev/null
@@ -1,17 +0,0 @@
-//
-// Graph+Coder.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 27/04/2010.
-// Copyright 2010 __MyCompanyName__. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "Graph.h"
-
-@interface Graph (Coder)
-
-- (id)initWithCoder:(NSCoder*)coder;
-- (void)encodeWithCoder:(NSCoder*)coder;
-
-@end
diff --git a/tikzit-old/src/osx/Graph+Coder.m b/tikzit-old/src/osx/Graph+Coder.m
deleted file mode 100644
index 7d3787e..0000000
--- a/tikzit-old/src/osx/Graph+Coder.m
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// Graph+Coder.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 27/04/2010.
-// Copyright 2010 __MyCompanyName__. All rights reserved.
-//
-
-#import "Graph+Coder.h"
-#import "TikzGraphAssembler.h"
-
-@implementation Graph(Coder)
-
-- (id)initWithCoder:(NSCoder*)coder {
- NSString *tikz = [coder decodeObject];
- [TikzGraphAssembler parseTikz:tikz forGraph:self];
- return self;
-}
-
-- (void)encodeWithCoder:(NSCoder*)coder {
- [coder encodeObject:[self tikz]];
-}
-
-@end
diff --git a/tikzit-old/src/osx/GraphicsView.h b/tikzit-old/src/osx/GraphicsView.h
deleted file mode 100644
index 329b1e5..0000000
--- a/tikzit-old/src/osx/GraphicsView.h
+++ /dev/null
@@ -1,129 +0,0 @@
-//
-// GraphicsView.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/CoreAnimation.h>
-#import "PickSupport.h"
-#import "Grid.h"
-#import "Transformer.h"
-#import "Graph.h"
-#import "NodeStyle.h"
-#import "StylePaletteController.h"
-#import "ToolPaletteController.h"
-#import "SelectBoxLayer.h"
-
-// mouse modes, corresponding to different tools. format: (tool)[sub-mode]Mode
-typedef enum {
- SelectMode = 0x10,
- SelectBoxMode = 0x11,
- SelectMoveMode = 0x12,
- SelectEdgeBendMode = 0x14,
-
- NodeMode = 0x20,
-
- EdgeMode = 0x40,
- EdgeDragMode = 0x41,
-
- CropMode = 0x80,
- CropDragMode = 0x81
-} MouseMode;
-
-@class TikzSourceController;
-
-@interface GraphicsView : NSView {
- BOOL enabled;
-
- IBOutlet NSApplication *application;
- StylePaletteController *stylePaletteController;
- ToolPaletteController *toolPaletteController;
-
- BOOL frameMoveMode;
-
- Graph *graph;
- NSString *graphTikzOnMouseDown;
- PickSupport *pickSupport;
- //NSMapTable *nodeSelectionLayers;
- NSMapTable *edgeControlLayers;
- NSMapTable *nodeLayers;
- NSPoint dragOrigin;
- NSPoint dragTarget;
- NSPoint oldTransformerOrigin;
- NSPoint oldMainOrigin;
- NSRect oldBounds;
- //NSRect selectionBox;
- Transformer *transformer;
-
- CALayer *mainLayer;
- CALayer *gridLayer;
- CALayer *graphLayer;
- CALayer *hudLayer;
- SelectBoxLayer *selectionLayer;
-
- MouseMode mouseMode;
- Node *leaderNode;
- Grid *grid;
-
- Edge *modifyEdge;
- BOOL firstControlPoint;
-
- int bboxLeftRight;
- int bboxBottomTop;
-
- NSUndoManager *documentUndoManager;
- NSPoint startPoint;
-
- TikzSourceController *tikzSourceController;
-}
-
-@property BOOL enabled;
-@property (weak) Graph *graph;
-@property IBOutlet TikzSourceController *tikzSourceController;
-@property (readonly) Transformer *transformer;
-@property (readonly) PickSupport *pickSupport;
-
-- (void)setDocumentUndoManager:(NSUndoManager*)um;
-- (void)applyStyleToSelectedNodes:(NodeStyle*)style;
-- (void)applyStyleToSelectedEdges:(EdgeStyle*)style;
-
-- (void)updateMouseMode;
-- (void)refreshLayers;
-
-//- (void)registerUndo:(GraphChange *)change withActionName:(NSString*)name;
-- (void)registerUndo:(NSString*)oldTikz withActionName:(NSString*)name;
-//- (void)undoGraphChange:(GraphChange *)change;
-- (void)undoGraphChange:(NSString*)oldTikz;
-- (void)postGraphChange;
-- (void)postSelectionChange;
-
-- (void)deselectAll:(id)sender;
-- (void)selectAll:(id)sender;
-- (void)cut:(id)sender;
-- (void)copy:(id)sender;
-- (void)paste:(id)sender;
-- (void)delete:(id)sender;
-- (void)bringForward:(id)sender;
-- (void)flipHorizonal:(id)sender;
-- (void)flipVertical:(id)sender;
-- (void)reverseEdgeDirection:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/GraphicsView.m b/tikzit-old/src/osx/GraphicsView.m
deleted file mode 100644
index efa7ecb..0000000
--- a/tikzit-old/src/osx/GraphicsView.m
+++ /dev/null
@@ -1,1216 +0,0 @@
-//
-// GraphicsView.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "GraphicsView.h"
-#import "util.h"
-#import "CALayer+DrawLabel.h"
-
-#import "NodeSelectionLayer.h"
-#import "NodeLayer.h"
-#import "EdgeControlLayer.h"
-#import "AppDelegate.h"
-#import "TikzGraphAssembler.h"
-#import "TikzSourceController.h"
-
-@interface GraphicsView (Private)
-- (void)setupLayers;
-- (void)addNodeLayers:(Node*)n;
-- (void)addEdgeLayers:(Edge*)e;
-- (void)removeNodeLayers:(Node*)n;
-- (void)resetMainOrigin;
-- (void)setMainOrigin:(NSPoint)o;
-@end
-
-static CGColorRef cgGrayColor, cgWhiteColor, cgClearColor = nil;
-
-
-@implementation GraphicsView
-
-@synthesize enabled, transformer, pickSupport, tikzSourceController;
-
-- (void)postGraphChange {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"GraphChanged"
- object:self];
- [self postSelectionChange];
-}
-
-- (void)postSelectionChange {
- [[NSNotificationCenter defaultCenter] postNotificationName:@"SelectionChanged"
- object:self];
-}
-
-- (id)initWithFrame:(NSRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- if (cgClearColor == nil) {
- cgClearColor = CGColorGetConstantColor(kCGColorClear);
- cgGrayColor = CGColorCreateGenericGray(0.5f, 0.5f);
- cgWhiteColor = CGColorCreateGenericRGB(1, 1, 1, 1);
- }
-
- transformer = [[Transformer alloc] init];
- mouseMode = SelectMode;
- grid = [Grid gridWithSpacing:1.0f
- subdivisions:4
- transformer:transformer];
- [grid setSize:NSSizeFromCGSize([gridLayer bounds].size)];
- [transformer setScale:PIXELS_PER_UNIT];
-
- [self setupLayers];
-
- leaderNode = nil;
- pickSupport = [[PickSupport alloc] init];
- frameMoveMode = NO;
-
- enabled = YES;
- [self setGraph:[Graph graph]];
- }
- return self;
-}
-
-- (void)awakeFromNib {
- AppDelegate *del = [application delegate];
- stylePaletteController = [del stylePaletteController];
- toolPaletteController = [del toolPaletteController];
- [self refreshLayers];
- [self postGraphChange];
-}
-
-- (void)setupLayers {
- mainLayer = [CALayer layer];
- [mainLayer setBackgroundColor:cgWhiteColor];
- [mainLayer setFrame:CGRectIntegral(NSRectToCGRect([self bounds]))];
- [mainLayer setOpacity:1.0f];
- [self setLayer:mainLayer];
- [self resetMainOrigin];
-
- gridLayer = [CALayer layer];
- [gridLayer setDelegate:grid];
- [gridLayer setOpacity:0.3f];
- [mainLayer addSublayer:gridLayer];
-
- graphLayer = [CALayer layer];
- [graphLayer setDelegate:self];
- [mainLayer addSublayer:graphLayer];
-
- hudLayer = [CALayer layer];
- [mainLayer addSublayer:hudLayer];
-
- selectionLayer = [SelectBoxLayer layer];
- [mainLayer addSublayer:selectionLayer];
-
- [transformer setOrigin:NSMakePoint(NSMidX([self bounds]),NSMidY([self bounds]))];
- oldBounds = [self bounds];
- [self refreshLayers];
-}
-
-// Lion resume feature
-//- (void)encodeRestorableStateWithCoder:(NSCoder*)coder {
-// NSLog(@"got encode request");
-//}
-//- (void)restoreStateWithCoder:(NSCoder*)coder {
-// NSLog(@"got decode request");
-//}
-
-- (void)registerUndo:(NSString*)oldTikz withActionName:(NSString*)nm {
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(undoGraphChange:)
- object:oldTikz];
- [documentUndoManager setActionName:nm];
-}
-
-- (void)revertToTikz:(NSString*)tikz {
- [tikzSourceController setTikz:tikz];
- [tikzSourceController tryParseTikz];
- [self refreshLayers];
- [self postGraphChange];
-}
-
-
-- (void)undoGraphChange:(NSString*)oldTikz {
- NSString *currentTikz = [graph tikz];
- [self revertToTikz:oldTikz];
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(undoGraphChange:)
- object:currentTikz];
-}
-
-- (void)setGraph:(Graph*)gr {
- graph = gr;
-
- NSEnumerator *e;
- CALayer *layer;
-
- e = [edgeControlLayers objectEnumerator];
- while (layer = [e nextObject]) [layer removeFromSuperlayer];
- edgeControlLayers = [NSMapTable mapTableWithStrongToStrongObjects];
-
-
- e = [nodeLayers objectEnumerator];
- while (layer = [e nextObject]) [layer removeFromSuperlayer];
- nodeLayers = [NSMapTable mapTableWithStrongToStrongObjects];
-
- for (Node *n in [graph nodes]) {
- [n attachStyleFromTable:[stylePaletteController nodeStyles]];
- [self addNodeLayers:n];
- }
-
- for (Edge *e in [graph edges]) {
- [e setAttributesFromData];
- [e attachStyleFromTable:[stylePaletteController edgeStyles]];
- [self addEdgeLayers:e];
- }
-}
-
-- (Graph*)graph { return graph; }
-
-- (void)setMainOrigin:(NSPoint)o {
- o.x = round(o.x);
- o.y = round(o.y);
- CGRect rect = [mainLayer frame];
- rect.origin = NSPointToCGPoint(o);
- [mainLayer setFrame:rect];
-}
-
-- (void)resetMainOrigin {
- NSRect bds = [self bounds];
- bds.origin.x -= bds.size.width;
- bds.origin.y -= bds.size.height;
- bds.size.width *= 3;
- bds.size.height *= 3;
- [mainLayer setFrame:NSRectToCGRect([self bounds])];
-}
-
-- (void)refreshLayers {
- [gridLayer setFrame:[mainLayer frame]];
- [graphLayer setFrame:[mainLayer frame]];
- [hudLayer setFrame:[mainLayer frame]];
- [selectionLayer setFrame:[mainLayer frame]];
-
- if (enabled) {
- [hudLayer setBackgroundColor:cgClearColor];
- } else {
- [hudLayer setBackgroundColor:cgGrayColor];
- }
-
- [grid setSize:NSSizeFromCGSize([gridLayer bounds].size)];
- [gridLayer setNeedsDisplay];
- [graphLayer setNeedsDisplay];
- [hudLayer setNeedsDisplay];
-
- NSEnumerator *e = [edgeControlLayers objectEnumerator];
- CALayer *layer;
- while (layer = [e nextObject]) {
- [layer setFrame:[graphLayer frame]];
- [layer setNeedsDisplay];
- }
-}
-
-
-- (void)viewDidEndLiveResize {
- [super viewDidEndLiveResize];
- NSPoint o = [transformer origin];
- o.x += round(([self bounds].size.width - oldBounds.size.width)/2.0f);
- o.y += round(([self bounds].size.height - oldBounds.size.height)/2.0f);
- [transformer setOrigin:o];
- oldBounds = [self bounds];
- [self refreshLayers];
-}
-
-- (void)applyStyleToSelectedNodes:(NodeStyle*)style {
- NSString *oldTikz = [graph tikz];
-
- for (Node *n in [pickSupport selectedNodes]) {
- [n setStyle:style];
- [[nodeLayers objectForKey:n] setNeedsDisplay];
- }
-
- [self registerUndo:oldTikz withActionName:@"Apply Style to Nodes"];
- [self refreshLayers];
- [self postGraphChange];
-}
-
-- (void)applyStyleToSelectedEdges:(EdgeStyle*)style {
- NSString *oldTikz = [graph tikz];
-
- for (Edge *e in [pickSupport selectedEdges]) {
- [e setStyle:style];
- }
-
- [self registerUndo:oldTikz withActionName:@"Apply Style to Edges"];
- [self refreshLayers];
- [self postGraphChange];
-}
-
-- (void)addNodeLayers:(Node*)n {
- // add a node to the graph
- [graph addNode:n];
-
- NSPoint pt = [transformer toScreen:[n point]];
-
- // add a node layer
- NodeLayer *nl = [[NodeLayer alloc] initWithNode:n transformer:transformer];
- [nl setCenter:pt];
- [nodeLayers setObject:nl forKey:n];
- [graphLayer addSublayer:nl];
- [nl setNeedsDisplay];
-}
-
-- (void)removeNodeLayers:(Node*)n {
- [[nodeLayers objectForKey:n] removeFromSuperlayer];
- [nodeLayers removeObjectForKey:n];
-}
-
-- (void)addEdgeLayers:(Edge *)e {
- [graph addEdge:e];
- EdgeControlLayer *ecl = [[EdgeControlLayer alloc] initWithEdge:e andTransformer:transformer];
- [edgeControlLayers setObject:ecl forKey:e];
- [ecl setFrame:CGRectMake(10, 10, 100, 100)];
- [hudLayer addSublayer:ecl];
- [ecl setNeedsDisplay];
-}
-
-- (void)removeEdgeLayers:(Edge*)e {
- [[edgeControlLayers objectForKey:e] removeFromSuperlayer];
- [edgeControlLayers removeObjectForKey:e];
- [self refreshLayers];
-}
-
-- (BOOL)circleWithCenter:(NSPoint)center andRadius:(float)radius containsPoint:(NSPoint)p {
- float dx = center.x - p.x;
- float dy = center.y - p.y;
- return (dx*dx + dy*dy) <= radius*radius;
-}
-
-- (BOOL)node:(Node*)node containsPoint:(NSPoint)p {
- NodeLayer *nl = [nodeLayers objectForKey:node];
- return [nl nodeContainsPoint:p];
-}
-
-- (BOOL)edge:(Edge*)edge containsPoint:(NSPoint)p {
-// NSPoint center = [transformer toScreen:edge.mid];
-// float dx = center.x - p.x;
-// float dy = center.y - p.y;
-// float radius = 5.0f; // tolerence for clicks
-// return (dx*dx + dy*dy) <= radius*radius;
-
- CGContextRef ctx = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
-
- // Save the graphics state before doing the hit detection.
- CGContextSaveGState(ctx);
-
- NSPoint src = [transformer toScreen:[edge tail]];
- NSPoint targ = [transformer toScreen:[edge head]];
- NSPoint cp1 = [transformer toScreen:[edge cp1]];
- NSPoint cp2 = [transformer toScreen:[edge cp2]];
-
- CGContextSetLineWidth(ctx, 8.0f);
-
- CGContextMoveToPoint(ctx, src.x, src.y);
- CGContextAddCurveToPoint(ctx, cp1.x, cp1.y, cp2.x, cp2.y, targ.x, targ.y);
-
- BOOL containsPoint = CGContextPathContainsPoint(ctx, NSPointToCGPoint(p), kCGPathStroke);
-
- CGContextSetRGBStrokeColor(ctx, 0, 0, 0, 0);
-
- CGContextStrokePath(ctx);
- //CGContextFlush(ctx);
- CGContextRestoreGState(ctx);
-
- return containsPoint;
-}
-
-- (void)shiftNodes:(NSSet*)set from:(NSPoint)source to:(NSPoint)dest {
- float dx = dest.x - source.x;
- float dy = dest.y - source.y;
-
- for (Node *n in set) {
- NSPoint p = [transformer toScreen:[n point]];
- p = [grid snapScreenPoint:NSMakePoint(p.x+dx, p.y+dy)];
- [n setPoint:[transformer fromScreen:p]];
- }
-}
-
-
-- (void)mouseDown:(NSEvent*)theEvent {
- if (!enabled) return;
-
- [self updateMouseMode];
-
- dragOrigin = [self convertPoint:[theEvent locationInWindow] fromView:nil];
- dragTarget = dragOrigin;
-
- graphTikzOnMouseDown = [graph tikz];
-
- if ([theEvent modifierFlags] & NSCommandKeyMask) {
- oldTransformerOrigin = [transformer origin];
- oldMainOrigin = [self frame].origin;
- frameMoveMode = YES;
- return;
- }
-
- if (mouseMode == SelectMode) {
- [selectionLayer setActive:YES];
- [selectionLayer setSelectBox:NSRectAroundPoints(dragOrigin, dragOrigin)];
- [selectionLayer setNeedsDisplay];
-
- modifyEdge = nil;
- NSPoint cp1, cp2;
- for (Edge *e in [pickSupport selectedEdges]) {
- cp1 = [transformer toScreen:[e cp1]];
- cp2 = [transformer toScreen:[e cp2]];
- if ([self circleWithCenter:cp1
- andRadius:[EdgeControlLayer handleRadius]
- containsPoint:dragOrigin])
- {
- mouseMode = SelectEdgeBendMode;
- modifyEdge = e;
- firstControlPoint = YES;
- break;
- } else if ([self circleWithCenter:cp2
- andRadius:[EdgeControlLayer handleRadius]
- containsPoint:dragOrigin])
- {
- mouseMode = SelectEdgeBendMode;
- modifyEdge = e;
- firstControlPoint = NO;
- break;
- }
- }
-
- if (modifyEdge == nil) { // skip all the rest if we're modifying an edge
-
- leaderNode = nil;
-
- // in first pass, try to find a leader node, under the mouse
- for (Node* n in [graph nodes]) {
- if ([self node:n containsPoint:dragOrigin]) {
- leaderNode = n;
- [gridLayer setOpacity:1.0f];
- break;
- }
- }
-
- // if we found one, deselect the others (if appropriate) and go to move mode
- if (leaderNode != nil) {
- startPoint = [leaderNode point];
-
- // if we select a node, we should always deselect all edges:
- for (Edge *e in [graph edges]) [[edgeControlLayers objectForKey:e] deselect];
- [pickSupport deselectAllEdges];
-
- BOOL shouldDeselect =
- !([theEvent modifierFlags] & NSShiftKeyMask)
- && ![pickSupport isNodeSelected:leaderNode];
- for (Node *n in [graph nodes]) {
- if (n != leaderNode && shouldDeselect) {
- [pickSupport deselectNode:n];
- [[[nodeLayers objectForKey:n] selection] deselect];
- }
- }
-
- // ensure the leader node is actually selected
- if (![pickSupport isNodeSelected:leaderNode]) {
- [pickSupport selectNode:leaderNode];
- [[[nodeLayers objectForKey:leaderNode] selection] select];
- }
-
-
- // put us in move mode
- mouseMode = SelectMoveMode;
- } else {
- mouseMode = SelectBoxMode;
-
- // if we didn't select a node, start hunting for an edge to select
- BOOL shouldDeselect = !([theEvent modifierFlags] & NSShiftKeyMask);
-
- if (shouldDeselect) {
- [pickSupport deselectAllEdges];
- for (Edge *e in graph.edges) [[edgeControlLayers objectForKey:e] deselect];
- }
-
- for (Edge* e in [graph edges]) {
- // find the first node under the pointer, select it, show its controls
- // and deselect all others if shift isn't down
- if ([self edge:e containsPoint:dragOrigin]) {
- for (Node *n in [pickSupport selectedNodes]) [[[nodeLayers objectForKey:n] selection] deselect];
-
- [pickSupport deselectAllNodes];
- [pickSupport selectEdge:e];
- [[edgeControlLayers objectForKey:e] select];
- break;
- }
- } // end for e in [graph edges]
- } // end if leaderNode == nil
- } // end if modifyEdge == nil
-
- } else if (mouseMode == NodeMode) {
- // do nothing...
- } else if (mouseMode == EdgeMode) {
- for (Node *n in [graph nodes]) {
- if ([self node:n containsPoint:dragOrigin]) {
- [[[nodeLayers objectForKey:n] selection] highlight];
- }
- }
- mouseMode = EdgeDragMode;
- } else if (mouseMode == CropMode) {
- if ([graph hasBoundingBox]) {
- float fudge = 3;
-
- NSRect bb = [graph boundingBox];
- NSPoint bl = [transformer toScreen:bb.origin];
- NSPoint tr = [transformer
- toScreen:NSMakePoint(bb.origin.x+bb.size.width,
- bb.origin.y+bb.size.height)];
- if (dragOrigin.x > bl.x-fudge && dragOrigin.x < tr.x+fudge &&
- dragOrigin.y > tr.y-fudge && dragOrigin.y < tr.y+fudge)
- {
- bboxBottomTop = 1;
- } else if (dragOrigin.x > bl.x-fudge && dragOrigin.x < tr.x+fudge &&
- dragOrigin.y > bl.y-fudge && dragOrigin.y < bl.y+fudge)
- {
- bboxBottomTop = -1;
- } else {
- bboxBottomTop = 0;
- }
-
- if (dragOrigin.y > bl.y-fudge && dragOrigin.y < tr.y+fudge &&
- dragOrigin.x > tr.x-fudge && dragOrigin.x < tr.x+fudge)
- {
- bboxLeftRight = 1;
- } else if (dragOrigin.y > bl.y-fudge && dragOrigin.y < tr.y+fudge &&
- dragOrigin.x > bl.x-fudge && dragOrigin.x < bl.x+fudge)
- {
- bboxLeftRight = -1;
- } else {
- bboxLeftRight = 0;
- }
-
- if (bboxBottomTop != 0 || bboxLeftRight != 0) {
- mouseMode = CropDragMode;
- }
- }
- } else {
- printf("WARNING: MOUSE DOWN IN INVALID MODE.\n");
- }
-
- [self refreshLayers];
-}
-
-- (void)mouseDragged:(NSEvent *)theEvent {
- if (!enabled) return;
- dragTarget = [self convertPoint:[theEvent locationInWindow] fromView:nil];
-
- if (frameMoveMode) {
- NSPoint newTransOrigin, newMainOrigin;
- NSPoint diff = NSMakePoint(dragTarget.x - dragOrigin.x, dragTarget.y - dragOrigin.y);
- newTransOrigin.x = oldTransformerOrigin.x + diff.x;
- newTransOrigin.y = oldTransformerOrigin.y + diff.y;
- newMainOrigin.x = oldMainOrigin.x + diff.x;
- newMainOrigin.y = oldMainOrigin.y + diff.y;
-
- [CATransaction begin];
- [CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
- [self setMainOrigin:newMainOrigin];
- [CATransaction commit];
-
- [transformer setOrigin:newTransOrigin];
- return;
- }
-
- if (mouseMode == SelectBoxMode) {
- [selectionLayer setSelectBox:NSRectAroundPoints(dragOrigin, dragTarget)];
- [selectionLayer setNeedsDisplay];
-
- for (Node* n in [graph nodes]) {
- if (NSPointInRect([transformer toScreen:[n point]], [selectionLayer selectBox])) {
- [[[nodeLayers objectForKey:n] selection] highlight];
- } else if (!([theEvent modifierFlags] & NSShiftKeyMask)) {
- [[[nodeLayers objectForKey:n] selection] unhighlight];
- }
- }
- } else if (mouseMode == SelectMoveMode) {
- if (leaderNode != nil) {
- [self shiftNodes:[pickSupport selectedNodes]
- from:[transformer toScreen:[leaderNode point]]
- to:dragTarget];
- } else {
- printf("WARNING: LEADER NODE SHOULD NOT BE NIL.\n");
- }
-
- [self refreshLayers];
- } else if (mouseMode == SelectEdgeBendMode) {
- NSPoint src = [transformer toScreen:[[modifyEdge source] point]];
- NSPoint targ = [transformer toScreen:[[modifyEdge target] point]];
- float dx1 = targ.x - src.x;
- float dy1 = targ.y - src.y;
- float dx2, dy2;
- if (firstControlPoint) {
- dx2 = dragTarget.x - src.x;
- dy2 = dragTarget.y - src.y;
- } else {
- dx2 = dragTarget.x - targ.x;
- dy2 = dragTarget.y - targ.y;
- }
- float base_dist = sqrt(dx1*dx1 + dy1*dy1);
- float handle_dist = sqrt(dx2*dx2 + dy2*dy2);
- float wcourseness = 0.1f;
-
- if (![modifyEdge isSelfLoop]) {
- if (base_dist != 0) {
- [modifyEdge setWeight:roundToNearest(wcourseness, handle_dist/base_dist)];
- //round(handle_dist / (base_dist*wcourseness)) * wcourseness;
- } else {
- [modifyEdge setWeight:
- roundToNearest(wcourseness, [transformer scaleFromScreen:handle_dist])];
- }
- }
-
-
- float control_angle = good_atan(dx2, dy2);
-
- int bcourseness = 15;
-
- if ([modifyEdge bendMode] == EdgeBendModeBasic) {
- float bnd;
- float base_angle = good_atan(dx1, dy1);
- if (firstControlPoint) {
- bnd = base_angle - control_angle;
- } else {
- bnd = control_angle - base_angle + pi;
- if (bnd > pi) bnd -= 2*pi;
- }
-
- [modifyEdge setBend:round(bnd * (180.0f / pi) *
- (1.0f / (float)bcourseness)) *
- bcourseness];
- } else {
- int bnd = round(control_angle * (180.0f / pi) *
- (1.0f / (float)bcourseness)) *
- bcourseness;
- if (firstControlPoint) {
- if ([theEvent modifierFlags] & NSAlternateKeyMask) {
- if ([modifyEdge isSelfLoop]) {
- [modifyEdge setInAngle:[modifyEdge inAngle] +
- (bnd - [modifyEdge outAngle])];
- } else {
- [modifyEdge setInAngle:[modifyEdge inAngle] -
- (bnd - [modifyEdge outAngle])];
- }
- }
-
- [modifyEdge setOutAngle:bnd];
- } else {
- if (theEvent.modifierFlags & NSAlternateKeyMask) {
- if ([modifyEdge isSelfLoop]) {
- [modifyEdge setOutAngle:[modifyEdge outAngle] +
- (bnd - [modifyEdge inAngle])];
- } else {
- [modifyEdge setOutAngle:[modifyEdge outAngle] -
- (bnd - [modifyEdge inAngle])];
- }
- }
-
- [modifyEdge setInAngle:bnd];
- }
- }
-
- [self refreshLayers];
- } else if (mouseMode == NodeMode) {
- // do nothing...
- } else if (mouseMode == EdgeDragMode) {
- for (Node *n in [graph nodes]) {
- if ([self node:n containsPoint:dragOrigin] ||
- [self node:n containsPoint:dragTarget])
- {
- [[[nodeLayers objectForKey:n] selection] highlight];
- } else {
- [[[nodeLayers objectForKey:n] selection] unhighlight];
- }
- }
-
- [self refreshLayers];
- } else if (mouseMode == CropMode || mouseMode == CropDragMode) {
- NSPoint p1 = [transformer fromScreen:[grid snapScreenPoint:dragOrigin]];
- NSPoint p2 = [transformer fromScreen:[grid snapScreenPoint:dragTarget]];
-
- NSRect bbox;
- if (mouseMode == CropDragMode) {
- bbox = [graph boundingBox];
- if (bboxBottomTop == -1) {
- float dy = p2.y - bbox.origin.y;
- bbox.origin.y += dy;
- bbox.size.height -= dy;
- } else if (bboxBottomTop == 1) {
- float dy = p2.y - (bbox.origin.y + bbox.size.height);
- bbox.size.height += dy;
- }
-
- if (bboxLeftRight == -1) {
- float dx = p2.x - bbox.origin.x;
- bbox.origin.x += dx;
- bbox.size.width -= dx;
- } else if (bboxLeftRight == 1) {
- float dx = p2.x - (bbox.origin.x + bbox.size.width);
- bbox.size.width += dx;
- }
- } else {
- bbox = NSRectAroundPoints(p1, p2);
- }
-
- [graph setBoundingBox:bbox];
- [self postGraphChange];
- [self refreshLayers];
- } else {
- printf("WARNING: MOUSE DRAGGED IN INVALID MODE.\n");
- }
-}
-
-- (void)mouseUp:(NSEvent*)theEvent {
- if (!enabled) return;
-
- if (frameMoveMode) {
- [CATransaction begin];
- [CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
- [self resetMainOrigin];
- [self refreshLayers];
- [CATransaction commit];
- frameMoveMode = NO;
- return;
- }
-
- dragTarget = [self convertPoint:[theEvent locationInWindow] fromView:nil];
-
- if ((mouseMode & SelectMode) == SelectMode && [theEvent clickCount] == 2) {
- for (Edge *e in [graph edges]) {
- if ([self edge:e containsPoint:dragTarget]) {
- if ([e bendMode] == EdgeBendModeBasic) {
- [e convertBendToAngles];
- [e setBendMode:EdgeBendModeInOut];
- } else {
- [e convertAnglesToBend];
- [e setBendMode:EdgeBendModeBasic];
- }
-
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Change Edge Mode"];
- [self postGraphChange];
- break;
- }
- }
- }
-
- if (mouseMode == SelectBoxMode) {
- for (Node* n in [graph nodes]) {
- if (NSPointInRect([transformer toScreen:[n point]], [selectionLayer selectBox])) {
- [pickSupport selectNode:n];
- [[[nodeLayers objectForKey:n] selection] select];
- } else if (!([theEvent modifierFlags] & NSShiftKeyMask)) {
- [pickSupport deselectNode:n];
- [[[nodeLayers objectForKey:n] selection] deselect];
- }
- }
-
- [selectionLayer setActive:NO];
- [selectionLayer setNeedsDisplay];
- [self postSelectionChange];
-
- mouseMode = SelectMode;
- } else if (mouseMode == SelectMoveMode) {
- [gridLayer setOpacity:0.3f];
-
- if (dragTarget.x != dragOrigin.x || dragTarget.y != dragOrigin.y) {
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Shift Nodes"];
- }
-
- leaderNode = nil;
-
- [self postGraphChange];
- mouseMode = SelectMode;
- } else if (mouseMode == SelectEdgeBendMode) {
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Adjust Edge"];
- [self postGraphChange];
- mouseMode = SelectMode;
- modifyEdge = nil;
- } else if (mouseMode == NodeMode) {
- NSPoint coords = [transformer fromScreen:[grid snapScreenPoint:dragTarget]];
- Node *n = [Node nodeWithPoint:coords];
- [n setStyle:[stylePaletteController activeNodeStyle]];
- [graph addNode:n];
-
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Add Node"];
-
- [self addNodeLayers:n];
- [self postGraphChange];
- } else if (mouseMode == EdgeDragMode) {
- Node *src = nil;
- Node *targ = nil;
- BOOL found = NO; // don't break the loop until everything is unhighlighted
- for (Node *n in [graph nodes]) {
- [[[nodeLayers objectForKey:n] selection] unhighlight];
- if (!found) {
- if ([self node:n containsPoint:dragOrigin]) src = n;
- if ([self node:n containsPoint:dragTarget]) targ = n;
- if (src != nil && targ != nil) {
- Edge *e = [Edge edgeWithSource:src andTarget:targ];
- [e setStyle:[stylePaletteController activeEdgeStyle]];
- [graph addEdge:e];
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Add Edge"];
- [self addEdgeLayers:e];
- found = YES;
- }
- }
- }
-
- [self postGraphChange];
- mouseMode = EdgeMode;
- } else if (mouseMode == CropMode || mouseMode == CropDragMode) {
- if (dragOrigin.x == dragTarget.x && dragOrigin.y == dragTarget.y) {
- [graph setBoundingBox:NSMakeRect(0, 0, 0, 0)];
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Clear Bounding Box"];
- [self postGraphChange];
- } else {
- [self registerUndo:graphTikzOnMouseDown withActionName:@"Change Bounding Box"];
- }
-
- mouseMode = CropMode;
- } else {
- if (! ([theEvent modifierFlags] & NSCommandKeyMask))
- printf("WARNING: MOUSE UP IN INVALID MODE.\n");
- }
-
- [self refreshLayers];
-}
-
-- (void)drawNode:(Node*)nd onLayer:(CALayer*)layer inContext:(CGContextRef)context {
- NSPoint pt = [transformer toScreen:[nd point]];
-
- NodeLayer *nl = [nodeLayers objectForKey:nd];
- //[nl setStrokeWidth:2.0f];
- [nl setCenter:pt andAnimateWhen:(mouseMode != SelectMoveMode)];
-}
-
-- (void)drawEdge:(Edge*)e onLayer:(CALayer*)layer inContext:(CGContextRef)context {
- CGContextSaveGState(context);
- NSPoint src = [transformer toScreen:[e tail]];
- NSPoint targ = [transformer toScreen:[e head]];
- NSPoint cp1 = [transformer toScreen:[e cp1]];
- NSPoint cp2 = [transformer toScreen:[e cp2]];
-
- // all nodes have the same radius. this will need to be fixed
- float sradius = 0;//(slayer.ghost) ? 0 : slayer.radius;
- float tradius = 0;//(tlayer.ghost) ? 0 : tlayer.radius;
-
- float sdx = cp1.x - src.x;
- float sdy = cp1.y - src.y;
- float sdist = sqrt(sdx*sdx + sdy*sdy);
- float sshortx = (sdist==0) ? 0 : sdx/sdist * sradius;
- float sshorty = (sdist==0) ? 0 : sdy/sdist * sradius;
-
- float tdx = cp2.x - targ.x;
- float tdy = cp2.y - targ.y;
- float tdist = sqrt(tdx*tdx + tdy*tdy);
- float tshortx = (tdist==0) ? 0 : tdx/tdist * tradius;
- float tshorty = (tdist==0) ? 0 : tdy/tdist * tradius;
-
- CGContextMoveToPoint(context, src.x+sshortx, src.y+sshorty);
- CGContextAddCurveToPoint(context, cp1.x, cp1.y, cp2.x, cp2.y, targ.x+tshortx, targ.y+tshorty);
-
-
- float lineWidth = [transformer scaleToScreen:0.04f];
-
- CGContextSetLineWidth(context, lineWidth);
- CGContextSetRGBStrokeColor(context, 0, 0, 0, 1);
- CGContextSetRGBFillColor(context, 0, 0, 0, 1);
- CGContextStrokePath(context);
-
- if ([e style] != nil) {
- NSPoint p1,p2,p3;
-
- // draw edge decoration
- switch ([[e style] decorationStyle]) {
- case ED_None:
- break;
- case ED_Tick:
- p1 = [transformer toScreen:[e leftNormal]];
- p2 = [transformer toScreen:[e rightNormal]];
- CGContextMoveToPoint(context, p1.x, p1.y);
- CGContextAddLineToPoint(context, p2.x, p2.y);
- CGContextStrokePath(context);
- break;
- case ED_Arrow:
- p1 = [transformer toScreen:[e leftNormal]];
- p2 = [transformer toScreen:[e midTan]];
- p3 = [transformer toScreen:[e rightNormal]];
- CGContextMoveToPoint(context, p1.x, p1.y);
- CGContextAddLineToPoint(context, p2.x, p2.y);
- CGContextAddLineToPoint(context, p3.x, p3.y);
- CGContextStrokePath(context);
- break;
- }
-
- // draw arrow head
- switch ([[e style] headStyle]) {
- case AH_None:
- break;
- case AH_Plain:
- p1 = [transformer toScreen:[e leftHeadNormal]];
- p2 = [transformer toScreen:[e head]];
- p3 = [transformer toScreen:[e rightHeadNormal]];
- CGContextMoveToPoint(context, p1.x, p1.y);
- CGContextAddLineToPoint(context, p2.x, p2.y);
- CGContextAddLineToPoint(context, p3.x, p3.y);
- CGContextStrokePath(context);
- break;
- case AH_Latex:
- p1 = [transformer toScreen:[e leftHeadNormal]];
- p2 = [transformer toScreen:[e head]];
- p3 = [transformer toScreen:[e rightHeadNormal]];
- CGContextMoveToPoint(context, p1.x, p1.y);
- CGContextAddLineToPoint(context, p2.x, p2.y);
- CGContextAddLineToPoint(context, p3.x, p3.y);
- CGContextClosePath(context);
- CGContextFillPath(context);
- break;
- }
-
- // draw arrow tail
- switch ([[e style] tailStyle]) {
- case AH_None:
- break;
- case AH_Plain:
- p1 = [transformer toScreen:[e leftTailNormal]];
- p2 = [transformer toScreen:[e tail]];
- p3 = [transformer toScreen:[e rightTailNormal]];
- CGContextMoveToPoint(context, p1.x, p1.y);
- CGContextAddLineToPoint(context, p2.x, p2.y);
- CGContextAddLineToPoint(context, p3.x, p3.y);
- CGContextStrokePath(context);
- break;
- case AH_Latex:
- p1 = [transformer toScreen:[e leftTailNormal]];
- p2 = [transformer toScreen:[e tail]];
- p3 = [transformer toScreen:[e rightTailNormal]];
- CGContextMoveToPoint(context, p1.x, p1.y);
- CGContextAddLineToPoint(context, p2.x, p2.y);
- CGContextAddLineToPoint(context, p3.x, p3.y);
- CGContextClosePath(context);
- CGContextFillPath(context);
- break;
- }
- }
-
-
- CGContextRestoreGState(context);
-
- if ([e hasEdgeNode]) {
- Node *en = [e edgeNode];
- NSPoint mid = [transformer toScreen:[e mid]];
- if (![[en label] isEqual:@""]) {
- [layer drawLabel:[en label]
- atPoint:mid
- inContext:context
- usingTrans:transformer];
- }
- }
-
- EdgeControlLayer *ecl = [edgeControlLayers objectForKey:e];
- [ecl setNeedsDisplay];
-}
-
-
-// draw the graph layer
--(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context {
- for (Edge* e in [graph edges]) [self drawEdge:e onLayer:layer inContext:context];
-
- for (Node* n in [graph nodes]) [self drawNode:n onLayer:layer inContext:context];
-
- if ([graph hasBoundingBox]) {
- CGRect bbox = NSRectToCGRect(NSIntegralRect(
- [transformer rectToScreen:[graph boundingBox]]));
- CGContextSetRGBStrokeColor(context, 1.0f, 0.7f, 0.5f, 1.0f);
- CGContextSetLineWidth(context, 1.0f);
- CGContextSetShouldAntialias(context, NO);
- CGContextStrokeRect(context, bbox);
- CGContextSetShouldAntialias(context, YES);
- }
-
- if (mouseMode == EdgeDragMode) {
- CGContextMoveToPoint(context, dragOrigin.x, dragOrigin.y);
- CGContextAddLineToPoint(context, dragTarget.x, dragTarget.y);
- CGContextSetLineWidth(context, 2);
- CGContextSetRGBStrokeColor(context, 0, 0, 1, 1);
- CGContextStrokePath(context);
- }
-}
-
-// if enabled, suppress the default "bonk" behaviour on key presses
-- (void)keyDown:(NSEvent *)theEvent {
- if (!enabled) [super keyDown:theEvent];
-}
-
-- (void)delete:(id)sender {
- BOOL didDelete = NO;
- NSString *oldTikz = [graph tikz];
-
- if ([[pickSupport selectedNodes] count] != 0) {
- GraphChange *change = [graph removeNodes:[pickSupport selectedNodes]];
- for (Node *n in [change affectedNodes]) [self removeNodeLayers:n];
- for (Edge *e in [change affectedEdges]) [self removeEdgeLayers:e];
-
- [self refreshLayers];
- [self postGraphChange];
- didDelete = YES;
- }
-
- if ([[pickSupport selectedEdges] count] != 0) {
- [graph removeEdges:[pickSupport selectedEdges]];
- for (Edge *e in [pickSupport selectedEdges]) [self removeEdgeLayers:e];
- [self refreshLayers];
- [self postGraphChange];
- didDelete = YES;
- }
-
- [pickSupport deselectAllNodes];
- [pickSupport deselectAllEdges];
-
- if (didDelete) [self registerUndo:oldTikz withActionName:@"Delete Nodes or Edges"];
-}
-
-- (void)keyUp:(NSEvent *)theEvent {
- if (!enabled) return;
-
- id sender = self;
- switch ([theEvent keyCode]) {
- case 51: // delete
- [self delete:sender]; // "self" is the sender
- break;
- case 1: // S
- [toolPaletteController setSelectedTool:TikzToolSelect];
- break;
- case 45: // N
- case 9: // V
- [toolPaletteController setSelectedTool:TikzToolNode];
- break;
- case 14: // E
- [toolPaletteController setSelectedTool:TikzToolEdge];
- //[self updateMouseMode];
- break;
- case 40: // K
- [toolPaletteController setSelectedTool:TikzToolCrop];
- break;
- }
- [self refreshLayers];
-}
-
-
-- (void)deselectAll:(id)sender {
- [pickSupport deselectAllNodes];
- [pickSupport deselectAllEdges];
-
- for (Node *n in [graph nodes]) {
- [[[nodeLayers objectForKey:n] selection] deselect];
- }
-
- for (Edge *e in [graph edges]) {
- [[edgeControlLayers objectForKey:e] deselect];
- }
-
- [self postSelectionChange];
-}
-
-- (void)selectAll:(id)sender {
- [pickSupport selectAllNodes:[NSSet setWithArray:[graph nodes]]];
-
- for (Node *n in [graph nodes]) {
- [[[nodeLayers objectForKey:n] selection] select];
- }
-
- [self postSelectionChange];
-}
-
-
-- (void)updateMouseMode {
- switch (toolPaletteController.selectedTool) {
- case TikzToolSelect:
- mouseMode = SelectMode;
- break;
- case TikzToolNode:
- mouseMode = NodeMode;
- break;
- case TikzToolEdge:
- mouseMode = EdgeMode;
- break;
- case TikzToolCrop:
- mouseMode = CropMode;
- break;
- }
-}
-
-- (void)setDocumentUndoManager:(NSUndoManager *)um {
- documentUndoManager = um;
-}
-
-- (void)copy:(id)sender {
- if ([[pickSupport selectedNodes] count] != 0) {
- Graph *clip = [graph copyOfSubgraphWithNodes:[pickSupport selectedNodes]];
- NSString *tikz = [clip tikz];
- NSData *data = [tikz dataUsingEncoding:NSUTF8StringEncoding];
- //NSLog(@"about to copy: %@", tikz);
- NSPasteboard *cb = [NSPasteboard generalPasteboard];
- [cb declareTypes:[NSArray arrayWithObject:@"tikzpicture"] owner:self];
- [cb setData:data forType:@"tikzpicture"];
- }
-}
-
-- (void)cut:(id)sender {
- if ([[pickSupport selectedNodes] count] != 0) {
- [self copy:sender];
- [self delete:sender];
-
- // otherwise, menu will say "Undo Delete Graph"
- [documentUndoManager setActionName:@"Cut Graph"];
- }
-}
-
-- (void)paste:(id)sender {
- NSPasteboard *cb = [NSPasteboard generalPasteboard];
- NSString *type = [cb availableTypeFromArray:[NSArray arrayWithObject:@"tikzpicture"]];
- if (type) {
- NSData *data = [cb dataForType:type];
- NSString *tikz = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
- //NSLog(@"pasting tikz:\n%@",tikz);
- Graph *clip = [TikzGraphAssembler parseTikz:tikz];
- if (clip) {
- //NSLog(@"tikz pasted:\n%@",tikz);
- NSRect graphBounds = [graph bounds];
- NSRect clipBounds = [clip bounds];
- float dx = graphBounds.origin.x +
- graphBounds.size.width -
- clipBounds.origin.x + 0.5f;
- [clip shiftNodes:[clip nodes] byPoint:NSMakePoint(dx, 0)];
-
- if ([[clip nodes] count] != 0) {
- NSString *oldTikz = [graph tikz];
- [self deselectAll:self];
-
- // select everything from the clipboard
- for (Node *n in [clip nodes]) {
- [n attachStyleFromTable:[stylePaletteController nodeStyles]];
- [self addNodeLayers:n];
- [pickSupport selectNode:n];
- [[[nodeLayers objectForKey:n] selection] select];
- }
-
- for (Edge *e in [clip edges]) {
- [e attachStyleFromTable:[stylePaletteController edgeStyles]];
- [self addEdgeLayers:e];
- }
-
- [graph insertGraph:clip];
-
- [self registerUndo:oldTikz withActionName:@"Paste Graph"];
- [self refreshLayers];
- [self postGraphChange];
- }
- } else {
- NSLog(@"Error: couldn't parse tikz picture from clipboard.");
- }
-
- }
-}
-
-- (void)bringForward:(id)sender {
- NSString *oldTikz = [graph tikz];
- [graph bringNodesForward:[pickSupport selectedNodes]];
- [graph bringEdgesForward:[pickSupport selectedEdges]];
- [self registerUndo:oldTikz withActionName:@"Bring Forward"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (void)sendBackward:(id)sender {
- NSString *oldTikz = [graph tikz];
- [graph sendNodesBackward:[pickSupport selectedNodes]];
- [graph sendEdgesBackward:[pickSupport selectedEdges]];
- [self registerUndo:oldTikz withActionName:@"Send Backward"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (void)bringToFront:(id)sender {
- NSString *oldTikz = [graph tikz];
- [graph bringNodesToFront:[pickSupport selectedNodes]];
- [graph bringEdgesToFront:[pickSupport selectedEdges]];
- [self registerUndo:oldTikz withActionName:@"Bring to Front"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (void)sendToBack:(id)sender {
- NSString *oldTikz = [graph tikz];
- [graph sendNodesToBack:[pickSupport selectedNodes]];
- [graph sendEdgesToBack:[pickSupport selectedEdges]];
- [self registerUndo:oldTikz withActionName:@"Send to Back"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (void)flipHorizonal:(id)sender {
- NSString *oldTikz = [graph tikz];
- [graph flipHorizontalNodes:[pickSupport selectedNodes]];
- [self registerUndo:oldTikz withActionName:@"Flip Horizontal"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (void)flipVertical:(id)sender {
- NSString *oldTikz = [graph tikz];
- [graph flipVerticalNodes:[pickSupport selectedNodes]];
- [self registerUndo:oldTikz withActionName:@"Flip Vertical"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (void)reverseEdgeDirection:(id)sender {
- NSString *oldTikz = [graph tikz];
-
- NSSet *es;
- if ([[pickSupport selectedEdges] count] != 0) {
- es = [pickSupport selectedEdges];
- } else {
- es = [graph incidentEdgesForNodes:[pickSupport selectedNodes]];
- }
-
- for (Edge *e in es) [e reverse];
-
- [self registerUndo:oldTikz withActionName:@"Flip Edge Direction"];
- [self postGraphChange];
- [self refreshLayers];
-}
-
-- (BOOL)acceptsFirstResponder { return YES; }
-- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { return YES; }
-- (BOOL)canBecomeKeyView { return YES; }
-
-
-@end
diff --git a/tikzit-old/src/osx/Grid.h b/tikzit-old/src/osx/Grid.h
deleted file mode 100644
index 76826e2..0000000
--- a/tikzit-old/src/osx/Grid.h
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// Grid.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "Transformer.h"
-
-@interface Grid : NSObject {
- float gridX, gridY;
- //float gridCellX, gridCellY;
- int subdivisions;
- Transformer *transformer;
- NSSize size;
-}
-
-@property NSSize size;
-
-- (id)initWithSpacing:(float)spacing subdivisions:(int)subs transformer:(Transformer*)t;
-+ (Grid*)gridWithSpacing:(float)spacing subdivisions:(int)subs transformer:(Transformer*)t;
-- (NSPoint)snapScreenPoint:(NSPoint)p;
-- (float)gridX;
-- (float)gridY;
-- (int)subdivisions;
-- (void)setSubdivisions:(int)subs;
-
-// Grid can also draw itself on a layer
-- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;
-
-@end
diff --git a/tikzit-old/src/osx/Grid.m b/tikzit-old/src/osx/Grid.m
deleted file mode 100644
index aa35c1f..0000000
--- a/tikzit-old/src/osx/Grid.m
+++ /dev/null
@@ -1,152 +0,0 @@
-//
-// Grid.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Grid.h"
-
-
-@implementation Grid
-
-@synthesize size;
-
-- (id)initWithSpacing:(float)spacing
- subdivisions:(int)subs
- transformer:(Transformer*)t
-{
- if (!(self = [super init])) return nil;
- gridX = spacing;
- gridY = spacing;
- subdivisions = subs;
- size.width = 0;
- size.height = 0;
- transformer = t;
- return self;
-}
-
-+ (Grid*)gridWithSpacing:(float)spacing
- subdivisions:(int)subs
- transformer:(Transformer*)t
-{
- return [[Grid alloc] initWithSpacing:spacing
- subdivisions:subs
- transformer:t];
-}
-
-- (float)gridX {
- return gridX;
-}
-
-- (float)gridY {
- return gridY;
-}
-
-- (int)subdivisions {
- return subdivisions;
-}
-
-- (void)setSubdivisions:(int)subs {
- subdivisions = subs;
-}
-
-- (NSPoint)snapScreenPoint:(NSPoint)p {
- NSPoint snap;
-
- float gridCellX = [transformer scaleToScreen:gridX] / (float)subdivisions;
- float gridCellY = [transformer scaleToScreen:gridY] / (float)subdivisions;
-
- // snap along grid lines, relative to the origin
- snap.x = floor(((p.x-[transformer origin].x)/gridCellX)+0.5)*gridCellX + [transformer origin].x;
- snap.y = floor(((p.y-[transformer origin].y)/gridCellY)+0.5)*gridCellY + [transformer origin].y;
- return snap;
-}
-
--(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context
-{
- CGContextSaveGState(context);
-
- CGContextSetShouldAntialias(context, NO);
-
- float x,y;
- float grX = [transformer scaleToScreen:gridX];
- float grY = [transformer scaleToScreen:gridY];
-
- float gridCellX = grX / (float)subdivisions;
- float gridCellY = grY / (float)subdivisions;
-
- for (x = [transformer origin].x + gridCellX; x < size.width; x += gridCellX) {
- CGContextMoveToPoint(context, x, 0);
- CGContextAddLineToPoint(context, x, size.height);
- }
-
- for (x = [transformer origin].x - gridCellX; x > 0; x -= gridCellX) {
- CGContextMoveToPoint(context, x, 0);
- CGContextAddLineToPoint(context, x, size.height);
- }
-
- for (y = [transformer origin].y + gridCellY; y < size.height; y += gridCellY) {
- CGContextMoveToPoint(context, 0, y);
- CGContextAddLineToPoint(context, size.width, y);
- }
-
- for (y = [transformer origin].y - gridCellY; y > 0; y -= gridCellY) {
- CGContextMoveToPoint(context, 0, y);
- CGContextAddLineToPoint(context, size.width, y);
- }
-
- CGContextSetRGBStrokeColor(context, 0.9, 0.9, 1, 1);
- CGContextStrokePath(context);
-
- for (x = [transformer origin].x + grX; x < size.width; x += grX) {
- CGContextMoveToPoint(context, x, 0);
- CGContextAddLineToPoint(context, x, size.height);
- }
-
- for (x = [transformer origin].x - grX; x > 0; x -= grX) {
- CGContextMoveToPoint(context, x, 0);
- CGContextAddLineToPoint(context, x, size.height);
- }
-
- for (y = [transformer origin].y + grY; y < size.height; y += grY) {
- CGContextMoveToPoint(context, 0, y);
- CGContextAddLineToPoint(context, size.width, y);
- }
-
- for (y = [transformer origin].y + grY; y > 0; y -= grY) {
- CGContextMoveToPoint(context, 0, y);
- CGContextAddLineToPoint(context, size.width, y);
- }
-
- CGContextSetRGBStrokeColor(context, 0.8, 0.8, 0.9, 1);
- CGContextStrokePath(context);
-
- CGContextMoveToPoint(context, [transformer origin].x, 0);
- CGContextAddLineToPoint(context, [transformer origin].x, size.height);
- CGContextMoveToPoint(context, 0, [transformer origin].y);
- CGContextAddLineToPoint(context, size.width, [transformer origin].y);
-
- CGContextSetRGBStrokeColor(context, 0.6, 0.6, 0.7, 1);
- CGContextStrokePath(context);
-
- CGContextRestoreGState(context);
-}
-
-@end
diff --git a/tikzit-old/src/osx/MultiCombo.h b/tikzit-old/src/osx/MultiCombo.h
deleted file mode 100644
index c8ec769..0000000
--- a/tikzit-old/src/osx/MultiCombo.h
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-// MultiCombo.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 21/04/2011.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-
-@interface MultiCombo : NSComboBox {
- BOOL multi;
-}
-
-@property (readwrite,assign) BOOL multi;
-
-@end
diff --git a/tikzit-old/src/osx/MultiCombo.m b/tikzit-old/src/osx/MultiCombo.m
deleted file mode 100644
index 8930460..0000000
--- a/tikzit-old/src/osx/MultiCombo.m
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// MultiCombo.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 21/04/2011.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import "MultiCombo.h"
-
-
-@implementation MultiCombo
-
-- (void)textDidChange:(NSNotification *)notification {
- [super textDidChange:notification];
- [self setMulti:NO];
-}
-
-- (void)setMulti:(BOOL)m {
- multi = m;
- if (multi) {
- [self setTextColor:[NSColor grayColor]];
- [self setStringValue:@"multiple values"];
- }
-}
-
-- (BOOL)multi { return multi; }
-
-- (BOOL)becomeFirstResponder {
- [super becomeFirstResponder];
- if ([self multi]) {
- [self setTextColor:[NSColor blackColor]];
- [self setStringValue:@""];
- }
- return YES;
-}
-
-@end
diff --git a/tikzit-old/src/osx/MultiField.h b/tikzit-old/src/osx/MultiField.h
deleted file mode 100644
index 39eeefa..0000000
--- a/tikzit-old/src/osx/MultiField.h
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-// LabelField.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 20/04/2011.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-
-@interface MultiField : NSTextField {
- BOOL multi;
-}
-
-@property (readwrite,assign) BOOL multi;
-
-@end
diff --git a/tikzit-old/src/osx/MultiField.m b/tikzit-old/src/osx/MultiField.m
deleted file mode 100644
index 7c5aac3..0000000
--- a/tikzit-old/src/osx/MultiField.m
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// LabelField.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 20/04/2011.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import "MultiField.h"
-
-
-@implementation MultiField
-
-- (void)textDidChange:(NSNotification *)notification {
- [super textDidChange:notification];
- [self setMulti:NO];
-}
-
-- (void)setMulti:(BOOL)m {
- multi = m;
- if (multi) {
- [self setTextColor:[NSColor grayColor]];
- [self setStringValue:@"multiple values"];
- }
-}
-
-- (BOOL)multi { return multi; }
-
-- (BOOL)becomeFirstResponder {
- [super becomeFirstResponder];
- if ([self multi]) {
- [self setTextColor:[NSColor blackColor]];
- [self setStringValue:@""];
- }
- return YES;
-}
-
-//- (BOOL)textShouldBeginEditing:(NSText *)textObject {
-// [super textShouldBeginEditing:textObject];
-// NSLog(@"about to type");
-// return YES;
-//}
-
-//- (void)textDidEndEditing:(NSNotification *)obj {
-// [super textDidEndEditing:obj];
-//
-// NSLog(@"focus lost");
-// if ([self multi]) {
-// [self setMulti:YES];
-// }
-//}
-
-@end
diff --git a/tikzit-old/src/osx/NilToEmptyStringTransformer.h b/tikzit-old/src/osx/NilToEmptyStringTransformer.h
deleted file mode 100644
index 1445a94..0000000
--- a/tikzit-old/src/osx/NilToEmptyStringTransformer.h
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// NilToEmptyStringTransformer.h
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-@interface NilToEmptyStringTransformer : NSValueTransformer
-
-@end
diff --git a/tikzit-old/src/osx/NilToEmptyStringTransformer.m b/tikzit-old/src/osx/NilToEmptyStringTransformer.m
deleted file mode 100644
index 413f404..0000000
--- a/tikzit-old/src/osx/NilToEmptyStringTransformer.m
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// NilToEmptyStringTransformer.m
-// TikZiT
-//
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "NilToEmptyStringTransformer.h"
-
-@implementation NilToEmptyStringTransformer
-
-- (id)init {
- if (!(self = [super init])) return nil;
- return self;
-}
-
-+ (Class)transformedValueClass {
- return [NSString class];
-}
-
-+ (BOOL)allowsReverseTransformation {
- return YES;
-}
-
-- (id)transformedValue:(id)value {
- if (value == nil) {
- return @"";
- } else {
- return value;
- }
-}
-
-- (id)reverseTransformedValue:(id)value {
- return [self transformedValue:value];
-}
-
-@end
diff --git a/tikzit-old/src/osx/NodeLayer.h b/tikzit-old/src/osx/NodeLayer.h
deleted file mode 100644
index dbcdac5..0000000
--- a/tikzit-old/src/osx/NodeLayer.h
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// NodeLayer.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/CoreAnimation.h>
-#import "Transformer.h"
-#import "Shape.h"
-#import "Node.h"
-#import "NodeStyle+Coder.h"
-#import "NodeSelectionLayer.h"
-
-@interface NodeLayer : CALayer {
- Node *node;
- Shape *shape;
- CGMutablePathRef path;
- float textwidth;
- NSPoint center;
- Transformer *transformer;
- Transformer *localTrans;
- NodeSelectionLayer *selection;
- BOOL rescale;
- BOOL dirty; // need to rebuild CGBezierPath of the shape
-}
-
-@property (strong) Node *node;
-@property (assign) NSPoint center;
-@property (assign) BOOL rescale;
-@property (strong) NodeSelectionLayer *selection;
-@property (readonly) CGMutablePathRef path;
-
-- (id)initWithNode:(Node*)n transformer:(Transformer*)t;
-- (NSColor*)strokeColor;
-- (NSColor*)fillColor;
-- (float)strokeWidth;
-
-- (void)setCenter:(NSPoint)ctr andAnimateWhen:(BOOL)anim;
-- (void)updateFrame;
-- (BOOL)nodeContainsPoint:(NSPoint)p;
-
-- (void)drawInContext:(CGContextRef)context;
-
-@end
diff --git a/tikzit-old/src/osx/NodeLayer.m b/tikzit-old/src/osx/NodeLayer.m
deleted file mode 100644
index 5d15585..0000000
--- a/tikzit-old/src/osx/NodeLayer.m
+++ /dev/null
@@ -1,238 +0,0 @@
-//
-// NodeLayer.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "NodeLayer.h"
-#import "CALayer+DrawLabel.h"
-#import "NSString+LatexConstants.h"
-#import "Shape.h"
-#import "ShapeNames.h"
-#import "Node.h"
-#import "Edge.h"
-
-@implementation NodeLayer
-
-@synthesize node, selection, rescale;
-
-- (id)initWithNode:(Node *)n transformer:(Transformer*)t {
- if (!(self = [super init])) return nil;
- node = n;
- selection = [[NodeSelectionLayer alloc] init];
- [selection setNodeLayer:self];
- localTrans = [[Transformer alloc] init];
-
- [self addSublayer:selection];
- textwidth = 0.0f;
- center = NSMakePoint(0.0f, 0.0f);
- transformer = t;
-
- path = NULL;
- rescale = YES;
- dirty = YES;
-
- [self updateFrame];
- return self;
-}
-
-- (NSColor*)strokeColor {
- if ([node style] != nil) {
- return [[[node style] strokeColor] colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]];
- } else {
- return nil;
- }
-}
-
-- (NSColor*)fillColor {
- if ([node style] != nil) {
- return [[[node style] fillColor] colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]];
- } else {
- return nil;
- }
-}
-
-- (float)strokeWidth {
- if ([node style] != nil) {
- return [node.style strokeThickness];
- } else {
- return [NodeStyle defaultStrokeThickness];
- }
-}
-
-- (NSPoint)center { return center; }
-
-- (void)setCenter:(NSPoint)ctr {
- center.x = round(ctr.x);
- center.y = round(ctr.y);
- [self updateFrame];
-}
-
-- (void)setCenter:(NSPoint)ctr andAnimateWhen:(BOOL)anim {
- [CATransaction begin];
- if (!anim) {
- [CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
- }
- [self setCenter:ctr];
- [CATransaction commit];
-}
-
-- (void)updateShape {
- Shape *s = ([node style] != nil) ?
- [Shape shapeForName:[[node style] shapeName]] :
- [Shape shapeForName:SHAPE_CIRCLE];
- if (s != shape) { // straight pointer comparison
- shape = s;
- dirty = YES;
- }
-}
-
-- (void)updateLocalTrans {
- float scale = ([node style] != nil) ? [[node style] scale] : 1.0f;
-
- Transformer *t = [Transformer transformer];
- float rad = ([transformer scaleToScreen:scale] / 2.0f) + 8.0f;
- [t setOrigin:NSMakePoint(rad, rad)];
- [t setScale:[transformer scale]*((rescale)?scale:0.8f)];
-
- if (![localTrans isEqual:t]) {
- dirty = YES;
- localTrans = t;
- }
-}
-
-- (void)updateFrame {
- [self updateLocalTrans];
- [self updateShape];
- float rad = [localTrans origin].x;
- [self setFrame:CGRectIntegral(CGRectMake(center.x - rad, center.y - rad, 2*rad, 2*rad))];
- NSRect bds = NSMakeRect(0, 0, 2*rad, 2*rad);
- [selection setFrame:NSRectToCGRect(bds)];
-
- [self setNeedsDisplay];
- [selection setNeedsDisplay];
-}
-
-- (CGMutablePathRef)path {
- if (dirty) {
- CGMutablePathRef pth = CGPathCreateMutable();
- NSPoint p, cp1, cp2;
- for (NSArray *arr in [shape paths]) {
- BOOL fst = YES;
- for (Edge *e in arr) {
- if (fst) {
- fst = NO;
- p = [localTrans toScreen:[[e source] point]];
- CGPathMoveToPoint(pth, nil, p.x, p.y);
- }
-
- p = [localTrans toScreen:[[e target] point]];
- if ([e isStraight]) {
- CGPathAddLineToPoint(pth, nil, p.x, p.y);
- } else {
- cp1 = [localTrans toScreen:[e cp1]];
- cp2 = [localTrans toScreen:[e cp2]];
- CGPathAddCurveToPoint(pth, nil, cp1.x, cp1.y, cp2.x, cp2.y, p.x, p.y);
- }
- }
-
- CGPathCloseSubpath(pth);
- }
-
- if (path != NULL) CFRelease(path);
- path = pth;
- dirty = NO;
- }
-
-
- return path;
-}
-
-- (BOOL)nodeContainsPoint:(NSPoint)p {
- CGPoint p1 = CGPointMake(p.x - [self frame].origin.x, p.y - [self frame].origin.y);
- return CGPathContainsPoint([self path],nil,p1,NO);
-}
-
-
-- (void)drawInContext:(CGContextRef)context {
- CGContextSaveGState(context);
-
-
- if ([node style] == nil) {
- CGContextSetRGBStrokeColor(context, 0.4f, 0.4f, 0.7f, 1.0f);
- CGContextSetRGBFillColor(context, 0.4f, 0.4f, 0.7f, 1.0f);
- //CGRect fr = [self frame];
- CGRect bds = NSRectToCGRect([localTrans rectToScreen:NSMakeRect(-0.5, -0.5, 1, 1)]);
- CGRect pt = CGRectMake(CGRectGetMidX(bds)-1.0f, CGRectGetMidY(bds)-1.0f, 2.0f, 2.0f);
- CGContextSetLineWidth(context, 0);
- CGContextAddEllipseInRect(context, pt);
- CGContextFillPath(context);
-
- // HACK: for some reason, CGFloat isn't getting typedef'ed properly
-
-#ifdef __x86_64__
- const double dash[2] = {2.0,2.0};
-#else
- const float dash[2] = {2.0,2.0};
-#endif
- CGContextSetLineDash(context, 0.0, dash, 2);
- CGContextSetLineWidth(context, 1);
- CGContextAddPath(context, [self path]);
- CGContextStrokePath(context);
- } else {
- NSColor *stroke = [self strokeColor];
- NSColor *fill = [self fillColor];
-
- CGContextSetRGBStrokeColor(context,
- [stroke redComponent],
- [stroke greenComponent],
- [stroke blueComponent],
- [stroke alphaComponent]);
-
- CGContextSetLineWidth(context, [self strokeWidth]);
-
- CGContextSetRGBFillColor(context,
- [fill redComponent],
- [fill greenComponent],
- [fill blueComponent],
- [fill alphaComponent]);
-
-
- CGContextSetLineWidth(context, [self strokeWidth]);
- CGContextAddPath(context, [self path]);
- CGContextDrawPath(context, kCGPathFillStroke);
- }
-
- if (!([node label] == nil || [[node label] isEqual:@""])) {
- NSPoint labelPt = NSMakePoint([self frame].size.width/2, [self frame].size.height/2);
- [self drawLabel:[[node label] stringByExpandingLatexConstants]
- atPoint:labelPt
- inContext:context
- usingTrans:transformer];
- }
-
- CGContextRestoreGState(context);
-}
-
-- (void)dealloc {
- if (path != NULL) CFRelease(path);
-}
-
-@end
diff --git a/tikzit-old/src/osx/NodeSelectionLayer.h b/tikzit-old/src/osx/NodeSelectionLayer.h
deleted file mode 100644
index 99ee75f..0000000
--- a/tikzit-old/src/osx/NodeSelectionLayer.h
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// NodeSelectionLayer.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/CoreAnimation.h>
-#import "Shape.h"
-
-@class NodeLayer;
-
-@interface NodeSelectionLayer : CALayer {
- BOOL selected;
- CGMutablePathRef path;
- NSLock *drawLock;
- NodeLayer *nodeLayer;
-}
-
-@property NodeLayer *nodeLayer;
-
-- (id)init;
-- (void)select;
-- (void)deselect;
-- (void)highlight;
-- (void)unhighlight;
-
-@end
diff --git a/tikzit-old/src/osx/NodeSelectionLayer.m b/tikzit-old/src/osx/NodeSelectionLayer.m
deleted file mode 100644
index 02b8ac2..0000000
--- a/tikzit-old/src/osx/NodeSelectionLayer.m
+++ /dev/null
@@ -1,93 +0,0 @@
-//
-// NodeSelectionLayer.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "NodeSelectionLayer.h"
-#import "NodeLayer.h"
-#import "CircleShape.h"
-
-@implementation NodeSelectionLayer
-
-@synthesize nodeLayer;
-
-- (id)init {
- if (!(self = [super init])) return nil;
- selected = NO;
- drawLock = [[NSLock alloc] init];
- nodeLayer = nil;
- [self setOpacity:0.0f];
- return self;
-}
-
-
-- (void)select {
- selected = YES;
- [self setOpacity:0.5f];
-}
-
-- (void)deselect {
- selected = NO;
- [self setOpacity:0.0f];
-}
-
-- (void)highlight {
- if (!selected) {
- [self setOpacity:0.25f];
- }
-}
-
-- (void)unhighlight {
- if (!selected) {
- [self setOpacity:0.0f];
- }
-}
-
-//- (CGMutablePathRef)path {
-// return path;
-//}
-//
-//- (void)setPath:(CGMutablePathRef)p {
-// path = CGPathCreateMutableCopy(p);
-// CFMakeCollectable(path);
-//}
-
-- (void)drawInContext:(CGContextRef)context {
- [drawLock lock];
- CGContextSaveGState(context);
-
- //CGContextSetRGBStrokeColor(context, 0.61f, 0.735f, 1.0f, 1.0f);
- CGContextSetRGBStrokeColor(context, 0.61f, 0.735f, 1.0f, 1.0f);
- CGContextSetRGBFillColor(context, 0.61f, 0.735f, 1.0f, 1.0f);
- CGContextSetLineWidth(context, 6.0f);
-
- if (nodeLayer != nil) {
- CGContextAddPath(context, [nodeLayer path]);
- } else {
- NSLog(@"WARNING: attempting to draw selection with path = nil.");
- }
- CGContextDrawPath(context, kCGPathFillStroke);
-
- CGContextRestoreGState(context);
- [drawLock unlock];
-}
-
-@end
diff --git a/tikzit-old/src/osx/NodeStyle+Coder.h b/tikzit-old/src/osx/NodeStyle+Coder.h
deleted file mode 100644
index b6443af..0000000
--- a/tikzit-old/src/osx/NodeStyle+Coder.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// NodeStyle+Coder.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "NodeStyle.h"
-
-
-@interface NodeStyle(Coder)
-
-@property (copy) NSColor *fillColor;
-@property (copy) NSColor *strokeColor;
-
-- (id)initWithCoder:(NSCoder *)coder;
-- (void)encodeWithCoder:(NSCoder *)coder;
-
-@end
diff --git a/tikzit-old/src/osx/NodeStyle+Coder.m b/tikzit-old/src/osx/NodeStyle+Coder.m
deleted file mode 100644
index d3623f5..0000000
--- a/tikzit-old/src/osx/NodeStyle+Coder.m
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// NodeStyle+Coder.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "NodeStyle+Coder.h"
-#import "ShapeNames.h"
-
-@implementation NodeStyle(Coder)
-
-- (NSColor*)fillColor {
- return [NSColor colorWithDeviceRed:fillColorRGB.redFloat
- green:fillColorRGB.greenFloat
- blue:fillColorRGB.blueFloat
- alpha:1.0f];
-}
-
-- (void)setFillColor:(NSColor*)c {
- NSColor *c1 = [c colorUsingColorSpaceName:NSDeviceRGBColorSpace];
- [self willChangeValueForKey:@"fillColorIsKnown"];
- fillColorRGB = [ColorRGB colorWithFloatRed:c1.redComponent
- green:c1.greenComponent
- blue:c1.blueComponent];
- [self didChangeValueForKey:@"fillColorIsKnown"];
-}
-
-- (NSColor*)strokeColor {
- return [NSColor colorWithDeviceRed:strokeColorRGB.redFloat
- green:strokeColorRGB.greenFloat
- blue:strokeColorRGB.blueFloat
- alpha:1.0f];
-}
-
-- (void)setStrokeColor:(NSColor*)c {
- NSColor *c1 = [c colorUsingColorSpaceName:NSDeviceRGBColorSpace];
- [self willChangeValueForKey:@"strokeColorIsKnown"];
- strokeColorRGB = [ColorRGB colorWithFloatRed:c1.redComponent
- green:c1.greenComponent
- blue:c1.blueComponent];
- [self didChangeValueForKey:@"strokeColorIsKnown"];
-}
-
-- (id)initWithCoder:(NSCoder *)coder {
- if (!(self = [super init])) return nil;
-
- // decode keys
- name = [coder decodeObjectForKey:@"name"];
- [self setStrokeColor:[coder decodeObjectForKey:@"strokeColor"]];
- [self setFillColor:[coder decodeObjectForKey:@"fillColor"]];
- strokeThickness = [coder decodeIntForKey:@"strokeThickness"];
- shapeName = [coder decodeObjectForKey:@"shapeName"];
- category = [coder decodeObjectForKey:@"category"];
- scale = [coder decodeFloatForKey:@"scale"];
-
- // apply defaults
- if (scale == 0.0f) scale = 1.0f;
- if (shapeName == nil) shapeName = SHAPE_CIRCLE;
-
- return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
- [coder encodeObject:name forKey:@"name"];
- [coder encodeObject:[self strokeColor] forKey:@"strokeColor"];
- [coder encodeObject:[self fillColor] forKey:@"fillColor"];
- [coder encodeInt:strokeThickness forKey:@"strokeThickness"];
- [coder encodeObject:shapeName forKey:@"shapeName"];
- [coder encodeObject:category forKey:@"category"];
- [coder encodeFloat:scale forKey:@"scale"];
-}
-
-
-@end
diff --git a/tikzit-old/src/osx/ParseErrorView.h b/tikzit-old/src/osx/ParseErrorView.h
deleted file mode 100644
index bb6141f..0000000
--- a/tikzit-old/src/osx/ParseErrorView.h
+++ /dev/null
@@ -1,13 +0,0 @@
-//
-// ParseErrorView.h
-// TikZiT
-//
-// Created by Karl Johan Paulsson on 27/01/2013.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-@interface ParseErrorView : NSView
-
-@end
diff --git a/tikzit-old/src/osx/ParseErrorView.m b/tikzit-old/src/osx/ParseErrorView.m
deleted file mode 100644
index 83383f0..0000000
--- a/tikzit-old/src/osx/ParseErrorView.m
+++ /dev/null
@@ -1,40 +0,0 @@
-//
-// ParseErrorView.m
-// TikZiT
-//
-// Created by Karl Johan Paulsson on 27/01/2013.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-
-#import "ParseErrorView.h"
-
-@implementation ParseErrorView
-
-- (id)initWithFrame:(NSRect)frame
-{
- self = [super initWithFrame:frame];
- if (self) {
- // Initialization code here.
- }
-
- return self;
-}
-
-- (void)drawRect:(NSRect)dirtyRect
-{
- // Drawing code here.
-}
-
-- (void)awakeFromNib{
- self.layer = [CALayer layer];
- self.wantsLayer = YES;
- CALayer *newLayer = [CALayer layer];
- self.layer.backgroundColor = [[NSColor controlColor] CGColor];
- //CGColorCreate(CGColorSpaceCreateDeviceRGB(), (CGFloat[]){ 1, .9, .64, 1 });
-// newLayer.backgroundColor = [NSColor redColor].CGColor;
- newLayer.frame = CGRectMake(100,100,100,100);//NSMakeRect(0,0,image.size.width,image.size.height);
- newLayer.position = CGPointMake(20,20);
- //[self.layer addSublayer:newLayer];
-}
-
-@end
diff --git a/tikzit-old/src/osx/PreambleController.h b/tikzit-old/src/osx/PreambleController.h
deleted file mode 100644
index 5b0931d..0000000
--- a/tikzit-old/src/osx/PreambleController.h
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// PreambleController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "Preambles.h"
-#import "Preambles+Coder.h"
-
-@interface PreambleController : NSViewController {
- Preambles *preambles;
- IBOutlet NSTextView *textView;
- IBOutlet NSDictionaryController *preambleDictionaryController;
-
- NSDictionary *textAttrs;
- NSAttributedString *preambleText;
- NSColor *ghostColor;
- NSIndexSet *selectionIndexes;
-}
-
-@property (readonly) BOOL useDefaultPreamble;
-@property (readonly) Preambles *preambles;
-@property (strong) NSAttributedString *preambleText;
-@property (strong) NSIndexSet *selectionIndexes;
-
-- (id)initWithNibName:(NSString *)nibName plist:(NSString*)plist styles:(NSArray*)sty edges:(NSArray*)edg;
-- (void)savePreambles:(NSString*)plist;
-- (NSString*)currentPreamble;
-- (NSString*)currentPostamble;
-- (NSString*)buildDocumentForTikz:(NSString*)tikz;
-
-- (IBAction)setPreambleToDefault:(id)sender;
-- (IBAction)setPreamble:(id)sender;
-- (IBAction)insertDefaultStyles:(id)sender;
-
-- (IBAction)addPreamble:(id)sender;
-- (IBAction)duplicatePreamble:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/PreambleController.m b/tikzit-old/src/osx/PreambleController.m
deleted file mode 100644
index 206bb30..0000000
--- a/tikzit-old/src/osx/PreambleController.m
+++ /dev/null
@@ -1,168 +0,0 @@
-//
-// PreambleController.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "PreambleController.h"
-
-
-@implementation PreambleController
-
-@synthesize preambleText, preambles;
-
-- (id)initWithNibName:(NSString *)nibName plist:(NSString*)plist styles:(NSArray*)sty edges:(NSArray*)edg {
- if (!(self = [super initWithNibName:nibName bundle:Nil])) return nil;
-
- preambles = (Preambles*)[NSKeyedUnarchiver unarchiveObjectWithFile:plist];
- [preambles setStyles:sty];
- [preambles setEdges:edg];
- if (preambles == nil) preambles = [[Preambles alloc] init];
-
- preambleText = nil;
-
- NSFont *font = [NSFont userFixedPitchFontOfSize:11.0f];
- textAttrs = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
- ghostColor = [NSColor colorWithDeviceRed:0.9f green:0.9f blue:0.9f alpha:1.0f];
-
-
-
- return self;
-}
-
-- (void)awakeFromNib {
- NSArray *arr = [preambleDictionaryController arrangedObjects];
- NSString *current = [preambles selectedPreambleName];
-
- if (current != nil && ![current isEqual:@"default"]) {
- for (int i = 0; i < [arr count]; ++i) {
- if ([[[arr objectAtIndex:i] key] isEqual:current]) {
- [self setSelectionIndexes:[NSIndexSet indexSetWithIndex:i]];
- break;
- }
- }
- }
-}
-
-- (BOOL)useDefaultPreamble {
- return [[preambles selectedPreambleName] isEqualToString:@"default"];
-}
-
-- (void)flushText {
- if (preambleText != nil && ![self useDefaultPreamble]) {
- [preambles setCurrentPreamble:[preambleText string]];
- }
-}
-
-- (void)setCurrentPreamble:(NSString*)current {
- [self flushText];
-
- [self willChangeValueForKey:@"useDefaultPreamble"];
- [preambles setSelectedPreambleName:current];
- [self didChangeValueForKey:@"useDefaultPreamble"];
-
- [self setPreambleText:
- [[NSAttributedString alloc] initWithString:[preambles currentPreamble]
- attributes:textAttrs]];
-}
-
-- (void)savePreambles:(NSString*)plist {
- [self flushText];
- [NSKeyedArchiver archiveRootObject:preambles toFile:plist];
-}
-
-- (NSString*)currentPreamble {
- [self flushText];
- return [preambles currentPreamble];
-}
-
-- (NSString*)currentPostamble {
- return [preambles currentPostamble];
-}
-
-- (NSString*)buildDocumentForTikz:(NSString*)tikz {
- [self flushText];
- return [preambles buildDocumentForTikz:tikz];
-}
-
-- (void)setSelectionIndexes:(NSIndexSet *)idx {
- [self willChangeValueForKey:@"selectionIndexes"];
- selectionIndexes = idx;
- [self didChangeValueForKey:@"selectionIndexes"];
-
- [self setPreamble:self];
-}
-
-- (NSIndexSet*)selectionIndexes {
- return selectionIndexes;
-}
-
-- (IBAction)setPreambleToDefault:(id)sender{
- [self setCurrentPreamble:@"default"];
- [textView setBackgroundColor:ghostColor];
-}
-
-- (IBAction)setPreamble:(id)sender {
- //if ([[toolbar selectedItemIdentifier] isEqualToString:[defaultToolbarItem itemIdentifier]]) {
- // [self setCurrentPreamble:@"default"];
- // [textView setBackgroundColor:ghostColor];
- //} else if ([[toolbar selectedItemIdentifier] isEqualToString:[customToolbarItem itemIdentifier]]) {
- NSString *key = nil;
- if ([selectionIndexes count]==1) {
- int i = [selectionIndexes firstIndex];
- key = [[[preambleDictionaryController arrangedObjects] objectAtIndex:i] key];
- }
- if (key != nil) {
- [self setCurrentPreamble:key];
- //NSLog(@"preamble set to %@", key);
- } else {
- [self setCurrentPreamble:@"custom"];
- //NSLog(@"preamble set to custom");
- }
- [textView setBackgroundColor:[NSColor whiteColor]];
- //}
-}
-
-- (IBAction)insertDefaultStyles:(id)sender {
- [textView insertText:[preambles styleDefinitions]];
-}
-
-- (IBAction)addPreamble:(id)sender {
- [preambleDictionaryController setInitialKey:@"new preamble"];
- [preambleDictionaryController setInitialValue:[preambles defaultPreamble]];
- [preambleDictionaryController add:sender];
-}
-
-- (void)controlTextDidEndEditing:(NSNotification *)obj {
- //NSLog(@"got a text change");
- [self setPreamble:[obj object]];
-}
-
-
-// NOT IMPLEMENTED
-- (IBAction)duplicatePreamble:(id)sender {
-// NSLog(@"set text to: %@", [preambles currentPreamble]);
-// [preambleDictionaryController setInitialKey:[preambles selectedPreambleName]];
-// [preambleDictionaryController setInitialValue:[preambles currentPreamble]];
-// [preambleDictionaryController add:sender];
-}
-
-
-@end
diff --git a/tikzit-old/src/osx/Preambles+Coder.h b/tikzit-old/src/osx/Preambles+Coder.h
deleted file mode 100644
index 5a270c5..0000000
--- a/tikzit-old/src/osx/Preambles+Coder.h
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// Preambles+Coder.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Preambles.h"
-#import <Cocoa/Cocoa.h>
-
-@interface Preambles (Coder)
-
-- (id)initWithCoder:(NSCoder *)coder;
-- (void)encodeWithCoder:(NSCoder *)coder;
-
-@end
diff --git a/tikzit-old/src/osx/Preambles+Coder.m b/tikzit-old/src/osx/Preambles+Coder.m
deleted file mode 100644
index 5e468b2..0000000
--- a/tikzit-old/src/osx/Preambles+Coder.m
+++ /dev/null
@@ -1,41 +0,0 @@
-//
-// Preambles+Coder.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "Preambles+Coder.h"
-
-
-@implementation Preambles (Coder)
-
-- (id)initWithCoder:(NSCoder *)coder {
- if (!(self = [super init])) return nil;
- selectedPreambleName = [coder decodeObjectForKey:@"selectedPreamble"];
- preambleDict = [coder decodeObjectForKey:@"preambles"];
- return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
- [coder encodeObject:selectedPreambleName forKey:@"selectedPreamble"];
- [coder encodeObject:preambleDict forKey:@"preambles"];
-}
-
-@end
diff --git a/tikzit-old/src/osx/PreferenceController.h b/tikzit-old/src/osx/PreferenceController.h
deleted file mode 100644
index b2b23f3..0000000
--- a/tikzit-old/src/osx/PreferenceController.h
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// PreferenceController.h
-// TikZiT
-//
-// Created by Karl Johan Paulsson on 26/02/2013.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "UpdatePreferenceController.h"
-#import "PreambleController.h"
-#import "CustomNodeController.h"
-
-@interface PreferenceController : NSWindowController{
-
- IBOutlet NSView *engineView;
- IBOutlet NSView *generalView;
- IBOutlet NSView *updateView;
- IBOutlet NSView *preambleView;
- IBOutlet NSView *customNodeView;
-
- UpdatePreferenceController *updateController;
- PreambleController *preambleController;
- CustomNodeController *customNodeController;
-
- int currentViewTag;
-}
-
-- (id)initWithWindowNibName:(NSString *)windowNibName preambleController:(PreambleController *)pc;
-
-- (IBAction)switchView:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/PreferenceController.m b/tikzit-old/src/osx/PreferenceController.m
deleted file mode 100644
index e785358..0000000
--- a/tikzit-old/src/osx/PreferenceController.m
+++ /dev/null
@@ -1,133 +0,0 @@
-//
-// PreferenceController.m
-// TikZiT
-//
-// Created by Karl Johan Paulsson on 26/02/2013.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "PreferenceController.h"
-
-@interface PreferenceController ()
-
-@end
-
-@implementation PreferenceController
-
-- (id)initWithWindowNibName:(NSString *)windowNibName preambleController:(PreambleController *)pc{
- if (!(self = [super initWithWindowNibName:windowNibName])) return nil;
-
- preambleController = pc;
-
- return self;
-}
-
-- (NSRect)newFrameForNewContentView:(NSView*)view {
- NSWindow *window = [self window];
- NSRect newFrameRect = [window frameRectForContentRect:[view frame]];
- NSRect oldFrameRect = [window frame];
- NSSize newSize = newFrameRect.size;
- NSSize oldSize = oldFrameRect.size;
-
- NSRect frame = [window frame];
- frame.size = newSize;
- frame.origin.y -= (newSize.height - oldSize.height);
-
- return frame;
-}
-
-- (NSView *)viewForTag:(int)tag {
-
- NSView *view = nil;
- switch (tag) {
- default:
- case 0:
- view = generalView;
- break;
- case 1:
- view = engineView;
- break;
- case 2:
- view = updateView;
- break;
- case 3:
- view = preambleView;
- break;
- case 4:
- view = customNodeView;
- break;
- }
-
- return view;
-}
-
-- (BOOL)validateToolbarItem:(NSToolbarItem *)item {
-
- if ([item tag] == currentViewTag) return NO;
- else return YES;
-
-}
-
-- (void)awakeFromNib {
-
- [[self window] setContentSize:[generalView frame].size];
- [[[self window] contentView] addSubview:generalView];
- [[[self window] contentView] setWantsLayer:YES];
-
- updateController = [[UpdatePreferenceController alloc] initWithNibName:@"UpdatePreferencePanel" bundle:nil];
- [[updateController view] setFrame:[updateView frame]];
- [[[self window] contentView] replaceSubview:updateView with:[updateController view]];
- updateView = [updateController view];
-
- [[preambleController view] setFrame:[preambleView frame]];
- [[[self window] contentView] replaceSubview:preambleView with:[preambleController view]];
- preambleView = [preambleController view];
-
- customNodeController = [[CustomNodeController alloc] initWithNibName:@"CustomNodes" bundle:nil];
- [[customNodeController view] setFrame:[customNodeView frame]];
- [[[self window] contentView] replaceSubview:customNodeView with:[customNodeController view]];
- customNodeView = [customNodeController view];
-
- [[self window] setContentSize:[engineView frame].size];
- [[[self window] contentView] addSubview:engineView];
- currentViewTag = 1;
-}
-
-- (IBAction)switchView:(id)sender {
-
- int tag = [sender tag];
- NSView *view = [self viewForTag:tag];
- NSView *previousView = [self viewForTag:currentViewTag];
- currentViewTag = tag;
-
- NSRect newFrame = [self newFrameForNewContentView:view];
-
- [NSAnimationContext beginGrouping];
-
- if ([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask)
- [[NSAnimationContext currentContext] setDuration:1.0];
-
- [[[[self window] contentView] animator] replaceSubview:previousView with:view];
- [[[self window] animator] setFrame:newFrame display:YES];
-
- [NSAnimationContext endGrouping];
-
-}
-
-@end
diff --git a/tikzit-old/src/osx/Preferences.xib b/tikzit-old/src/osx/Preferences.xib
deleted file mode 100644
index 1be3f9f..0000000
--- a/tikzit-old/src/osx/Preferences.xib
+++ /dev/null
@@ -1,1165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
- <data>
- <int key="IBDocument.SystemTarget">1070</int>
- <string key="IBDocument.SystemVersion">13C64</string>
- <string key="IBDocument.InterfaceBuilderVersion">5053</string>
- <string key="IBDocument.AppKitVersion">1265.19</string>
- <string key="IBDocument.HIToolboxVersion">697.40</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="NS.object.0">5053</string>
- </object>
- <array key="IBDocument.IntegratedClassDependencies">
- <string>IBNSLayoutConstraint</string>
- <string>NSButton</string>
- <string>NSButtonCell</string>
- <string>NSCustomObject</string>
- <string>NSCustomView</string>
- <string>NSTextField</string>
- <string>NSTextFieldCell</string>
- <string>NSToolbar</string>
- <string>NSToolbarItem</string>
- <string>NSUserDefaultsController</string>
- <string>NSView</string>
- <string>NSWindowTemplate</string>
- </array>
- <array key="IBDocument.PluginDependencies">
- <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- </array>
- <object class="NSMutableDictionary" key="IBDocument.Metadata">
- <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
- <integer value="1" key="NS.object.0"/>
- </object>
- <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
- <object class="NSCustomObject" id="1001">
- <string key="NSClassName">PreferenceController</string>
- </object>
- <object class="NSCustomObject" id="1003">
- <string key="NSClassName">FirstResponder</string>
- </object>
- <object class="NSCustomObject" id="1004">
- <string key="NSClassName">NSApplication</string>
- </object>
- <object class="NSWindowTemplate" id="1005">
- <int key="NSWindowStyleMask">7</int>
- <int key="NSWindowBacking">2</int>
- <string key="NSWindowRect">{{196, 240}, {480, 270}}</string>
- <int key="NSWTFlags">544736256</int>
- <string key="NSWindowTitle">Preferences</string>
- <string key="NSWindowClass">NSWindow</string>
- <object class="NSToolbar" key="NSViewClass" id="338765480">
- <object class="NSMutableString" key="NSToolbarIdentifier">
- <characters key="NS.bytes">C1747407-DC9A-4297-9C1C-0A5010984E6C</characters>
- </object>
- <nil key="NSToolbarDelegate"/>
- <bool key="NSToolbarPrefersToBeShown">YES</bool>
- <bool key="NSToolbarShowsBaselineSeparator">YES</bool>
- <bool key="NSToolbarAllowsUserCustomization">NO</bool>
- <bool key="NSToolbarAutosavesConfiguration">NO</bool>
- <int key="NSToolbarDisplayMode">1</int>
- <int key="NSToolbarSizeMode">1</int>
- <dictionary class="NSMutableDictionary" key="NSToolbarIBIdentifiedItems">
- <object class="NSToolbarItem" key="197F9408-AFB0-404B-B2B6-4DB1250B0A80" id="224936444">
- <object class="NSMutableString" key="NSToolbarItemIdentifier">
- <characters key="NS.bytes">197F9408-AFB0-404B-B2B6-4DB1250B0A80</characters>
- </object>
- <string key="NSToolbarItemLabel">Updates</string>
- <string key="NSToolbarItemPaletteLabel">Updates</string>
- <string key="NSToolbarItemToolTip"/>
- <nil key="NSToolbarItemView"/>
- <object class="NSCustomResource" key="NSToolbarItemImage">
- <string key="NSClassName">NSImage</string>
- <string key="NSResourceName">updates</string>
- </object>
- <nil key="NSToolbarItemTarget"/>
- <nil key="NSToolbarItemAction"/>
- <string key="NSToolbarItemMinSize">{0, 0}</string>
- <string key="NSToolbarItemMaxSize">{0, 0}</string>
- <bool key="NSToolbarItemEnabled">YES</bool>
- <bool key="NSToolbarItemAutovalidates">YES</bool>
- <int key="NSToolbarItemTag">2</int>
- <bool key="NSToolbarIsUserRemovable">YES</bool>
- <int key="NSToolbarItemVisibilityPriority">0</int>
- </object>
- <object class="NSToolbarItem" key="A3DDD070-5637-444B-92C6-905084CAC389" id="914743654">
- <object class="NSMutableString" key="NSToolbarItemIdentifier">
- <characters key="NS.bytes">A3DDD070-5637-444B-92C6-905084CAC389</characters>
- </object>
- <string key="NSToolbarItemLabel">General</string>
- <string key="NSToolbarItemPaletteLabel">General</string>
- <string key="NSToolbarItemToolTip"/>
- <nil key="NSToolbarItemView"/>
- <object class="NSCustomResource" key="NSToolbarItemImage">
- <string key="NSClassName">NSImage</string>
- <string key="NSResourceName">NSPreferencesGeneral</string>
- </object>
- <nil key="NSToolbarItemTarget"/>
- <nil key="NSToolbarItemAction"/>
- <string key="NSToolbarItemMinSize">{0, 0}</string>
- <string key="NSToolbarItemMaxSize">{0, 0}</string>
- <bool key="NSToolbarItemEnabled">YES</bool>
- <bool key="NSToolbarItemAutovalidates">YES</bool>
- <int key="NSToolbarItemTag">1</int>
- <bool key="NSToolbarIsUserRemovable">YES</bool>
- <int key="NSToolbarItemVisibilityPriority">0</int>
- </object>
- <object class="NSToolbarItem" key="A96DC4D4-2171-4D05-8C08-8D01B3829158" id="265637031">
- <object class="NSMutableString" key="NSToolbarItemIdentifier">
- <characters key="NS.bytes">A96DC4D4-2171-4D05-8C08-8D01B3829158</characters>
- </object>
- <string key="NSToolbarItemLabel">Preamble</string>
- <string key="NSToolbarItemPaletteLabel">Preamble</string>
- <string key="NSToolbarItemToolTip"/>
- <nil key="NSToolbarItemView"/>
- <object class="NSCustomResource" key="NSToolbarItemImage">
- <string key="NSClassName">NSImage</string>
- <string key="NSResourceName">preamble</string>
- </object>
- <nil key="NSToolbarItemTarget"/>
- <nil key="NSToolbarItemAction"/>
- <string key="NSToolbarItemMinSize">{0, 0}</string>
- <string key="NSToolbarItemMaxSize">{0, 0}</string>
- <bool key="NSToolbarItemEnabled">YES</bool>
- <bool key="NSToolbarItemAutovalidates">YES</bool>
- <int key="NSToolbarItemTag">3</int>
- <bool key="NSToolbarIsUserRemovable">YES</bool>
- <int key="NSToolbarItemVisibilityPriority">0</int>
- </object>
- <object class="NSToolbarItem" key="CBA2626C-DD4C-4ADD-BD5D-26D21216D9A8" id="845520355">
- <object class="NSMutableString" key="NSToolbarItemIdentifier">
- <characters key="NS.bytes">CBA2626C-DD4C-4ADD-BD5D-26D21216D9A8</characters>
- </object>
- <string key="NSToolbarItemLabel">Custom Nodes</string>
- <string key="NSToolbarItemPaletteLabel">Custom Nodes</string>
- <string key="NSToolbarItemToolTip"/>
- <nil key="NSToolbarItemView"/>
- <object class="NSCustomResource" key="NSToolbarItemImage">
- <string key="NSClassName">NSImage</string>
- <string key="NSResourceName">customshape</string>
- </object>
- <nil key="NSToolbarItemTarget"/>
- <nil key="NSToolbarItemAction"/>
- <string key="NSToolbarItemMinSize">{0, 0}</string>
- <string key="NSToolbarItemMaxSize">{0, 0}</string>
- <bool key="NSToolbarItemEnabled">YES</bool>
- <bool key="NSToolbarItemAutovalidates">YES</bool>
- <int key="NSToolbarItemTag">4</int>
- <bool key="NSToolbarIsUserRemovable">YES</bool>
- <int key="NSToolbarItemVisibilityPriority">0</int>
- </object>
- <object class="NSToolbarItem" key="F85FE7C2-9847-4E58-8BF6-BE334E918CA7" id="641338426">
- <object class="NSMutableString" key="NSToolbarItemIdentifier">
- <characters key="NS.bytes">F85FE7C2-9847-4E58-8BF6-BE334E918CA7</characters>
- </object>
- <string key="NSToolbarItemLabel">Engine</string>
- <string key="NSToolbarItemPaletteLabel">Engine</string>
- <string key="NSToolbarItemToolTip"/>
- <nil key="NSToolbarItemView"/>
- <object class="NSCustomResource" key="NSToolbarItemImage">
- <string key="NSClassName">NSImage</string>
- <string key="NSResourceName">engine</string>
- </object>
- <nil key="NSToolbarItemTarget"/>
- <nil key="NSToolbarItemAction"/>
- <string key="NSToolbarItemMinSize">{0, 0}</string>
- <string key="NSToolbarItemMaxSize">{0, 0}</string>
- <bool key="NSToolbarItemEnabled">YES</bool>
- <bool key="NSToolbarItemAutovalidates">YES</bool>
- <int key="NSToolbarItemTag">1</int>
- <bool key="NSToolbarIsUserRemovable">YES</bool>
- <int key="NSToolbarItemVisibilityPriority">0</int>
- </object>
- </dictionary>
- <array class="NSMutableArray" key="NSToolbarIBAllowedItems">
- <reference ref="914743654"/>
- <reference ref="224936444"/>
- <reference ref="641338426"/>
- <reference ref="265637031"/>
- <reference ref="845520355"/>
- </array>
- <array key="NSToolbarIBDefaultItems">
- <reference ref="914743654"/>
- <reference ref="265637031"/>
- <reference ref="845520355"/>
- <reference ref="224936444"/>
- </array>
- <array key="NSToolbarIBSelectableItems" id="0"/>
- </object>
- <nil key="NSUserInterfaceItemIdentifier"/>
- <object class="NSView" key="NSWindowView" id="1006">
- <reference key="NSNextResponder"/>
- <string key="NSFrameSize">{480, 270}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- </object>
- <string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
- <string key="NSMaxSize">{10000000000000, 10000000000000}</string>
- <bool key="NSWindowIsRestorable">YES</bool>
- </object>
- <object class="NSCustomView" id="103531975">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">268</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSButton" id="521024449">
- <reference key="NSNextResponder" ref="103531975"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{18, 106}, {219, 18}}</string>
- <reference key="NSSuperview" ref="103531975"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="550678479">
- <int key="NSCellFlags">-2080374784</int>
- <int key="NSCellFlags2">268435456</int>
- <string key="NSContents">Keep inspector windows on top</string>
- <object class="NSFont" key="NSSupport" id="924461577">
- <string key="NSName">.LucidaGrandeUI</string>
- <double key="NSSize">13</double>
- <int key="NSfFlags">1044</int>
- </object>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="521024449"/>
- <int key="NSButtonFlags">1211912448</int>
- <int key="NSButtonFlags2">2</int>
- <object class="NSCustomResource" key="NSNormalImage" id="959728078">
- <string key="NSClassName">NSImage</string>
- <string key="NSResourceName">NSSwitch</string>
- </object>
- <object class="NSButtonImageSource" key="NSAlternateImage" id="808033943">
- <string key="NSImageName">NSSwitch</string>
- </object>
- <string key="NSAlternateContents"/>
- <string key="NSKeyEquivalent"/>
- <int key="NSPeriodicDelay">200</int>
- <int key="NSPeriodicInterval">25</int>
- </object>
- <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
- </object>
- <object class="NSButton" id="118735803">
- <reference key="NSNextResponder" ref="103531975"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{18, 126}, {168, 18}}</string>
- <reference key="NSSuperview" ref="103531975"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="521024449"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="63691474">
- <int key="NSCellFlags">-2080374784</int>
- <int key="NSCellFlags2">268435456</int>
- <string key="NSContents">Autocomplete brackets</string>
- <reference key="NSSupport" ref="924461577"/>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="118735803"/>
- <int key="NSButtonFlags">1211912448</int>
- <int key="NSButtonFlags2">2</int>
- <reference key="NSNormalImage" ref="959728078"/>
- <reference key="NSAlternateImage" ref="808033943"/>
- <string key="NSAlternateContents"/>
- <string key="NSKeyEquivalent"/>
- <int key="NSPeriodicDelay">200</int>
- <int key="NSPeriodicInterval">25</int>
- </object>
- <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
- </object>
- <object class="NSButton" id="764495169">
- <reference key="NSNextResponder" ref="103531975"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{18, 18}, {214, 18}}</string>
- <reference key="NSSuperview" ref="103531975"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="292348615">
- <int key="NSCellFlags">-2080374784</int>
- <int key="NSCellFlags2">268435456</int>
- <string key="NSContents">Bring preview window to focus</string>
- <reference key="NSSupport" ref="924461577"/>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="764495169"/>
- <int key="NSButtonFlags">1211912448</int>
- <int key="NSButtonFlags2">2</int>
- <reference key="NSNormalImage" ref="959728078"/>
- <reference key="NSAlternateImage" ref="808033943"/>
- <string key="NSAlternateContents"/>
- <string key="NSKeyEquivalent"/>
- <int key="NSPeriodicDelay">200</int>
- <int key="NSPeriodicInterval">25</int>
- </object>
- <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
- </object>
- <object class="NSTextField" id="762565485">
- <reference key="NSNextResponder" ref="103531975"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{20, 42}, {440, 22}}</string>
- <reference key="NSSuperview" ref="103531975"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="764495169"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTextFieldCell" key="NSCell" id="186397132">
- <int key="NSCellFlags">-1804599231</int>
- <int key="NSCellFlags2">272630784</int>
- <string key="NSContents"/>
- <reference key="NSSupport" ref="924461577"/>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="762565485"/>
- <bool key="NSDrawsBackground">YES</bool>
- <object class="NSColor" key="NSBackgroundColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">textBackgroundColor</string>
- <object class="NSColor" key="NSColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MQA</bytes>
- </object>
- </object>
- <object class="NSColor" key="NSTextColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">textColor</string>
- <object class="NSColor" key="NSColor" id="433834218">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MAA</bytes>
- </object>
- </object>
- </object>
- <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
- <int key="NSTextFieldAlignmentRectInsetsVersion">1</int>
- </object>
- <object class="NSTextField" id="539123669">
- <reference key="NSNextResponder" ref="103531975"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{18, 72}, {140, 17}}</string>
- <reference key="NSSuperview" ref="103531975"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="762565485"/>
- <string key="NSReuseIdentifierKey">_NS:1535</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTextFieldCell" key="NSCell" id="459248896">
- <int key="NSCellFlags">68157504</int>
- <int key="NSCellFlags2">272630784</int>
- <string key="NSContents">pdfLaTeX source path</string>
- <reference key="NSSupport" ref="924461577"/>
- <string key="NSCellIdentifier">_NS:1535</string>
- <reference key="NSControlView" ref="539123669"/>
- <object class="NSColor" key="NSBackgroundColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">controlColor</string>
- <object class="NSColor" key="NSColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
- </object>
- </object>
- <object class="NSColor" key="NSTextColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">controlTextColor</string>
- <reference key="NSColor" ref="433834218"/>
- </object>
- </object>
- <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
- <int key="NSTextFieldAlignmentRectInsetsVersion">1</int>
- </object>
- </array>
- <string key="NSFrameSize">{480, 162}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="118735803"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <string key="NSClassName">NSView</string>
- </object>
- <object class="NSCustomView" id="596032684">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">268</int>
- <array class="NSMutableArray" key="NSSubviews"/>
- <string key="NSFrameSize">{480, 96}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <string key="NSClassName">NSView</string>
- </object>
- <object class="NSCustomView" id="169128791">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">12</int>
- <array class="NSMutableArray" key="NSSubviews"/>
- <string key="NSFrameSize">{480, 115}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <string key="NSClassName">NSView</string>
- </object>
- <object class="NSCustomView" id="812696929">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">12</int>
- <array class="NSMutableArray" key="NSSubviews"/>
- <string key="NSFrameSize">{557, 354}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <string key="NSClassName">NSView</string>
- </object>
- <object class="NSCustomView" id="443314002">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">12</int>
- <array class="NSMutableArray" key="NSSubviews"/>
- <string key="NSFrameSize">{557, 354}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <string key="NSClassName">NSView</string>
- </object>
- <object class="NSUserDefaultsController" id="706090457">
- <bool key="NSSharedInstance">YES</bool>
- </object>
- </array>
- <object class="IBObjectContainer" key="IBDocument.Objects">
- <array class="NSMutableArray" key="connectionRecords">
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">window</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="1005"/>
- </object>
- <int key="connectionID">3</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">engineView</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="103531975"/>
- </object>
- <int key="connectionID">23</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">generalView</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="596032684"/>
- </object>
- <int key="connectionID">25</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">switchView:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="914743654"/>
- </object>
- <int key="connectionID">26</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">switchView:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="641338426"/>
- </object>
- <int key="connectionID">27</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">switchView:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="224936444"/>
- </object>
- <int key="connectionID">116</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">updateView</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="169128791"/>
- </object>
- <int key="connectionID">117</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">switchView:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="265637031"/>
- </object>
- <int key="connectionID">120</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">preambleView</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="812696929"/>
- </object>
- <int key="connectionID">121</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">customNodeView</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="443314002"/>
- </object>
- <int key="connectionID">123</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">switchView:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="845520355"/>
- </object>
- <int key="connectionID">125</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">delegate</string>
- <reference key="source" ref="1005"/>
- <reference key="destination" ref="1001"/>
- </object>
- <int key="connectionID">4</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBBindingConnection" key="connection">
- <string key="label">value: values.net.sourceforge.tikzit.pdflatexpath</string>
- <reference key="source" ref="186397132"/>
- <reference key="destination" ref="706090457"/>
- <object class="NSNibBindingConnector" key="connector">
- <reference key="NSSource" ref="186397132"/>
- <reference key="NSDestination" ref="706090457"/>
- <string key="NSLabel">value: values.net.sourceforge.tikzit.pdflatexpath</string>
- <string key="NSBinding">value</string>
- <string key="NSKeyPath">values.net.sourceforge.tikzit.pdflatexpath</string>
- <int key="NSNibBindingConnectorVersion">2</int>
- </object>
- </object>
- <int key="connectionID">54</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBBindingConnection" key="connection">
- <string key="label">value: values.net.sourceforge.tikzit.previewfocus</string>
- <reference key="source" ref="292348615"/>
- <reference key="destination" ref="706090457"/>
- <object class="NSNibBindingConnector" key="connector">
- <reference key="NSSource" ref="292348615"/>
- <reference key="NSDestination" ref="706090457"/>
- <string key="NSLabel">value: values.net.sourceforge.tikzit.previewfocus</string>
- <string key="NSBinding">value</string>
- <string key="NSKeyPath">values.net.sourceforge.tikzit.previewfocus</string>
- <int key="NSNibBindingConnectorVersion">2</int>
- </object>
- </object>
- <int key="connectionID">62</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBBindingConnection" key="connection">
- <string key="label">value: values.net.sourceforge.tikzit.autocomplete</string>
- <reference key="source" ref="118735803"/>
- <reference key="destination" ref="706090457"/>
- <object class="NSNibBindingConnector" key="connector">
- <reference key="NSSource" ref="118735803"/>
- <reference key="NSDestination" ref="706090457"/>
- <string key="NSLabel">value: values.net.sourceforge.tikzit.autocomplete</string>
- <string key="NSBinding">value</string>
- <string key="NSKeyPath">values.net.sourceforge.tikzit.autocomplete</string>
- <int key="NSNibBindingConnectorVersion">2</int>
- </object>
- </object>
- <int key="connectionID">149</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBBindingConnection" key="connection">
- <string key="label">value: values.net.sourceforge.tikzit.inspectorsontop</string>
- <reference key="source" ref="521024449"/>
- <reference key="destination" ref="706090457"/>
- <object class="NSNibBindingConnector" key="connector">
- <reference key="NSSource" ref="521024449"/>
- <reference key="NSDestination" ref="706090457"/>
- <string key="NSLabel">value: values.net.sourceforge.tikzit.inspectorsontop</string>
- <string key="NSBinding">value</string>
- <string key="NSKeyPath">values.net.sourceforge.tikzit.inspectorsontop</string>
- <int key="NSNibBindingConnectorVersion">2</int>
- </object>
- </object>
- <int key="connectionID">150</int>
- </object>
- </array>
- <object class="IBMutableOrderedSet" key="objectRecords">
- <array key="orderedObjects">
- <object class="IBObjectRecord">
- <int key="objectID">0</int>
- <reference key="object" ref="0"/>
- <reference key="children" ref="1000"/>
- <nil key="parent"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-2</int>
- <reference key="object" ref="1001"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">File's Owner</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-1</int>
- <reference key="object" ref="1003"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">First Responder</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-3</int>
- <reference key="object" ref="1004"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">Application</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">1</int>
- <reference key="object" ref="1005"/>
- <array class="NSMutableArray" key="children">
- <reference ref="1006"/>
- <reference ref="338765480"/>
- </array>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">2</int>
- <reference key="object" ref="1006"/>
- <reference key="parent" ref="1005"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">5</int>
- <reference key="object" ref="338765480"/>
- <array class="NSMutableArray" key="children">
- <reference ref="641338426"/>
- <reference ref="914743654"/>
- <reference ref="224936444"/>
- <reference ref="265637031"/>
- <reference ref="845520355"/>
- </array>
- <reference key="parent" ref="1005"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">11</int>
- <reference key="object" ref="641338426"/>
- <reference key="parent" ref="338765480"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">12</int>
- <reference key="object" ref="914743654"/>
- <reference key="parent" ref="338765480"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">13</int>
- <reference key="object" ref="103531975"/>
- <array class="NSMutableArray" key="children">
- <object class="IBNSLayoutConstraint" id="727314944">
- <reference key="firstItem" ref="103531975"/>
- <int key="firstAttribute">4</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="764495169"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">23</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="728277728">
- <reference key="firstItem" ref="764495169"/>
- <int key="firstAttribute">3</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="762565485"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">8</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="116293249">
- <reference key="firstItem" ref="764495169"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="103531975"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">0</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="206376115">
- <reference key="firstItem" ref="103531975"/>
- <int key="firstAttribute">6</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="762565485"/>
- <int key="secondAttribute">6</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">0</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="921593038">
- <reference key="firstItem" ref="762565485"/>
- <int key="firstAttribute">3</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="539123669"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">8</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="783720041">
- <reference key="firstItem" ref="762565485"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="103531975"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">0</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="559306534">
- <reference key="firstItem" ref="539123669"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="103531975"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">0</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="852545348">
- <reference key="firstItem" ref="521024449"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="539123669"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">0.0</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">2</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="750010708">
- <reference key="firstItem" ref="521024449"/>
- <int key="firstAttribute">3</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="118735803"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">6</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="295298081">
- <reference key="firstItem" ref="521024449"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="118735803"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">0.0</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">2</int>
- <bool key="placeholder">NO</bool>
- </object>
- <object class="IBNSLayoutConstraint" id="956205451">
- <reference key="firstItem" ref="118735803"/>
- <int key="firstAttribute">3</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="103531975"/>
- <int key="secondAttribute">3</int>
- <float key="multiplier">1</float>
- <string key="multiplierString">1</string>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <reference key="containingView" ref="103531975"/>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">23</float>
- <int key="contentType">3</int>
- <bool key="placeholder">NO</bool>
- </object>
- <reference ref="539123669"/>
- <reference ref="762565485"/>
- <reference ref="764495169"/>
- <reference ref="118735803"/>
- <reference ref="521024449"/>
- </array>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">14</int>
- <reference key="object" ref="596032684"/>
- <array class="NSMutableArray" key="children"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">15</int>
- <reference key="object" ref="539123669"/>
- <array class="NSMutableArray" key="children">
- <reference ref="459248896"/>
- </array>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">16</int>
- <reference key="object" ref="459248896"/>
- <reference key="parent" ref="539123669"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">30</int>
- <reference key="object" ref="559306534"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">32</int>
- <reference key="object" ref="762565485"/>
- <array class="NSMutableArray" key="children">
- <reference ref="186397132"/>
- </array>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">33</int>
- <reference key="object" ref="186397132"/>
- <reference key="parent" ref="762565485"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">36</int>
- <reference key="object" ref="783720041"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">39</int>
- <reference key="object" ref="706090457"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">55</int>
- <reference key="object" ref="921593038"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">56</int>
- <reference key="object" ref="206376115"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">57</int>
- <reference key="object" ref="764495169"/>
- <array class="NSMutableArray" key="children">
- <reference ref="292348615"/>
- </array>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">58</int>
- <reference key="object" ref="292348615"/>
- <reference key="parent" ref="764495169"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">59</int>
- <reference key="object" ref="116293249"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">60</int>
- <reference key="object" ref="728277728"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">64</int>
- <reference key="object" ref="169128791"/>
- <array class="NSMutableArray" key="children"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">115</int>
- <reference key="object" ref="224936444"/>
- <reference key="parent" ref="338765480"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">118</int>
- <reference key="object" ref="812696929"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">119</int>
- <reference key="object" ref="265637031"/>
- <reference key="parent" ref="338765480"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">122</int>
- <reference key="object" ref="443314002"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">124</int>
- <reference key="object" ref="845520355"/>
- <reference key="parent" ref="338765480"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">126</int>
- <reference key="object" ref="727314944"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">127</int>
- <reference key="object" ref="118735803"/>
- <array class="NSMutableArray" key="children">
- <reference ref="63691474"/>
- </array>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">128</int>
- <reference key="object" ref="63691474"/>
- <reference key="parent" ref="118735803"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">130</int>
- <reference key="object" ref="956205451"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">131</int>
- <reference key="object" ref="521024449"/>
- <array class="NSMutableArray" key="children">
- <reference ref="550678479"/>
- </array>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">132</int>
- <reference key="object" ref="550678479"/>
- <reference key="parent" ref="521024449"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">134</int>
- <reference key="object" ref="295298081"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">135</int>
- <reference key="object" ref="750010708"/>
- <reference key="parent" ref="103531975"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">153</int>
- <reference key="object" ref="852545348"/>
- <reference key="parent" ref="103531975"/>
- </object>
- </array>
- </object>
- <dictionary class="NSMutableDictionary" key="flattenedProperties">
- <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="1.IBWindowTemplateEditedContentRect">{{357, 418}, {480, 270}}</string>
- <boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
- <string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="115.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="118.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="119.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="12.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="122.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="124.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="126.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="127.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="127.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="128.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <array key="13.IBNSViewMetadataConstraints">
- <reference ref="956205451"/>
- <reference ref="295298081"/>
- <reference ref="750010708"/>
- <reference ref="852545348"/>
- <reference ref="559306534"/>
- <reference ref="783720041"/>
- <reference ref="921593038"/>
- <reference ref="206376115"/>
- <reference ref="116293249"/>
- <reference ref="728277728"/>
- <reference ref="727314944"/>
- </array>
- <string key="13.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="130.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="131.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="131.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="132.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="134.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="135.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="14.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="15.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="15.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="153.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="30.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="32.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="33.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="36.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="39.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="55.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="56.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="57.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="57.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="58.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="59.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="60.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="64.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
- <nil key="activeLocalization"/>
- <dictionary class="NSMutableDictionary" key="localizations"/>
- <nil key="sourceID"/>
- <int key="maxID">153</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <array class="NSMutableArray" key="referencedPartialClassDescriptions">
- <object class="IBPartialClassDescription">
- <string key="className">PreferenceController</string>
- <string key="superclassName">NSWindowController</string>
- <object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">switchView:</string>
- <string key="NS.object.0">id</string>
- </object>
- <object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">switchView:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">switchView:</string>
- <string key="candidateClassName">id</string>
- </object>
- </object>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="customNodeView">NSView</string>
- <string key="engineView">NSView</string>
- <string key="generalView">NSView</string>
- <string key="preambleView">NSView</string>
- <string key="updateView">NSView</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="customNodeView">
- <string key="name">customNodeView</string>
- <string key="candidateClassName">NSView</string>
- </object>
- <object class="IBToOneOutletInfo" key="engineView">
- <string key="name">engineView</string>
- <string key="candidateClassName">NSView</string>
- </object>
- <object class="IBToOneOutletInfo" key="generalView">
- <string key="name">generalView</string>
- <string key="candidateClassName">NSView</string>
- </object>
- <object class="IBToOneOutletInfo" key="preambleView">
- <string key="name">preambleView</string>
- <string key="candidateClassName">NSView</string>
- </object>
- <object class="IBToOneOutletInfo" key="updateView">
- <string key="name">updateView</string>
- <string key="candidateClassName">NSView</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/PreferenceController.h</string>
- </object>
- </object>
- </array>
- </object>
- <int key="IBDocument.localizationMode">0</int>
- <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
- <bool key="IBDocument.previouslyAttemptedUpgradeToXcode5">YES</bool>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
- <real value="1070" key="NS.object.0"/>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
- <integer value="4600" key="NS.object.0"/>
- </object>
- <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
- <int key="IBDocument.defaultPropertyAccessControl">3</int>
- <dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
- <string key="NSPreferencesGeneral">{32, 32}</string>
- <string key="NSSwitch">{15, 15}</string>
- <string key="customshape">{32, 32}</string>
- <string key="engine">{32, 32}</string>
- <string key="preamble">{32, 32}</string>
- <string key="updates">{32, 32}</string>
- </dictionary>
- <bool key="IBDocument.UseAutolayout">YES</bool>
- </data>
-</archive>
diff --git a/tikzit-old/src/osx/PreviewController.h b/tikzit-old/src/osx/PreviewController.h
deleted file mode 100644
index 6c51a23..0000000
--- a/tikzit-old/src/osx/PreviewController.h
+++ /dev/null
@@ -1,52 +0,0 @@
-//
-// PreviewController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-
-#import <Cocoa/Cocoa.h>
-#import "DraggablePDFView.h"
-
-@class PDFView;
-@class PreambleController;
-
-@interface PreviewController : NSWindowController {
- IBOutlet DraggablePDFView *pdfView;
- IBOutlet NSProgressIndicator *progressIndicator;
- IBOutlet NSScrollView *errorTextView;
- IBOutlet NSTextView *errorText;
- PreambleController *preambleController;
- NSString *tempDir;
- NSLock *latexLock;
- int typesetCount;
-}
-
-
-- (id)initWithWindowNibName:(NSString*)nib
- preambleController:(PreambleController*)pc
- tempDir:(NSString*)dir;
-
-- (void)buildTikz:(NSString*)tikz;
-
-+ (void)setDefaultPreviewController:(PreviewController*)pc;
-+ (PreviewController*)defaultPreviewController;
-
-@end
diff --git a/tikzit-old/src/osx/PreviewController.m b/tikzit-old/src/osx/PreviewController.m
deleted file mode 100644
index cf069b1..0000000
--- a/tikzit-old/src/osx/PreviewController.m
+++ /dev/null
@@ -1,147 +0,0 @@
-//
-// PreviewController.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "PreviewController.h"
-#import "AppDelegate.h"
-#import "PreambleController.h"
-#import <Quartz/Quartz.h>
-
-@implementation PreviewController
-
-static PreviewController *preview = nil;
-
-- (id)initWithWindowNibName:(NSString*)nib
- preambleController:(PreambleController*)pc
- tempDir:(NSString*)dir {
- if (!(self = [super initWithWindowNibName:nib])) return nil;
- tempDir = [dir copy];
- typesetCount = 0;
- preambleController = pc;
- latexLock = [[NSLock alloc] init];
- return self;
-}
-
-- (void)runLatex:(id)tikz {
- // Only build one tex file at a time, so we don't get funky results.
- //[latexLock lock];
- [progressIndicator startAnimation:self];
-
- if([[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.previewfocus"]){
- [[preview window] makeKeyAndOrderFront:self];
- }
-
- int fnum = typesetCount++;
-
- NSString *tex = [preambleController buildDocumentForTikz:tikz];
-
- NSString *texFile = [NSString stringWithFormat:@"%@/tikzit_%d.tex", tempDir, fnum];
- NSString *pdfFile = [NSString stringWithFormat:@"%@/tikzit_%d.pdf", tempDir, fnum];
-
- [tex writeToFile:texFile atomically:NO encoding:NSUTF8StringEncoding error:NULL];
-
- NSString *pdflatexPath = [[NSUserDefaults standardUserDefaults] stringForKey:@"net.sourceforge.tikzit.pdflatexpath"];
-
- // We run pdflatex in a bash shell to have easy access to the setup from unix-land
- NSTask *latexTask = [[NSTask alloc] init];
- [latexTask setCurrentDirectoryPath:tempDir];
- [latexTask setLaunchPath:@"/bin/bash"];
-
- // This assumes the user has $PATH set up to find pdflatex in either .profile
- // or .bashrc. This should be improved to take other path setups into account
- // and to be customisable.
- NSString *latexCmd =
- [NSString stringWithFormat:
- @"if [ -e ~/.profile ]; then source ~/.profile; fi\n"
- @"if [ -e ~/.bashrc ]; then source ~/.bashrc; fi\n"
- @"%@ -interaction=nonstopmode -output-format=pdf -halt-on-error '%@'\n", pdflatexPath, texFile];
-
- NSLog(@"Telling bash: %@", latexCmd);
-
- NSPipe *pout = [NSPipe pipe];
- NSPipe *pin = [NSPipe pipe];
- [latexTask setStandardOutput:pout];
- [latexTask setStandardInput:pin];
-
- NSFileHandle *latexIn = [pin fileHandleForWriting];
- NSFileHandle *latexOut = [pout fileHandleForReading];
-
- [latexTask launch];
- [latexIn writeData:[latexCmd dataUsingEncoding:NSUTF8StringEncoding]];
- [latexIn closeFile];
-
-
- NSData *data = [latexOut readDataToEndOfFile];
- NSString *str = [[NSString alloc] initWithData:data
- encoding:NSUTF8StringEncoding];
-
- [latexTask waitUntilExit];
- if ([latexTask terminationStatus] != 0) {
- if ([latexTask terminationStatus] == 127) {
- [errorTextView setHidden:YES];
- [errorText setString:@"\nCouldn't find pdflatex, change settings and try again."];
- [errorTextView setHidden:NO];
- }else{
- [errorTextView setHidden:YES];
- [errorText setString:[@"\nAN ERROR HAS OCCURRED, PDFLATEX SAID:\n\n" stringByAppendingString:str]];
- [errorTextView setHidden:NO];
- }
- } else {
- [errorText setString:@""];
- [errorTextView setHidden:YES];
-
- PDFDocument *doc = [[PDFDocument alloc] initWithURL:[[NSURL alloc] initFileURLWithPath:pdfFile]];
-
- // pad the PDF by a couple of pixels
- if ([doc pageCount] >= 1) {
- PDFPage *page = [doc pageAtIndex:0];
- NSRect box = [page boundsForBox:kPDFDisplayBoxCropBox];
- box.origin.x -= 2.0f;
- box.origin.y -= 2.0f;
- box.size.width += 4.0f;
- box.size.height += 4.0f;
- [page setBounds:box forBox:kPDFDisplayBoxCropBox];
- [page setBounds:box forBox:kPDFDisplayBoxMediaBox];
- }
-
- [pdfView setDocument:doc];
- }
-
- [progressIndicator stopAnimation:self];
- //[latexLock unlock];
-}
-
-- (void)buildTikz:(NSString*)tikz {
- // Build on a separate thread to keep the interface responsive.
- [NSThread detachNewThreadSelector:@selector(runLatex:) toTarget:self withObject:tikz];
-}
-
-+ (void)setDefaultPreviewController:(PreviewController*)pc {
- preview = pc;
-}
-
-+ (PreviewController*)defaultPreviewController {
- return preview;
-}
-
-
-@end
diff --git a/tikzit-old/src/osx/PropertyInspectorController.h b/tikzit-old/src/osx/PropertyInspectorController.h
deleted file mode 100644
index 663ee4a..0000000
--- a/tikzit-old/src/osx/PropertyInspectorController.h
+++ /dev/null
@@ -1,83 +0,0 @@
-//
-// PropertyInspectorController.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 17/07/2011.
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "NodeStyle.h"
-#import "GraphElementData.h"
-
-@class SFBInspectorView;
-@class StylePaletteController;
-
-@interface PropertyInspectorController : NSWindowController {
- IBOutlet SFBInspectorView *propertyInspectorView;
- IBOutlet NSView *nodePropertiesView;
- IBOutlet NSView *graphPropertiesView;
- IBOutlet NSView *edgePropertiesView;
- IBOutlet NSComboBox *sourceAnchorComboBox;
- IBOutlet NSComboBox *targetAnchorComboBox;
- IBOutlet NSTextField *edgeNodeLabelField;
- IBOutlet NSButton *edgeNodeCheckbox;
- IBOutlet NSArrayController *nodeDataArrayController;
- IBOutlet NSArrayController *graphDataArrayController;
- IBOutlet NSArrayController *edgeDataArrayController;
- IBOutlet NSArrayController *edgeNodeDataArrayController;
-
- NSMutableArray *sourceAnchorNames;
- IBOutlet NSArrayController *sourceAnchorNamesArrayController;
-
- NSMutableArray *targetAnchorNames;
- IBOutlet NSArrayController *targetAnchorNamesArrayController;
-
- NSMutableArray *selectedNodes;
- IBOutlet NSArrayController *selectedNodesArrayController;
-
- NSMutableArray *selectedEdges;
- IBOutlet NSArrayController *selectedEdgesArrayController;
-
- // this data lists exists solely for displaying messages in disabled data tables
- GraphElementData *noSelection;
- GraphElementData *multipleSelection;
- GraphElementData *noEdgeNode;
- GraphElementData *noGraph;
-
-
- // used to get access to the global style table
- StylePaletteController *stylePaletteController;
-}
-
-//@property (readonly) BOOL enableNodeDataControls;
-//@property (readonly) BOOL enableEdgeDataControls;
-@property (strong) NSMutableArray *selectedNodes;
-@property (strong) NSMutableArray *selectedEdges;
-@property (strong) NSMutableArray *sourceAnchorNames;
-@property (strong) NSMutableArray *targetAnchorNames;
-@property (strong) StylePaletteController *stylePaletteController;
-
-- (id)initWithWindowNibName:(NSString *)windowNibName;
-- (void)graphSelectionChanged:(NSNotification*)notification;
-
-- (IBAction)addNodeProperty:(id)sender;
-- (IBAction)addNodeAtom:(id)sender;
-- (IBAction)removeNodeProperty:(id)sender;
-
-- (IBAction)addGraphProperty:(id)sender;
-- (IBAction)addGraphAtom:(id)sender;
-- (IBAction)removeGraphProperty:(id)sender;
-
-- (IBAction)addEdgeProperty:(id)sender;
-- (IBAction)addEdgeAtom:(id)sender;
-- (IBAction)removeEdgeProperty:(id)sender;
-
-- (IBAction)addEdgeNodeProperty:(id)sender;
-- (IBAction)addEdgeNodeAtom:(id)sender;
-- (IBAction)removeEdgeNodeProperty:(id)sender;
-
-//- (IBAction)addRemoveChildNode:(id)sender;
-- (IBAction)refreshDocument:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/PropertyInspectorController.m b/tikzit-old/src/osx/PropertyInspectorController.m
deleted file mode 100644
index 039a30f..0000000
--- a/tikzit-old/src/osx/PropertyInspectorController.m
+++ /dev/null
@@ -1,280 +0,0 @@
-//
-// PropertyInspectorController.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 17/07/2011.
-// Copyright 2011 Aleks Kissinger. All rights reserved.
-//
-
-#import "PropertyInspectorController.h"
-#import "StylePaletteController.h"
-#import "TikzDocument.h"
-#import "SFBInspectors/SFBInspectorView.h"
-#import "PickSupport.h"
-#import "Node.h"
-#import "Edge.h"
-#import "NodeStyle.h"
-#import "GraphicsView.h"
-#import "GraphElementProperty.h"
-#import "Shape.h"
-
-@implementation PropertyInspectorController
-
-@synthesize stylePaletteController;
-@synthesize selectedNodes, selectedEdges;
-@synthesize sourceAnchorNames, targetAnchorNames;
-
-- (id)initWithWindowNibName:(NSString *)windowNibName {
- if (!(self = [super initWithWindowNibName:windowNibName])) return nil;
-
- noSelection = [[GraphElementData alloc] init];
- [noSelection setProperty:@"" forKey:@"No Selection"];
- multipleSelection = [[GraphElementData alloc] init];
- [multipleSelection setProperty:@"" forKey:@"Mult. Selection"];
- noEdgeNode = [[GraphElementData alloc] init];
- [noEdgeNode setProperty:@"" forKey:@"No Child"];
- noGraph = [[GraphElementData alloc] init];
- [noGraph setProperty:@"" forKey:@"No Graph"];
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(graphSelectionChanged:)
- name:@"SelectionChanged"
- object:nil];
-
-// [[NSDocumentController sharedDocumentController] addObserver:self
-// forKeyPath:@"currentDocument"
-// options:NSKeyValueObservingOptionNew
-// context:NULL];
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(graphSelectionChanged:)
- name:@"NSWindowDidBecomeMainNotification"
- object:nil];
-
- [self setSourceAnchorNames: [[NSMutableArray alloc] initWithArray: [@"north south west east" componentsSeparatedByString:@" "]]];
-
- [self setTargetAnchorNames: [[NSMutableArray alloc] initWithArray:[@"north south west east" componentsSeparatedByString:@" "]]];
-
-
- if ([[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.inspectorsontop"] == YES) {
- [[self window] setLevel:NSFloatingWindowLevel];
- } else {
- [[self window] setLevel:NSNormalWindowLevel];
- }
-
- [self showWindow:self];
- return self;
-}
-
-- (void)observeValueForKeyPath:(NSString*)keyPath
- ofObject:(id)object
- change:(NSDictionary*)change
- context:(void*)context {
- [self graphSelectionChanged:nil];
-}
-
-//- (void)willChangeValueForKey:(NSString *)key {
-// [super willChangeValueForKey:key];
-// NSLog(@"will: %@",key);
-//}
-//
-//- (void)didChangeValueForKey:(NSString *)key {
-// [super didChangeValueForKey:key];
-// NSLog(@"did: %@",key);
-//}
-
-- (void)windowDidLoad {
- [[self window] setMovableByWindowBackground:YES];
-
- [propertyInspectorView addInspectorPane:graphPropertiesView
- title:@"Graph Properties"];
- [propertyInspectorView addInspectorPane:nodePropertiesView
- title:@"Node Properties"];
- [propertyInspectorView addInspectorPane:edgePropertiesView
- title:@"Edge Properties"];
- [super windowDidLoad];
-}
-
-- (IBAction)refreshDocument:(id)sender {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-
- if (doc != nil) {
- [[doc graphicsView] postGraphChange];
- [[doc graphicsView] refreshLayers];
- }
-}
-
-
-- (void)updateGraphFields {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-
- if (doc != nil) {
- [graphDataArrayController setContent:[[[doc graphicsView] graph] data]];
- [graphDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [graphDataArrayController setEditable:YES];
- } else {
- [graphDataArrayController setContent:noGraph];
- [graphDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [graphDataArrayController setEditable:NO];
- }
-}
-
-- (void)updateNodeFields {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
- if (doc != nil) {
- NSSet *sel = [[[doc graphicsView] pickSupport] selectedNodes];
- [self setSelectedNodes:[[sel allObjects] mutableCopy]];
- [selectedNodesArrayController setSelectedObjects:selectedNodes];
- if ([sel count] == 1) {
- Node *n = [sel anyObject];
- [nodeDataArrayController setContent:[n data]];
- [nodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [nodeDataArrayController setEditable:YES];
- } else if ([sel count] == 0) {
- [nodeDataArrayController setContent:noSelection];
- [nodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [nodeDataArrayController setEditable:NO];
- } else {
- [nodeDataArrayController setContent:multipleSelection];
- [nodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [nodeDataArrayController setEditable:NO];
- }
- } else {
- [nodeDataArrayController setContent:noGraph];
- [nodeDataArrayController setEditable:NO];
- }
-}
-
-- (void)updateEdgeFields {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-
- if (doc != nil) {
- NSSet *sel = [[[doc graphicsView] pickSupport] selectedEdges];
- [self setSelectedEdges:[[sel allObjects] mutableCopy]];
- [selectedEdgesArrayController setSelectedObjects:selectedEdges];
- if ([sel count] == 1) {
- Edge *e = [sel anyObject];
- [edgeDataArrayController setContent:[e data]];
- [edgeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeDataArrayController setEditable:YES];
- if ([e hasEdgeNode]) {
- Node *n = [e edgeNode];
- [edgeNodeDataArrayController setContent:[n data]];
- [edgeNodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeNodeDataArrayController setEditable:YES];
- } else {
- [edgeNodeDataArrayController setContent:noEdgeNode];
- [edgeNodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeNodeDataArrayController setEditable:NO];
- }
- } else if ([sel count] == 0) {
- [edgeDataArrayController setContent:noSelection];
- [edgeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeDataArrayController setEditable:NO];
- [edgeNodeDataArrayController setContent:noSelection];
- [edgeNodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeNodeDataArrayController setEditable:NO];
- } else {
- [edgeDataArrayController setContent:multipleSelection];
- [edgeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeDataArrayController setEditable:NO];
- [edgeNodeDataArrayController setContent:multipleSelection];
- [edgeNodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeNodeDataArrayController setEditable:NO];
- }
- } else {
- [edgeDataArrayController setContent:noGraph];
- [edgeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeDataArrayController setEditable:NO];
- [edgeNodeDataArrayController setContent:noGraph];
- [edgeNodeDataArrayController setSelectionIndexes:[NSIndexSet indexSet]];
- [edgeNodeDataArrayController setEditable:NO];
- }
-}
-
-- (void)graphSelectionChanged:(NSNotification*)notification {
- [self updateNodeFields];
- [self updateEdgeFields];
- [self updateGraphFields];
-}
-
-- (void)controlTextDidEndEditing:(NSNotification*)notification {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
- if (doc != nil) {
- PickSupport *pick = [[doc graphicsView] pickSupport];
- for (Node *n in [pick selectedNodes]) {
- [n attachStyleFromTable:[stylePaletteController nodeStyles]];
- }
-
- for (Edge *e in [pick selectedEdges]) {
- [e attachStyleFromTable:[stylePaletteController edgeStyles]];
- }
- }
-
- [self refreshDocument:[notification object]];
-}
-
-- (void)addPropertyToAC:(NSArrayController*)ac {
- [ac addObject:[[GraphElementProperty alloc] initWithPropertyValue:@"val" forKey:@"new_property"]];
- [self refreshDocument:nil];
-}
-
-- (void)addAtomToAC:(NSArrayController*)ac {
- [ac addObject:[[GraphElementProperty alloc] initWithAtomName:@"new_atom"]];
- [self refreshDocument:nil];
-}
-
-- (void)removeFromAC:(NSArrayController*)ac {
- [ac remove:nil];
- [self refreshDocument:nil];
-}
-
-- (IBAction)addNodeProperty:(id)sender { [self addPropertyToAC:nodeDataArrayController]; }
-- (IBAction)addNodeAtom:(id)sender { [self addAtomToAC:nodeDataArrayController]; }
-- (IBAction)removeNodeProperty:(id)sender { [self removeFromAC:nodeDataArrayController]; }
-
-- (IBAction)addGraphProperty:(id)sender { [self addPropertyToAC:graphDataArrayController]; }
-- (IBAction)addGraphAtom:(id)sender { [self addAtomToAC:graphDataArrayController]; }
-- (IBAction)removeGraphProperty:(id)sender { [self removeFromAC:graphDataArrayController]; }
-
-- (IBAction)addEdgeProperty:(id)sender { [self addPropertyToAC:edgeDataArrayController]; }
-- (IBAction)addEdgeAtom:(id)sender { [self addAtomToAC:edgeDataArrayController]; }
-- (IBAction)removeEdgeProperty:(id)sender { [self removeFromAC:edgeDataArrayController]; }
-
-- (IBAction)addEdgeNodeProperty:(id)sender { [self addPropertyToAC:edgeNodeDataArrayController]; }
-- (IBAction)addEdgeNodeAtom:(id)sender { [self addAtomToAC:edgeNodeDataArrayController]; }
-- (IBAction)removeEdgeNodeProperty:(id)sender { [self removeFromAC:edgeNodeDataArrayController]; }
-
-//- (BOOL)enableEdgeDataControls {
-// NSDocumentController *dc = [NSDocumentController sharedDocumentController];
-// TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-//
-// if (doc != nil) {
-// return ([[[[doc graphicsView] pickSupport] selectedEdges] count] == 1);
-// } else {
-// return NO;
-// }
-//}
-//
-//- (BOOL)enableEdgeNodeDataControls {
-// NSDocumentController *dc = [NSDocumentController sharedDocumentController];
-// TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-//
-// if (doc != nil) {
-// PickSupport *pick = [[doc graphicsView] pickSupport];
-// if ([[pick selectedEdges] count] == 1) {
-// return ([[[pick selectedEdges] anyObject] hasEdgeNode]);
-// } else {
-// return NO;
-// }
-// } else {
-// return NO;
-// }
-//}
-
-@end
diff --git a/tikzit-old/src/osx/SelectBoxLayer.h b/tikzit-old/src/osx/SelectBoxLayer.h
deleted file mode 100644
index 45b43c7..0000000
--- a/tikzit-old/src/osx/SelectBoxLayer.h
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// SelectBoxLayer.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 14/06/2010.
-// Copyright 2010 __MyCompanyName__. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/CoreAnimation.h>
-
-@interface SelectBoxLayer : CALayer {
- BOOL active;
- CGRect box;
-}
-
-@property (assign) BOOL active;
-@property (assign) NSRect selectBox;
-
-+ (SelectBoxLayer*)layer;
-
-@end
diff --git a/tikzit-old/src/osx/SelectBoxLayer.m b/tikzit-old/src/osx/SelectBoxLayer.m
deleted file mode 100644
index a7abe33..0000000
--- a/tikzit-old/src/osx/SelectBoxLayer.m
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// SelectBoxLayer.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 14/06/2010.
-// Copyright 2010 __MyCompanyName__. All rights reserved.
-//
-
-#import "SelectBoxLayer.h"
-
-
-@implementation SelectBoxLayer
-
-@synthesize active;
-
-- (id)init {
- if (!(self = [super init])) return nil;
- box = CGRectMake(0.0f, 0.0f, 0.0f, 0.0f);
- active = NO;
- return self;
-}
-
-- (void)setSelectBox:(NSRect)r {
- box = NSRectToCGRect(r);
-}
-
-- (NSRect)selectBox {
- return NSRectFromCGRect(box);
-}
-
-- (void)drawInContext:(CGContextRef)context {
- if (active) {
- CGContextAddRect(context, box);
-
- CGContextSetRGBStrokeColor(context, 0.6, 0.6, 0.6, 1);
- CGContextSetRGBFillColor(context, 0.8, 0.8, 0.8, 0.2);
- CGContextSetLineWidth(context, 1);
-
- CGContextSetShouldAntialias(context, NO);
- CGContextDrawPath(context, kCGPathFillStroke);
- }
-}
-
-+ (SelectBoxLayer*)layer {
- return [[SelectBoxLayer alloc] init];
-}
-
-@end
diff --git a/tikzit-old/src/osx/SelectableCollectionViewItem.h b/tikzit-old/src/osx/SelectableCollectionViewItem.h
deleted file mode 100644
index 4a2c571..0000000
--- a/tikzit-old/src/osx/SelectableCollectionViewItem.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// SelectableCollectionViewItem.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "StylePaletteController.h"
-
-@interface SelectableCollectionViewItem : NSCollectionViewItem {
- IBOutlet StylePaletteController *stylePaletteController;
-}
-
-- (void)setStylePaletteController:(StylePaletteController*)spc;
-
-@end
diff --git a/tikzit-old/src/osx/SelectableCollectionViewItem.m b/tikzit-old/src/osx/SelectableCollectionViewItem.m
deleted file mode 100644
index 880c37b..0000000
--- a/tikzit-old/src/osx/SelectableCollectionViewItem.m
+++ /dev/null
@@ -1,54 +0,0 @@
-//
-// SelectableCollectionViewItem.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "SelectableCollectionViewItem.h"
-#import "SelectableNodeView.h"
-
-@implementation SelectableCollectionViewItem
-
-- (id)copyWithZone:(NSZone *)zone {
- SelectableCollectionViewItem *item = [super copyWithZone:zone];
- [item setStylePaletteController:stylePaletteController];
- return (id)item;
-}
-
-- (void)setSelected:(BOOL)flag {
- [super setSelected:flag];
- [(SelectableNodeView*)[self view] setSelected:flag];
-
- // only fire this event from the view that lost selection
- //if (flag == NO) [stylePaletteController selectionDidChange];
-
- [[self view] setNeedsDisplay:YES];
-}
-
-- (void)setRepresentedObject:(id)object {
- [super setRepresentedObject:object];
- [(SelectableNodeView*)[self view] setNodeStyle:(NodeStyle*)object];
-}
-
-- (void)setStylePaletteController:(StylePaletteController*)spc {
- stylePaletteController = spc;
-}
-
-@end
diff --git a/tikzit-old/src/osx/SelectableNodeView.h b/tikzit-old/src/osx/SelectableNodeView.h
deleted file mode 100644
index 6b0841d..0000000
--- a/tikzit-old/src/osx/SelectableNodeView.h
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// SelectableView.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "NodeLayer.h"
-#import "NodeStyle.h"
-#import "NodeStyle+Coder.h"
-
-@interface SelectableNodeView : NSView {
- BOOL selected;
- NodeLayer *nodeLayer;
-}
-
-@property (assign) BOOL selected;
-@property (strong) NodeStyle *nodeStyle;
-
-
-@end
diff --git a/tikzit-old/src/osx/SelectableNodeView.m b/tikzit-old/src/osx/SelectableNodeView.m
deleted file mode 100644
index 797a137..0000000
--- a/tikzit-old/src/osx/SelectableNodeView.m
+++ /dev/null
@@ -1,96 +0,0 @@
-//
-// SelectableView.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "SelectableNodeView.h"
-#import "Shape.h"
-#import "Transformer.h"
-
-@implementation SelectableNodeView
-
-@synthesize selected;
-
-- (id)initWithFrame:(NSRect)frameRect {
- if (!(self = [super initWithFrame:frameRect])) return nil;
- nodeLayer = nil;
- return self;
-}
-
--(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context {
-// NSLog(@"got draw");
-// CGContextSaveGState(context);
-//
-// if (selected) {
-// CGContextSetRGBStrokeColor(context, 0.61f, 0.735f, 1.0f, 1.0f);
-// CGContextSetRGBFillColor(context, 0.61f, 0.735f, 1.0f, 0.5f);
-// CGContextSetLineWidth(context, 1.0f);
-//
-// CGRect box = CGRectMake([layer frame].origin.x + 2,
-// [layer frame].origin.y + 2,
-// [layer frame].size.width - 4,
-// [layer frame].size.height - 4);
-//
-// //CGContextAddRect(context, box);
-// CGContextDrawPath(context, kCGPathFillStroke);
-// }
-//
-// CGContextRestoreGState(context);
-
- if (nodeLayer!=nil) {
- if (![[[self layer] sublayers] containsObject:nodeLayer]) {
- [[self layer] addSublayer:nodeLayer];
- NSPoint c = NSMakePoint(CGRectGetMidX([[self layer] frame]),
- CGRectGetMidY([[self layer] frame]));
- [nodeLayer setCenter:c andAnimateWhen:NO];
- }
-
- if (selected) [[nodeLayer selection] select];
- else [[nodeLayer selection] deselect];
-
- [nodeLayer updateFrame];
- }
-}
-
-- (void)drawRect:(NSRect)rect {
- [super drawRect:rect];
-}
-
-- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { return YES; }
-
-- (void)setNodeStyle:(NodeStyle *)sty {
- if (nodeLayer == nil) {
- nodeLayer = [[NodeLayer alloc] initWithNode:[Node node]
- transformer:[Transformer defaultTransformer]];
- [nodeLayer setRescale:NO];
- }
-
- [[nodeLayer node] setStyle:sty];
- [nodeLayer updateFrame];
-}
-
-- (NodeStyle*)nodeStyle {
- if (nodeLayer != nil) return [[nodeLayer node] style];
- else return nil;
-}
-
-
-@end
diff --git a/tikzit-old/src/osx/StylePaletteController.h b/tikzit-old/src/osx/StylePaletteController.h
deleted file mode 100644
index 05f0684..0000000
--- a/tikzit-old/src/osx/StylePaletteController.h
+++ /dev/null
@@ -1,80 +0,0 @@
-//
-// StylePaletteController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "NodeStyle.h"
-#import "EdgeStyle.h"
-
-@class SFBInspectorView;
-
-@interface StylePaletteController : NSWindowController {
- NSMutableArray *nodeStyles;
- NSMutableArray *edgeStyles;
- IBOutlet NSArrayController *nodeStyleArrayController;
- IBOutlet NSArrayController *filteredNodeStyleArrayController;
- IBOutlet NSArrayController *edgeStyleArrayController;
- IBOutlet NSArrayController *filteredEdgeStyleArrayController;
- IBOutlet NSCollectionView *collectionView;
- IBOutlet SFBInspectorView *nodeStyleInspectorView;
- IBOutlet NSView *nodeStyleView;
- IBOutlet NSView *edgeStyleView;
- IBOutlet NSPopUpButton *shapeDropdown;
- NSString *displayedNodeStyleCategory;
- NSString *displayedEdgeStyleCategory;
-}
-
-@property (strong) NSMutableArray *nodeStyles;
-@property (strong) NSMutableArray *edgeStyles;
-@property (readonly) BOOL documentActive;
-@property (strong) NodeStyle *activeNodeStyle;
-@property (strong) EdgeStyle *activeEdgeStyle;
-@property (copy) NSString *displayedNodeStyleCategory;
-@property (copy) NSString *displayedEdgeStyleCategory;
-@property (readonly) NSPredicate *displayedNodeStylePredicate;
-@property (readonly) NSPredicate *displayedEdgeStylePredicate;
-
-//@property NSString *nodeLabel;
-
-- (id)initWithWindowNibName:(NSString *)windowNibName
- supportDir:(NSString*)supportDir;
-- (void)saveStyles:(NSString *)plist;
-
-- (IBAction)refreshCollection:(id)sender;
-
-- (IBAction)applyActiveNodeStyle:(id)sender;
-- (IBAction)clearActiveNodeStyle:(id)sender;
-- (IBAction)addNodeStyle:(id)sender;
-
-- (IBAction)appleActiveEdgeStyle:(id)sender;
-- (IBAction)clearActiveEdgeStyle:(id)sender;
-- (IBAction)addEdgeStyle:(id)sender;
-- (void)setActiveEdgeStyle:(EdgeStyle*)style;
-
-- (IBAction)setFillToClosestHashed:(id)sender;
-- (IBAction)setStrokeToClosestHashed:(id)sender;
-
-
-//- (IBAction)changeShape:(id)sender;
-
-
-@end
diff --git a/tikzit-old/src/osx/StylePaletteController.m b/tikzit-old/src/osx/StylePaletteController.m
deleted file mode 100644
index 4fe46be..0000000
--- a/tikzit-old/src/osx/StylePaletteController.m
+++ /dev/null
@@ -1,252 +0,0 @@
-//
-// StylePaletteController.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "StylePaletteController.h"
-#import "TikzDocument.h"
-#import "SFBInspectors/SFBInspectorView.h"
-#import "PickSupport.h"
-#import "Node.h"
-#import "Edge.h"
-#import "NodeStyle.h"
-#import "GraphicsView.h"
-#import "GraphElementProperty.h"
-#import "Shape.h"
-
-@implementation StylePaletteController
-
-@synthesize nodeStyles, edgeStyles;
-
-- (id)initWithWindowNibName:(NSString *)windowNibName
- supportDir:(NSString*)supportDir
-{
- if (self = [super initWithWindowNibName:windowNibName]) {
- NSString *ns = [supportDir stringByAppendingPathComponent:@"nodeStyles.plist"];
- NSString *es = [supportDir stringByAppendingPathComponent:@"edgeStyles.plist"];
- nodeStyles = (NSMutableArray*)[NSKeyedUnarchiver
- unarchiveObjectWithFile:ns];
- edgeStyles = (NSMutableArray*)[NSKeyedUnarchiver
- unarchiveObjectWithFile:es];
-
- if (nodeStyles == nil) nodeStyles = [NSMutableArray array];
- if (edgeStyles == nil) edgeStyles = [NSMutableArray array];
-
- if ([[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.inspectorsontop"] == YES) {
- [[self window] setLevel:NSFloatingWindowLevel];
- } else {
- [[self window] setLevel:NSNormalWindowLevel];
- }
-
- [self showWindow:self];
- }
-
- return self;
-}
-
-- (void)windowDidLoad {
- [[self window] setMovableByWindowBackground:YES];
- [shapeDropdown addItemsWithTitles:[[Shape shapeDictionary] allKeys]];
- if ([self activeNodeStyle] != nil) {
- [shapeDropdown setTitle:[[self activeNodeStyle] shapeName]];
- }
-
- [nodeStyleInspectorView addInspectorPane:nodeStyleView
- title:@"Node Styles"];
-
- [nodeStyleInspectorView addInspectorPane:edgeStyleView
- title:@"Edge Styles"];
-
- [super windowDidLoad];
-}
-
-- (void)saveStyles:(NSString*)supportDir {
- NSString *ns = [supportDir stringByAppendingPathComponent:@"nodeStyles.plist"];
- NSString *es = [supportDir stringByAppendingPathComponent:@"edgeStyles.plist"];
- [NSKeyedArchiver archiveRootObject:nodeStyles toFile:ns];
- [NSKeyedArchiver archiveRootObject:edgeStyles toFile:es];
-}
-
-- (IBAction)refreshCollection:(id)sender {
- [collectionView setNeedsDisplay:YES];
-}
-
-
-- (BOOL)documentActive {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- return dc.currentDocument != nil;
-}
-
--(BOOL)collectionView:(NSCollectionView*)collectionView canDragItemsAtIndexes:(NSIndexSet*)indexes withEvent:(NSEvent*)event {
- return YES;
-}
-
-
-//===========================
-//= setting SVG-safe colors =
-//===========================
-- (IBAction)setFillToClosestHashed:(id)sender {
- NSArray *sel = [nodeStyleArrayController selectedObjects];
- if ([sel count] != 0) {
- NodeStyle *sty = [sel objectAtIndex:0];
- [sty willChangeValueForKey:@"fillColor"];
- [sty willChangeValueForKey:@"fillColorIsKnown"];
- [sty.fillColorRGB setToClosestHashed];
- [sty didChangeValueForKey:@"fillColor"];
- [sty didChangeValueForKey:@"fillColorIsKnown"];
- }
-}
-
-- (IBAction)setStrokeToClosestHashed:(id)sender {
- NSArray *sel = [nodeStyleArrayController selectedObjects];
- if ([sel count] != 0) {
- NodeStyle *sty = [sel objectAtIndex:0];
- [sty willChangeValueForKey:@"strokeColor"];
- [sty willChangeValueForKey:@"strokeColorIsKnown"];
- [sty.strokeColorRGB setToClosestHashed];
- [sty didChangeValueForKey:@"strokeColor"];
- [sty didChangeValueForKey:@"strokeColorIsKnown"];
- }
-}
-
-//=================================================
-//= setting filter predicates for nodes and edges =
-//=================================================
-- (NSString*)displayedNodeStyleCategory {
- return displayedNodeStyleCategory;
-}
-
-- (void)setDisplayedNodeStyleCategory:(NSString *)cat {
- [self willChangeValueForKey:@"displayedNodeStylePredicate"];
- displayedNodeStyleCategory = cat;
- [self didChangeValueForKey:@"displayedNodeStylePredicate"];
-}
-
-- (NSString*)displayedEdgeStyleCategory {
- return displayedEdgeStyleCategory;
-}
-
-- (void)setDisplayedEdgeStyleCategory:(NSString *)cat {
- [self willChangeValueForKey:@"displayedEdgeStylePredicate"];
- displayedEdgeStyleCategory = cat;
- [self didChangeValueForKey:@"displayedEdgeStylePredicate"];
-}
-
-- (NSPredicate*)displayedNodeStylePredicate {
- return [NSPredicate predicateWithFormat:@"category == %@", displayedNodeStyleCategory];
-}
-
-- (NSPredicate*)displayedEdgeStylePredicate {
- return [NSPredicate predicateWithFormat:@"category == %@", displayedEdgeStyleCategory];
-}
-
-
-//==============================
-//= getting and setting styles =
-//==============================
-
-- (IBAction)applyActiveNodeStyle:(id)sender {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-
- if (doc != nil) {
- [[doc graphicsView] applyStyleToSelectedNodes:[self activeNodeStyle]];
- }
-
- [[doc graphicsView] postSelectionChange];
-}
-
-- (IBAction)clearActiveNodeStyle:(id)sender {
- [self setActiveNodeStyle:nil];
-
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-
- if (doc != nil) {
- [[doc graphicsView] applyStyleToSelectedNodes:nil];
- }
-
- [[doc graphicsView] postSelectionChange];
-}
-
-- (NodeStyle*)activeNodeStyle {
- NSArray *sel = [filteredNodeStyleArrayController selectedObjects];
- if ([sel count] == 0) return nil;
- else return [sel objectAtIndex:0];
-}
-
-- (void)setActiveNodeStyle:(NodeStyle*)style {
- if ([nodeStyles containsObject:style]) {
- [filteredNodeStyleArrayController setSelectedObjects:[NSArray arrayWithObject:style]];
- } else {
- [filteredNodeStyleArrayController setSelectedObjects:[NSArray array]];
- }
-}
-
-- (IBAction)appleActiveEdgeStyle:(id)sender {
- NSDocumentController *dc = [NSDocumentController sharedDocumentController];
- TikzDocument *doc = (TikzDocument*)[dc currentDocument];
-
- if (doc != nil) {
- [[doc graphicsView] applyStyleToSelectedEdges:[self activeEdgeStyle]];
- }
-}
-
-- (IBAction)clearActiveEdgeStyle:(id)sender {
- [self setActiveEdgeStyle:nil];
- [self appleActiveEdgeStyle:sender];
-}
-
-- (EdgeStyle*)activeEdgeStyle {
- NSArray *sel = [filteredEdgeStyleArrayController selectedObjects];
- if ([sel count] == 0) return nil;
- else return [sel objectAtIndex:0];
-}
-
-- (void)setActiveEdgeStyle:(EdgeStyle*)style {
- if ([edgeStyles containsObject:style]) {
- [filteredEdgeStyleArrayController setSelectedObjects:[NSArray arrayWithObject:style]];
- } else {
- [filteredEdgeStyleArrayController setSelectedObjects:[NSArray array]];
- }
-}
-
-
-//=================
-//= adding styles =
-//=================
-
-- (IBAction)addEdgeStyle:(id)sender {
- EdgeStyle *sty = [[EdgeStyle alloc] init];
- [sty setCategory:displayedEdgeStyleCategory];
- [edgeStyleArrayController addObject:sty];
- [self setActiveEdgeStyle:sty];
-}
-
-- (IBAction)addNodeStyle:(id)sender {
- NodeStyle *sty = [[NodeStyle alloc] init];
- [sty setCategory:displayedNodeStyleCategory];
- [nodeStyleArrayController addObject:sty];
- [self setActiveNodeStyle:sty];
-}
-
-
-@end
diff --git a/tikzit-old/src/osx/TikzDocument.h b/tikzit-old/src/osx/TikzDocument.h
deleted file mode 100644
index 1881994..0000000
--- a/tikzit-old/src/osx/TikzDocument.h
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// TikzDocument.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "GraphicsView.h"
-#import "TikzSourceController.h"
-#import "PreviewController.h"
-#import "GraphicsView.h"
-
-@interface TikzDocument : NSDocument {
- NSString *tikz;
-}
-
-@property (readonly) NSString *tikz;
-@property (weak, readonly) GraphicsView *graphicsView;
-
-@end
diff --git a/tikzit-old/src/osx/TikzDocument.m b/tikzit-old/src/osx/TikzDocument.m
deleted file mode 100644
index ef5908d..0000000
--- a/tikzit-old/src/osx/TikzDocument.m
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// TikzDocument.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TikzDocument.h"
-#import "TikzWindowController.h"
-
-@implementation TikzDocument
-
-@synthesize tikz;
-
-- (id)init {
- self = [super init];
- if (self) {
- tikz = nil;
- }
- return self;
-}
-
-//- (NSString *)windowNibName {
-// // Override returning the nib file name of the document
-// // If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this method and override -makeWindowControllers instead.
-// return @"TikzDocument";
-//}
-
-- (void)makeWindowControllers {
- TikzWindowController *wc = [[TikzWindowController alloc] initWithDocument:self];
- [self addWindowController:wc];
-}
-
-- (void)windowControllerDidLoadNib:(NSWindowController *) aController {
- [super windowControllerDidLoadNib:aController];
- [[self graphicsView] refreshLayers];
- // Add any code here that needs to be executed once the windowController has loaded the document's window.
-}
-
-- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError {
- TikzWindowController *wc =
- (TikzWindowController*)[[self windowControllers] objectAtIndex:0];
- NSData *outData = [[[wc tikzSourceController] tikz] dataUsingEncoding:NSUTF8StringEncoding];
-
- if ( outError != NULL ) {
- *outError = [NSError errorWithDomain:NSOSStatusErrorDomain code:unimpErr userInfo:NULL];
- }
- return outData;
-}
-
-- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError {
- tikz = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
-
- if ( outError != NULL ) {
- *outError = [NSError errorWithDomain:NSOSStatusErrorDomain code:unimpErr userInfo:NULL];
- }
-
- return YES;
-}
-
-- (GraphicsView*)graphicsView {
- TikzWindowController *wc =
- (TikzWindowController*)[[self windowControllers] objectAtIndex:0];
- return [wc graphicsView];
-}
-
-
-@end
diff --git a/tikzit-old/src/osx/TikzFormatter.h b/tikzit-old/src/osx/TikzFormatter.h
deleted file mode 100644
index 4d9ec04..0000000
--- a/tikzit-old/src/osx/TikzFormatter.h
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// NSTikzFormatter.h
-// TikZiT
-//
-// Created by Karl Johan Paulsson on 27/01/2013.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Foundation/Foundation.h>
-
-@interface TikzFormatter : NSFormatter
-
-@end
diff --git a/tikzit-old/src/osx/TikzFormatter.m b/tikzit-old/src/osx/TikzFormatter.m
deleted file mode 100644
index cb0865d..0000000
--- a/tikzit-old/src/osx/TikzFormatter.m
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// NSTikzFormatter.m
-// TikZiT
-//
-// Created by Karl Johan Paulsson on 27/01/2013.
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TikzFormatter.h"
-#import "TikzGraphAssembler.h"
-
-@implementation TikzFormatter
-
-- (NSString *)stringForObjectValue:(id)obj{
- if (![obj isKindOfClass:[NSString class]]) {
- return @"";
- }
-
- return [NSString stringWithString:obj];
-}
-
-- (BOOL)getObjectValue:(out id *)obj forString:(NSString *)string errorDescription:(out NSString **)error{
- *obj = [NSString stringWithString:string];
-
- BOOL r = [TikzGraphAssembler validateTikzPropertyNameOrValue:string];
-
- if (!r && error)
- *error = NSLocalizedString(@"Invalid input, couldn't parse value.", @"tikz user input error");
-
- return r;
-}
-
-- (BOOL)isPartialStringValid:(NSString **)partialStringPtr proposedSelectedRange:(NSRangePointer)proposedSelRangePtr originalString:(NSString *)origString originalSelectedRange:(NSRange)origSelRange errorDescription:(NSString **)error{
- NSRange addedRange;
- NSString *addedString;
-
- if(![[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.autocomplete"]){
- return YES;
- }
-
- addedRange = NSMakeRange(origSelRange.location, proposedSelRangePtr->location - origSelRange.location);
- addedString = [*partialStringPtr substringWithRange: addedRange];
-
- if([addedString isEqualToString:@"{"]){
- NSString *s = [[NSString stringWithString:*partialStringPtr] stringByAppendingString:@"}"];
- *partialStringPtr = s;
-
- return NO;
- }
-
- if([addedString isEqualToString:@"}"]){
- NSScanner *scanner = [NSScanner scannerWithString:*partialStringPtr];
-
- NSCharacterSet *cs = [NSCharacterSet characterSetWithCharactersInString:@"{}"];
- NSMutableString *strippedString = [NSMutableString stringWithCapacity:[*partialStringPtr length]];
-
- while ([scanner isAtEnd] == NO) {
- NSString *buffer;
- if ([scanner scanCharactersFromSet:cs intoString:&buffer]) {
- [strippedString appendString:buffer];
-
- } else {
- [scanner setScanLocation:([scanner scanLocation] + 1)];
- }
- }
-
- if([strippedString length] % 2 == 1){
- return NO;
- }
- }
-
- return YES;
-}
-
-@end
diff --git a/tikzit-old/src/osx/TikzSourceController.h b/tikzit-old/src/osx/TikzSourceController.h
deleted file mode 100644
index 84d36da..0000000
--- a/tikzit-old/src/osx/TikzSourceController.h
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// TikzSourceController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-
-#import "GraphicsView.h"
-#import "ParseErrorView.h"
-
-@interface TikzSourceController : NSObject {
- GraphicsView *__weak graphicsView;
- NSTextView *__unsafe_unretained sourceView;
- NSAttributedString *source;
- NSTextField *__weak status;
- NSDictionary *textAttrs;
- NSColor *successColor;
- NSColor *failedColor;
- NSTextField *__weak errorMessage;
- ParseErrorView *__weak errorNotification;
-
- NSUndoManager *__weak documentUndoManager;
-
- BOOL tikzChanged;
- BOOL justUndid;
-
- NSError *lastError;
-}
-
-@property BOOL tikzChanged;
-@property (weak) IBOutlet GraphicsView *graphicsView;
-@property (unsafe_unretained) IBOutlet NSTextView *sourceView;
-@property (weak) IBOutlet NSTextField *status;
-@property (weak) NSUndoManager *documentUndoManager;
-@property (copy) NSAttributedString *source;
-@property (copy) NSString *tikz;
-@property (weak) IBOutlet ParseErrorView *errorNotification;
-@property (weak) IBOutlet NSTextField *errorMessage;
-
-- (void)updateTikzFromGraph;
-- (void)graphChanged:(NSNotification*)n;
-
-- (IBAction)closeParseError:(id)pId;
-
-// called by code, these do not register an undo
-- (BOOL)tryParseTikz;
-- (void)doRevertTikz;
-
-// called by user, these do register an undo
-- (void)parseTikz:(id)sender;
-- (void)revertTikz:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/TikzSourceController.m b/tikzit-old/src/osx/TikzSourceController.m
deleted file mode 100644
index 84eb3a5..0000000
--- a/tikzit-old/src/osx/TikzSourceController.m
+++ /dev/null
@@ -1,241 +0,0 @@
-//
-// TikzSourceController.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "TikzSourceController.h"
-#import "TikzGraphAssembler.h"
-#import "Graph.h"
-
-@implementation TikzSourceController
-
-@synthesize graphicsView, sourceView, source, status;
-@synthesize documentUndoManager, tikzChanged;
-@synthesize errorMessage, errorNotification;
-
-- (void)endEditing {
- NSResponder *res = [[sourceView window] firstResponder];
- [[sourceView window] makeFirstResponder:nil];
- [[sourceView window] makeFirstResponder:res];
-}
-
-- (void)undoParseTikz:(Graph *)oldGraph {
- [graphicsView setGraph:oldGraph];
- [graphicsView setEnabled:NO];
- [graphicsView postGraphChange];
- [graphicsView refreshLayers];
-
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(parseTikz:)
- object:self];
- [documentUndoManager setActionName:@"Parse Tikz"];
-}
-
-- (void)undoRevertTikz:(NSString*)oldTikz {
- [self setTikz:oldTikz];
- [graphicsView setEnabled:NO];
- [graphicsView refreshLayers];
-
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(revertTikz:)
- object:self];
- [documentUndoManager setActionName:@"Revert Tikz"];
-}
-
-- (void)undoTikzChange:(id)ignore {
- [graphicsView setEnabled:YES];
- [graphicsView refreshLayers];
- [self endEditing];
- [self updateTikzFromGraph];
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(redoTikzChange:)
- object:nil];
- [documentUndoManager setActionName:@"Tikz Change"];
-}
-
-- (void)redoTikzChange:(id)ignore {
- [graphicsView setEnabled:NO];
- [graphicsView refreshLayers];
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(undoTikzChange:)
- object:nil];
- [documentUndoManager setActionName:@"Tikz Change"];
-}
-
-
-- (void)awakeFromNib {
- justUndid = NO;
- successColor = [NSColor colorWithCalibratedRed:0.0f
- green:0.5f
- blue:0.0f
- alpha:1.0f];
- failedColor = [NSColor redColor];
-
- NSFont *font = [NSFont userFixedPitchFontOfSize:11.0f];
-
- if (font != nil) {
- textAttrs = [NSDictionary dictionaryWithObject:font
- forKey:NSFontAttributeName];
- } else {
- NSLog(@"WARNING: couldn't find monospaced font.");
- textAttrs = [NSDictionary dictionary];
- }
-
-
- [self graphChanged:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(graphChanged:)
- name:@"GraphChanged"
- object:graphicsView];
-}
-
-- (void)setTikz:(NSString *)str {
- [self willChangeValueForKey:@"source"];
- source = [[NSAttributedString alloc] initWithString:str attributes:textAttrs];
- [self didChangeValueForKey:@"source"];
-}
-
-- (NSString*)tikz {
- return [source string];
-}
-
-- (void)updateTikzFromGraph {
- [self setTikz:[[graphicsView graph] tikz]];
- [errorNotification setHidden:TRUE];
-}
-
-- (void)graphChanged:(NSNotification*)n {
- if ([graphicsView enabled]) [self updateTikzFromGraph];
-}
-
-- (IBAction)closeParseError:(id)pId{
- [errorNotification setHidden:TRUE];
-}
-
-- (void)textDidBeginEditing:(NSNotification *)notification {
- if ([graphicsView enabled]){
- [graphicsView setEnabled:NO];
- [graphicsView refreshLayers];
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(undoTikzChange:)
- object:nil];
- [documentUndoManager setActionName:@"Tikz Change"];
- }
-}
-
-- (BOOL)tryParseTikz {
- NSError *thisError;
-
- Graph *g = [TikzGraphAssembler parseTikz:[self tikz]
- error:&thisError];
-
- lastError = thisError;
-
- if (g) {
- [graphicsView deselectAll:self];
- [graphicsView setGraph:g];
- [graphicsView refreshLayers];
- [self doRevertTikz];
- return YES;
- } else {
- return NO;
- }
-}
-
-- (void)doRevertTikz {
- [self updateTikzFromGraph];
- [self endEditing];
- [graphicsView setEnabled:YES];
- [graphicsView refreshLayers];
- [status setStringValue:@""];
-}
-
-- (void)parseTikz:(id)sender {
- if (![graphicsView enabled]) {
- Graph *oldGraph = [graphicsView graph];
- if ([self tryParseTikz]) {
- [self endEditing];
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(undoParseTikz:)
- object:oldGraph];
- [documentUndoManager setActionName:@"Parse Tikz"];
-
- [status setStringValue:@"success"];
- [status setTextColor:successColor];
-
- [errorNotification setHidden:TRUE];
- } else {
- [status setStringValue:@"parse error"];
- [status setTextColor:failedColor];
-
- NSDictionary *d = [lastError userInfo];
-
- NSString *ts = [NSString stringWithFormat: @"Parse error on line %@: %@\n", [d valueForKey:@"startLine"], [d valueForKey:NSLocalizedDescriptionKey]];
- NSMutableAttributedString *as = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat: @"Parse error on line %@: %@\n%@\n", [d valueForKey:@"startLine"], [d valueForKey:NSLocalizedDescriptionKey], [[d valueForKey:@"syntaxString"] stringByReplacingOccurrencesOfString:@"\t" withString:@""]]];
-
- NSInteger tokenLength = [[d valueForKey:@"tokenLength"] integerValue];
- // Bit of a mess, offset around to find correct position and correct for 4 characters for every one character of \t
- NSInteger addedTokenStart = [[d valueForKey:@"tokenStart"] integerValue] + [ts length] - ([[[d valueForKey:@"syntaxString"] componentsSeparatedByString:@"\t"] count]-1)*4 - tokenLength;
-
- // Can't see if the error is a start paranthesis as only that will be underlined, underline the entire paranthesis instead
- if(tokenLength == 1 && [[as string] characterAtIndex:addedTokenStart] == '('){
- tokenLength += [[[as string] substringFromIndex:addedTokenStart+1] rangeOfString:@")"].location + 1;
- }
-
- // Same if unexpected endparanthesis
- if(tokenLength == 1 && [[as string] characterAtIndex:addedTokenStart] == ')'){
- NSInteger d = addedTokenStart - [[[as string] substringToIndex:addedTokenStart] rangeOfString:@"(" options:NSBackwardsSearch].location;
-
- tokenLength += d;
- addedTokenStart -= d;
- }
-
- [as beginEditing];
- [as addAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
- [NSNumber numberWithInt:NSUnderlineStyleSingle | NSUnderlinePatternDot], NSUnderlineStyleAttributeName,
- [NSColor redColor], NSUnderlineColorAttributeName,
- nil]
- range:NSMakeRange(addedTokenStart, tokenLength)];
- [as endEditing];
-
- [errorMessage setAttributedStringValue:as];
- [errorNotification setHidden:FALSE];
- }
- }
-}
-
-- (void)revertTikz:(id)sender {
- if (![graphicsView enabled]) {
- NSString *oldTikz = [[self tikz] copy];
- [self doRevertTikz];
-
- [documentUndoManager registerUndoWithTarget:self
- selector:@selector(undoRevertTikz:)
- object:oldTikz];
- [documentUndoManager setActionName:@"Revert Tikz"];
- }
-}
-
-- (void)dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-}
-
-@end
diff --git a/tikzit-old/src/osx/TikzWindowController.h b/tikzit-old/src/osx/TikzWindowController.h
deleted file mode 100644
index eab427c..0000000
--- a/tikzit-old/src/osx/TikzWindowController.h
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// TikzWindowController.h
-// TikZiT
-//
-// Created by Aleks Kissinger on 26/01/2011.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-@class TikzDocument, GraphicsView, TikzSourceController;
-
-@interface TikzWindowController : NSWindowController {
- GraphicsView *__weak graphicsView;
- TikzSourceController *__weak tikzSourceController;
- TikzDocument *document;
-}
-
-@property (weak) IBOutlet GraphicsView *graphicsView;
-@property (weak) IBOutlet TikzSourceController *tikzSourceController;
-
-- (id)initWithDocument:(TikzDocument*)doc;
-
-// pass these straight to the tikz source controller
-- (void)parseTikz:(id)sender;
-- (void)revertTikz:(id)sender;
-- (void)zoomIn:(id)sender;
-- (void)zoomOut:(id)sender;
-- (void)zoomToActualSize:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/TikzWindowController.m b/tikzit-old/src/osx/TikzWindowController.m
deleted file mode 100644
index bfacbfb..0000000
--- a/tikzit-old/src/osx/TikzWindowController.m
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// TikzWindowController.m
-// TikZiT
-//
-// Created by Aleks Kissinger on 26/01/2011.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
-//
-
-#import "TikzWindowController.h"
-#import "TikzDocument.h"
-#import "GraphicsView.h"
-#import "TikzSourceController.h"
-
-@implementation TikzWindowController
-
-@synthesize graphicsView, tikzSourceController;
-
-- (id)initWithDocument:(TikzDocument*)doc {
- if (!(self = [super initWithWindowNibName:@"TikzDocument"])) return nil;
- document = doc;
- return self;
-}
-
-- (void)awakeFromNib {
- if ([document tikz] != nil) {
- [graphicsView setEnabled:NO];
- [tikzSourceController setTikz:[document tikz]];
- [tikzSourceController parseTikz:self];
- }
-
- [graphicsView setDocumentUndoManager:[document undoManager]];
- [tikzSourceController setDocumentUndoManager:[document undoManager]];
-}
-
-- (void)parseTikz:(id)sender {
- [tikzSourceController parseTikz:sender];
-}
-
-- (void)revertTikz:(id)sender {
- [tikzSourceController revertTikz:sender];
-}
-
-- (void)previewTikz:(id)sender {
- PreviewController *pc = [PreviewController defaultPreviewController];
- if (![[pc window] isVisible]) [pc showWindow:sender];
- [pc buildTikz:[tikzSourceController tikz]];
-}
-
-- (void)zoomIn:(id)sender {
- float scale = [[graphicsView transformer] scale] * 1.25f;
- [[graphicsView transformer] setScale:scale];
- [graphicsView refreshLayers];
-}
-
-- (void)zoomOut:(id)sender {
- float scale = [[graphicsView transformer] scale] * 0.8f;
- [[graphicsView transformer] setScale:scale];
- [graphicsView refreshLayers];
-}
-
-- (void)zoomToActualSize:(id)sender {
- [[graphicsView transformer] setScale:50.0f];
- [graphicsView refreshLayers];
-}
-
-@end
diff --git a/tikzit-old/src/osx/ToolPaletteController.h b/tikzit-old/src/osx/ToolPaletteController.h
deleted file mode 100644
index 6301c6b..0000000
--- a/tikzit-old/src/osx/ToolPaletteController.h
+++ /dev/null
@@ -1,42 +0,0 @@
-//
-// ToolPaletteController.h
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import <Cocoa/Cocoa.h>
-
-typedef enum {
- TikzToolSelect,
- TikzToolNode,
- TikzToolEdge,
- TikzToolCrop
-} TikzTool;
-
-@interface ToolPaletteController : NSObject {
- NSPanel *__weak toolPalette;
- NSMatrix *__weak toolMatrix;
-}
-
-@property TikzTool selectedTool;
-@property (weak) IBOutlet NSPanel *toolPalette;
-@property (weak) IBOutlet NSMatrix *toolMatrix;
-
-
-@end
diff --git a/tikzit-old/src/osx/ToolPaletteController.m b/tikzit-old/src/osx/ToolPaletteController.m
deleted file mode 100644
index 000287d..0000000
--- a/tikzit-old/src/osx/ToolPaletteController.m
+++ /dev/null
@@ -1,58 +0,0 @@
-//
-// ToolPaletteController.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "ToolPaletteController.h"
-
-
-@implementation ToolPaletteController
-
-@synthesize toolPalette, toolMatrix;
-
-- (TikzTool)selectedTool {
- switch (toolMatrix.selectedRow) {
- case 0: return TikzToolSelect;
- case 1: return TikzToolNode;
- case 2: return TikzToolEdge;
- case 3: return TikzToolCrop;
- }
- return TikzToolSelect;
-}
-
-- (void)setSelectedTool:(TikzTool)tool {
- switch (tool) {
- case TikzToolSelect:
- [toolMatrix selectCellAtRow:0 column:0];
- break;
- case TikzToolNode:
- [toolMatrix selectCellAtRow:1 column:0];
- break;
- case TikzToolEdge:
- [toolMatrix selectCellAtRow:2 column:0];
- break;
- case TikzToolCrop:
- [toolMatrix selectCellAtRow:3 column:0];
- break;
- }
-}
-
-@end
diff --git a/tikzit-old/src/osx/UpdatePreferenceController.h b/tikzit-old/src/osx/UpdatePreferenceController.h
deleted file mode 100644
index 816322f..0000000
--- a/tikzit-old/src/osx/UpdatePreferenceController.h
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// UpdatePreferenceController.h
-// TikZiT
-//
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <Sparkle/Sparkle.h>
-
-@interface UpdatePreferenceController : NSViewController{
- IBOutlet SUUpdater *sharedUpdater;
- IBOutlet NSDate *lastUpdate;
-}
-
-- (IBAction)checkForUpdates:(id)sender;
-
-@end
diff --git a/tikzit-old/src/osx/UpdatePreferenceController.m b/tikzit-old/src/osx/UpdatePreferenceController.m
deleted file mode 100644
index 2ff270f..0000000
--- a/tikzit-old/src/osx/UpdatePreferenceController.m
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// UpdatePreferenceController.h
-// TikZiT
-//
-// Copyright (c) 2013 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "UpdatePreferenceController.h"
-
-@interface UpdatePreferenceController ()
-
-@end
-
-@implementation UpdatePreferenceController
-
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
-{
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- sharedUpdater = [SUUpdater sharedUpdater];
- }
- return self;
-}
-
-- (IBAction)checkForUpdates:(id)sender{
- [sharedUpdater checkForUpdates:sender];
-}
-
-- (NSDate*)getLastUpdate{
- return [sharedUpdater lastUpdateCheckDate];
-}
-
-@end
diff --git a/tikzit-old/src/osx/UpdatePreferencePanel.xib b/tikzit-old/src/osx/UpdatePreferencePanel.xib
deleted file mode 100644
index a9f57bd..0000000
--- a/tikzit-old/src/osx/UpdatePreferencePanel.xib
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
- <dependencies>
- <deployment defaultVersion="1070" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
- </dependencies>
- <objects>
- <customObject id="-2" userLabel="File's Owner" customClass="UpdatePreferenceController">
- <connections>
- <outlet property="view" destination="Rvg-HP-aJv" id="BaV-kv-ixT"/>
- </connections>
- </customObject>
- <customObject id="QYw-wO-Hk1" customClass="SUUpdater"/>
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
- <customView autoresizesSubviews="NO" id="Rvg-HP-aJv">
- <rect key="frame" x="0.0" y="0.0" width="480" height="118"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <subviews>
- <button translatesAutoresizingMaskIntoConstraints="NO" id="r97-6h-YHZ">
- <rect key="frame" x="18" y="82" width="225" height="18"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="check" title="Automatically check for updates" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="lJX-eh-125">
- <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="checkForUpdates:" target="QYw-wO-Hk1" id="V6O-vN-gzU"/>
- </connections>
- </button>
- <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rTe-Zb-gRB">
- <rect key="frame" x="247" y="77" width="75" height="26"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <constraints>
- <constraint firstAttribute="width" constant="70" id="E5t-Vq-EsW"/>
- </constraints>
- <popUpButtonCell key="cell" type="push" title="Hourly" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="3600" imageScaling="proportionallyDown" inset="2" id="1sH-Qj-rJY">
- <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- <menu key="menu" title="OtherViews" id="Thn-kJ-wMh">
- <items>
- <menuItem title="Hourly" state="on" tag="3600" id="pfB-GR-wmt"/>
- <menuItem title="Daily" tag="86400" id="i4M-UZ-VYz"/>
- <menuItem title="Weekly" tag="604800" id="xUT-n5-NQ6"/>
- <menuItem title="Monthly" tag="2629800" id="6fb-Ll-N0L"/>
- </items>
- </menu>
- </popUpButtonCell>
- <connections>
- <binding destination="QYw-wO-Hk1" name="enabled" keyPath="automaticallyChecksForUpdates" id="MEk-e1-13l"/>
- <binding destination="QYw-wO-Hk1" name="selectedTag" keyPath="updateCheckInterval" id="ZgU-vh-YId"/>
- </connections>
- </popUpButton>
- <button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Edp-7i-rVO">
- <rect key="frame" x="151" y="40" width="179" height="32"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="push" title="Check for update now" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6TE-6d-y5s">
- <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
- <font key="font" metaFont="system"/>
- </buttonCell>
- <connections>
- <action selector="checkForUpdates:" target="-2" id="3kl-5L-9j6"/>
- </connections>
- </button>
- <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="kog-eQ-eh0">
- <rect key="frame" x="18" y="20" width="444" height="14"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="center" title="Label" id="yBa-Dx-WK4">
- <font key="font" size="11" name="LucidaGrande"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
- <connections>
- <binding destination="-2" name="value" keyPath="lastUpdate" id="ULc-O0-aZL">
- <dictionary key="options">
- <bool key="NSRaisesForNotApplicableKeys" value="NO"/>
- <bool key="NSAllowsEditingMultipleValuesSelection" value="NO"/>
- </dictionary>
- </binding>
- </connections>
- </textFieldCell>
- <connections>
- <outlet property="formatter" destination="N9w-eT-NdL" id="Yn2-zV-GqY"/>
- </connections>
- </textField>
- </subviews>
- <constraints>
- <constraint firstItem="r97-6h-YHZ" firstAttribute="top" secondItem="Rvg-HP-aJv" secondAttribute="top" constant="20" symbolic="YES" id="5PN-8T-E7N"/>
- <constraint firstItem="rTe-Zb-gRB" firstAttribute="leading" secondItem="r97-6h-YHZ" secondAttribute="trailing" constant="8" symbolic="YES" id="JEG-EP-kMS"/>
- <constraint firstItem="rTe-Zb-gRB" firstAttribute="baseline" secondItem="r97-6h-YHZ" secondAttribute="baseline" id="TAn-67-9cC"/>
- <constraint firstItem="r97-6h-YHZ" firstAttribute="leading" secondItem="Rvg-HP-aJv" secondAttribute="leading" constant="20" symbolic="YES" id="o4v-st-ibG"/>
- </constraints>
- </customView>
- <dateFormatter dateStyle="short" timeStyle="short" doesRelativeDateFormatting="YES" id="N9w-eT-NdL"/>
- </objects>
-</document> \ No newline at end of file
diff --git a/tikzit-old/src/osx/main.m b/tikzit-old/src/osx/main.m
deleted file mode 100644
index e6b4499..0000000
--- a/tikzit-old/src/osx/main.m
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// main.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-
-#import <Cocoa/Cocoa.h>
-
-int main(int argc, char *argv[])
-{
- return NSApplicationMain(argc, (const char **) argv);
-}
diff --git a/tikzit-old/src/osx/test/main.m b/tikzit-old/src/osx/test/main.m
deleted file mode 100644
index ad0c1f7..0000000
--- a/tikzit-old/src/osx/test/main.m
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// main.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#import "test/test.h"
-#include <string.h>
-
-void testCommon();
-void testOSX();
-
-int main(int argc, char **argv) {
- if (argc == 2 && strcmp(argv[1], "--disable-color")==0) {
- setColorEnabled(NO);
- } else {
- setColorEnabled(YES);
- }
-
- NSBundle *bund = [NSBundle bundleWithPath:@"TikZiT.app"];
-
-
- PUTS(@"");
- PUTS(@"**********************************************");
- PUTS(@"TikZiT TESTS, OS X BUNDLE VERSION %@",
- [bund objectForInfoDictionaryKey:@"CFBundleVersion"]);
- PUTS(@"**********************************************");
- PUTS(@"");
-
- startTests();
- testCommon();
- testOSX();
-
- PUTS(@"");
- PUTS(@"**********************************************");
- endTests();
- PUTS(@"**********************************************");
- PUTS(@"");
-} \ No newline at end of file
diff --git a/tikzit-old/src/osx/test/osx.m b/tikzit-old/src/osx/test/osx.m
deleted file mode 100644
index f9565ab..0000000
--- a/tikzit-old/src/osx/test/osx.m
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// osx.m
-// TikZiT
-//
-// Copyright 2010 Aleks Kissinger. All rights reserved.
-//
-//
-// This file is part of TikZiT.
-//
-// TikZiT is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// TikZiT 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with TikZiT. If not, see <http://www.gnu.org/licenses/>.
-//
-#import "test/test.h"
-
-#import <Cocoa/Cocoa.h>
-
-void testOSX() {
-// char template[] = "/tmp/tikzit_test_tmp_XXXXXXX";
-// char *dir = mkdtemp(template);
-// NSString *tempDir = [NSString stringWithUTF8String:dir];
-//
-// NSString *testLatex =
-// @"\\documentclass{article}\n"
-// @"\\begin{document}\n"
-// @"test document\n"
-// @"\\end{document}\n";
-//
-// NSString *texFile = [NSString stringWithFormat:@"%@/test.tex", tempDir];
-// NSString *pdfFile = [NSString stringWithFormat:@"%@/test.pdf", tempDir];
-//
-// [testLatex writeToFile:texFile atomically:NO encoding:NSUTF8StringEncoding error:NULL];
-//
-// NSTask *task = [[NSTask alloc] init];
-// [task setLaunchPath:@"/bin/bash"];
-// NSPipe *inpt = [NSPipe pipe];
-// NSPipe *outpt = [NSPipe pipe];
-// [task setStandardInput:inpt];
-// [task setStandardOutput:outpt];
-//
-// [task launch];
-//
-// NSFileHandle *wr = [inpt fileHandleForWriting];
-// NSString *cmd =
-// [NSString stringWithFormat:
-// @"if [ -e ~/.profile ]; then source ~/.profile; fi"
-// @"if [ -e ~/.profile ]; then source ~/.profile; fi";
-// [wr writeData:[cmd dataUsingEncoding:NSUTF8StringEncoding]];
-// [wr closeFile];
-//
-// NSFileHandle *rd = [outpt fileHandleForReading];
-// NSString *res = [[NSString alloc] initWithData:[rd readDataToEndOfFile]
-// encoding:NSUTF8StringEncoding];
-// NSLog(@"got:\n %@", res);
-}
diff --git a/tikzit-old/src/tikzit.rc b/tikzit-old/src/tikzit.rc
deleted file mode 100644
index 072f825..0000000
--- a/tikzit-old/src/tikzit.rc
+++ /dev/null
@@ -1,24 +0,0 @@
-1 VERSIONINFO
-FILEVERSION 0,7,0,0
-PRODUCTVERSION 0,7,0,0
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "080904E4"
- BEGIN
- VALUE "FileDescription", "A graph editor for LaTeX"
- VALUE "FileVersion", "1.0"
- VALUE "InternalName", "tikzit"
- VALUE "LegalCopyright", "Aleks Kissinger, Alex Merry, Chris Heunen"
- VALUE "OriginalFilename", "tikzit.exe"
- VALUE "ProductName", "TikZiT"
- VALUE "ProductVersion", "0.7"
- END
- END
-
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x809, 1252
- END
-END
-id ICON "../tikzit.ico"
diff --git a/tikzit-old/text-x-generic.png b/tikzit-old/text-x-generic.png
deleted file mode 100644
index 928a679..0000000
--- a/tikzit-old/text-x-generic.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/text-x-script.png b/tikzit-old/text-x-script.png
deleted file mode 100644
index 801dcd6..0000000
--- a/tikzit-old/text-x-script.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/tikzit.icns b/tikzit-old/tikzit.icns
deleted file mode 100644
index dc66f7f..0000000
--- a/tikzit-old/tikzit.icns
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/tikzit.ico b/tikzit-old/tikzit.ico
deleted file mode 100644
index 3132b4c..0000000
--- a/tikzit-old/tikzit.ico
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/tikzit.spec b/tikzit-old/tikzit.spec
deleted file mode 100644
index 237c543..0000000
--- a/tikzit-old/tikzit.spec
+++ /dev/null
@@ -1,98 +0,0 @@
-Name: tikzit
-Version: 1.0
-Release: 1%{?dist}
-Summary: Tool for creating and modifying PGF/TikZ-based node-and-edge graphs for LaTeX documents
-
-# try to choose a sensible group for this distro
-%if 0%{?suse_version}
-Group: Productivity/Graphics/Visualization/Graph
-%else
-%if 0%{?mdkversion}
-Group: Sciences/Other
-%else
-Group: Applications/Productivity
-%endif
-%endif
-
-%if 0%{?suse_version}
-License: GPL-2.0+
-%else
-License: GPLv2+
-%endif
-URL: http://tikzit.sourceforge.net
-Source0: http://switch.dl.sourceforge.net/project/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
-
-BuildRequires: gcc-objc >= 4.6.0
-BuildRequires: gnustep-base-devel >= 1.18.0
-BuildRequires: gtk2-devel >= 2.18.0
-BuildRequires: pango-devel >= 1.16
-BuildRequires: cairo-devel >= 1.4
-%if 0%{?suse_version}%{?mdkversion}
-BuildRequires: libpoppler-glib-devel >= 0.10
-%else
-BuildRequires: poppler-glib-devel >= 0.10
-%endif
-%if 0%{?suse_version}
-BuildRequires: update-desktop-files
-%endif
-
-%description
-TikZiT is a GTK+ application that allows the creation and modification of TeX
-diagrams written using the pgf/TikZ macro library. It is especially geared
-toward rapidly creating "dot"-diagrams for use in academic papers.
-
-
-%prep
-%setup -q
-
-
-%build
-%configure
-make %{?_smp_mflags}
-
-
-%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-%if 0%{?suse_version}
-# SuSE is particularly fussy about desktop file categories
-%suse_update_desktop_file %{name} -r Graphics 2DGraphics
-%endif
-
-
-%clean
-rm -rf %{buildroot}
-
-
-%files
-%defattr(-,root,root,-)
-%doc
-%{_bindir}/tikzit
-%{_datadir}/tikzit/
-%{_datadir}/applications/tikzit.desktop
-%{_datadir}/icons/hicolor/*
-
-
-%changelog
-* Fri May 17 2013 Alex Merry <dev@randomguy3.me.uk> 1.0-2
--Fixed license on openSUSE
-
-* Tue May 7 2013 Alex Merry <dev@randomguy3.me.uk> 1.0-1
--Bumped version
-
-* Fri Aug 24 2012 Alex Merry <dev@randomguy3.me.uk> 0.9-1
--Bumped version
--Bumped requirements
-
-* Tue Dec 06 2011 Alex Merry <dev@randomguy3.me.uk> 0.7-1
--Bumped version
-
-* Tue Feb 08 2011 Alex Merry <dev@randomguy3.me.uk> 0.6-1
--Bumped version
--Added Pango and Cairo to BuildRequires
--Set minimum version for GNUStep-base
-
-* Thu Dec 02 2010 Alex Merry <dev@randomguy3.me.uk> 0.5-1
--Rewrote spec file
-
diff --git a/tikzit-old/tikzit48x48.png b/tikzit-old/tikzit48x48.png
deleted file mode 100644
index 056d04b..0000000
--- a/tikzit-old/tikzit48x48.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/tikzit_dsa_pub.pem b/tikzit-old/tikzit_dsa_pub.pem
deleted file mode 100644
index c97cc04..0000000
--- a/tikzit-old/tikzit_dsa_pub.pem
+++ /dev/null
@@ -1,20 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIIDOjCCAi0GByqGSM44BAEwggIgAoIBAQDAdRlqLgJYjdAKkDsKtZDXgVlhqwyl
-OXWCILHuE/MLh24I/mAaro4hucdhj92V5td9KNdM/R19904yZ3XcLj2/SodDVD7I
-lEHPGwC/y+mJd9CaMNI/ARgFbLwJ+3+l/Ia3sraa/ASGAzardJPzYdkkRbZ/1DJn
-wtHh2HgmPBdOMZZrbDmw3g4lj69Vacj4Wdz+YDG7750FjAUd+IcOvaDip28B8ogj
-ogVirSXGe5YLoYbw078gx92PzSw6vfOZ3b7Gqk7zilYGB0bUJXUPSLOkxa5TMSx1
-Lr2UdW+vXrudI76rBhW52B32i7f801N4/W/qUfg8tw4tUGi/Uw8n2/S5AhUA0F82
-Qxit1jmqP0mZSLAn+qIVPuUCggEAEkSBjRxMo4KRvHOSppZphdaV2RWmQ6w9mxMj
-3Z4AGDNU/buQ+TWJEYGVsIXpykI7DYCfgp8XO9uhj1hporfDsU4QGNZd0rG7SLK3
-DHwSf9QTgXY+D5IRQvkBtocxYRgNpuW+mfwl886SPmrRcT3QvsiFaI7/Iw787Tr6
-Yip4D7GjqTvj+epJH6kZq1xbdnrfBEA4dKs5IrZupF75npU8d1EjcdLlTyuzxuoZ
-5a3SQWoBvT4l0xvbtR4yv+Af++MB+uxdxBSYMIgtQPgoIjFWtTDRZCwFAig1RWxz
-fHEI5Fk4mqGhLAVbROL/pebYYZ5UxTKt9AMjmgmuM10/L5TXbwOCAQUAAoIBAA7t
-W96VBoZgbbO2EfSxt5az4EnAJmuua6DNjZzESpcb67/DR7nLd5yveZEPL+9x6c1S
-FtduIk8allplryOJtwysf8KkxrPVej83XiVJ9PDLMktsYjtnVksGIk9CS3v98OgT
-c3g+xgJpRbwB6dROa5ZMxvoCU100ngfI3F/RUqeYYh7PP5kEL6SfqEHG5udIf1K7
-jUmOycNzI5Fsi+IDh8qtzxoOVTjoMPlN2F4T27xuWXA0BEd/NZqtgGLIFsbww5oD
-8VPQIeo9UwQkYo/Qz1/uuaXi1u2PbTbbx2FTUL+zJuqrAv3oqmG2Ktyi0RXZaUAJ
-4+P+kdS46Ip2NybQbkE=
------END PUBLIC KEY-----
diff --git a/tikzit-old/tikzitdoc.icns b/tikzit-old/tikzitdoc.icns
deleted file mode 100644
index 2f8bbcd..0000000
--- a/tikzit-old/tikzitdoc.icns
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/transform-crop-and-resize.png b/tikzit-old/transform-crop-and-resize.png
deleted file mode 100644
index 4dedd93..0000000
--- a/tikzit-old/transform-crop-and-resize.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/transform-move.png b/tikzit-old/transform-move.png
deleted file mode 100644
index ae4201b..0000000
--- a/tikzit-old/transform-move.png
+++ /dev/null
Binary files differ
diff --git a/tikzit-old/updates.png b/tikzit-old/updates.png
deleted file mode 100755
index 469ae30..0000000
--- a/tikzit-old/updates.png
+++ /dev/null
Binary files differ