Initial commit.

This commit is contained in:
transcoder
2013-07-18 19:01:17 -06:00
commit f3307413ec
377 changed files with 150655 additions and 0 deletions

35
share/genbuild.sh Normal file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
if [ $# -gt 0 ]; then
FILE="$1"
shift
if [ -f "$FILE" ]; then
INFO="$(head -n 1 "$FILE")"
fi
else
echo "Usage: $0 <filename>"
exit 1
fi
if [ -e "$(which git)" ]; then
# clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null
# get a string like "v0.6.0-66-g59887e8-dirty"
DESC="$(git describe --dirty 2>/dev/null)"
# get a string like "2012-04-10 16:27:19 +0200"
TIME="$(git log -n 1 --format="%ci")"
fi
if [ -n "$DESC" ]; then
NEWINFO="#define BUILD_DESC \"$DESC\""
else
NEWINFO="// No build information available"
fi
# only update build.h if necessary
if [ "$INFO" != "$NEWINFO" ]; then
echo "$NEWINFO" >"$FILE"
echo "#define BUILD_DATE \"$TIME\"" >>"$FILE"
fi

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
share/pixmaps/bitcoin.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

112
share/pixmaps/bitcoin32.xpm Normal file
View File

@@ -0,0 +1,112 @@
/* XPM */
static char * bitcoin32_xpm[] = {
"32 32 77 1",
" c None",
". c #A2A1A1",
"+ c #A1A1A1",
"@ c #A1A0A0",
"# c #9F9F9F",
"$ c #A7A7A7",
"% c #A9A9A9",
"& c #AEAEAE",
"* c #B0B0B0",
"= c #B1B1B1",
"- c #A8A8A8",
"; c #A4A4A4",
"> c #ACACAC",
", c #B2B2B2",
"' c #AAAAAA",
") c #ABABAB",
"! c #A6A6A6",
"~ c #A3A3A3",
"{ c #A8A7A7",
"] c #A5A5A5",
"^ c #ADADAD",
"/ c #9E9E9E",
"( c #ADACAC",
"_ c #A2A2A2",
": c #A0A0A0",
"< c #9D9D9D",
"[ c #A5A4A4",
"} c #9C9C9C",
"| c #9B9B9B",
"1 c #979797",
"2 c #8C8C8C",
"3 c #848484",
"4 c #838383",
"5 c #878787",
"6 c #929292",
"7 c #9A9A9A",
"8 c #AFAFAF",
"9 c #8B8B8B",
"0 c #7F7F7F",
"a c #808080",
"b c #7E7E7E",
"c c #828282",
"d c #969696",
"e c #939292",
"f c #999999",
"g c #898989",
"h c #8A8A8A",
"i c #888888",
"j c #959595",
"k c #939393",
"l c #909090",
"m c #8D8D8D",
"n c #9D9C9C",
"o c #B4B4B4",
"p c #B6B6B6",
"q c #919090",
"r c #A9A8A8",
"s c #B8B8B8",
"t c #BCBCBC",
"u c #B5B5B5",
"v c #C5C5C5",
"w c #C1C1C1",
"x c #B3B3B3",
"y c #C8C8C8",
"z c #BFBFBF",
"A c #B9B9B9",
"B c #AAA9A9",
"C c #9E9D9D",
"D c #949494",
"E c #919191",
"F c #8E8E8E",
"G c #858585",
"H c #B7B7B7",
"I c #818181",
"J c #989898",
"K c #949393",
"L c #989797",
" ",
" .+@ ",
" #$%&*==*&-; ",
" +>,')'!;~!%%)={ ",
" -*)&'!;+##+~]%^%*/ ",
" ()&'$;_:/<</#+~!%>'[ ",
" ^%'!~+#/<}|||}/#+~!%-] ",
" '));_:/<}1234567<<#+~'%# ",
" _&8$_/<}}790aabcd<}</+!>&e ",
" *,);:/}</f2ghi3bj#<}<#~%>% ",
" ]88$_/}<#+fkllmi47_:<}<+!^8j ",
" ^,);:<}<+;}7djkmh;!_/}<#~%>~ ",
" no8$_/<<#_]#:}|fk18';#<}/+!^= ",
" %^);:<}<:]]_]~_:}$p^!+/}<#~%=q ",
" r%$_#<<#_-!!%''%]st,';:/}/+]$# ",
" ;-;:<}<:;)!'^8,u&vwp&$+/}<#~~+ ",
" ]']+/}<:;-~-*=xuxyzu^]+/}<:~]+ ",
" ;>-~#<</__<-*,=-xvA=%~#<}/_!$+ ",
" B^>]+<}<:}f'=*)<^s8-~#<}<:;%)C ",
" !=*%~#<}/dD8=8+jEF2i9d}}/_$&u ",
" ou>]+<}|kD,**#|1DlmG57<:;'x* ",
" BH*%~#<7k<=*8&>%;+/gI7/+$^8+ ",
" :xu>]+<}1-=*8&^%]_:a4|#;',x9 ",
" (p*-~#/<~~_+_+#<fjIF/+$^8[ ",
" f=p>]~+:/}fJJfJ1dk6}_;'== ",
" +&=>-]_+#/<<<<<#:_;$)8&K ",
" [&u*^-]~+#<</+_]-)8x&| ",
" _*su8>%]~+:_;$)8oo=L ",
" L*,Au*>-]]$)&oH,>2 ",
" #*p,o=^)8,8p)f ",
" D:]^=*>_#m ",
" "};

229
share/pixmaps/bitcoin80.xpm Normal file
View File

@@ -0,0 +1,229 @@
/* XPM */
static char * bitcoin80_xpm[] = {
"80 80 146 2",
" c None",
". c #C3C3C3",
"+ c #C0C0C0",
"@ c #C0BFBF",
"# c #939292",
"$ c #989898",
"% c #979797",
"& c #949494",
"* c #939393",
"= c #949393",
"- c #959595",
"; c #969595",
"> c #8D8D8D",
", c #A3A2A2",
"' c #8E8D8D",
") c #9D9D9D",
"! c #A9A9A9",
"~ c #ACACAC",
"{ c #AFAFAF",
"] c #B3B3B3",
"^ c #B7B7B7",
"/ c #BBBBBB",
"( c #C1C1C1",
"_ c #C2C2C2",
": c #BEBEBE",
"< c #B2B2B2",
"[ c #ADADAD",
"} c #A4A4A4",
"| c #878686",
"1 c #929191",
"2 c #A7A7A7",
"3 c #9F9F9F",
"4 c #C4C4C4",
"5 c #CACACA",
"6 c #B9B9B9",
"7 c #A0A0A0",
"8 c #A1A1A1",
"9 c #B0B0B0",
"0 c #CDCDCD",
"a c #A3A4A4",
"b c #7F7E7E",
"c c #9D9C9C",
"d c #969696",
"e c #B6B6B6",
"f c #BABABA",
"g c #A5A5A5",
"h c #A2A2A2",
"i c #ABABAB",
"j c #AAAAAA",
"k c #A8A8A8",
"l c #A6A6A6",
"m c #979696",
"n c #CCCCCC",
"o c #AEAEAE",
"p c #A3A3A3",
"q c #828181",
"r c #9B9B9B",
"s c #BCBCBC",
"t c #C5C5C5",
"u c #888888",
"v c #989797",
"w c #9C9C9C",
"x c #BDBDBD",
"y c #8B8B8B",
"z c #848383",
"A c #9B9A9A",
"B c #9E9E9E",
"C c #898888",
"D c #919191",
"E c #838282",
"F c #B4B4B4",
"G c #B1B1B1",
"H c #909090",
"I c #9A9999",
"J c #B5B5B5",
"K c #858383",
"L c #A09F9F",
"M c #9A9A9A",
"N c #999999",
"O c #8C8B8B",
"P c #8E8E8E",
"Q c #868686",
"R c #878787",
"S c #929292",
"T c #898989",
"U c #8A8A8A",
"V c #828282",
"W c #7E7E7E",
"X c #7D7D7D",
"Y c #7C7C7C",
"Z c #818181",
"` c #8F8F8F",
" . c #808080",
".. c #7F7F7F",
"+. c #8D8C8C",
"@. c #848484",
"#. c #8C8C8C",
"$. c #BFBFBF",
"%. c #807E7E",
"&. c #838383",
"*. c #959494",
"=. c #999898",
"-. c #858585",
";. c #A6A7A7",
">. c #7E7D7D",
",. c #C6C6C6",
"'. c #ACABAB",
"). c #B8B8B8",
"!. c #ABAAAA",
"~. c #868585",
"{. c #BCBBBB",
"]. c #7C7B7B",
"^. c #C7C7C7",
"/. c #848282",
"(. c #C8C8C8",
"_. c #9E9D9D",
":. c #C9C9C9",
"<. c #BCBDBD",
"[. c #8B8A8A",
"}. c #817F7F",
"|. c #8A8989",
"1. c #B7B8B8",
"2. c #908F8F",
"3. c #7B7B7B",
"4. c #818080",
"5. c #919090",
"6. c #7A7A7A",
"7. c #8E8C8C",
"8. c #828080",
"9. c #8F8E8E",
"0. c #B1B0B0",
"a. c #C5C4C4",
"b. c #979898",
"c. c #7D7C7C",
"d. c #A9A8A8",
"e. c #B9BABA",
"f. c #807F7F",
"g. c #AAABAB",
"h. c #CACBCB",
"i. c #B0AFAF",
"j. c #AEADAD",
"k. c #959393",
"l. c #888787",
"m. c #858484",
"n. c #CBCBCB",
"o. c #9B9C9C",
" ",
" ",
" ",
" . + @ ",
" # $ $ % & & * = & - ; % # > ",
" , > ' ) ! ~ { ] ^ / + ( _ : / ^ < { [ } * | 1 ",
" * > 2 3 2 4 5 6 ! 7 3 7 8 8 8 8 8 3 3 3 } 9 4 0 6 7 a $ b ",
" c d 7 e f 6 ] g h g ! i i j k 2 l g l 2 ! ! ! g 8 7 i ^ f / [ - 1 ",
" m = 9 j n { ) 2 o { [ ~ i ! k g g } p h p } g 2 ! j i [ [ j 8 3 + ( } k q ",
" r 7 6 s j } i 9 { [ ~ i ! k 2 l } p h h 8 h h } g l 2 k j i [ o ~ 2 } { t j ) u ",
" v h o _ o 3 o 9 { [ ~ j ! k 2 g } p h 8 7 7 3 7 8 8 h p g l 2 k ! i [ [ o k w x ] [ y ",
" * 2 ( < h ~ 9 { o ~ i j k l l } } p h 8 7 7 3 3 3 7 8 8 h p } g l 2 ! j ~ ~ { [ 2 7 4 [ 2 z ",
" A o x 2 g { { o [ i j k l g } p h h 8 7 3 3 B B ) B B 3 7 7 8 h p } g l 2 k j i [ o i 3 ] f , C ",
" D } } _ w i { o ~ i j k l g } p p 8 8 7 7 B B ) ) ) ) ) ) B B 3 7 7 8 h p p g l 2 ! j ~ ~ ~ g 7 ( 2 E ",
" D h F G h [ o ~ i j k l l } p p h 8 8 7 3 3 B B ) w w w w w ) B B B 3 7 8 8 h p } g l 2 ! ! i ~ k 8 : 2 H ",
" I l J ^ h ~ ~ i ! k 2 g } p h h 8 7 3 3 B B B w w ) ) ) ) ) ) ) w ) ) B B 3 3 7 8 h p p g l 2 ! ! i ! w + ! K ",
" * L < i g ~ i ! k l l } } h h 8 7 3 3 B B B ) w w w w r r r r r r w w ) ) B B B 3 7 8 8 h h } g l 2 ! ! k ) 6 p C ",
" 3 F e } o ~ ! l g } p h 8 8 7 3 B B B ) w w r M $ % - & * * * * - d % N r w ) ) ) B B 3 7 8 h h p g g 2 j j 7 ( l E ",
" O p f } { o i k g p h 8 8 3 7 B B ) ) w ) ) r N % * P y u Q Q Q R y > S - $ M r ) ) ) B B 3 3 7 8 8 p p l ! i j r s } T ",
" = j + h 9 { i ! l } h 8 7 3 3 B B ) ) w ) ) w N d H U V W X X X Y X X Z T ` - N r ) w w ) ) B B 3 7 7 8 h g 2 j ~ j g + d ",
" w 8 f 3 9 9 [ j 2 g h 8 7 3 B ) ) ) w ) ) ) ) M d H T .X X W ....W W X Y ..T H d r ) ) ) ) w ) ) B B 3 7 8 p l ! i o 2 j { +. ",
" A 6 [ o < o ~ ! l } 8 8 3 B B ) w w ) ) ) ) w N * y @.Z W X W ......W X X X V #.- M ) ) ) ) ) w w ) B B 3 8 p g 2 ! ~ [ } $.3 %. ",
" % 2 6 p F 9 [ j k g p 8 7 B B ) w ) ) ) w w ) ) $ D #.R &.@.T u R R Q @.&.V W X u * M ) ) w ) ) ) ) ) ) B 3 7 8 p l ! i o o 7 + *. ",
" =.f l < ] { ~ ! l } h 7 3 B ) w ) ) w w ) B B ) $ S > T Q T U U T u R Q -.V ..W Q * r B ) B ) w ) ) ) ) B B 3 8 p g 2 j ~ { ! ~ g u ",
" C o x j F 9 [ i k g p 8 7 3 ) ) ) ) w ) ) B B 3 B $ S ` #.y #.#.#.y U T u Q &.Z ..-.& w 7 B B ) ) w ) ) w ) B 3 7 h p g ! i o 9 } t 1 ",
" ;./ w F ] o ~ ! 2 } h 8 3 B ) w ) ) w B B 3 7 8 ) $ & S ` ` P P P > > y U u @.V Z R d B 7 7 7 3 B ) ) ) ) w ) B 3 8 p g 2 j ~ 9 i [ < >. ",
" ; B 6 ~ F 9 [ i 2 g p 8 7 B B w ) ) w ) B 3 7 8 h ) N - & * * H H H ` ` > #.U Q @.&.y N 8 h 8 8 7 3 ) ) ) ) ) ) ) 3 7 h } g ! ~ o G 3 6 ; ",
" H + k F < { ~ ! l } h 7 3 ) ) w ) ) ) ) 3 7 h p p B M $ $ % - * * S S D ` > y u R -.` B p g } p 8 7 B B w ) ) w ) B 3 8 h g 2 j ~ 9 ~ F h -. ",
" 2 ,.g F 9 [ i 2 g p 8 7 B ) w ) ) w ) ) 7 7 h } p 3 r M N M d d - - & * S H #.U u u - h 2 2 l } 8 7 3 B w ) ) ) w B 3 7 h p l ! i o 9 } . q ",
" % o 2 { < o ~ ! 2 } h 8 3 B ) w ) ) w B B 7 8 p } p 7 ) w w w $ $ % d d - * S P > y #.) 2 j j l g h 8 3 B ) w ) ) w ) B 7 8 p g 2 j ~ 9 } + M ",
" M ^ 7 ] 9 [ i k g p h 7 3 ) w ) ) ) ) B 3 8 h } l p 7 B ) B ) M M N N $ $ d & D ` > * p i [ j k g p h 7 3 ) ) w ) ) ) B 3 8 h } l ! ~ o i g [ ",
" '.v . ! < o ~ ! l } 8 8 3 B ) w ) ) w ) 3 3 8 p g l p 7 3 8 8 3 ) w w r r M $ % & * S r j 9 { [ j 2 g p 7 7 B ) w ) ) w B B 7 8 h g 2 ! ~ { 7 ^ | ",
" & p : o G [ j k g p 8 7 B B w ) ) w ) B 3 7 h } l l } 8 8 h g 8 7 3 B 3 B ) r N $ d d p 9 ] G o j k g p 8 7 3 ) ) ) ) ) ) B 3 7 h } l k i o g ( > ",
" C f i G { i ! l } h 7 3 B ) ) ) ) ) ) 3 7 8 p g k 2 p 8 h } 2 p p h h 8 8 7 B ) w r r ~ J e ] { [ ! 2 g h 8 3 B B w ) ) ) ) B 3 8 p } 2 ! [ j _ N ",
" > ,.3 9 [ i 2 g p h 7 3 ) ) ) ) w ) ) 3 7 h p l ! l p h p g k g g } } } } p 8 8 3 ) h < ).).J G o j k g } h 7 B ) ) w ) w ) B 3 8 h p l ! i i J !.~. ",
" - ,.B o ~ k l } h 8 3 B ) w ) w ) B B 7 8 p g k ! l p } g k ! 2 k k k k 2 2 } l } 7 ! ).s / ^ ] { [ ! 2 } p 8 3 B ) w ) ) w ) B 3 8 p } 2 j ~ 2 {.>. ",
" w + 8 [ i 2 g p h 7 B B w w ) w ) B 3 7 h } l ! j l } } l j ! ! j j i j j ! j i ! } 9 s + x 6 J < o i ! l } 8 7 3 B ) w ) ) ) B 3 7 8 p g 2 i B t ]. ",
" 7 6 } ~ ! l } h 8 3 B ) w ) ) ) ) 3 3 8 p g k j j l } g k i j i ~ ~ [ o o [ G { i ! )._ _ $./ e ] { [ ! 2 g h 8 7 B B ) ) ) ) B B 7 8 h g l j w ^.b ",
" h ] l j 2 g p 8 7 B ) ) ) ) w B B 7 7 h } l ! ~ ! l g 2 j ~ [ [ o { { G G G ^ < ~ { : ,.t ( s 6 J < o i k l } 8 7 3 B ) ) ) ) w B 3 7 h p g ! w t /. ",
" h { 2 ! l } h 8 7 B ) w ) ) w B B 7 8 p g 2 j [ j 2 l k ~ o o { 9 9 < < ] e f J o ^ t 5 (.. $./ e < { ~ ! 2 } h 8 3 B ) w ) ) w ) 3 7 8 p } k ) ( z ",
" _.} ~ j j 2 g p 8 7 3 ) ) ) ) w B B 3 7 h } 2 ! i l g g 2 j o 9 { G < < ] ] e ^ < [ f ,.:.,._ x 6 J G o i k l p 8 7 3 ) ) ) ) w ) B 3 7 h p g ! 3 <.y ",
" 8 g ~ i ~ k g } h 8 3 ) ) ) ) w ) ) 3 7 8 p g k k } h h g 2 o 9 9 9 G < ] ] J ] 9 [ x ^.(.4 $./ ^ F { [ j 2 g h 8 7 B ) ) ) ) w ) B 7 8 h } l j 3 + [. ",
" h { i ~ j 2 } p 8 7 B B w ) ) ) ) B 3 8 h } l g 8 3 7 p l 9 9 9 G G < < < 9 o ~ o $.,.,._ x f J < o i k l } 8 7 3 B ) w ) ) ) ) 3 7 h p g k i 3 ( E ",
" h G i o i k l p h 8 B B ) w ) w ) B B 7 h p g h 3 ) 3 8 ! 9 9 9 < < G G G ~ ! l 9 + t 4 $./ ).] 9 [ ! k g p 8 3 B ) ) ) ) w ) B 3 8 h } l ! ~ B 4 E ",
" 7 e k 9 ~ ! 2 g p 8 3 3 ) ) ) ) w B B 3 8 h } 7 w w ) 3 [ 9 G 9 < G G G i 2 } p 9 $.4 ( x 6 J G o ~ ! l } h 7 7 B ) w ) w ) B B 7 h p l k j [ ) ^.W ",
" M x } < o ~ k l } h 7 3 B ) ) ) ) ) ) B 7 8 8 w M N r B { 9 G G G G 9 9 l h 7 8 9 x ( $./ e ] { [ j k } h 8 3 B B w ) ) ) ) B 3 8 p } l j ~ { B ,.]. ",
" * _ 8 ] 9 ~ j 2 g p 8 7 B B w ) ) w ) B 3 7 3 M $ N M B 9 G G G G 9 { 9 3 3 ) ) i J e J < o i ! l } p 8 3 B B B ) w ) ) ) ) 3 7 h } g k i [ 9 g x }. ",
" |.t 3 J < o ~ ! l } h 8 3 ) ) ) ) ) w B B 3 w $ d d $ 7 9 G G 9 9 { { { M M N % w p } h 7 3 r M N N M r r r ) w w ) ) w ) B 3 8 h } 2 j ~ 9 9 < ~ ",
" | / ! e F 9 [ j k g h h 3 3 B w ) ) ) ) B B N d & d d l < 9 G G { 9 9 ! - % - & S D ` P y y U u T U > D d $ M r ) ) ) ) B 3 7 h p l k i [ G [ ( N ",
" *.g / ] e < o ~ ! l } p 8 3 B w ) ) ) ) B ) $ & * & * o G G 9 9 9 { 9 w S * S D P > y U T T R -.&.Z Z R P * $ r w ) ) ) B 7 8 h } l j ~ 9 ] k 4 U ",
" m . [ ).F 9 [ j k g p 8 7 B B ) ) ) w ) M d * S * & ] G G 9 { { { 9 P P H P > y T T u R -.@.&.&. ...W -.P d M w ) w B 3 7 h p g k i [ G F 8 f Z ",
" m 1.h 6 J G o ~ ! l } h 8 3 ) ) ) ) ) w $ - S S S B < 9 G { 9 { o [ B 3 7 B w r M $ d d & * S ` ` P ..W U * N w w ) B 3 8 p } 2 j ~ { ] 9 } i ",
" 2.{ g F ).] 9 [ j 2 } p 8 7 B B w ) ) w $ * S D D k G 9 9 G { { o { { { o ~ i ! k g } p 8 3 B w r $ X Y @.D N w ) ) B 7 h p g k i [ G J l ( *. ",
" } . 2 f J < o ~ k l p h 7 B B w w ) w % & S S S [ 9 9 G { 9 { o o o o ~ ~ j k 2 g } h 7 7 ) ) r H 3.3.&.H N w ) B 3 8 h } l j ~ 9 < J } :.4. ",
" T ( 2 6 ).F 9 [ j k g h 8 3 B ) ) ) w $ & & * & { G 9 9 9 { { { { o [ ~ i j k 2 g } h 8 7 B ) B &.3.3.V H N ) B B 7 8 p l k i [ G J G J p ",
" 5.8 ).{ 6 e < { ~ ! l } h 7 3 B ) w w N d - - N G G G G 9 9 { { o [ o ~ ~ j j k l g p h 8 3 B ) 6.3.Y &.S N ) B 3 8 h } l j ~ { ] J h x 7. ",
" h s B ).).F 9 [ j 2 g p 8 7 B B w ) w $ $ % } G G 9 9 G 9 9 { { [ o [ ~ i k k l g } h h 7 3 $ 6.3.Y Q * r ) 3 7 8 } g k i [ G J { k J Y ",
" 8.o f o f e < o ~ ! l p 8 7 3 B ) ) ) w w M [ 9 9 9 G G G 9 9 { { o o ~ i j ! 2 l g p p 8 8 * ..X W y - w B 3 8 h } 2 j ~ { ] J g :.#. ",
" D : g ^ ).F 9 [ j 2 g h 8 3 3 B ) B B ) w k k 2 l l l g g g g g g } } p p h 7 7 B r r $ $ y V Z -.H $ ) 3 7 8 p l k j [ G J o [ l q ",
" 9.k ^ l 6 e < o ~ ! l p h 8 7 3 B B B B ) ) w w M $ % - - d d % $ $ % % d d - - & S D P y u Q Q > - w B 7 7 h } l j ~ 9 ] ] B t [. ",
" 9.s i G ^ F 9 [ j 2 g p h h 7 7 3 3 B 3 B w w r N % % % d % % % $ % $ % d d d - & * D P > #.> & N B 7 8 h p g k i [ G ] 2 + B ",
" - w s 8 J J < o ~ ! g l p p h 8 7 7 3 3 B B ) r M N $ $ $ $ $ $ N $ $ $ $ % % % d d - - * & d N ) 7 h p } g l j [ { ] ~ g 0.@. ",
" | j + p e F 9 [ j k 2 l } } p h 8 7 7 7 3 B B ) r w r M M M r M M M M M M r M r r r r r ) B 7 8 h } g l 2 ! i o G { g a.+. ",
" ~.2 e k F < o [ ~ j ! k l l } h h 8 7 7 3 3 B B B ) ) ) ) ) ) ) ) ) ) ) ) B B 3 3 7 8 h h p } l l 2 ! i ~ o { { B ( b. ",
" - ^ { k ] G 9 o [ i j ! k g g p p 8 8 8 3 3 3 B ) ) ) ) ) ) ) w ) ) B B 3 3 3 7 8 h h } g l k ! i i o { G { 8 (.p c. ",
" - x 2 ! F F < 9 o [ ~ i ! k l g } p p h 8 7 3 B B B ) ) ) ) ) ) B 3 7 7 8 h h } g g 2 k j i ~ [ o 9 ] G 8 ).l Z ",
" L + i i e J J < 9 { [ ~ j k 2 l g } p h 8 8 7 3 B B ) ) ) 3 B 3 7 8 8 p p } g l k ! i ~ o o G < F < h 4 d.Z ",
" v e.9 l e ).e J < 9 { [ i j ! 2 l g } p h 8 7 3 3 B B B 3 7 8 h h p } g l k ! i ~ o { G ] F e < h : ! -. ",
" N < e g e 6 ).e J < 9 o [ ~ j ! k l g } p h 8 8 7 7 8 8 h h } g g 2 2 ! i ~ o o G ] J ^ ^ { 3 t ) 4. ",
" O [ _ h G f 6 ).J ] G 9 o [ ~ j ! 2 l g p p 8 8 7 8 h p } g l 2 k i i [ { 9 < F e ).e l ~ / r f. ",
" U ) ( j k e f 6 ).J F < 9 { [ i j ! 2 l } } p p p } g l k ! j ~ [ { G ] F ^ 6 ).9 g ^ f S ",
" E A g.5 8 ~ 6 f 6 ).J F < 9 { [ ~ i k 2 g g } g l k ! i ~ [ o 9 ] F e 6 6 F p o ^.8 E ",
" U _./ 6 ! ! ^ / f ).e F < 9 o [ i j k 2 l k ! i ~ [ { 9 ] F e ).6 G p 9 s G y ",
" O 8 : + 7 k ] ).6 ).e F < 9 o ~ ~ j j i ~ [ o 9 ] F e e J o h k h.[ *.b ",
" @.7 0.: $.k 8 j ] e e J ] G o o ~ [ { < ] F ] o } 7 < . 6 !.' q ",
" -.5.c / ,.e i k ! k k k k l l l 2 l 2 k ! i.$.4 j.k.l. ",
" b m.$ p i 6 t n.n.0 n.n n 0 5 + ] k o.O ..b ",
" m.-.R l.y #.O C R @.z ",
" ",
" "};

BIN
share/pixmaps/check.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

BIN
share/pixmaps/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

BIN
share/pixmaps/send16.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

BIN
share/pixmaps/send20.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

View File

@@ -0,0 +1,72 @@
#!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
import operator
OUT_CPP="src/qt/bitcoinstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' format produced by xgettext.
Return a list of (msgid,msgstr) tuples.
"""
messages = []
msgid = []
msgstr = []
in_msgid = False
in_msgstr = False
for line in text.split('\n'):
line = line.rstrip('\r')
if line.startswith('msgid '):
if in_msgstr:
messages.append((msgid, msgstr))
in_msgstr = False
# message start
in_msgid = True
msgid = [line[6:]]
elif line.startswith('msgstr '):
in_msgid = False
in_msgstr = True
msgstr = [line[7:]]
elif line.startswith('"'):
if in_msgid:
msgid.append(line)
if in_msgstr:
msgstr.append(line)
if in_msgstr:
messages.append((msgid, msgstr))
return messages
files = glob.glob('src/*.cpp') + glob.glob('src/*.h')
# xgettext -n --keyword=_ $FILES
child = Popen(['xgettext','--output=-','-n','--keyword=_'] + files, stdout=PIPE)
(out, err) = child.communicate()
messages = parse_po(out)
f = open(OUT_CPP, 'w')
f.write("""#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
""")
f.write('static const char UNUSED *bitcoin_strings[] = {\n')
messages.sort(key=operator.itemgetter(0))
for (msgid, msgstr) in messages:
if msgid != EMPTY:
f.write('QT_TRANSLATE_NOOP("bitcoin-core", %s),\n' % ('\n'.join(msgid)))
f.write('};')
f.close()

BIN
share/qt/img/reload.xcf Normal file

Binary file not shown.

43
share/qt/make_spinner.py Normal file
View File

@@ -0,0 +1,43 @@
#!/usr/bin/env python
# W.J. van der Laan, 2011
# Make spinning .mng animation from a .png
# Requires imagemagick 6.7+
from __future__ import division
from os import path
from PIL import Image
from subprocess import Popen
SRC='img/reload_scaled.png'
DST='../../src/qt/res/movies/update_spinner.mng'
TMPDIR='/tmp'
TMPNAME='tmp-%03i.png'
NUMFRAMES=35
FRAMERATE=10.0
CONVERT='convert'
CLOCKWISE=True
DSIZE=(16,16)
im_src = Image.open(SRC)
if CLOCKWISE:
im_src = im_src.transpose(Image.FLIP_LEFT_RIGHT)
def frame_to_filename(frame):
return path.join(TMPDIR, TMPNAME % frame)
frame_files = []
for frame in xrange(NUMFRAMES):
rotation = (frame + 0.5) / NUMFRAMES * 360.0
if CLOCKWISE:
rotation = -rotation
im_new = im_src.rotate(rotation, Image.BICUBIC)
im_new.thumbnail(DSIZE, Image.ANTIALIAS)
outfile = frame_to_filename(frame)
im_new.save(outfile, 'png')
frame_files.append(outfile)
p = Popen([CONVERT, "-delay", str(FRAMERATE), "-dispose", "2"] + frame_files + [DST])
p.communicate()

View File

@@ -0,0 +1,9 @@
#!/bin/bash
# create multiresolution windows icon
ICON_SRC=../../src/qt/res/icons/bitcoin.png
ICON_DST=../../src/qt/res/icons/bitcoin.ico
convert ${ICON_SRC} -resize 16x16 bitcoin-16.png
convert ${ICON_SRC} -resize 32x32 bitcoin-32.png
convert ${ICON_SRC} -resize 48x48 bitcoin-48.png
convert bitcoin-16.png bitcoin-32.png bitcoin-48.png ${ICON_DST}

162
share/setup.nsi Normal file
View File

@@ -0,0 +1,162 @@
Name CasinoCoin
RequestExecutionLevel highest
SetCompressor /SOLID lzma
# General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)"
!define VERSION 1.0.0.3
!define COMPANY "CasinoCoin project"
!define URL http://www.casinocoin.org/
# MUI Symbol Definitions
!define MUI_ICON "../share/pixmaps/bitcoin.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "../share/pixmaps/nsis-header.bmp"
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULTFOLDER CasinoCoin
!define MUI_FINISHPAGE_RUN $INSTDIR\casinocoin-qt.exe
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
# Included files
!include Sections.nsh
!include MUI2.nsh
# Variables
Var StartMenuGroup
# Installer pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuGroup
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
# Installer languages
!insertmacro MUI_LANGUAGE English
# Installer attributes
OutFile casinocoin-1.0.0.3-win32-setup.exe
InstallDir $PROGRAMFILES\CasinoCoin
CRCCheck on
XPStyle on
BrandingText " "
ShowInstDetails show
VIProductVersion 1.0.0.3
VIAddVersionKey ProductName CasinoCoin
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey CompanyWebsite "${URL}"
VIAddVersionKey FileVersion "${VERSION}"
VIAddVersionKey FileDescription ""
VIAddVersionKey LegalCopyright ""
InstallDirRegKey HKCU "${REGKEY}" Path
ShowUninstDetails show
# Installer sections
Section -Main SEC0000
SetOutPath $INSTDIR
SetOverwrite on
File ../release/casinocoin-qt.exe
File /oname=license.txt ../COPYING
File /oname=readme.txt ../doc/README_windows.txt
SetOutPath $INSTDIR\daemon
File ../src/casinocoind.exe
SetOutPath $INSTDIR\src
File /r /x *.exe /x *.o ../src\*.*
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1
# Remove old wxwidgets-based-bitcoin executable and locales:
Delete /REBOOTOK $INSTDIR\casinocoin.exe
RMDir /r /REBOOTOK $INSTDIR\locale
SectionEnd
Section -post SEC0001
WriteRegStr HKCU "${REGKEY}" Path $INSTDIR
SetOutPath $INSTDIR
WriteUninstaller $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\CasinoCoin.lnk" $INSTDIR\casinocoin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall CasinoCoin.lnk" $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_END
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Publisher "${COMPANY}"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" URLInfoAbout "${URL}"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayIcon $INSTDIR\uninstall.exe
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1
WriteRegStr HKCR "casinocoin" "URL Protocol" ""
WriteRegStr HKCR "casinocoin" "" "URL:Bitcoin"
WriteRegStr HKCR "casinocoin\DefaultIcon" "" $INSTDIR\casinocoin-qt.exe
WriteRegStr HKCR "casinocoin\shell\open\command" "" '"$INSTDIR\casinocoin-qt.exe" "$$1"'
SectionEnd
# Macro for selecting uninstaller sections
!macro SELECT_UNSECTION SECTION_NAME UNSECTION_ID
Push $R0
ReadRegStr $R0 HKCU "${REGKEY}\Components" "${SECTION_NAME}"
StrCmp $R0 1 0 next${UNSECTION_ID}
!insertmacro SelectSection "${UNSECTION_ID}"
GoTo done${UNSECTION_ID}
next${UNSECTION_ID}:
!insertmacro UnselectSection "${UNSECTION_ID}"
done${UNSECTION_ID}:
Pop $R0
!macroend
# Uninstaller sections
Section /o -un.Main UNSEC0000
Delete /REBOOTOK $INSTDIR\casinocoin-qt.exe
Delete /REBOOTOK $INSTDIR\license.txt
Delete /REBOOTOK $INSTDIR\readme.txt
RMDir /r /REBOOTOK $INSTDIR\daemon
RMDir /r /REBOOTOK $INSTDIR\src
DeleteRegValue HKCU "${REGKEY}\Components" Main
SectionEnd
Section -un.post UNSEC0001
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall CasinoCoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\CasinoCoin.lnk"
Delete /REBOOTOK "$SMSTARTUP\CasinoCoin.lnk"
Delete /REBOOTOK $INSTDIR\uninstall.exe
Delete /REBOOTOK $INSTDIR\debug.log
Delete /REBOOTOK $INSTDIR\db.log
DeleteRegValue HKCU "${REGKEY}" StartMenuGroup
DeleteRegValue HKCU "${REGKEY}" Path
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKCU "${REGKEY}"
DeleteRegKey HKCR "casinocoin"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $INSTDIR
Push $R0
StrCpy $R0 $StartMenuGroup 1
StrCmp $R0 ">" no_smgroup
no_smgroup:
Pop $R0
SectionEnd
# Installer functions
Function .onInit
InitPluginsDir
FunctionEnd
# Uninstaller functions
Function un.onInit
ReadRegStr $INSTDIR HKCU "${REGKEY}" Path
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuGroup
!insertmacro SELECT_UNSECTION Main ${UNSEC0000}
FunctionEnd

15
share/ui.rc Normal file
View File

@@ -0,0 +1,15 @@
bitcoin ICON "pixmaps/bitcoin.ico"
#include "wx/msw/wx.rc"
check ICON "pixmaps/check.ico"
send16 BITMAP "pixmaps/send16.bmp"
send16mask BITMAP "pixmaps/send16mask.bmp"
send16masknoshadow BITMAP "pixmaps/send16masknoshadow.bmp"
send20 BITMAP "pixmaps/send20.bmp"
send20mask BITMAP "pixmaps/send20mask.bmp"
addressbook16 BITMAP "pixmaps/addressbook16.bmp"
addressbook16mask BITMAP "pixmaps/addressbook16mask.bmp"
addressbook20 BITMAP "pixmaps/addressbook20.bmp"
addressbook20mask BITMAP "pixmaps/addressbook20mask.bmp"
favicon ICON "pixmaps/favicon.ico"