Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-09-12 01:44:20 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-09-12 01:44:20 (GMT)
commit4b6844a4b43b3d72e7434cae294d213d131b9c98 (patch)
tree916cae84d09a16083a02fcb7387bf1f74678d7a8
parent7eb90a19a786106e09062f8f827fd5bded814576 (diff)
Added golden ratio and Eulers constants ready to move some misc tools back to primary toolbar.
-rw-r--r--icons/constants-eulersconstant.svg15
-rw-r--r--icons/constants-goldenratio.svg15
-rw-r--r--toolbars.py6
3 files changed, 36 insertions, 0 deletions
diff --git a/icons/constants-eulersconstant.svg b/icons/constants-eulersconstant.svg
new file mode 100644
index 0000000..df9e043
--- /dev/null
+++ b/icons/constants-eulersconstant.svg
@@ -0,0 +1,15 @@
+<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' [
+ <!ENTITY fill_color "#FFFFFF">
+]>
+<svg enable-background="new 0 0 55 55" height="55px" version="1.1" viewBox="0 0 55 55" width="55px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px">
+<g display="block" id="stock-xo_1_">
+ <defs>
+ <mask id="Mask" maskUnits="userSpaceOnUse" x="0" y="0" width="55" height="55">
+ <path d="M 3 3 L 53 3 L 53 53 L 3 53 z" stroke-width="3.5" fill="white" stroke="white"/>
+ <text x="14" y="35" font-size="40" font-family="Bitstream Vera Sans" font-weight="bold" font-style="italic" fill="black" stroke="none">γ</text>
+ </mask>
+ </defs>
+ <rect x="0" y="0" width="55" height="55" fill="#282828" stroke="none"/>
+ <path d="M 3 12 Q 3 3 12 3 L 43 3 Q 53 3 53 12 L 53 43 Q 53 53 43 53 L 12 53 Q 3 53 3 43 z" fill="&fill_color;" stroke="&fill_color;" stroke-width="3.5" mask="url(#Mask)"/>
+</g>
+</svg> \ No newline at end of file
diff --git a/icons/constants-goldenratio.svg b/icons/constants-goldenratio.svg
new file mode 100644
index 0000000..86e3db9
--- /dev/null
+++ b/icons/constants-goldenratio.svg
@@ -0,0 +1,15 @@
+<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' [
+ <!ENTITY fill_color "#FFFFFF">
+]>
+<svg enable-background="new 0 0 55 55" height="55px" version="1.1" viewBox="0 0 55 55" width="55px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px">
+<g display="block" id="stock-xo_1_">
+ <defs>
+ <mask id="Mask" maskUnits="userSpaceOnUse" x="0" y="0" width="55" height="55">
+ <path d="M 3 3 L 53 3 L 53 53 L 3 53 z" stroke-width="3.5" fill="white" stroke="white"/>
+ <text x="12" y="35" font-size="40" font-family="Bitstream Vera Sans" font-weight="bold" fill="black" stroke="none">φ</text>
+ </mask>
+ </defs>
+ <rect x="0" y="0" width="55" height="55" fill="#282828" stroke="none"/>
+ <path d="M 3 12 Q 3 3 12 3 L 43 3 Q 53 3 53 12 L 53 43 Q 53 53 43 53 L 12 53 Q 3 53 3 43 z" fill="&fill_color;" stroke="&fill_color;" stroke-width="3.5" mask="url(#Mask)"/>
+</g>
+</svg> \ No newline at end of file
diff --git a/toolbars.py b/toolbars.py
index 68b9280..246a8be 100644
--- a/toolbars.py
+++ b/toolbars.py
@@ -273,6 +273,12 @@ class MiscToolbar(gtk.Toolbar):
self.insert(IconToolButton('constants-e', _('e'),
lambda x: calc.button_pressed(calc.TYPE_TEXT, 'e')), -1)
+ self.insert(IconToolButton('constants-eulersconstant', _('γ'),
+ lambda x: calc.button_pressed(calc.TYPE_TEXT, '0.577215664901533')), -1)
+
+ self.insert(IconToolButton('constants-goldenratio', _('φ'),
+ lambda x: calc.button_pressed(calc.TYPE_TEXT, '1.618033988749895')), -1)
+
self.insert(LineSeparator(), -1)
self.insert(IconToolButton('plot', _('Plot'),