OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [tags/] [start/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [finddialog] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
# ----------------------------------------------------------------------
3
#  DEMO: finddialog in [incr Widgets]
4
# ----------------------------------------------------------------------
5
#\
6
exec itkwish "$0" ${1+"$@"}
7
package require Iwidgets 3.0
8
 
9
#
10
# Demo script for the Finddialog class
11
#
12
proc find {} {
13
    if {! [winfo exists .findd]} {
14
        iwidgets::finddialog .findd -textwidget .st
15
    }
16
 
17
    .findd center .st
18
    .findd activate
19
}
20
 
21
iwidgets::scrolledtext .st -visibleitems 50x14 -wrap none
22
pack .st
23
 
24
button .findb -text "Press to Search Text" -command find
25
pack .findb -pady 5
26
 
27
.st insert end "
28
                    The Declaration of Independence
29
                   (Adopted in Congress 4 July 1776)
30
 
31
When, in the course of human events, it becomes necessary for one
32
people to dissolve the political bonds which have connected them with
33
another, and to assume among the powers of the earth, the separate and
34
equal station to which the laws of nature and of nature's God entitle
35
them, a decent respect to the opinions of mankind requires that they
36
should declare the causes which impel them to the separation.
37
 
38
We hold these truths to be self-evident, that all men are created
39
equal, that they are endowed by their Creator with certain unalienable
40
rights, that among these are life, liberty and the pursuit of
41
happiness. That to secure these rights, governments are instituted
42
among men, deriving their just powers form the consent of the
43
governed. That whenever any form of government becomes destructive to
44
these ends, it is the right of the people to alter or to abolish it,
45
and to institute new government, laying its foundation on such
46
principles and organizing its powers in such form, as to them shall
47
seem most likely to effect their safety and happiness. Prudence,
48
indeed, will dictate that governments long established should not be
49
changed for light and transient causes; and accordingly all experience
50
hath shown that mankind are more disposed to suffer, while evils are
51
sufferable, than to right themselves by abolishing the forms to which
52
they are accustomed.  But when a long train of abuses and usurpations,
53
pursuing invariably the same object evinces a design to reduce them
54
under absolute despotism, it is their right, it is their duty, to
55
throw off such government, and to provide new guards for their future
56
security. --Such has been the patient sufferance of these colonies;
57
and such is now the necessity which constrains them to alter their
58
former systems of government. The history of the present King of Great
59
Britain is a history of repeated injuries and usurpations, all having
60
in direct object the establishment of an absolute tyranny over these
61
states. To prove this, let facts be submitted to a candid world.
62
 
63
He has refused his assent to laws, the most wholesome and necessary
64
for the public good.
65
 
66
He has forbidden his governors to pass laws of immediate and pressing
67
importance, unless suspended in their operation till his assent should
68
be obtained; and when so suspended, he has utterly neglected to attend
69
to them.
70
 
71
He has refused to pass other laws for the accommodation of large
72
districts of people, unless those people would relinquish the right of
73
representation in the legislature, a right inestimable to them and
74
formidable to tyrants only.
75
 
76
He has called together legislative bodies at places unusual,
77
uncomfortable, and distant from the depository of their public
78
records, for the sole purpose of fatiguing them into compliance with
79
his measures.
80
 
81
He has dissolved representative houses repeatedly, for opposing with
82
manly firmness his invasions on the rights of the people.
83
 
84
He has refused for a long time, after such dissolutions, to cause
85
others to be elected; whereby the legislative powers, incapable of
86
annihilation, have returned to the people at large for their exercise;
87
the state remaining in the meantime exposed to all the dangers of
88
invasion from without, and convulsions within.
89
 
90
He has endeavored to prevent the population of these states; for that
91
purpose obstructing the laws for naturalization of foreigners;
92
refusing to pass others to encourage their migration hither, and
93
raising the conditions of new appropriations of lands.
94
 
95
He has obstructed the administration of justice, by refusing his
96
assent to laws for establishing judiciary powers.
97
 
98
He has made judges dependent on his will alone, for the tenure of
99
their offices, and the amount and payment of their salaries.
100
 
101
He has erected a multitude of new offices, and sent hither swarms of
102
officers to harass our people, and eat out their substance.
103
 
104
He has kept among us, in times of peace, standing armies without the
105
consent of our legislature.
106
 
107
He has affected to render the military independent of and superior to
108
civil power.
109
 
110
He has combined with others to subject us to a jurisdiction foreign to
111
our constitution, and unacknowledged by our laws; giving his assent to
112
their acts of pretended legislation:
113
 
114
For quartering large bodies of armed troops among us:
115
 
116
For protecting them, by mock trial, from punishment for any murders
117
which they should commit on the inhabitants of these states:
118
 
119
For cutting off our trade with all parts of the world:
120
 
121
For imposing taxes on us without our consent:
122
 
123
For depriving us in many cases, of the benefits of trial by jury:
124
 
125
For transporting us beyond seas to be tried for pretended offenses:
126
 
127
For abolishing the free system of English laws in a neighboring
128
province, establishing therein an arbitrary government, and enlarging
129
its boundaries so as to render it at once an example and fit
130
instrument for introducing the same absolute rule in these colonies:
131
 
132
For taking away our charters, abolishing our most valuable laws, and
133
altering fundamentally the forms of our governments:
134
 
135
For suspending our own legislatures, and declaring themselves invested
136
with power to legislate for us in all cases whatsoever.
137
 
138
He has abdicated government here, by declaring us out of his
139
protection and waging war against us.
140
 
141
He has plundered our seas, ravaged our coasts, burned our towns, and
142
destroyed the lives of our people.
143
 
144
He is at this time transporting large armies of foreign mercenaries to
145
complete the works of death, desolation and tyranny, already begun
146
with circumstances of cruelty and perfidy scarcely paralleled in the
147
most barbarous ages, and totally unworthy the head of a civilized
148
nation.
149
 
150
He has constrained our fellow citizens taken captive on the high seas
151
to bear arms against their country, to become the executioners of
152
their friends and brethren, or to fall themselves by their hands.
153
 
154
He has excited domestic insurrections amongst us, and has endeavored
155
to bring on the inhabitants of our frontiers, the merciless Indian
156
savages, whose known rule of warfare, is undistinguished destruction
157
of all ages, sexes and conditions.
158
 
159
In every stage of these oppressions we have petitioned for redress in
160
the most humble terms: our repeated petitions have been answered only
161
by repeated injury. A prince, whose character is thus marked by every
162
act which may define a tyrant, is unfit to be the ruler of a free
163
people.
164
 
165
Nor have we been wanting in attention to our British brethren. We have
166
warned them from time to time of attempts by their legislature to
167
extend an unwarrantable jurisdiction over us. We have reminded them of
168
the circumstances of our emigration and settlement here. We have
169
appealed to their native justice and magnanimity, and we have conjured
170
them by the ties of our common kindred to disavow these usurpations,
171
which, would inevitably interrupt our connections and
172
correspondence. We must, therefore, acquiesce in the necessity, which
173
denounces our separation, and hold them, as we hold the rest of
174
mankind, enemies in war, in peace friends.
175
 
176
We, therefore, the representatives of the United States of America, in
177
General Congress, assembled, appealing to the Supreme Judge of the
178
world for the rectitude of our intentions, do, in the name, and by the
179
authority of the good people of these colonies, solemnly publish and
180
declare, that these united colonies are, and of right ought to be free
181
and independent states; that they are absolved from all allegiance to
182
the British Crown, and that all political connection between them and
183
the state of Great Britain, is and ought to be totally dissolved; and
184
that as free and independent states, they have full power to levy war,
185
conclude peace, contract alliances, establish commerce, and to do all
186
other acts and things which independent states may of right do. And
187
for the support of this declaration, with a firm reliance on the
188
protection of Divine Providence, we mutually pledge to each other our
189
lives, our fortunes and our sacred honor.
190
 
191
New Hampshire: Josiah Bartlett, William Whipple, Matthew Thornton
192
 
193
Massachusetts: John Hancock, Samual Adams, John Adams, Robert Treat
194
Paine, Elbridge Gerry
195
 
196
Rhode Island: Stephen Hopkins, William Ellery
197
 
198
Connecticut: Roger Sherman, Samuel Huntington, William Williams,
199
Oliver Wolcott
200
 
201
New York: William Floyd, Philip Livingston, Francis Lewis, Lewis
202
Morris
203
 
204
New Jersey: Richard Stockton, John Witherspoon, Francis Hopkinson,
205
John Hart, Abraham Clark
206
 
207
Pennsylvania: Robert Morris, Benjamin Rush, Benjamin Franklin, John
208
Morton, George Clymer, James Smith, George Taylor, James Wilson,
209
George Ross
210
 
211
Delaware: Caesar Rodney, George Read, Thomas McKean
212
 
213
Maryland: Samuel Chase, William Paca, Thomas Stone, Charles Carroll of
214
Carrollton
215
 
216
Virginia: George Wythe, Richard Henry Lee, Thomas Jefferson, Benjamin
217
Harrison, Thomas Nelson, Jr., Francis Lightfoot Lee, Carter Braxton
218
 
219
North Carolina: William Hooper, Joseph Hewes, John Penn
220
 
221
South Carolina: Edward Rutledge, Thomas Heyward, Jr., Thomas Lynch,
222
Jr., Arthur Middleton
223
 
224
Georgia: Button Gwinnett, Lyman Hall, George Walton
225
"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.