├── .dir-locals.el ├── .gitignore ├── AndroidManifest.xml ├── COPYING ├── LICENSE ├── LICENSE_ICONS ├── LICENSE_ICONS_2 ├── Makefile ├── NEWS.org ├── README.org ├── default.properties ├── metadata ├── de-DE │ ├── changelogs │ │ ├── 10.txt │ │ ├── 11.txt │ │ ├── 12.txt │ │ ├── 13.txt │ │ ├── 14.txt │ │ ├── 15.txt │ │ ├── 16.txt │ │ ├── 17.txt │ │ ├── 18.txt │ │ ├── 19.txt │ │ ├── 20.txt │ │ ├── 21.txt │ │ ├── 22.txt │ │ ├── 23.txt │ │ ├── 24.txt │ │ ├── 25.txt │ │ ├── 26.txt │ │ ├── 27.txt │ │ ├── 28.txt │ │ ├── 29.txt │ │ ├── 30.txt │ │ ├── 31.txt │ │ └── 9.txt │ ├── full_description.txt │ └── short_description.txt ├── en-US │ ├── changelogs │ │ ├── 10.txt │ │ ├── 11.txt │ │ ├── 12.txt │ │ ├── 13.txt │ │ ├── 14.txt │ │ ├── 15.txt │ │ ├── 16.txt │ │ ├── 17.txt │ │ ├── 18.txt │ │ ├── 19.txt │ │ ├── 20.txt │ │ ├── 21.txt │ │ ├── 22.txt │ │ ├── 23.txt │ │ ├── 24.txt │ │ ├── 25.txt │ │ ├── 26.txt │ │ ├── 27.txt │ │ ├── 28.txt │ │ ├── 29.txt │ │ ├── 30.txt │ │ ├── 31.txt │ │ └── 9.txt │ ├── full_description.txt │ ├── images │ │ └── phoneScreenshots │ │ │ └── 1.jpg │ └── short_description.txt ├── es-ES │ ├── changelogs │ │ ├── 10.txt │ │ ├── 11.txt │ │ ├── 12.txt │ │ ├── 13.txt │ │ └── 25.txt │ ├── full_description.txt │ └── short_description.txt ├── fr-FR │ ├── changelogs │ │ ├── 10.txt │ │ ├── 11.txt │ │ ├── 12.txt │ │ ├── 13.txt │ │ ├── 14.txt │ │ ├── 15.txt │ │ ├── 16.txt │ │ ├── 17.txt │ │ ├── 18.txt │ │ ├── 19.txt │ │ ├── 20.txt │ │ ├── 21.txt │ │ ├── 22.txt │ │ ├── 23.txt │ │ ├── 24.txt │ │ ├── 25.txt │ │ ├── 26.txt │ │ ├── 27.txt │ │ ├── 28.txt │ │ └── 9.txt │ ├── full_description.txt │ └── short_description.txt ├── it │ ├── changelogs │ │ ├── 10.txt │ │ ├── 11.txt │ │ ├── 12.txt │ │ ├── 13.txt │ │ ├── 14.txt │ │ ├── 15.txt │ │ ├── 16.txt │ │ ├── 17.txt │ │ ├── 18.txt │ │ ├── 19.txt │ │ ├── 20.txt │ │ ├── 21.txt │ │ ├── 22.txt │ │ ├── 23.txt │ │ ├── 24.txt │ │ ├── 25.txt │ │ └── 9.txt │ ├── full_description.txt │ └── short_description.txt ├── nb-NO │ ├── changelogs │ │ ├── 16.txt │ │ ├── 20.txt │ │ ├── 21.txt │ │ └── 24.txt │ ├── full_description.txt │ └── short_description.txt └── tr-TR │ ├── changelogs │ ├── 10.txt │ ├── 11.txt │ ├── 12.txt │ ├── 13.txt │ ├── 14.txt │ ├── 15.txt │ ├── 16.txt │ ├── 17.txt │ ├── 18.txt │ ├── 19.txt │ ├── 20.txt │ ├── 21.txt │ ├── 22.txt │ ├── 23.txt │ ├── 24.txt │ ├── 25.txt │ ├── 26.txt │ ├── 27.txt │ ├── 28.txt │ ├── 29.txt │ ├── 30.txt │ ├── 31.txt │ └── 9.txt │ ├── full_description.txt │ └── short_description.txt ├── res ├── drawable-hdpi │ └── icon.png ├── drawable-ldpi │ └── icon.png ├── drawable-mdpi │ └── icon.png ├── drawable │ ├── icon.png │ ├── menu_button.xml │ ├── pause.xml │ ├── pause_button.xml │ ├── reset.xml │ ├── reset_button.xml │ └── settings.xml ├── layout │ ├── about_dialog.xml │ └── main.xml ├── values-de │ └── strings.xml ├── values-es │ └── strings.xml ├── values-fr │ └── strings.xml ├── values-is │ └── strings.xml ├── values-it │ └── strings.xml ├── values-nb │ └── strings.xml ├── values-tr │ └── strings.xml ├── values │ ├── colors.xml │ └── strings.xml └── xml-port │ └── preferences.xml └── src └── com └── chessclock └── android ├── ChessClock.java ├── DialogFactory.java └── Prefs.java /.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((indent-tabs-mode . nil) 2 | (tab-width . 4) 3 | (fill-column . 79))) 4 | (java-mode . ((c-file-offsets 5 | (arglist-intro . +) 6 | (arglist-cont . 0) 7 | (arglist-close . 0))))) 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | keystore.jks 3 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 19 | 21 | 22 | 24 | 25 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | ---- Simple Chess Clock Copyright Information ---- 2 | 3 | 1. Code/Software License 4 | 5 | The source code for Simple Chess Clock is licensed 6 | under the GPLv3. You should have received a copy of 7 | this license within the LICENSE file. You may also 8 | view the license at: 9 | 10 | http://www.gnu.org/licenses/gpl.html 11 | 12 | 2. Icons License 13 | 14 | The Simple Chess Clock app icon is licensed under 15 | the GNU Free Documentation License (GFDL). You 16 | should have received a copy of this license within 17 | the LICENSE_ICONS file. You may also view the 18 | license at: 19 | 20 | http://www.gnu.org/copyleft/fdl.html 21 | 22 | The individual elements of the icons were found on 23 | Wikimedia commons, and may be found at the following 24 | locations: 25 | 26 | Clock: http://commons.wikimedia.org/wiki/File:Clock.gif 27 | Queen: http://commons.wikimedia.org/wiki/File:Queen_Chess.jpg 28 | King: http://commons.wikimedia.org/wiki/File:King_Chess.jpg 29 | 30 | In in-app icons are part of the Material Design 31 | suite and are licensed under the Apache License 32 | version 2.0. You should have received a copy of this 33 | license within the LICENSE_ICONS_2 file. You may 34 | also view the license at: 35 | 36 | https://www.apache.org/licenses/LICENSE-2.0.html 37 | 38 | 3. Developers/Credits 39 | 40 | Simple Chess Clock was created in 2010 by Carter Dewey. 41 | Simen Heggestøyl is maintaining the app since 2019. 42 | 43 | - Code contributions by skyhelix, Yuhui Su, and meanindra. 44 | 45 | - French translation by Sitavi and eUgEntOptIc44. 46 | - German translation by Petra Mirelli, Hiajen, eUgEntOptIc44, and mondstern. 47 | - Icelandic translation by Sveinn í Felli. 48 | - Italian translation by eUgEntOptIc44 and Alparslan Şakçi. 49 | - Norwegian Bokmål translation by Simen Heggestøyl and Allan Nordhøy. 50 | - Spanish translation by Daniel Garcia Pallaviccini (tlacuilo@tlacuilo.biz), 51 | eUgEntOptIc44, thebiblelover7, and Alparslan Şakçi. 52 | - Turkish translation by Alparslan Şakçi. 53 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /LICENSE_ICONS: -------------------------------------------------------------------------------- 1 | 2 | GNU Free Documentation License 3 | Version 1.3, 3 November 2008 4 | 5 | 6 | Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. 7 | 8 | Everyone is permitted to copy and distribute verbatim copies 9 | of this license document, but changing it is not allowed. 10 | 11 | 0. PREAMBLE 12 | 13 | The purpose of this License is to make a manual, textbook, or other 14 | functional and useful document "free" in the sense of freedom: to 15 | assure everyone the effective freedom to copy and redistribute it, 16 | with or without modifying it, either commercially or noncommercially. 17 | Secondarily, this License preserves for the author and publisher a way 18 | to get credit for their work, while not being considered responsible 19 | for modifications made by others. 20 | 21 | This License is a kind of "copyleft", which means that derivative 22 | works of the document must themselves be free in the same sense. It 23 | complements the GNU General Public License, which is a copyleft 24 | license designed for free software. 25 | 26 | We have designed this License in order to use it for manuals for free 27 | software, because free software needs free documentation: a free 28 | program should come with manuals providing the same freedoms that the 29 | software does. But this License is not limited to software manuals; 30 | it can be used for any textual work, regardless of subject matter or 31 | whether it is published as a printed book. We recommend this License 32 | principally for works whose purpose is instruction or reference. 33 | 34 | 35 | 1. APPLICABILITY AND DEFINITIONS 36 | 37 | This License applies to any manual or other work, in any medium, that 38 | contains a notice placed by the copyright holder saying it can be 39 | distributed under the terms of this License. Such a notice grants a 40 | world-wide, royalty-free license, unlimited in duration, to use that 41 | work under the conditions stated herein. The "Document", below, 42 | refers to any such manual or work. Any member of the public is a 43 | licensee, and is addressed as "you". You accept the license if you 44 | copy, modify or distribute the work in a way requiring permission 45 | under copyright law. 46 | 47 | A "Modified Version" of the Document means any work containing the 48 | Document or a portion of it, either copied verbatim, or with 49 | modifications and/or translated into another language. 50 | 51 | A "Secondary Section" is a named appendix or a front-matter section of 52 | the Document that deals exclusively with the relationship of the 53 | publishers or authors of the Document to the Document's overall 54 | subject (or to related matters) and contains nothing that could fall 55 | directly within that overall subject. (Thus, if the Document is in 56 | part a textbook of mathematics, a Secondary Section may not explain 57 | any mathematics.) The relationship could be a matter of historical 58 | connection with the subject or with related matters, or of legal, 59 | commercial, philosophical, ethical or political position regarding 60 | them. 61 | 62 | The "Invariant Sections" are certain Secondary Sections whose titles 63 | are designated, as being those of Invariant Sections, in the notice 64 | that says that the Document is released under this License. If a 65 | section does not fit the above definition of Secondary then it is not 66 | allowed to be designated as Invariant. The Document may contain zero 67 | Invariant Sections. If the Document does not identify any Invariant 68 | Sections then there are none. 69 | 70 | The "Cover Texts" are certain short passages of text that are listed, 71 | as Front-Cover Texts or Back-Cover Texts, in the notice that says that 72 | the Document is released under this License. A Front-Cover Text may 73 | be at most 5 words, and a Back-Cover Text may be at most 25 words. 74 | 75 | A "Transparent" copy of the Document means a machine-readable copy, 76 | represented in a format whose specification is available to the 77 | general public, that is suitable for revising the document 78 | straightforwardly with generic text editors or (for images composed of 79 | pixels) generic paint programs or (for drawings) some widely available 80 | drawing editor, and that is suitable for input to text formatters or 81 | for automatic translation to a variety of formats suitable for input 82 | to text formatters. A copy made in an otherwise Transparent file 83 | format whose markup, or absence of markup, has been arranged to thwart 84 | or discourage subsequent modification by readers is not Transparent. 85 | An image format is not Transparent if used for any substantial amount 86 | of text. A copy that is not "Transparent" is called "Opaque". 87 | 88 | Examples of suitable formats for Transparent copies include plain 89 | ASCII without markup, Texinfo input format, LaTeX input format, SGML 90 | or XML using a publicly available DTD, and standard-conforming simple 91 | HTML, PostScript or PDF designed for human modification. Examples of 92 | transparent image formats include PNG, XCF and JPG. Opaque formats 93 | include proprietary formats that can be read and edited only by 94 | proprietary word processors, SGML or XML for which the DTD and/or 95 | processing tools are not generally available, and the 96 | machine-generated HTML, PostScript or PDF produced by some word 97 | processors for output purposes only. 98 | 99 | The "Title Page" means, for a printed book, the title page itself, 100 | plus such following pages as are needed to hold, legibly, the material 101 | this License requires to appear in the title page. For works in 102 | formats which do not have any title page as such, "Title Page" means 103 | the text near the most prominent appearance of the work's title, 104 | preceding the beginning of the body of the text. 105 | 106 | The "publisher" means any person or entity that distributes copies of 107 | the Document to the public. 108 | 109 | A section "Entitled XYZ" means a named subunit of the Document whose 110 | title either is precisely XYZ or contains XYZ in parentheses following 111 | text that translates XYZ in another language. (Here XYZ stands for a 112 | specific section name mentioned below, such as "Acknowledgements", 113 | "Dedications", "Endorsements", or "History".) To "Preserve the Title" 114 | of such a section when you modify the Document means that it remains a 115 | section "Entitled XYZ" according to this definition. 116 | 117 | The Document may include Warranty Disclaimers next to the notice which 118 | states that this License applies to the Document. These Warranty 119 | Disclaimers are considered to be included by reference in this 120 | License, but only as regards disclaiming warranties: any other 121 | implication that these Warranty Disclaimers may have is void and has 122 | no effect on the meaning of this License. 123 | 124 | 2. VERBATIM COPYING 125 | 126 | You may copy and distribute the Document in any medium, either 127 | commercially or noncommercially, provided that this License, the 128 | copyright notices, and the license notice saying this License applies 129 | to the Document are reproduced in all copies, and that you add no 130 | other conditions whatsoever to those of this License. You may not use 131 | technical measures to obstruct or control the reading or further 132 | copying of the copies you make or distribute. However, you may accept 133 | compensation in exchange for copies. If you distribute a large enough 134 | number of copies you must also follow the conditions in section 3. 135 | 136 | You may also lend copies, under the same conditions stated above, and 137 | you may publicly display copies. 138 | 139 | 140 | 3. COPYING IN QUANTITY 141 | 142 | If you publish printed copies (or copies in media that commonly have 143 | printed covers) of the Document, numbering more than 100, and the 144 | Document's license notice requires Cover Texts, you must enclose the 145 | copies in covers that carry, clearly and legibly, all these Cover 146 | Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on 147 | the back cover. Both covers must also clearly and legibly identify 148 | you as the publisher of these copies. The front cover must present 149 | the full title with all words of the title equally prominent and 150 | visible. You may add other material on the covers in addition. 151 | Copying with changes limited to the covers, as long as they preserve 152 | the title of the Document and satisfy these conditions, can be treated 153 | as verbatim copying in other respects. 154 | 155 | If the required texts for either cover are too voluminous to fit 156 | legibly, you should put the first ones listed (as many as fit 157 | reasonably) on the actual cover, and continue the rest onto adjacent 158 | pages. 159 | 160 | If you publish or distribute Opaque copies of the Document numbering 161 | more than 100, you must either include a machine-readable Transparent 162 | copy along with each Opaque copy, or state in or with each Opaque copy 163 | a computer-network location from which the general network-using 164 | public has access to download using public-standard network protocols 165 | a complete Transparent copy of the Document, free of added material. 166 | If you use the latter option, you must take reasonably prudent steps, 167 | when you begin distribution of Opaque copies in quantity, to ensure 168 | that this Transparent copy will remain thus accessible at the stated 169 | location until at least one year after the last time you distribute an 170 | Opaque copy (directly or through your agents or retailers) of that 171 | edition to the public. 172 | 173 | It is requested, but not required, that you contact the authors of the 174 | Document well before redistributing any large number of copies, to 175 | give them a chance to provide you with an updated version of the 176 | Document. 177 | 178 | 179 | 4. MODIFICATIONS 180 | 181 | You may copy and distribute a Modified Version of the Document under 182 | the conditions of sections 2 and 3 above, provided that you release 183 | the Modified Version under precisely this License, with the Modified 184 | Version filling the role of the Document, thus licensing distribution 185 | and modification of the Modified Version to whoever possesses a copy 186 | of it. In addition, you must do these things in the Modified Version: 187 | 188 | A. Use in the Title Page (and on the covers, if any) a title distinct 189 | from that of the Document, and from those of previous versions 190 | (which should, if there were any, be listed in the History section 191 | of the Document). You may use the same title as a previous version 192 | if the original publisher of that version gives permission. 193 | B. List on the Title Page, as authors, one or more persons or entities 194 | responsible for authorship of the modifications in the Modified 195 | Version, together with at least five of the principal authors of the 196 | Document (all of its principal authors, if it has fewer than five), 197 | unless they release you from this requirement. 198 | C. State on the Title page the name of the publisher of the 199 | Modified Version, as the publisher. 200 | D. Preserve all the copyright notices of the Document. 201 | E. Add an appropriate copyright notice for your modifications 202 | adjacent to the other copyright notices. 203 | F. Include, immediately after the copyright notices, a license notice 204 | giving the public permission to use the Modified Version under the 205 | terms of this License, in the form shown in the Addendum below. 206 | G. Preserve in that license notice the full lists of Invariant Sections 207 | and required Cover Texts given in the Document's license notice. 208 | H. Include an unaltered copy of this License. 209 | I. Preserve the section Entitled "History", Preserve its Title, and add 210 | to it an item stating at least the title, year, new authors, and 211 | publisher of the Modified Version as given on the Title Page. If 212 | there is no section Entitled "History" in the Document, create one 213 | stating the title, year, authors, and publisher of the Document as 214 | given on its Title Page, then add an item describing the Modified 215 | Version as stated in the previous sentence. 216 | J. Preserve the network location, if any, given in the Document for 217 | public access to a Transparent copy of the Document, and likewise 218 | the network locations given in the Document for previous versions 219 | it was based on. These may be placed in the "History" section. 220 | You may omit a network location for a work that was published at 221 | least four years before the Document itself, or if the original 222 | publisher of the version it refers to gives permission. 223 | K. For any section Entitled "Acknowledgements" or "Dedications", 224 | Preserve the Title of the section, and preserve in the section all 225 | the substance and tone of each of the contributor acknowledgements 226 | and/or dedications given therein. 227 | L. Preserve all the Invariant Sections of the Document, 228 | unaltered in their text and in their titles. Section numbers 229 | or the equivalent are not considered part of the section titles. 230 | M. Delete any section Entitled "Endorsements". Such a section 231 | may not be included in the Modified Version. 232 | N. Do not retitle any existing section to be Entitled "Endorsements" 233 | or to conflict in title with any Invariant Section. 234 | O. Preserve any Warranty Disclaimers. 235 | 236 | If the Modified Version includes new front-matter sections or 237 | appendices that qualify as Secondary Sections and contain no material 238 | copied from the Document, you may at your option designate some or all 239 | of these sections as invariant. To do this, add their titles to the 240 | list of Invariant Sections in the Modified Version's license notice. 241 | These titles must be distinct from any other section titles. 242 | 243 | You may add a section Entitled "Endorsements", provided it contains 244 | nothing but endorsements of your Modified Version by various 245 | parties--for example, statements of peer review or that the text has 246 | been approved by an organization as the authoritative definition of a 247 | standard. 248 | 249 | You may add a passage of up to five words as a Front-Cover Text, and a 250 | passage of up to 25 words as a Back-Cover Text, to the end of the list 251 | of Cover Texts in the Modified Version. Only one passage of 252 | Front-Cover Text and one of Back-Cover Text may be added by (or 253 | through arrangements made by) any one entity. If the Document already 254 | includes a cover text for the same cover, previously added by you or 255 | by arrangement made by the same entity you are acting on behalf of, 256 | you may not add another; but you may replace the old one, on explicit 257 | permission from the previous publisher that added the old one. 258 | 259 | The author(s) and publisher(s) of the Document do not by this License 260 | give permission to use their names for publicity for or to assert or 261 | imply endorsement of any Modified Version. 262 | 263 | 264 | 5. COMBINING DOCUMENTS 265 | 266 | You may combine the Document with other documents released under this 267 | License, under the terms defined in section 4 above for modified 268 | versions, provided that you include in the combination all of the 269 | Invariant Sections of all of the original documents, unmodified, and 270 | list them all as Invariant Sections of your combined work in its 271 | license notice, and that you preserve all their Warranty Disclaimers. 272 | 273 | The combined work need only contain one copy of this License, and 274 | multiple identical Invariant Sections may be replaced with a single 275 | copy. If there are multiple Invariant Sections with the same name but 276 | different contents, make the title of each such section unique by 277 | adding at the end of it, in parentheses, the name of the original 278 | author or publisher of that section if known, or else a unique number. 279 | Make the same adjustment to the section titles in the list of 280 | Invariant Sections in the license notice of the combined work. 281 | 282 | In the combination, you must combine any sections Entitled "History" 283 | in the various original documents, forming one section Entitled 284 | "History"; likewise combine any sections Entitled "Acknowledgements", 285 | and any sections Entitled "Dedications". You must delete all sections 286 | Entitled "Endorsements". 287 | 288 | 289 | 6. COLLECTIONS OF DOCUMENTS 290 | 291 | You may make a collection consisting of the Document and other 292 | documents released under this License, and replace the individual 293 | copies of this License in the various documents with a single copy 294 | that is included in the collection, provided that you follow the rules 295 | of this License for verbatim copying of each of the documents in all 296 | other respects. 297 | 298 | You may extract a single document from such a collection, and 299 | distribute it individually under this License, provided you insert a 300 | copy of this License into the extracted document, and follow this 301 | License in all other respects regarding verbatim copying of that 302 | document. 303 | 304 | 305 | 7. AGGREGATION WITH INDEPENDENT WORKS 306 | 307 | A compilation of the Document or its derivatives with other separate 308 | and independent documents or works, in or on a volume of a storage or 309 | distribution medium, is called an "aggregate" if the copyright 310 | resulting from the compilation is not used to limit the legal rights 311 | of the compilation's users beyond what the individual works permit. 312 | When the Document is included in an aggregate, this License does not 313 | apply to the other works in the aggregate which are not themselves 314 | derivative works of the Document. 315 | 316 | If the Cover Text requirement of section 3 is applicable to these 317 | copies of the Document, then if the Document is less than one half of 318 | the entire aggregate, the Document's Cover Texts may be placed on 319 | covers that bracket the Document within the aggregate, or the 320 | electronic equivalent of covers if the Document is in electronic form. 321 | Otherwise they must appear on printed covers that bracket the whole 322 | aggregate. 323 | 324 | 325 | 8. TRANSLATION 326 | 327 | Translation is considered a kind of modification, so you may 328 | distribute translations of the Document under the terms of section 4. 329 | Replacing Invariant Sections with translations requires special 330 | permission from their copyright holders, but you may include 331 | translations of some or all Invariant Sections in addition to the 332 | original versions of these Invariant Sections. You may include a 333 | translation of this License, and all the license notices in the 334 | Document, and any Warranty Disclaimers, provided that you also include 335 | the original English version of this License and the original versions 336 | of those notices and disclaimers. In case of a disagreement between 337 | the translation and the original version of this License or a notice 338 | or disclaimer, the original version will prevail. 339 | 340 | If a section in the Document is Entitled "Acknowledgements", 341 | "Dedications", or "History", the requirement (section 4) to Preserve 342 | its Title (section 1) will typically require changing the actual 343 | title. 344 | 345 | 346 | 9. TERMINATION 347 | 348 | You may not copy, modify, sublicense, or distribute the Document 349 | except as expressly provided under this License. Any attempt 350 | otherwise to copy, modify, sublicense, or distribute it is void, and 351 | will automatically terminate your rights under this License. 352 | 353 | However, if you cease all violation of this License, then your license 354 | from a particular copyright holder is reinstated (a) provisionally, 355 | unless and until the copyright holder explicitly and finally 356 | terminates your license, and (b) permanently, if the copyright holder 357 | fails to notify you of the violation by some reasonable means prior to 358 | 60 days after the cessation. 359 | 360 | Moreover, your license from a particular copyright holder is 361 | reinstated permanently if the copyright holder notifies you of the 362 | violation by some reasonable means, this is the first time you have 363 | received notice of violation of this License (for any work) from that 364 | copyright holder, and you cure the violation prior to 30 days after 365 | your receipt of the notice. 366 | 367 | Termination of your rights under this section does not terminate the 368 | licenses of parties who have received copies or rights from you under 369 | this License. If your rights have been terminated and not permanently 370 | reinstated, receipt of a copy of some or all of the same material does 371 | not give you any rights to use it. 372 | 373 | 374 | 10. FUTURE REVISIONS OF THIS LICENSE 375 | 376 | The Free Software Foundation may publish new, revised versions of the 377 | GNU Free Documentation License from time to time. Such new versions 378 | will be similar in spirit to the present version, but may differ in 379 | detail to address new problems or concerns. See 380 | https://www.gnu.org/licenses/. 381 | 382 | Each version of the License is given a distinguishing version number. 383 | If the Document specifies that a particular numbered version of this 384 | License "or any later version" applies to it, you have the option of 385 | following the terms and conditions either of that specified version or 386 | of any later version that has been published (not as a draft) by the 387 | Free Software Foundation. If the Document does not specify a version 388 | number of this License, you may choose any version ever published (not 389 | as a draft) by the Free Software Foundation. If the Document 390 | specifies that a proxy can decide which future versions of this 391 | License can be used, that proxy's public statement of acceptance of a 392 | version permanently authorizes you to choose that version for the 393 | Document. 394 | 395 | 11. RELICENSING 396 | 397 | "Massive Multiauthor Collaboration Site" (or "MMC Site") means any 398 | World Wide Web server that publishes copyrightable works and also 399 | provides prominent facilities for anybody to edit those works. A 400 | public wiki that anybody can edit is an example of such a server. A 401 | "Massive Multiauthor Collaboration" (or "MMC") contained in the site 402 | means any set of copyrightable works thus published on the MMC site. 403 | 404 | "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 405 | license published by Creative Commons Corporation, a not-for-profit 406 | corporation with a principal place of business in San Francisco, 407 | California, as well as future copyleft versions of that license 408 | published by that same organization. 409 | 410 | "Incorporate" means to publish or republish a Document, in whole or in 411 | part, as part of another Document. 412 | 413 | An MMC is "eligible for relicensing" if it is licensed under this 414 | License, and if all works that were first published under this License 415 | somewhere other than this MMC, and subsequently incorporated in whole or 416 | in part into the MMC, (1) had no cover texts or invariant sections, and 417 | (2) were thus incorporated prior to November 1, 2008. 418 | 419 | The operator of an MMC Site may republish an MMC contained in the site 420 | under CC-BY-SA on the same site at any time before August 1, 2009, 421 | provided the MMC is eligible for relicensing. 422 | 423 | 424 | ADDENDUM: How to use this License for your documents 425 | 426 | To use this License in a document you have written, include a copy of 427 | the License in the document and put the following copyright and 428 | license notices just after the title page: 429 | 430 | Copyright (c) YEAR YOUR NAME. 431 | Permission is granted to copy, distribute and/or modify this document 432 | under the terms of the GNU Free Documentation License, Version 1.3 433 | or any later version published by the Free Software Foundation; 434 | with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. 435 | A copy of the license is included in the section entitled "GNU 436 | Free Documentation License". 437 | 438 | If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, 439 | replace the "with...Texts." line with this: 440 | 441 | with the Invariant Sections being LIST THEIR TITLES, with the 442 | Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. 443 | 444 | If you have Invariant Sections without Cover Texts, or some other 445 | combination of the three, merge those two alternatives to suit the 446 | situation. 447 | 448 | If your document contains nontrivial examples of program code, we 449 | recommend releasing these examples in parallel under your choice of 450 | free software license, such as the GNU General Public License, 451 | to permit their use in free software. 452 | -------------------------------------------------------------------------------- /LICENSE_ICONS_2: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | JAVA_SOURCES = $(shell find src -type f -name '*.java') 2 | RESOURCES = $(shell find res -type f -name '*.xml') 3 | 4 | .PHONY: all 5 | all: build/ChessClock.apk 6 | 7 | build/ChessClock.apk: $(JAVA_SOURCES) $(RESOURCES) AndroidManifest.xml 8 | mkdir -p build/gen; 9 | aapt package -f -m -J build/gen -S res -M AndroidManifest.xml -I /usr/lib/android-sdk/platforms/android-27/android.jar; 10 | javac -Xlint:deprecation -source 1.7 -target 1.7 -bootclasspath "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar" -classpath "/usr/lib/android-sdk/platforms/android-27/android.jar" -d build/obj build/gen/com/chessclock/android/R.java src/com/chessclock/android/*.java; 11 | mkdir -p build/apk; 12 | /usr/lib/android-sdk/build-tools/debian/dx --dex --output=build/apk/classes.dex build/obj/; 13 | aapt package -f -M AndroidManifest.xml -S res/ -I /usr/lib/android-sdk/platforms/android-27/android.jar -F build/ChessClock.unsigned.apk build/apk/; 14 | zipalign -f -p 4 build/ChessClock.unsigned.apk build/ChessClock.aligned.apk; 15 | apksigner sign --ks keystore.jks --ks-key-alias androidkey --ks-pass pass:android --key-pass pass:android --out build/ChessClock.apk build/ChessClock.aligned.apk; 16 | 17 | .PHONY: install 18 | install: 19 | adb install -r build/ChessClock.apk; 20 | 21 | .PHONY: clean 22 | clean: 23 | rm -rf build; 24 | -------------------------------------------------------------------------------- /NEWS.org: -------------------------------------------------------------------------------- 1 | *** ?.?.? (TBD) 2 | - Updated translation: German. 3 | 4 | *** 2.12.0 (2022-09-18) 5 | - New translation: Icelandic, by Sveinn í Felli. 6 | - Target SDK version has been increased from 26 (Android 8.0) to 27 7 | (Android 8.1). 8 | 9 | *** 2.11.3 (2022-07-09) 10 | - Updated translation: Turkish. 11 | - Target SDK version has been increased from 25 (Android 7.1) to 26 12 | (Android 8.0). 13 | 14 | *** 2.11.2 (2022-05-15) 15 | - Fixed "None" option text in the English version of the app. 16 | - Updated translations: French, Italian, and Spanish. 17 | - Target SDK version has been increased from 24 (Android 7.0) to 25 18 | (Android 7.1). 19 | 20 | *** 2.11.1 (2022-05-07) 21 | - The app no longer requires a special wake lock permission for keeping the 22 | screen turned on, but uses another technique instead which might also 23 | turn out beneficial to CPU and power usage. 24 | - Target SDK version has been increased from 23 (Android 6.0) to 24 25 | (Android 7.0). 26 | 27 | *** 2.11.0 (2022-05-02) 28 | - New translation: Italian. 29 | - Updated translations: French and Norwegian Bokmål. 30 | - Screens with aspect ratios between 1.86 and 2.1 should no longer have 31 | black bars appear at the top or bottom of the screen. 32 | 33 | *** 2.10.0 (2022-03-28) 34 | - New delay type: Capped Fischer. 35 | 36 | *** 2.9.0 (2022-02-06) 37 | - New translation: Turkish, by Alparslan Şakçi. 38 | 39 | *** 2.8.0 (2022-01-10) 40 | - New translation: German, by Petra Mirelli. 41 | - Bugfix: The alarm now stops playing when hitting the reset button. 42 | 43 | *** 2.7.0 (2022-01-01) 44 | - New translation: Spanish, by Daniel Garcia Pallaviccini. 45 | 46 | *** 2.6.2 (2021-09-20) 47 | - Fixed a bug where Bronstein delay games with no initial time would run 48 | into negative time. 49 | - Bronstein delays are displayed on the same line as the total time again 50 | when decisecond display is disabled. 51 | 52 | *** 2.6.1 (2021-09-12) 53 | - Text fixes. 54 | 55 | *** 2.6.0 (2021-09-04) 56 | - New translation: French, by Sitavi. 57 | 58 | *** 2.5.1 (2021-08-21) 59 | - The about screen is now scrollable to be readable when there is less 60 | screen space. 61 | 62 | *** 2.5.0 (2021-06-19) 63 | - Game time and delay can be specified in seconds, minutes or hours. 64 | - Time display shows hours. 65 | - Time display can optionally show deciseconds. 66 | 67 | *** 2.4.1 (2021-06-12) 68 | - Fixed the pause button for Bronstein delay games with no initial time. 69 | 70 | *** 2.4.0 (2021-05-30) 71 | - Players can now have different initial game time. 72 | 73 | *** 2.3.0 (2021-05-28) 74 | - Bronstein delay games with no initial time is now supported. 75 | 76 | *** 2.2.1 (2021-02-07) 77 | - With Fischer delay, the extra time is now added at the end of player 78 | turns, instead of at the beginning. 79 | 80 | *** 2.2.0 (2020-07-06) 81 | - Added an option to use a black background on the main game screen for 82 | potential power savings with OLED screens. 83 | 84 | *** 2.1.2 (2019-05-30) 85 | - Fixed a bug causing player 1 to sometimes not receive the initial delay. 86 | - Fixed a bug causing some delays to be skipped after resuming a paused 87 | game. 88 | 89 | *** 2.1.1 (2019-04-28) 90 | - New translation: Norwegian Bokmål. 91 | 92 | *** 2.1.0 (2019-04-14) 93 | - Fixed an issue with clocks disappearing on Android 7.0 and above. 94 | - The minimum Android version was corrected to Android 5.0 and above, since 95 | SCC is using scalable vector graphics. 96 | - Material theme is now applied in menus and dialogs. 97 | 98 | *** 2.0.0 (2019-03-24) 99 | - Major overhaul of the user interface. 100 | - Should now work on modern Android versions. 101 | 102 | *** 1.2.0 (2010-11-28) 103 | - Added ability to move SCC to SD storage. 104 | 105 | *** 1.1.3 (2010-11-21) 106 | - Fixed a bug that could cause a crash in certain situations (related to 107 | ringtone). 108 | 109 | *** 1.1.2 (2010-11-06) 110 | - Fixed another bug. Leaving an option blank should no longer cause a crash 111 | – it will use the default value instead. 112 | 113 | *** 1.1.1 (2010-11-06) 114 | - Addressed a crash on startup. 115 | 116 | *** 1.1.0 (2010-09-27) 117 | - Added haptic feedback option. 118 | - Cleaned up some more code. 119 | 120 | *** 1.0.3 (2010-09-24) 121 | - Changed the package name to conform to Google's naming standards. 122 | - First version available on the Market! 123 | 124 | *** 1.0.2 (2010-09-13) 125 | - Fixed a bug that caused one clock to incorrectly continue running after 126 | "Reset Clocks" was used. 127 | - Made the app properly pause the game when Home or Back are used to exit. 128 | - Fixed the colouring of the clock text in cases where time dips below 60s 129 | then rises above it again (due to Fischer delay). 130 | 131 | *** 1.0.1b (2010-09-12) 132 | - Fixed a bug that caused delays to be applied twice if a player's clock 133 | was paused and then unpaused. 134 | 135 | *** 1.0.0b (2010-09-11) 136 | - First beta release, with all planned 1.0 features. 137 | -------------------------------------------------------------------------------- /README.org: -------------------------------------------------------------------------------- 1 | * Simple Chess Clock 2 | Simple Chess Clock is what its name implies: a chess clock (that's 3 | simple!). It aims to be easy to use and easy to read, while also providing 4 | some reasonably expected features. 5 | 6 | If you experience problems on your device, please visit 7 | https://github.com/simenheg/simple-chess-clock to report a bug (click the 8 | "Issues" tab). 9 | 10 | ** Download 11 | #+html: 12 | #+html: Get it on F-Droid 13 | #+html: 14 | 15 | ** Screenshot 16 | [[file:metadata/en-US/images/phoneScreenshots/1.jpg]] 17 | 18 | ** Modifying/Copying 19 | Simple Chess Clock is [[https://www.fsf.org/about/what-is-free-software][free software]]: you can redistribute it and/or modify 20 | it under the terms of the [[file:LICENSE][GNU General Public License]] as published by the 21 | Free Software Foundation, either version 3 of the License, or (at your 22 | option) any later version. 23 | 24 | ** Helping with translations 25 | You can help translate the app by submitting a pull request directly on 26 | GitHub. 27 | 28 | ** Requirements 29 | - Android 5.0+ 30 | 31 | ** Changelog 32 | *** 2.12.0 (2022-09-18) 33 | - New translation: Icelandic, by Sveinn í Felli. 34 | - Target SDK version has been increased from 26 (Android 8.0) to 27 35 | (Android 8.1). 36 | 37 | *** 2.11.3 (2022-07-09) 38 | - Updated translation: Turkish. 39 | - Target SDK version has been increased from 25 (Android 7.1) to 26 40 | (Android 8.0). 41 | 42 | *** 2.11.2 (2022-05-15) 43 | - Fixed "None" option text in the English version of the app. 44 | - Updated translations: French, Italian, and Spanish. 45 | - Target SDK version has been increased from 24 (Android 7.0) to 25 46 | (Android 7.1). 47 | 48 | *** 2.11.1 (2022-05-07) 49 | - The app no longer requires a special wake lock permission for keeping the 50 | screen turned on, but uses another technique instead which might also 51 | turn out beneficial to CPU and power usage. 52 | - Target SDK version has been increased from 23 (Android 6.0) to 24 53 | (Android 7.0). 54 | 55 | *** 2.11.0 (2022-05-02) 56 | - New translation: Italian. 57 | - Updated translations: French and Norwegian Bokmål. 58 | - Screens with aspect ratios between 1.86 and 2.1 should no longer have 59 | black bars appear at the top or bottom of the screen. 60 | 61 | [[NEWS.org][View full changelog]] 62 | -------------------------------------------------------------------------------- /default.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-27 -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/10.txt: -------------------------------------------------------------------------------- 1 | - Ein Problem mit verschwindenden Uhren unter Android 7.0 und höher wurde behoben. 2 | - Die minimale Android-Version wurde auf Android 5.0 und höher korrigiert, da SCC skalierbare Vektorgrafiken verwendet. 3 | - Das Material Theme wird nun in Menüs und Dialogen angewendet. 4 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/11.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Norwegisch Bokmål. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/12.txt: -------------------------------------------------------------------------------- 1 | - Es wurde ein Fehler behoben, der dazu führte, dass Spieler 1 manchmal nicht die initiale Verzögerung erhielt. 2 | - Es wurde ein Fehler behoben, der dazu führte, dass einige Verzögerungen übersprungen wurden, nachdem ein pausiertes Spiel wieder aufgenommen wurde. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/13.txt: -------------------------------------------------------------------------------- 1 | - Es wurde die Option hinzugefügt, einen schwarzen Hintergrund auf dem Hauptspielbildschirm zu verwenden, um gegebenenfalls auf OLED-Bildschirmen Strom zu sparen. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/14.txt: -------------------------------------------------------------------------------- 1 | - Bei der Fischer-Verzögerung wird die zusätzliche Zeit nun am Ende der Spielerzüge hinzugefügt, anstatt am Anfang. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/15.txt: -------------------------------------------------------------------------------- 1 | - Bronstein-Verzögerungsspiele ohne Anfangszeit werden jetzt unterstützt. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/16.txt: -------------------------------------------------------------------------------- 1 | - Die Spieler können nun unterschiedliche Anfangszeiten haben. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/17.txt: -------------------------------------------------------------------------------- 1 | - Die Pausen-Button für Spiele mit Bronstein-Verzögerung ohne Startzeit wurde behoben. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/18.txt: -------------------------------------------------------------------------------- 1 | - Spielzeit und Verzögerung können in Sekunden, Minuten oder Stunden angegeben werden. 2 | - Die Zeitanzeige zeigt Stunden an. 3 | - Die Zeitanzeige kann optional Dezisekunden anzeigen. 4 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/19.txt: -------------------------------------------------------------------------------- 1 | - Der Info-Bildschirm kann jetzt gescrollt werden, damit er auch auf kleineren Bildschirmen lesbar ist. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/20.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Französisch. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/21.txt: -------------------------------------------------------------------------------- 1 | - Textberichtigungen. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/22.txt: -------------------------------------------------------------------------------- 1 | - Ein Fehler wurde behoben, bei dem Bronstein-Verzögerungsspiele ohne Anfangszeit in die negative Zeit liefen. 2 | - Bronstein-Verzögerungen werden wieder in der gleichen Zeile wie die Gesamtzeit angezeigt, wenn die Anzeige in Dezisekunden deaktiviert ist. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/23.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Spanisch, von Daniel Garcia Pallaviccini. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/24.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Deutsch, von Petra Mirelli. 2 | - Bugfix: Der Alarm hört jetzt auf, wenn man den Reset-Button drückt. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/25.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Türkisch, von Alparslan Şakçi. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/26.txt: -------------------------------------------------------------------------------- 1 | - Neue Verzögerungsart: Capped Fischer. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/27.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Italienisch. 2 | - Aktualisierte Übersetzungen: Französisch und norwegisches Bokmål. 3 | - Bei Bildschirmen mit einem Seitenverhältnis zwischen 1.86 und 2.1 sollten keine schwarzen Balken mehr am oberen oder unteren Rand des Bildschirms erscheinen. 4 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/28.txt: -------------------------------------------------------------------------------- 1 | - Die App benötigt nicht mehr die spezielle Berechtigung zum Sperren beim Aufwachen, um den Bildschirm eingeschaltet zu halten, sondern verwendet stattdessen eine andere Technik, die sich auch als vorteilhaft für die CPU- und Stromnutzung erweisen könnte. 2 | - Die Ziel-SDK-Version wurde von 23 (Android 6.0) auf 24 (Android 7.0) erhöht. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/29.txt: -------------------------------------------------------------------------------- 1 | - Der Text der Option "None" in der englischen Version der App wurde korrigiert. 2 | - Aktualisierte Übersetzungen: Französisch, Italienisch und Spanisch. 3 | - Die Ziel-SDK-Version wurde von 24 (Android 7.0) auf 25 (Android 7.1) erhöht. 4 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/30.txt: -------------------------------------------------------------------------------- 1 | - Aktualisierte Übersetzung: Türkisch. 2 | - Die Ziel-SDK-Version wurde von 25 (Android 7.1) auf 26 (Android 8.0) erhöht. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/31.txt: -------------------------------------------------------------------------------- 1 | - Neue Übersetzung: Isländisch, von Sveinn í Felli. 2 | - Die Ziel-SDK-Version wurde von 26 (Android 8.0) auf 27 (Android 8.1) erhöht. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/changelogs/9.txt: -------------------------------------------------------------------------------- 1 | - Grundlegende Überarbeitung der Benutzeroberfläche. 2 | - Sollte jetzt auf modernen Android-Versionen funktionieren. 3 | -------------------------------------------------------------------------------- /metadata/de-DE/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock ist das, was der englische Name aussagt: eine einfache Schachuhr. Sie soll leicht zu benutzen und zu lesen sein, bietet aber auch einige fortgeschrittene Funktionen. 2 | -------------------------------------------------------------------------------- /metadata/de-DE/short_description.txt: -------------------------------------------------------------------------------- 1 | Zwei berührbare Schachuhren 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/10.txt: -------------------------------------------------------------------------------- 1 | - Fixed an issue with clocks disappearing on Android 7.0 and above. 2 | - The minimum Android version was corrected to Android 5.0 and above, since SCC is using scalable vector graphics. 3 | - Material theme is now applied in menus and dialogs. 4 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/11.txt: -------------------------------------------------------------------------------- 1 | - New translation: Norwegian Bokmål. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/12.txt: -------------------------------------------------------------------------------- 1 | - Fixed a bug causing player 1 to sometimes not receive the initial delay. 2 | - Fixed a bug causing some delays to be skipped after resuming a paused game. 3 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/13.txt: -------------------------------------------------------------------------------- 1 | - Added an option to use a black background on the main game screen for potential power savings with OLED screens. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/14.txt: -------------------------------------------------------------------------------- 1 | - With Fischer delay, the extra time is now added at the end of player turns, instead of at the beginning. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/15.txt: -------------------------------------------------------------------------------- 1 | - Bronstein delay games with no initial time is now supported. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/16.txt: -------------------------------------------------------------------------------- 1 | - Players can now have different initial game time. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/17.txt: -------------------------------------------------------------------------------- 1 | - Fixed the pause button for Bronstein delay games with no initial time. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/18.txt: -------------------------------------------------------------------------------- 1 | - Game time and delay can be specified in seconds, minutes or hours. 2 | - Time display shows hours. 3 | - Time display can optionally show deciseconds. 4 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/19.txt: -------------------------------------------------------------------------------- 1 | - The about screen is now scrollable to be readable when there is less screen space. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/20.txt: -------------------------------------------------------------------------------- 1 | - New translation: French. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/21.txt: -------------------------------------------------------------------------------- 1 | - Text fixes. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/22.txt: -------------------------------------------------------------------------------- 1 | - Fixed a bug where Bronstein delay games with no initial time would run into negative time. 2 | - Bronstein delays are displayed on the same line as the total time again when decisecond display is disabled. 3 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/23.txt: -------------------------------------------------------------------------------- 1 | - New translation: Spanish, by Daniel Garcia Pallaviccini. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/24.txt: -------------------------------------------------------------------------------- 1 | - New translation: German, by Petra Mirelli. 2 | - Bugfix: The alarm now stops playing when hitting the reset button. 3 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/25.txt: -------------------------------------------------------------------------------- 1 | - New translation: Turkish, by Alparslan Şakçi. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/26.txt: -------------------------------------------------------------------------------- 1 | - New delay type: Capped Fischer. 2 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/27.txt: -------------------------------------------------------------------------------- 1 | - New translation: Italian. 2 | - Updated translations: French and Norwegian Bokmål. 3 | - Screens with aspect ratios between 1.86 and 2.1 should no longer have black bars appear at the top or bottom of the screen. 4 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/28.txt: -------------------------------------------------------------------------------- 1 | - The app no longer requires a special wake lock permission for keeping the screen turned on, but uses another technique instead which might also turn out beneficial to CPU and power usage. 2 | - Target SDK version has been increased from 23 (Android 6.0) to 24 (Android 7.0). 3 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/29.txt: -------------------------------------------------------------------------------- 1 | - Fixed "None" option text in the English version of the app. 2 | - Updated translations: French, Italian, and Spanish. 3 | - Target SDK version has been increased from 24 (Android 7.0) to 25 (Android 7.1). 4 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/30.txt: -------------------------------------------------------------------------------- 1 | - Updated translation: Turkish. 2 | - Target SDK version has been increased from 25 (Android 7.1) to 26 (Android 8.0). 3 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/31.txt: -------------------------------------------------------------------------------- 1 | - New translation: Icelandic, by Sveinn í Felli. 2 | - Target SDK version has been increased from 26 (Android 8.0) to 27 (Android 8.1). 3 | -------------------------------------------------------------------------------- /metadata/en-US/changelogs/9.txt: -------------------------------------------------------------------------------- 1 | - Major overhaul of the user interface. 2 | - Should now work on modern Android versions. 3 | -------------------------------------------------------------------------------- /metadata/en-US/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock is what its name implies: a chess clock (that’s simple!). It aims to be easy to use and easy to read, while also providing some reasonably expected features. 2 | -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simenheg/simple-chess-clock/c027be8c84b2d0dd7e81cddf625fbd86bf7de3ad/metadata/en-US/images/phoneScreenshots/1.jpg -------------------------------------------------------------------------------- /metadata/en-US/short_description.txt: -------------------------------------------------------------------------------- 1 | Two touchable chess timers 2 | -------------------------------------------------------------------------------- /metadata/es-ES/changelogs/10.txt: -------------------------------------------------------------------------------- 1 | - Se solucionó un problema con los relojes que desaparecían en Android 7.0 y superior. 2 | - La versión mínima de Android se corrigió a Android 5.0 y superior, ya que SCC esta usando gráficos vectoriales escalables. 3 | - El tema Material ahora se aplica en menús y cuadros de diálogo. 4 | -------------------------------------------------------------------------------- /metadata/es-ES/changelogs/11.txt: -------------------------------------------------------------------------------- 1 | - Nueva traducción: Noruego Bokmål. 2 | -------------------------------------------------------------------------------- /metadata/es-ES/changelogs/12.txt: -------------------------------------------------------------------------------- 1 | - Se corrigió un error que causaba que el jugador 1 a veces no recibiera el retraso inicial. 2 | - Se corrigió un error que causaba que se omitieran algunos retrasos después de reanudar un juego en pausa. 3 | -------------------------------------------------------------------------------- /metadata/es-ES/changelogs/13.txt: -------------------------------------------------------------------------------- 1 | - Se agregó una opción para usar un fondo negro en la pantalla principal del juego para ahorrar energía con las pantallas OLED. 2 | -------------------------------------------------------------------------------- /metadata/es-ES/changelogs/25.txt: -------------------------------------------------------------------------------- 1 | - Nueva traducción: Turco, por Alparslan Şakçi. 2 | -------------------------------------------------------------------------------- /metadata/es-ES/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock es, como lo dice su nombre, un reloj de ajedrez (que es sencillo de usar). Está hecho para ser fácil de usar y de leer, y a la vez contar con algunas funciones que un reloj de ajedrez razonablemente debe tener. 2 | -------------------------------------------------------------------------------- /metadata/es-ES/short_description.txt: -------------------------------------------------------------------------------- 1 | Dos relojes táctiles de ajedrez 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/10.txt: -------------------------------------------------------------------------------- 1 | - Correction d'un problème de disparition des horloges sur Android 7.0 et supérieur. 2 | - La version minimale d'Android a été corrigée à Android 5.0 et plus, puisque SCC utilise des graphiques vectoriels évolutifs. 3 | - Le thème Material est désormais appliqué dans les menus et les boîtes de dialogue. 4 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/11.txt: -------------------------------------------------------------------------------- 1 | - Nouvelle traduction : Bokmål norvégien. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/12.txt: -------------------------------------------------------------------------------- 1 | - Correction d'un bug à cause duquel le joueur 1 ne recevait parfois pas le délai initial. 2 | - Correction d'un problème à cause duquel certains délais étaient ignorés après la reprise d'une partie en pause. 3 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/13.txt: -------------------------------------------------------------------------------- 1 | - Ajout d'une option permettant d'utiliser un fond noir sur l'écran principal du jeu afin de réaliser des économies d'énergie avec les écrans OLED. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/14.txt: -------------------------------------------------------------------------------- 1 | - Avec le retard de Fischer, le temps supplémentaire est maintenant ajouté à la fin des tours des joueurs, au lieu du début. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/15.txt: -------------------------------------------------------------------------------- 1 | - Les jeux de retard Bronstein sans temps initial sont maintenant supportés. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/16.txt: -------------------------------------------------------------------------------- 1 | - Les joueurs peuvent désormais avoir un temps de jeu initial différent. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/17.txt: -------------------------------------------------------------------------------- 1 | - Correction du bouton de pause pour les jeux à retardement Bronstein sans temps initial. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/18.txt: -------------------------------------------------------------------------------- 1 | - Le temps de jeu et le retard peuvent être spécifiés en secondes, minutes ou heures. 2 | - L'affichage du temps indique les heures. 3 | - L'affichage de l'heure peut, en option, indiquer les décisecondes. 4 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/19.txt: -------------------------------------------------------------------------------- 1 | - L'écran "À propos" peut désormais défiler pour être lisible lorsque l'espace disponible à l'écran est réduit. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/20.txt: -------------------------------------------------------------------------------- 1 | - Nouvelle traduction : français. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/21.txt: -------------------------------------------------------------------------------- 1 | - Correction de texte. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/22.txt: -------------------------------------------------------------------------------- 1 | - Correction d'un bogue pour lequel les jeux à retard Bronstein sans temps initial pouvaient atteindre un temps négatif. 2 | - Les délais Bronstein sont à nouveau affichés sur la même ligne que le temps total lorsque l'affichage en décimales est désactivé. 3 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/23.txt: -------------------------------------------------------------------------------- 1 | - Nouvelle traduction : Espagnol, par Daniel Garcia Pallaviccini. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/24.txt: -------------------------------------------------------------------------------- 1 | - Nouvelle traduction : Allemand, par Petra Mirelli. 2 | - Correction : L'alarme s'arrête maintenant de jouer lorsque vous appuyez sur le bouton de réinitialisation. 3 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/25.txt: -------------------------------------------------------------------------------- 1 | - Nouvelle traduction : Turc, par Alparslan Şakçi. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/26.txt: -------------------------------------------------------------------------------- 1 | - Nouveau type de retard : Capped Fischer. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/27.txt: -------------------------------------------------------------------------------- 1 | - Nouvelle traduction : Italien. 2 | - Traductions mises à jour : Français et norvégien Bokmål. 3 | - Les écrans dont le rapport hauteur/largeur est compris entre 1,86 et 2,1 ne devraient plus voir apparaître de barres noires en haut ou en bas de l'écran. 4 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/28.txt: -------------------------------------------------------------------------------- 1 | - L'application n'a plus besoin d'une autorisation spéciale de verrouillage du réveil pour garder l'écran allumé, mais utilise une autre technique à la place qui pourrait également s'avérer bénéfique pour l'utilisation du CPU et de l'énergie. 2 | - La version du SDK cible a été augmentée de 23 (Android 6.0) à 24 (Android 7.0). 3 | -------------------------------------------------------------------------------- /metadata/fr-FR/changelogs/9.txt: -------------------------------------------------------------------------------- 1 | - Révision majeure de l'interface utilisateur. 2 | - Devrait maintenant fonctionner sur les versions modernes d'Android. 3 | -------------------------------------------------------------------------------- /metadata/fr-FR/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock est comme son nom l'indique : une pendule d'échecs (simple !). Elle vise à être facile à utiliser et à lire, tout en fournissant les fonctionnalités attendues. 2 | -------------------------------------------------------------------------------- /metadata/fr-FR/short_description.txt: -------------------------------------------------------------------------------- 1 | Deux horloges d'échecs tactiles 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/10.txt: -------------------------------------------------------------------------------- 1 | - Risolto un problema con gli orologi che scomparivano su Android 7.0 e versioni successive. 2 | - La versione minima di Android è stata corretta per Android 5.0 e versioni successive, poiché SCC utilizza la grafica vettoriale scalabile. 3 | - Il tema del materiale è ora applicato nei menu e nelle finestre di dialogo. 4 | -------------------------------------------------------------------------------- /metadata/it/changelogs/11.txt: -------------------------------------------------------------------------------- 1 | - Nuova traduzione: norvegese (Bokmål). 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/12.txt: -------------------------------------------------------------------------------- 1 | - Risolto un bug per il quale il giocatore 1 a volte non riceveva il ritardo iniziale. 2 | - Risolto un bug che impediva di saltare alcuni ritardi dopo aver ripreso un gioco in pausa. 3 | -------------------------------------------------------------------------------- /metadata/it/changelogs/13.txt: -------------------------------------------------------------------------------- 1 | - Aggiunta un'opzione per utilizzare uno sfondo nero sulla schermata di gioco principale per potenziali risparmi energetici con gli schermi OLED. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/14.txt: -------------------------------------------------------------------------------- 1 | - Con il ritardo Fischer, il tempo extra viene ora aggiunto alla fine dei turni del giocatore, invece che all'inizio. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/15.txt: -------------------------------------------------------------------------------- 1 | - I giochi con ritardo Bronstein senza tempo iniziale sono ora supportati. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/16.txt: -------------------------------------------------------------------------------- 1 | - I giocatori ora possono avere un tempo di gioco iniziale diverso. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/17.txt: -------------------------------------------------------------------------------- 1 | - I giocatori ora possono avere un tempo di gioco iniziale diverso. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/18.txt: -------------------------------------------------------------------------------- 1 | - Il tempo di gioco e il ritardo possono essere specificati in secondi, minuti o ore. 2 | - Il display dell'ora mostra le ore. 3 | - Il display dell'ora può mostrare opzionalmente i decisecondi. 4 | -------------------------------------------------------------------------------- /metadata/it/changelogs/19.txt: -------------------------------------------------------------------------------- 1 | - La schermata Informazioni ora è scorrevole per essere leggibile quando c'è meno spazio sullo schermo. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/20.txt: -------------------------------------------------------------------------------- 1 | - Nuova traduzione: francese. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/21.txt: -------------------------------------------------------------------------------- 1 | - Correzioni di testo. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/22.txt: -------------------------------------------------------------------------------- 1 | - Risolto un bug per cui i giochi con ritardo Bronstein senza tempo iniziale si verificavano in un tempo negativo. 2 | - I ritardi Bronstein vengono visualizzati di nuovo sulla stessa riga del tempo totale quando la visualizzazione dei decisecondi è disabilitata. 3 | -------------------------------------------------------------------------------- /metadata/it/changelogs/23.txt: -------------------------------------------------------------------------------- 1 | - Nuova traduzione: spagnolo, di Daniel Garcia Pallaviccini. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/24.txt: -------------------------------------------------------------------------------- 1 | - Nuova traduzione: tedesco, di Petra Mirelli. 2 | - Bugfix: l'allarme ora smette di suonare quando si preme il pulsante di ripristino. 3 | -------------------------------------------------------------------------------- /metadata/it/changelogs/25.txt: -------------------------------------------------------------------------------- 1 | - Nuova traduzione: turco, di Alparslan Şakçi. 2 | -------------------------------------------------------------------------------- /metadata/it/changelogs/9.txt: -------------------------------------------------------------------------------- 1 | - Revisione importante dell'interfaccia utente. 2 | - Ora dovrebbe funzionare sulle moderne versioni di Android. 3 | -------------------------------------------------------------------------------- /metadata/it/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock è ciò che suggerisce il nome: un orologio per gli scacchi (è semplice!). Mira ad essere facile da usare e da leggere, fornendo anche alcune funzionalità ragionevolmente previste. 2 | -------------------------------------------------------------------------------- /metadata/it/short_description.txt: -------------------------------------------------------------------------------- 1 | Due timer di scacchi tangibili 2 | -------------------------------------------------------------------------------- /metadata/nb-NO/changelogs/16.txt: -------------------------------------------------------------------------------- 1 | - Spillere kan nå ha forskjellig tid til gode ved spillets start. 2 | -------------------------------------------------------------------------------- /metadata/nb-NO/changelogs/20.txt: -------------------------------------------------------------------------------- 1 | - Ny oversettelse: Fransk. 2 | -------------------------------------------------------------------------------- /metadata/nb-NO/changelogs/21.txt: -------------------------------------------------------------------------------- 1 | - Tekstforbedringer. 2 | -------------------------------------------------------------------------------- /metadata/nb-NO/changelogs/24.txt: -------------------------------------------------------------------------------- 1 | - Ny oversettelse: Tysk, ved Petra Mirelli. 2 | - Feilfiks: Alarmen stopper når tilbakestillingsknappen trykkes. 3 | -------------------------------------------------------------------------------- /metadata/nb-NO/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock er som navnet tilsier: en enkel sjakklokke. Den har som mål å være enkel i bruk og lett og lese, men samtidig tilby funksjoner man forventer av en sjakklokke. 2 | -------------------------------------------------------------------------------- /metadata/nb-NO/short_description.txt: -------------------------------------------------------------------------------- 1 | To trykkbare sjakklokker 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/10.txt: -------------------------------------------------------------------------------- 1 | - Android 7.0 ve üzeri sürümlerde saatlerin kaybolmasına yol açan bir hata giderildi. 2 | - Uygulama, ölçeklenebilir vektör grafikleri kullandığı için minimum Android sürümü Android 5.0 ve üzeri olarak düzeltildi. 3 | - Menülerde ve iletişim kutularında da Material tema uygulanmaya başlandı. 4 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/11.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: Norveççe (Bokmål). 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/12.txt: -------------------------------------------------------------------------------- 1 | - 1. Oyuncunun bazen ilk gecikmeyi alamamasına neden olan bir hata giderildi. 2 | - Duraklatılmış bir oyunu yeniden başlattıktan sonra bazı gecikmelerin atlanmasına sebep olan bir hata giderildi. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/13.txt: -------------------------------------------------------------------------------- 1 | - OLED ekranlarda güç tasarrufu imkânı sağlamak için ana ekranda saf siyah arka plan kullanma seçeneği eklendi. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/14.txt: -------------------------------------------------------------------------------- 1 | - Fischer gecikmeli oyunlarda ekstra süre artık oyuncunun sırası bittikten sonra ekleniyor. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/15.txt: -------------------------------------------------------------------------------- 1 | - Başlangıç zamanı olmadan Bronstein gecikmeli oyun desteği getirildi. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/16.txt: -------------------------------------------------------------------------------- 1 | - Oyuncular artık farklı oyun süreleriyle başlayabilir. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/17.txt: -------------------------------------------------------------------------------- 1 | - Başlangıç zamanı olmayan Bronstein gecikmeli oyunlarda yaşanan duraklatma sorunu düzeltildi. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/18.txt: -------------------------------------------------------------------------------- 1 | - Oyun süresi ve gecikme süresi artık saniye, dakika veya saat olarak ayarlanabilir. 2 | - Oyun süresinde artık saatler de gösteriliyor. 3 | - Oyun süresi isteğe bağlı olarak küsuratlı olarak gösterilebilir. 4 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/19.txt: -------------------------------------------------------------------------------- 1 | - Hakkında sekmesi ekran alanı az olan cihazlarda da okunabilir olması için kaydırılabilir hâle getirildi. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/20.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: Fransızca. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/21.txt: -------------------------------------------------------------------------------- 1 | - Uygulama metinde düzeltmeler yapıldı. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/22.txt: -------------------------------------------------------------------------------- 1 | - Başlangıç zamanı olmayan Bronstein gecikmeli oyunlarda oyun süresinin negatif değerlere geçmesine sebep olan bir hata giderildi. 2 | - Bronstein gecikmeleri, küsüratlı saniye gösterimi devre dışı bırakıldığında toplam süre ile aynı satırda tekrar gösterilecek. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/23.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: İspanyolca (Çevirmen: Daniel Garcia Pallaviccini). 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/24.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: Almanca (Çevirmen: Petra Mirelli). 2 | - Hata düzeltmeleri: Alarm, sıfırlama seçeneğine basıldıktan sonra artık duruyor. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/25.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: Türkçe (Çevirmen: Alparslan Şakçi). 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/26.txt: -------------------------------------------------------------------------------- 1 | - Yeni gecikme türü: Fischer (Sınırlı). 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/27.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: İtalyanca. 2 | - Fransızca ve Norveççe (Bokmål) için çeviri güncellemeleri. 3 | - 1,86 ila 2,1 çerçeve oranına sahip cihazlarda artık ekranın üst veya alt kısmında siyah çubuklar görünmeyecek. 4 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/28.txt: -------------------------------------------------------------------------------- 1 | - Uygulama artık ekranı açık tutmak için özel bir uyandırma kilidi izni gerektirmiyor, bunun yerine işlemci ve güç kullanımına da faydalı olabilecek başka bir teknik kullanılmaya başladı. 2 | - Hedef SDK sürümü 23'ten (Android 6.0) 24'e (Android 7.0) yükseltildi. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/29.txt: -------------------------------------------------------------------------------- 1 | - Uygulamanın İngilizce sürümündeki "None" seçeneğindeki hata düzeltildi. 2 | - Fransızca, İtalyanca ve İspanyolca çevirilerde güncellemeler yapıldı. 3 | - Hedef SDK sürümü 24'ten (Android 7.0) 25'e (Android 7.1) yükseltildi. 4 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/30.txt: -------------------------------------------------------------------------------- 1 | - Türkçe çeviride güncellemeler yapıldı. 2 | - Hedef SDK sürümü 25'ten (Android 7.1) 26'ya (Android 8.0) yükseltildi. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/31.txt: -------------------------------------------------------------------------------- 1 | - Yeni çeviri: İzlandaca (Çevirmen: Sveinn í Felli). 2 | - Hedef SDK sürümü 26'dan (Android 8.0) 27'ye (Android 8.1) yükseltildi. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/changelogs/9.txt: -------------------------------------------------------------------------------- 1 | - Kullanıcı arayüzünde büyük değişiklikler yapıldı. 2 | - Uygulama artık modern Android sürümlerinde de sorunsuz olarak çalışıyor. 3 | -------------------------------------------------------------------------------- /metadata/tr-TR/full_description.txt: -------------------------------------------------------------------------------- 1 | Simple Chess Clock, basit bir satranç saatidir. Uygulama, sade tasarımıyla rahat bir kullanıcı deneyimi sağlamanın yanı sıra gerekli birçok özelliği de kullanıcılara sunmaktadır. 2 | -------------------------------------------------------------------------------- /metadata/tr-TR/short_description.txt: -------------------------------------------------------------------------------- 1 | Satranç için dokunmatik oyun saati 2 | -------------------------------------------------------------------------------- /res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simenheg/simple-chess-clock/c027be8c84b2d0dd7e81cddf625fbd86bf7de3ad/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simenheg/simple-chess-clock/c027be8c84b2d0dd7e81cddf625fbd86bf7de3ad/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simenheg/simple-chess-clock/c027be8c84b2d0dd7e81cddf625fbd86bf7de3ad/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simenheg/simple-chess-clock/c027be8c84b2d0dd7e81cddf625fbd86bf7de3ad/res/drawable/icon.png -------------------------------------------------------------------------------- /res/drawable/menu_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 12 | 14 | 17 | 18 | 19 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/pause.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 11 | 13 | 14 | -------------------------------------------------------------------------------- /res/drawable/pause_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 12 | 14 | 17 | 18 | 19 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/reset.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /res/drawable/reset_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 12 | 14 | 17 | 18 | 19 | 24 | 25 | -------------------------------------------------------------------------------- /res/drawable/settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /res/layout/about_dialog.xml: -------------------------------------------------------------------------------- 1 | 5 | 12 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | 16 | 17 | 18 | 21 | 31 | 32 | 33 | 44 | 45 | 46 | 55 | 56 | 57 | 58 | 62 | 63 | 64 | 65 | 69 | 70 | 73 | 83 | 84 | 85 | 95 | 96 | 97 | 106 | 107 | 108 | 109 | 110 | 111 | 123 | 124 | 125 | 137 | 138 | -------------------------------------------------------------------------------- /res/values-de/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Nein 4 | Ja 5 | Design/Programmierung: Carter Dewey & Simen Heggestøyl\n\nSCC ist freie Software, die unter GNU GPLv3 lizenziert ist. Sie können die GPLv3-Lizenz einsehen unter:\nhttps://www.gnu.org/licenses/gpl-3.0.html\n\nTeile des App-Symbols sind unter der GFDL lizenziert. Sie können die GFDL-Lizenz einsehen unter:\nhttps://www.gnu.org/copyleft/fdl.html\n\nDie In-App-Symbole sind unter der Apache License 2.0 lizenziert. Sie können die Apache-Lizenz einsehen unter:\nhttps://www.apache.org/licenses/LICENSE-2.0.html\n\nUm Fehler zu melden oder den Quellcode einzusehen, rufen Sie bitte das GitHub-Repository des Projekts auf:\nhttps://github.com/simenheg/simple-chess-clock 6 | Beide Uhren zurücksetzen? 7 | Über 8 | Andere Optionen 9 | Spielzeit 10 | Zeit eingeben 11 | Zeitverzögerung auswählen 12 | Zeiteinheiten auswählen 13 | Einstellen des Klingeltons, der bei Ablauf der Zeit abgespielt werden soll. 14 | Stellen Sie die Zeitspanne ein, die für die Zeitverzögerung verwendet wird. 15 | Das Zeitverzögerungsschema einstellen, das während der Wiedergabe verwendet werden soll. 16 | Die Einheiten festlegen, in denen die Verzögerungslänge angegeben werden soll. 17 | Leichtes Vibrieren bei Tastendruck. 18 | Spart Strom bei Geräten mit OLED-Bildschirmen. 19 | Zehntelsekunden anzeigen, wenn Uhr oder Verzögerung unter 10 Sekunden liegen. 20 | Einstellen, mit wie viel Zeit jeder Spieler beginnt. 21 | Auswählen mit wie viel Zeit Spieler 2 beginnt. 22 | Die Einheit festlegen, in denen die Spielzeit angegeben werden soll. 23 | Eine andere Spielzeit für jeden Spieler verwenden. 24 | Über Simple Chess Clock 25 | Alarm-Klingelton 26 | Verzögerungslänge 27 | Verzögerungstyp 28 | Verzögerungslänge Einheiten 29 | Haptisches Feedback 30 | Schwarzer Hintergrund 31 | Decisekunden anzeigen 32 | Spielzeit 33 | Spielzeit (Spieler 2) 34 | Spielzeiteinheiten 35 | Abweichende Spielzeit 36 | Keine 37 | Fischer 38 | Gekappter Fischer 39 | Bronstein 40 | 41 | Sekunden 42 | Minuten 43 | Stunden 44 | 45 | 46 | -------------------------------------------------------------------------------- /res/values-es/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | No 4 | 5 | Diseño/codificación: Carter Dewey & Simen Heggestøyl\n\nSCC es software gratuito cuyo uso se ampara en la licencia GNU GPLv3. Puedes ver esa licencia en \nhttps://www.gnu.org/licenses/gpl-3.0.html\n\nPartes del icono de esta aplicación se usan bajo licencia GFDL. Puedes ver esa segunda licencia en \nhttps://www.gnu.org/copyleft/fdl.html\n\nLos iconos de la aplicación se usan bajo la licencia Apache 2.0, que puedes ver en \nhttps://www.apache.org/licenses/LICENSE-2.0.html\n\nSi quieres notificar de fallos o ver el código fuente, visita\nhttps://github.com/simenheg/simple-chess-clock 6 | ¿Reiniciar los dos relojes? 7 | Información 8 | Otras opciones 9 | Tiempo de juego 10 | Escribe el tiempo 11 | Elige el tiempo añadido 12 | Elige las unidades de tiempo 13 | Escoger el tono de alarma que ha de sonar cuando el tiempo transcurra. 14 | Fijar el período de tiempo añadido que vas a usar. 15 | Fijar el esquema de tiempo añadido que vas a usar mientras juegues. 16 | Fijar en qué unidades se va a indicar la duración del tiempo añadido. 17 | Vibrar ligeramente cuando se pulsen botones. 18 | Ahorrar batería en pantallas OLED. 19 | Mostrar décimas de segundo cuando el reloj o el tiempo añadido sean menores de 10 segundos. 20 | Fijar con cuánto tiempo inicia cada jugador. 21 | Fijar con cuánto tiempo inicia el Jugador 2. 22 | Fijar en qué unidades se va a indicar el tiempo de juego. 23 | Fijar un tiempo de juego diferente para cada jugador. 24 | Información al respecto de Simple Chess Clock 25 | Tono de alarma 26 | Duración de tiempo añadido 27 | Tipo de tiempo añadido 28 | Unidades de duración de tiempo añadido 29 | Retroalimentación táctil 30 | Fondo oscuro 31 | Mostrar décimas de segundo 32 | Tiempo de juego 33 | Tiempo de juego (Jugador 2) 34 | Unidades del tiempo de juego 35 | Diferentes tiempos de juego 36 | Ninguno 37 | Fischer 38 | Bronstein 39 | 40 | Segundos 41 | Minutos 42 | Horas 43 | 44 | Capped Fischer 45 | 46 | -------------------------------------------------------------------------------- /res/values-fr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Non 4 | Oui 5 | Design/Code : Carter Dewey et Simen Heggestøyl 6 | \n 7 | \nSCC est un logiciel libre sous licence GNU GPLv3. Vous pouvez consulter la GPLv3 sur : 8 | \nhttps ://www.gnu.org/licenses/gpl-3.0.html 9 | \n 10 | \nDes parties de l\'icône de l\'application sont sous licence GFDL. Vous pouvez consulter la GFDL sur : 11 | \nhttps ://www.gnu.org/copyleft/fdl.html 12 | \n 13 | \nLes icônes dans l\'app sont sous licence Apache License 2.0. Vous pouvez consulter la licence sur : 14 | \nhttps ://www.apache.org/licenses/LICENSE-2.0.html 15 | \n 16 | \nPour signaler des bugs ou afficher le code source, visitez : 17 | \nhttps ://github.com/simenheg/simple-chess-clock 18 | Réinitialiser les deux horloges ? 19 | À propos 20 | Autres options 21 | Temps de jeu 22 | Entrer le temps 23 | Sélectionner le type d\'incrément 24 | Sélectionner les unités de temps 25 | Régle la sonnerie à jouer lorsque le temps expire. 26 | Définit la durée utilisée pour les incréments. 27 | Définit le type de cadence à utiliser pendant le jeu. 28 | Définit les unités dans lesquelles spécifier l\'incrément. 29 | Vibre légèrement lors des pressions sur les boutons. 30 | Économise de l\'énergie sur les écrans OLED. 31 | Affiche les dixièmes de secondes lorsque le temps restant sur l\'horloge ou l\'incrément est inférieur à 10 secondes. 32 | Définit avec combien de temps chaque joueur commence. 33 | Définit avec combien de temps le deuxième joueur commence. 34 | Définit les unités dans lesquelles spécifier le temps de jeu. 35 | Utilise un temps de jeu différent pour chaque joueur. 36 | À propos de Simple Chess Clock 37 | Sonnerie d\'alerte 38 | Durée de l\'incrément 39 | Type d\'incrément 40 | Unités du temps d\'incrément 41 | Retour haptique 42 | Fond noir 43 | Afficher les dixièmes de secondes 44 | Temps de jeu 45 | Temps de jeu (Deuxième joueur) 46 | Unités du temps de jeu 47 | Temps de jeu différent 48 | Aucun 49 | Fischer 50 | Bronstein 51 | 52 | Secondes 53 | Minutes 54 | Heures 55 | 56 | Capped Fischer 57 | 58 | -------------------------------------------------------------------------------- /res/values-is/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Nei 4 | 5 | Hönnun/Forritun: Carter Dewey & Simen Heggestøyl\n\nSCC er frjáls hugbúnaður gefinn út með GNU GPLv3 notkunarleyfi. Þú getur skoðað GPLv3 á:\nhttps://www.gnu.org/licenses/gpl-3.0.html\n\nHlutar forritstáknmyndarinnar eru gefnir út undir GFDL-leyfi. Þú getur skoðað GFDL-notkunarleyfið á:\nhttps://www.gnu.org/copyleft/fdl.html\n\nTáknmyndirnar í forritinu eru gefnir út undir Apache notkunarleyfi 2.0. Þú getur skoðað Apache-notkunarleyfið á:\nhttps://www.apache.org/licenses/LICENSE-2.0.html\n\nTil að tilkynna villur eða skoða grunnkóðann geturðu farið á:\nhttps://github.com/simenheg/simple-chess-clock 6 | Endurstilla báðar klukkur? 7 | Um hugbúnaðinn 8 | Aðrir valkostir 9 | Leiktími 10 | Settu inn tíma 11 | Veldu tímatöf 12 | Veldu tímaeiningar 13 | Stilltu hringitón þegar tíminn rennur út. 14 | tilltu hve mikinn tíma á að nota fyrir tafir. 15 | Stilltu tímatafarskemað sem á að nota við leikinn. 16 | Stilltu hvaða einingar á að nota fyrir lengd tafar. 17 | Titra lítillega þegar ýtt er á hnappa. 18 | Sparar orku á OLED-skjám. 19 | Birta tíundu hluta úr sekúndu þegar klukkan eða töf á eftir innan við 10 sekúndur. 20 | Stilltu hve mikinn tíma hvor leikmaður byrjar með. 21 | Stilltu hve mikinn tíma leikmaður 2 byrjar með. 22 | Stilltu hvaða einingar á að nota fyrir leiktíma. 23 | Nota mismunandi leiktíma fyrir leikmenn. 24 | Um Simple Chess Clock 25 | Hringitónn aðvörunar 26 | Lengd tafar 27 | Tegund tafar 28 | Einingar fyrir lengd tafar 29 | Svörun með hreyfingum 30 | Svartur bakgrunnur 31 | Birta tíundu hluta úr sekúndu 32 | Leiktími 33 | Leiktími (leikmaður 2) 34 | Tímaeiningar leiks 35 | Annar leiktími 36 | 37 | @string/delay_none 38 | @string/delay_fischer 39 | @string/delay_capped_fischer 40 | @string/delay_bronstein 41 | 42 | Ekkert 43 | Fischer 44 | Takmarkað Fischer 45 | Bronstein 46 | 47 | Sekúndur 48 | Mínútur 49 | Klukkustundir 50 | 51 | 52 | -------------------------------------------------------------------------------- /res/values-it/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Resettare entrambi gli orologi\? 5 | Tempo di gioco 6 | Seleziona Ritardo 7 | Impostare la quantità di tempo utilizzata per i ritardi. 8 | Imposta lo schema di ritardo da utilizzare durante il gioco. 9 | Visualizza i decimi di secondo quando l\'orologio o il ritardo sono inferiori a 10 secondi. 10 | Imposta le unità in cui specificare il tempo di gioco. 11 | Usa un tempo di gioco diverso per ogni giocatore. 12 | Suoneria di avviso 13 | Durata del ritardo 14 | Tipo di ritardo 15 | Unità di lunghezza del ritardo 16 | Feedback tattile 17 | Visualizza i decisecondi 18 | Tempo di gioco 19 | Tempo di gioco (giocatore 2) 20 | Unità di tempo di gioco 21 | Tempo di gioco diverso 22 | No 23 | Design/codifica: Carter Dewey & Simen Heggestøyl 24 | \n 25 | \nSCC è un software libero con licenza GNU GPLv3. È possibile visualizzare la GPLv3 su: 26 | \nhttps://www.gnu.org/licenses/gpl-3.0.html 27 | \n 28 | \nPorzioni dell\'icona dell\'app sono concesse in licenza ai sensi della GFDL. È possibile visualizzare il GFDL su: 29 | \nhttps://www.gnu.org/copyleft/fdl.html 30 | \n 31 | \nLe icone in-app concesse in licenza con la licenza Apache 2.0. È possibile visualizzare la licenza su: 32 | \nhttps://www.apache.org/licenses/LICENSE-2.0.html 33 | \n 34 | \nPer segnalare bug o visualizzare il codice sorgente, visita: 35 | \nhttps://github.com/simenheg/simple-chess-clock 36 | Altre opzioni 37 | Inserisci l\'ora 38 | Seleziona Unità di tempo 39 | Imposta la suoneria da riprodurre allo scadere del tempo. 40 | Impostare le unità in cui specificare la lunghezza del ritardo. 41 | Vibra leggermente alla pressione dei pulsanti. 42 | Risparmia energia sugli schermi OLED. 43 | Imposta quanto tempo inizia ogni giocatore. 44 | Imposta quanto tempo inizia il giocatore 2. 45 | Sfondo nero 46 | Informazioni su questa app 47 | Informazioni su Simple Chess Clock (orologio per scacchi semplice) 48 | Nessuno 49 | Fischer 50 | Capped Fischer 51 | Bronstein 52 | 53 | -------------------------------------------------------------------------------- /res/values-nb/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Nei 4 | Ja 5 | Design/koding: Carter Dewey & Simen Heggestøyl 6 | \n 7 | \nSCC er fri programvare lisensiert under GNU GPLv3. Du kan se GPLv3 på: 8 | \nhttps://www.gnu.org/licenses/gpl-3.0.html 9 | \n 10 | \nDeler av appens ikon er lisensiert under GFDL. Du kan se GFDL på: 11 | \nhttps://www.gnu.org/copyleft/fdl.html 12 | \n 13 | \nIkonene som brukes i appen er lisensiert under Apache License 2.0. Du kan se lisensen på: 14 | \nhttps://www.apache.org/licenses/LICENSE-2.0.html 15 | \n 16 | \nFor å rapportere feil eller lese kildekoden, besøk: 17 | \nhttps://github.com/simenheg/simple-chess-clock 18 | Tilbakestill begge klokkene? 19 | Om 20 | Andre innstillinger 21 | Spilletid 22 | Angi tid 23 | Velg tilleggstid 24 | Velg tidsenhet 25 | Velg en ringetone som spilles av når tiden er ute. 26 | Velg hvor lange tilleggene skal være. 27 | Velg typen tilleggstid å bruke. 28 | Velg tidsenheten tilleggstiden angis i. 29 | Vibrer ved knappetrykk. 30 | Sparer strøm på OLED-skjermer. 31 | Vis tidels sekunder når spilletid eller tilleggstid går under ti sekunder. 32 | Velg hvor mye tid hver spiller starter med. 33 | Velg hvor mye tid spiller 2 starter med. 34 | Velg tidsenheten spilletiden angis i. 35 | Bruk ulik spilltid per spiller. 36 | Om Simple Chess Clock 37 | Varseltone 38 | Mengde tilleggstid 39 | Type tilleggstid 40 | Tidsenhet for tilleggstid 41 | Vibrasjon 42 | Sort bakgrunn 43 | Vis tidels sekunder 44 | Spilletid 45 | Spilletid (spiller 2) 46 | Tidsenhet for spilletid 47 | Ulik spilletid 48 | Ingen 49 | Fischer 50 | Begrenset Fischer 51 | Bronstein 52 | 53 | Sekunder 54 | Minutter 55 | Timer 56 | 57 | 58 | -------------------------------------------------------------------------------- /res/values-tr/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hayır 4 | Evet 5 | Tasarım/Kod: Carter Dewey & Simen Heggestøyl\n\nSCC, GNU GPLv3 lisansı kapsamında dağıtılan ücretsiz bir yazılımdır. GPLv3 hakkında detaylı bilgi:\nhttps://www.gnu.org/licenses/gpl-3.0.html\n\nUygulama simgesinin bazı kısımları GFDL kapsamında lisanslanmıştır. GFDL hakkında detaylı bilgi:\nhttps://www.gnu.org/copyleft/fdl.html\n\nUygulama içi simgeler Apache Lisansı 2.0 kapsamında lisanslanmıştır. Apache Lisansı 2.0 hakkında detaylı bilgi:\nhttps://www.apache.org/licenses/LICENSE-2.0.html\n\nSorun bildirmek veya kaynak kodunu görüntülemek için lütfen Github sayfamızı ziyaret edin:\nhttps://github.com/simenheg/simple-chess-clock 6 | İki saat de sıfırlansın mı? 7 | Hakkında 8 | Diğer Ayarlar 9 | Oyun Süresi Ayarları 10 | Süre Girin 11 | Gecikme Türü Seçin 12 | Zaman Birimi Seçin 13 | Süre dolduğunda çalacak zil sesini seçin. 14 | Gecikme süresi miktarını ayarlayın. 15 | Oyun sırasında kullanılacak gecikme türünü seçin. 16 | Gecikme süresi için kullanılacak zaman birimini seçin. 17 | Ekrana dokunduğunuzda hafif titreşimli bir geri bildirim alın. 18 | OLED ekranlarda enerji tasarrufu sağlar. 19 | Kalan süre 10 saniyeden az olunca küsuratlı gösterilir. 20 | Oyuncuların sahip olduğu oyun süresini ayarlayın. 21 | 2. oyuncunun sahip olduğu oyun süresini ayarlayın. 22 | Oyun süresi için kullanılacak zaman birimini seçin. 23 | İki oyuncu için farklı oyun süreleri kullanın. 24 | Simple Chess Clock Hakkında 25 | Alarm Sesi 26 | Gecikme Miktarı 27 | Gecikme Türü 28 | Gecikme Süresi Zaman Birimi 29 | Titreşimli Geri Bildirim 30 | Siyah Arka Plan 31 | Küsuratı Göster 32 | Oyun Süresi 33 | Oyun Süresi (2. Oyuncu) 34 | Oyun Süresi Zaman Birimi 35 | Farklı Oyun Süreleri 36 | Yok 37 | Fischer 38 | Bronstein 39 | 40 | Saniye 41 | Dakika 42 | Saat 43 | 44 | Fischer (Sınırlı) 45 | 46 | -------------------------------------------------------------------------------- /res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #fff 4 | #bbb 5 | #4f4f4f 6 | #444 7 | #000 8 | #499ebd 9 | #ff785c 10 | #000 11 | 12 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Simple Chess Clock 4 | No 5 | Yes 6 | Design/Coding: Carter Dewey & Simen Heggestøyl\n\nSCC is free software licensed under the GNU GPLv3. You can view the GPLv3 at:\nhttps://www.gnu.org/licenses/gpl-3.0.html\n\nPortions of the app icon are licensed under the GFDL. You can view the GFDL at:\nhttps://www.gnu.org/copyleft/fdl.html\n\nThe in-app icons licensed under the Apache License 2.0. You can view the license at:\nhttps://www.apache.org/licenses/LICENSE-2.0.html\n\nTo report bugs or view source code, visit:\nhttps://github.com/simenheg/simple-chess-clock 7 | Reset both clocks? 8 | About 9 | Other Options 10 | Game Time 11 | Enter Time 12 | Select Time Delay 13 | Select Time Units 14 | Set the ringtone to be played when time expires. 15 | Set the amount of time used for time delays. 16 | Set the time delay scheme to use during play. 17 | Set units in which to specify delay length. 18 | Vibrate slightly on button presses. 19 | Saves power on OLED screens. 20 | Display tenths of seconds when clock or delay is below 10 seconds. 21 | Set how much time each player starts with. 22 | Set how much time Player 2 starts with. 23 | Set units in which to specify game time. 24 | Use a different game time for each player. 25 | About Simple Chess Clock 26 | Alert Ringtone 27 | Delay Length 28 | Delay Type 29 | Delay Length Units 30 | Haptic Feedback 31 | Black Background 32 | Display Deciseconds 33 | Game Time 34 | Game Time (Player 2) 35 | Game Time Units 36 | Different Game Time 37 | 38 | @string/delay_none 39 | @string/delay_fischer 40 | @string/delay_capped_fischer 41 | @string/delay_bronstein 42 | 43 | None 44 | Fischer 45 | Capped Fischer 46 | Bronstein 47 | 48 | None 49 | Fischer 50 | Capped Fischer 51 | Bronstein 52 | 53 | 54 | Seconds 55 | Minutes 56 | Hours 57 | 58 | 59 | Seconds 60 | Minutes 61 | Hours 62 | 63 | 64 | -------------------------------------------------------------------------------- /res/xml-port/preferences.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 16 | 17 | 26 | 27 | 34 | 35 | 45 | 46 | 56 | 57 | 67 | 68 | 77 | 78 | 85 | 86 | 87 | 89 | 97 | 98 | 105 | 106 | 113 | 114 | 115 | 117 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /src/com/chessclock/android/ChessClock.java: -------------------------------------------------------------------------------- 1 | /************************************************************************* 2 | * File: ChessClock.java 3 | * 4 | * Implements the main form/class for Chess Clock. 5 | * 6 | * Created: 2010-06-22 7 | * 8 | * Author: Carter Dewey 9 | * 10 | ************************************************************************* 11 | * 12 | * This file is part of Simple Chess Clock (SCC). 13 | * 14 | * SCC is free software: you can redistribute it and/or modify 15 | * it under the terms of the GNU General Public License as published by 16 | * the Free Software Foundation, either version 3 of the License, or 17 | * (at your option) any later version. 18 | * 19 | * SCC is distributed in the hope that it will be useful, 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | * GNU General Public License for more details. 23 | * 24 | * You should have received a copy of the GNU General Public License 25 | * along with SCC. If not, see . 26 | * 27 | *************************************************************************/ 28 | 29 | package com.chessclock.android; 30 | 31 | import android.app.Activity; 32 | import android.app.AlertDialog; 33 | import android.app.Dialog; 34 | import android.content.Context; 35 | import android.content.DialogInterface; 36 | import android.content.Intent; 37 | import android.content.SharedPreferences; 38 | import android.content.SharedPreferences.Editor; 39 | import android.graphics.Color; 40 | import android.media.Ringtone; 41 | import android.media.RingtoneManager; 42 | import android.net.Uri; 43 | import android.os.Bundle; 44 | import android.os.Handler; 45 | import android.preference.PreferenceManager; 46 | import android.provider.*; 47 | import android.util.Log; 48 | import android.view.HapticFeedbackConstants; 49 | import android.view.Menu; 50 | import android.view.MenuItem; 51 | import android.view.View; 52 | import android.view.Window; 53 | import android.view.WindowManager; 54 | import android.view.View.OnClickListener; 55 | import android.widget.Button; 56 | import android.widget.TextView; 57 | 58 | import java.lang.Math; 59 | 60 | public class ChessClock extends Activity { 61 | 62 | /**----------------------------------- 63 | * CONSTANTS 64 | *-----------------------------------*/ 65 | /** Version info and debug tag constants */ 66 | public static final String TAG = "INFO"; 67 | public static final String V_MAJOR = "2"; 68 | public static final String V_MINOR = "12"; 69 | public static final String V_MINI = "0"; 70 | 71 | /** Constants for the dialog windows */ 72 | private static final int RESET = 1; 73 | 74 | /** Clock tick length, in milliseconds */ 75 | private static int TICK_LENGTH = 100; 76 | 77 | /** If showDeciseconds is enabled, 78 | * display deciseconds for times shorter than this 79 | * threshold, in seconds. 80 | */ 81 | private static int SHOW_DECISECONDS_THRESHOLD = 10; 82 | 83 | /** Time control values */ 84 | private static String NO_DELAY = "None"; 85 | private static String FISCHER = "Fischer"; 86 | private static String CAPPED_FISCHER = "Capped Fischer"; 87 | private static String BRONSTEIN = "Bronstein"; 88 | 89 | /** Time unit values */ 90 | private static String HOURS = "Hours"; 91 | private static String MINUTES = "Minutes"; 92 | private static String SECONDS = "Seconds"; 93 | 94 | /**----------------------------------- 95 | * CHESSCLOCK CLASS MEMBERS 96 | *-----------------------------------*/ 97 | /** Objects/Classes */ 98 | private Handler myHandler = new Handler(); 99 | private DialogFactory DF = new DialogFactory(); 100 | private String delay = NO_DELAY; 101 | private String alertTone; 102 | private Ringtone ringtone = null; 103 | private String initTimeUnits = MINUTES; 104 | private String delayTimeUnits = SECONDS; 105 | 106 | /** Time per player, in initTimeUnits. */ 107 | private int initTime1 = 10; 108 | private int initTime2 = 10; 109 | private boolean differentInitTime = false; 110 | 111 | private int b_delay; 112 | private long t_P1; 113 | private long t_P2; 114 | private int delay_time; 115 | private int onTheClock = 0; 116 | private int savedOTC = 0; 117 | 118 | private boolean haptic = false; 119 | private boolean blackBackground = false; 120 | private boolean timeup = false; 121 | private boolean prefmenu = false; 122 | private boolean delayed = false; 123 | private boolean showDeciseconds = true; 124 | 125 | /** Provide haptic feedback to the user of the given view. */ 126 | private void performHapticFeedback(View v) { 127 | v.performHapticFeedback( 128 | HapticFeedbackConstants.VIRTUAL_KEY, 129 | HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING 130 | ); 131 | } 132 | 133 | /** 134 | * Return the color corresponding to the given ID (as defined in 135 | * colors.xml). 136 | */ 137 | private int color(int id) { 138 | return getResources().getColor(id, null); 139 | } 140 | 141 | /** Called when the activity is first created. */ 142 | @Override 143 | public void onCreate(Bundle savedInstanceState) { 144 | super.onCreate(savedInstanceState); 145 | 146 | /** Get rid of the status bar */ 147 | requestWindowFeature(Window.FEATURE_NO_TITLE); 148 | 149 | getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); 150 | 151 | setContentView(R.layout.main); 152 | 153 | setUpGame(true); 154 | } 155 | 156 | @Override 157 | public void onPause() { 158 | stopAlert(); 159 | PauseGame(); 160 | super.onPause(); 161 | } 162 | 163 | @Override 164 | public void onResume() { 165 | stopAlert(); 166 | super.onResume(); 167 | } 168 | 169 | @Override 170 | public void onDestroy() { 171 | stopAlert(); 172 | super.onDestroy(); 173 | } 174 | 175 | /** Return the init time for a player based on the preferences. */ 176 | private int initTime(int player) { 177 | return differentInitTime 178 | ? player == 1 ? initTime1 : initTime2 179 | : initTime1; 180 | } 181 | 182 | /** Return time in milliseconds based on the specified unit. */ 183 | private int toMillis(int time, String timeUnit) { 184 | if (timeUnit.equals(HOURS)) { 185 | return time * 60 * 60 * 1000; 186 | } else if (timeUnit.equals(MINUTES)) { 187 | return time * 60 * 1000; 188 | } else if (timeUnit.equals(SECONDS)) { 189 | return time * 1000; 190 | } else { 191 | throw new java.lang.RuntimeException("Invalid timeUnit: " + timeUnit); 192 | } 193 | } 194 | 195 | // Set the given clock to the given time + delay 196 | private void setClock(TextView clock, long time, long bronsteinDelay) { 197 | String delayTime = formatTime(bronsteinDelay, true); 198 | String delayString = bronsteinDelay > 0 199 | ? (showDeciseconds ? "\n" : "") + "+" + delayTime 200 | : ""; 201 | clock.setText(formatTime(time) + delayString); 202 | } 203 | 204 | private void setClock(TextView clock, long time) { 205 | setClock(clock, time, 0); 206 | } 207 | 208 | /** 209 | * Format the provided time to a readable string. 210 | * @param t - time, in milliseconds 211 | * @param compact - whether or not to use compact format 212 | */ 213 | private String formatTime(long t, boolean compact) { 214 | //If not displaying deciseconds, round up to the nearest second. 215 | if (!showDeciseconds) { 216 | t = (long)Math.ceil(t / 1000.0) * 1000; 217 | } 218 | 219 | int deciseconds = (int)(t / 100) % 10; 220 | int seconds = (int)(t / 1000) % 60; 221 | int minutes = (int)(t / 1000 / 60) % 60; 222 | int hours = (int)(t / 1000 / 60 / 60); 223 | 224 | if (hours > 0) { 225 | return String.format("%d:%02d:%02d", hours, minutes, seconds); 226 | } else if (minutes > 0) { 227 | return String.format("%d:%02d", minutes, seconds); 228 | } else if (showDeciseconds && (seconds < SHOW_DECISECONDS_THRESHOLD)) { 229 | String format = compact ? "%d.%d" : "0:%02d.%d"; 230 | return String.format(format, seconds, deciseconds); 231 | } else { 232 | String format = compact ? "%d": "0:%02d"; 233 | return String.format(format, seconds); 234 | } 235 | } 236 | 237 | private String formatTime(long t) { 238 | return formatTime(t, false); 239 | } 240 | 241 | private void initRingtone() { 242 | Uri uri = Uri.parse(alertTone); 243 | ringtone = RingtoneManager.getRingtone(getBaseContext(), uri); 244 | } 245 | 246 | private void playAlert() { 247 | initRingtone(); 248 | if (ringtone != null) { 249 | ringtone.play(); 250 | } 251 | } 252 | 253 | private void stopAlert() { 254 | if (ringtone != null && ringtone.isPlaying()) { 255 | ringtone.stop(); 256 | } 257 | } 258 | 259 | public boolean onPrepareOptionsMenu(Menu menu) { 260 | prefmenu = true; 261 | stopAlert(); 262 | PauseGame(); 263 | return true; 264 | } 265 | 266 | public void onWindowFocusChanged(boolean b) { 267 | if ( !prefmenu ) { 268 | CheckForNewPrefs(); 269 | } else { 270 | prefmenu = false; 271 | } 272 | } 273 | 274 | protected Dialog onCreateDialog(int id) { 275 | Dialog dialog = new Dialog(this); 276 | switch ( id ) { 277 | case RESET: 278 | dialog = ResetDialog(); 279 | break; 280 | } 281 | 282 | return dialog; 283 | } 284 | 285 | /** Click handler for player 1's clock. */ 286 | public OnClickListener P1ClickHandler = new OnClickListener() { 287 | public void onClick(View v) { 288 | if (onTheClock == 1 || onTheClock == 0) { 289 | performHapticFeedback(v); 290 | } 291 | P1Click(); 292 | } 293 | }; 294 | 295 | /** Click handler for player 2's clock */ 296 | public OnClickListener P2ClickHandler = new OnClickListener() { 297 | public void onClick(View v) { 298 | if (onTheClock == 2 || onTheClock == 0) { 299 | performHapticFeedback(v); 300 | } 301 | P2Click(); 302 | } 303 | }; 304 | 305 | /** Click handler for the pause button */ 306 | public OnClickListener PauseListener = new OnClickListener() { 307 | public void onClick(View v) { 308 | performHapticFeedback(v); 309 | PauseToggle(); 310 | } 311 | }; 312 | 313 | /** Click handler for the menu button */ 314 | public OnClickListener MenuListener = new OnClickListener() { 315 | public void onClick(View v) { 316 | performHapticFeedback(v); 317 | showPrefs(); 318 | } 319 | }; 320 | 321 | /** Starts the Preferences menu intent */ 322 | private void showPrefs() { 323 | Intent prefsActivity = new Intent(ChessClock.this, Prefs.class); 324 | startActivity(prefsActivity); 325 | } 326 | 327 | /** Return an integer preference. */ 328 | private int getIntPref(String pref, int fallback) { 329 | SharedPreferences prefs = PreferenceManager 330 | .getDefaultSharedPreferences(this); 331 | 332 | try { 333 | return Integer.parseInt( 334 | prefs.getString(pref, Integer.toString(fallback)) 335 | ); 336 | } catch (Exception ex) { 337 | Editor e = prefs.edit(); 338 | e.putString(pref, Integer.toString(fallback)); 339 | e.commit(); 340 | return fallback; 341 | } 342 | } 343 | 344 | /** 345 | * Checks for changes to the current preferences. We only want 346 | * to re-create the game if something has been changed, so we 347 | * check for differences any time onWindowFocusChanged() is called. 348 | */ 349 | public void CheckForNewPrefs() { 350 | SharedPreferences prefs = PreferenceManager 351 | .getDefaultSharedPreferences(this); 352 | 353 | alertTone = prefs.getString("prefAlertSound", Settings.System.DEFAULT_RINGTONE_URI.toString()); 354 | 355 | /** Check for new game time settings. */ 356 | if (!prefs.getString("prefInitTimeUnits", MINUTES).equals(initTimeUnits)) { 357 | setUpGame(true); 358 | }; 359 | 360 | if (getIntPref("prefInitTime1", 10) != initTime1 361 | || getIntPref("prefInitTime2", 10) != initTime2) { 362 | setUpGame(true); 363 | } 364 | 365 | if (prefs.getBoolean("prefDifferentInitTime", false) != differentInitTime) { 366 | setUpGame(true); 367 | } 368 | 369 | /** Check for new delay settings. */ 370 | if (!prefs.getString("prefDelay", NO_DELAY).equals(delay)){ 371 | setUpGame(true); 372 | } 373 | 374 | if (!prefs.getString("prefDelayTimeUnits", SECONDS).equals(delayTimeUnits)) { 375 | setUpGame(true); 376 | }; 377 | 378 | if (getIntPref("prefDelayTime", 0) != delay_time) { 379 | setUpGame(true); 380 | } 381 | 382 | boolean new_haptic = prefs.getBoolean("prefHaptic", false); 383 | if ( new_haptic != haptic ) { 384 | // No reason to reload the clocks for this one 385 | setUpGame(false); 386 | } 387 | 388 | boolean new_bb = prefs.getBoolean("prefBlackBackground", false); 389 | if (new_bb != blackBackground) { 390 | // No reason to reload the clocks for this one 391 | setUpGame(false); 392 | } 393 | 394 | if (prefs.getBoolean("prefShowDeciseconds", true) != showDeciseconds) { 395 | setUpGame(false); 396 | } 397 | } 398 | 399 | /** Creates and displays the "Reset Clocks" alert dialog */ 400 | private Dialog ResetDialog() { 401 | AlertDialog.Builder builder = new AlertDialog.Builder(this); 402 | builder.setMessage(R.string.dialog_message_reset) 403 | .setCancelable(false) 404 | .setPositiveButton( 405 | R.string.dialog_button_yes, 406 | new DialogInterface.OnClickListener() { 407 | public void onClick(DialogInterface dialog, int id) { 408 | setUpGame(true); 409 | dialog.dismiss(); 410 | } 411 | }) 412 | .setNegativeButton( 413 | R.string.dialog_button_no, 414 | new DialogInterface.OnClickListener() { 415 | public void onClick(DialogInterface dialog, int id) { 416 | dialog.cancel(); 417 | } 418 | }); 419 | AlertDialog alert = builder.create(); 420 | 421 | return alert; 422 | } 423 | 424 | /** Called when P1ClickHandler registers a click/touch event */ 425 | private void P1Click() { 426 | if (onTheClock == 2) { 427 | return; 428 | } 429 | 430 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 431 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 432 | View l1 = (View)findViewById(R.id.l_Player1); 433 | View l2 = (View)findViewById(R.id.l_Player2); 434 | 435 | if ((delay.equals(FISCHER) || delay.equals(CAPPED_FISCHER)) 436 | && (onTheClock == 1 || savedOTC == 1)) { 437 | t_P1 += toMillis(delay_time, delayTimeUnits); 438 | 439 | if (delay.equals(CAPPED_FISCHER)) { 440 | t_P1 = Math.min(t_P1, toMillis(initTime(1), initTimeUnits)); 441 | } 442 | 443 | setClock(p1, t_P1); 444 | } 445 | 446 | if (delay.equals(BRONSTEIN)) { 447 | setClock(p1, t_P1); 448 | setClock(p2, t_P2, (savedOTC == 2) ? b_delay : toMillis(delay_time, delayTimeUnits)); 449 | } 450 | 451 | // Register that player 2's time is running now 452 | onTheClock = 2; 453 | // Unless we're unpausing player 2, reset their delayed status 454 | delayed = delayed && (savedOTC == 2); 455 | savedOTC = 0; 456 | 457 | p2.setTextColor(color(R.color.active_text)); 458 | p1.setTextColor(color(R.color.inactive_text)); 459 | l2.setBackgroundColor(color(R.color.highlight)); 460 | l1.setVisibility(View.INVISIBLE); 461 | l2.setVisibility(View.VISIBLE); 462 | 463 | Button pp = (Button)findViewById(R.id.Pause); 464 | pp.setBackgroundResource(R.drawable.pause_button); 465 | 466 | /** 467 | * Unregister the handler from player 1's clock and create a new one 468 | * which we register with player 2's clock. 469 | */ 470 | myHandler.removeCallbacks(mUpdateTimeTask); 471 | myHandler.removeCallbacks(mUpdateTimeTask2); 472 | myHandler.postDelayed(mUpdateTimeTask2, TICK_LENGTH); 473 | } 474 | 475 | /** Return true if out of time. */ 476 | private boolean outOfTime(long timeLeft) { 477 | if (delay.equals(BRONSTEIN)) { 478 | return timeLeft + b_delay == 0; 479 | } 480 | 481 | return timeLeft == 0; 482 | } 483 | 484 | /** Handles the "tick" event for Player 1's clock */ 485 | private Runnable mUpdateTimeTask = new Runnable() { 486 | public void run() { 487 | Button b1 = (Button)findViewById(R.id.Player1); 488 | Button b2 = (Button)findViewById(R.id.Player2); 489 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 490 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 491 | 492 | // Check for delays and apply them 493 | if (delay.equals(BRONSTEIN)){ 494 | if (delayed) { 495 | b_delay = Math.max(0, b_delay - TICK_LENGTH); 496 | } else { 497 | delayed = true; 498 | b_delay = toMillis(delay_time, delayTimeUnits); 499 | } 500 | // If delay remaining, negate tick 501 | t_P1 += (b_delay > 0) ? TICK_LENGTH : 0; 502 | } 503 | 504 | // Deduct tick from P1's clock 505 | if (t_P1 > 0) { 506 | t_P1 -= TICK_LENGTH; 507 | } 508 | setClock(p1, t_P1, b_delay); 509 | 510 | if (outOfTime(t_P1)) { 511 | timeup = true; 512 | Button pp = (Button)findViewById(R.id.Pause); 513 | View l1 = (View)findViewById(R.id.l_Player1); 514 | 515 | l1.setBackgroundColor(color(R.color.timesup)); 516 | performHapticFeedback(l1); 517 | 518 | b1.setClickable(false); 519 | b2.setClickable(false); 520 | pp.setBackgroundResource(R.drawable.reset_button); 521 | playAlert(); 522 | myHandler.removeCallbacks(mUpdateTimeTask); 523 | } else { 524 | // Re-post the handler so it waits until the next tick 525 | myHandler.postDelayed(this, TICK_LENGTH); 526 | } 527 | } 528 | }; 529 | 530 | /** Called when P2ClickHandler registers a click/touch event */ 531 | private void P2Click() { 532 | if (onTheClock == 1) { 533 | return; 534 | } 535 | 536 | Button b1 = (Button)findViewById(R.id.Player1); 537 | Button b2 = (Button)findViewById(R.id.Player2); 538 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 539 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 540 | View l1 = (View)findViewById(R.id.l_Player1); 541 | View l2 = (View)findViewById(R.id.l_Player2); 542 | 543 | if ((delay.equals(FISCHER) || delay.equals(CAPPED_FISCHER)) 544 | && (onTheClock == 2 || savedOTC == 2)) { 545 | t_P2 += toMillis(delay_time, delayTimeUnits); 546 | 547 | if (delay.equals(CAPPED_FISCHER)) { 548 | t_P2 = Math.min(t_P2, toMillis(initTime(2), initTimeUnits)); 549 | } 550 | 551 | setClock(p2, t_P2); 552 | } 553 | 554 | if (delay.equals(BRONSTEIN)) { 555 | setClock(p2, t_P2); 556 | setClock(p1, t_P1, (savedOTC == 1) ? b_delay : toMillis(delay_time, delayTimeUnits)); 557 | } 558 | 559 | // Register that player 1's time is running now 560 | onTheClock = 1; 561 | // Unless we're unpausing player 1, reset their delayed status 562 | delayed = delayed && (savedOTC == 1); 563 | savedOTC = 0; 564 | 565 | p1.setTextColor(color(R.color.active_text)); 566 | p2.setTextColor(color(R.color.inactive_text)); 567 | l1.setBackgroundColor(color(R.color.highlight)); 568 | l1.setVisibility(View.VISIBLE); 569 | l2.setVisibility(View.INVISIBLE); 570 | 571 | Button pp = (Button)findViewById(R.id.Pause); 572 | pp.setBackgroundResource(R.drawable.pause_button); 573 | 574 | /** 575 | * Unregister the handler from player 2's clock and create a new one 576 | * which we register with player 1's clock. 577 | */ 578 | myHandler.removeCallbacks(mUpdateTimeTask); 579 | myHandler.removeCallbacks(mUpdateTimeTask2); 580 | myHandler.postDelayed(mUpdateTimeTask, TICK_LENGTH); 581 | } 582 | 583 | /** Handles the "tick" event for Player 2's clock */ 584 | private Runnable mUpdateTimeTask2 = new Runnable() { 585 | public void run() { 586 | Button b1 = (Button)findViewById(R.id.Player1); 587 | Button b2 = (Button)findViewById(R.id.Player2); 588 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 589 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 590 | 591 | // Check for delays and apply them 592 | if (delay.equals(BRONSTEIN)){ 593 | if (delayed) { 594 | b_delay = Math.max(0, b_delay - TICK_LENGTH); 595 | } else { 596 | delayed = true; 597 | b_delay = toMillis(delay_time, delayTimeUnits); 598 | } 599 | // If delay remaining, negate tick 600 | t_P2 += (b_delay > 0) ? TICK_LENGTH : 0; 601 | } 602 | 603 | // Deduct tick from P2's clock 604 | if (t_P2 > 0) { 605 | t_P2 -= TICK_LENGTH; 606 | } 607 | setClock(p2, t_P2, b_delay); 608 | 609 | if (outOfTime(t_P2)) { 610 | timeup = true; 611 | Button pp = (Button)findViewById(R.id.Pause); 612 | View l2 = (View)findViewById(R.id.l_Player2); 613 | 614 | l2.setBackgroundColor(color(R.color.timesup)); 615 | performHapticFeedback(l2); 616 | 617 | b1.setClickable(false); 618 | b2.setClickable(false); 619 | pp.setBackgroundResource(R.drawable.reset_button); 620 | playAlert(); 621 | myHandler.removeCallbacks(mUpdateTimeTask2); 622 | } else { 623 | // Re-post the handler so it waits until the next tick 624 | myHandler.postDelayed(this, TICK_LENGTH); 625 | } 626 | } 627 | }; 628 | 629 | /** 630 | * Pauses both clocks. This is called when the options 631 | * menu is opened, since the game needs to pause 632 | * but not un-pause, whereas PauseToggle() will switch 633 | * back and forth between the two. 634 | * */ 635 | private void PauseGame() { 636 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 637 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 638 | View l1 = (View)findViewById(R.id.l_Player1); 639 | View l2 = (View)findViewById(R.id.l_Player2); 640 | Button pp = (Button)findViewById(R.id.Pause); 641 | 642 | /** Save the currently running clock, then pause */ 643 | if ( ( onTheClock != 0 ) && ( !timeup ) ) { 644 | savedOTC = onTheClock; 645 | onTheClock = 0; 646 | 647 | p1.setTextColor(color(R.color.inactive_text)); 648 | p2.setTextColor(color(R.color.inactive_text)); 649 | l1.setBackgroundColor(color(R.color.inactive_text)); 650 | l2.setBackgroundColor(color(R.color.inactive_text)); 651 | pp.setBackgroundResource(R.drawable.reset_button); 652 | 653 | myHandler.removeCallbacks(mUpdateTimeTask); 654 | myHandler.removeCallbacks(mUpdateTimeTask2); 655 | } 656 | } 657 | 658 | /** Called when the pause button is clicked */ 659 | private void PauseToggle() { 660 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 661 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 662 | View l1 = (View)findViewById(R.id.l_Player1); 663 | View l2 = (View)findViewById(R.id.l_Player2); 664 | Button pp = (Button)findViewById(R.id.Pause); 665 | 666 | /** Figure out if we need to pause or reset. */ 667 | if (onTheClock == 0 || outOfTime(t_P1) || outOfTime(t_P2)) { 668 | Log.v(TAG, "Info: Resetting."); 669 | stopAlert(); 670 | showDialog(RESET); 671 | } else { 672 | savedOTC = onTheClock; 673 | onTheClock = 0; 674 | 675 | p1.setTextColor(color(R.color.inactive_text)); 676 | p2.setTextColor(color(R.color.inactive_text)); 677 | l1.setBackgroundColor(color(R.color.inactive_text)); 678 | l2.setBackgroundColor(color(R.color.inactive_text)); 679 | pp.setBackgroundResource(R.drawable.reset_button); 680 | 681 | myHandler.removeCallbacks(mUpdateTimeTask); 682 | myHandler.removeCallbacks(mUpdateTimeTask2); 683 | } 684 | } 685 | 686 | /** Set up (or refresh) all game parameters */ 687 | private void setUpGame(boolean resetClocks) { 688 | /** Load all stored preferences */ 689 | SharedPreferences prefs = PreferenceManager 690 | .getDefaultSharedPreferences(this); 691 | 692 | TextView p1 = (TextView)findViewById(R.id.t_Player1); 693 | TextView p2 = (TextView)findViewById(R.id.t_Player2); 694 | p1.setTextColor(color(R.color.active_text)); 695 | p2.setTextColor(color(R.color.active_text)); 696 | 697 | View l1 = (View)findViewById(R.id.l_Player1); 698 | View l2 = (View)findViewById(R.id.l_Player2); 699 | l1.setVisibility(View.INVISIBLE); 700 | l2.setVisibility(View.INVISIBLE); 701 | 702 | /** Take care of a haptic change if needed */ 703 | haptic = prefs.getBoolean("prefHaptic", false); 704 | Button b1 = (Button)findViewById(R.id.Player1); 705 | Button b2 = (Button)findViewById(R.id.Player2); 706 | Button pause = (Button)findViewById(R.id.Pause); 707 | Button menu = (Button)findViewById(R.id.Menu); 708 | 709 | b1.setHapticFeedbackEnabled(haptic); 710 | b2.setHapticFeedbackEnabled(haptic); 711 | pause.setHapticFeedbackEnabled(haptic); 712 | menu.setHapticFeedbackEnabled(haptic); 713 | 714 | /* Set the preferred backgroud color. */ 715 | blackBackground = prefs.getBoolean("prefBlackBackground", false); 716 | if (blackBackground) { 717 | b1.setBackgroundColor(color(R.color.bg_black)); 718 | b2.setBackgroundColor(color(R.color.bg_black)); 719 | } else { 720 | b1.setBackgroundColor(color(R.color.bg_dark)); 721 | b2.setBackgroundColor(color(R.color.bg_dark)); 722 | } 723 | 724 | showDeciseconds = prefs.getBoolean("prefShowDeciseconds", true); 725 | 726 | if (resetClocks) { 727 | delay = prefs.getString("prefDelay", NO_DELAY); 728 | initTimeUnits = prefs.getString("prefInitTimeUnits", MINUTES); 729 | delayTimeUnits = prefs.getString("prefDelayTimeUnits", SECONDS); 730 | 731 | differentInitTime = prefs.getBoolean("prefDifferentInitTime", false); 732 | initTime1 = getIntPref("prefInitTime1", 10); 733 | initTime2 = getIntPref("prefInitTime2", 10); 734 | delay_time = getIntPref("prefDelayTime", 0); 735 | 736 | alertTone = prefs.getString("prefAlertSound", Settings.System.DEFAULT_RINGTONE_URI.toString()); 737 | if (alertTone.equals("")) { 738 | alertTone = Settings.System.DEFAULT_RINGTONE_URI.toString(); 739 | Editor e = prefs.edit(); 740 | e.putString("prefAlertSound", alertTone); 741 | e.commit(); 742 | } 743 | 744 | initRingtone(); 745 | onTheClock = 0; 746 | savedOTC = 0; 747 | delayed = false; 748 | 749 | t_P1 = toMillis(initTime(1), initTimeUnits); 750 | t_P2 = toMillis(initTime(2), initTimeUnits); 751 | b_delay = delay.equals(BRONSTEIN) ? toMillis(delay_time, delayTimeUnits) : 0; 752 | 753 | // Register the click listeners 754 | b1.setOnClickListener(P1ClickHandler); 755 | b2.setOnClickListener(P2ClickHandler); 756 | pause.setOnClickListener(PauseListener); 757 | menu.setOnClickListener(MenuListener); 758 | } 759 | 760 | // Format and display the clocks 761 | setClock(p1, t_P1, (savedOTC == 1) ? b_delay : 0); 762 | setClock(p2, t_P2, (savedOTC == 2) ? b_delay : 0); 763 | } 764 | } 765 | -------------------------------------------------------------------------------- /src/com/chessclock/android/DialogFactory.java: -------------------------------------------------------------------------------- 1 | /************************************************************************* 2 | * File: DialogFactory.java 3 | * 4 | * Creates the 'About' dialog. 5 | * 6 | * Created: 2010-07-03 7 | * 8 | * Author: Carter Dewey 9 | * 10 | ************************************************************************* 11 | * 12 | * This file is part of Simple Chess Clock (SCC). 13 | * 14 | * SCC is free software: you can redistribute it and/or modify 15 | * it under the terms of the GNU General Public License as published by 16 | * the Free Software Foundation, either version 3 of the License, or 17 | * (at your option) any later version. 18 | * 19 | * SCC is distributed in the hope that it will be useful, 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | * GNU General Public License for more details. 23 | * 24 | * You should have received a copy of the GNU General Public License 25 | * along with SCC. If not, see . 26 | * 27 | *************************************************************************/ 28 | package com.chessclock.android; 29 | 30 | import android.app.Dialog; 31 | import android.content.Context; 32 | import android.widget.TextView; 33 | 34 | public class DialogFactory { 35 | public DialogFactory() { 36 | 37 | } 38 | 39 | public Dialog AboutDialog(Context c, String MAJOR, String MINOR, String MINI) { 40 | Dialog d = new Dialog(c); 41 | 42 | d.setContentView(R.layout.about_dialog); 43 | d.setTitle(String.format("%s %s.%s.%s", 44 | c.getResources().getString(R.string.app_name), 45 | MAJOR, MINOR, MINI)); 46 | 47 | TextView text = (TextView) d.findViewById(R.id.text); 48 | text.setText(R.string.dialog_message_about); 49 | 50 | return d; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/com/chessclock/android/Prefs.java: -------------------------------------------------------------------------------- 1 | /************************************************************************* 2 | * File: Prefs.java 3 | * 4 | * Implements the Preferences dialog. 5 | * 6 | * Created: 2010-06-23 7 | * 8 | * Author: Carter Dewey 9 | * 10 | ************************************************************************* 11 | * 12 | * This file is part of Simple Chess Clock (SCC). 13 | * 14 | * SCC is free software: you can redistribute it and/or modify 15 | * it under the terms of the GNU General Public License as published by 16 | * the Free Software Foundation, either version 3 of the License, or 17 | * (at your option) any later version. 18 | * 19 | * SCC is distributed in the hope that it will be useful, 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | * GNU General Public License for more details. 23 | * 24 | * You should have received a copy of the GNU General Public License 25 | * along with SCC. If not, see . 26 | * 27 | *************************************************************************/ 28 | package com.chessclock.android; 29 | 30 | import android.app.Dialog; 31 | import android.os.Bundle; 32 | import android.preference.Preference; 33 | import android.preference.Preference.OnPreferenceClickListener; 34 | import android.preference.PreferenceActivity; 35 | import android.util.Log; 36 | 37 | public class Prefs extends PreferenceActivity { 38 | private static final int ABOUT = 1; 39 | 40 | private DialogFactory DF = new DialogFactory(); 41 | 42 | protected Dialog onCreateDialog(int id) { 43 | Dialog dialog = new Dialog(this); 44 | switch (id) { 45 | case ABOUT: 46 | dialog = DF.AboutDialog( 47 | this, 48 | ChessClock.V_MAJOR, 49 | ChessClock.V_MINOR, 50 | ChessClock.V_MINI 51 | ); 52 | break; 53 | } 54 | 55 | return dialog; 56 | } 57 | 58 | @Override 59 | protected void onCreate(Bundle savedInstanceState) { 60 | super.onCreate(savedInstanceState); 61 | Log.v("INFO", "INFO: Read prefs.xml"); 62 | addPreferencesFromResource(R.xml.preferences); 63 | Log.v("INFO", "INFO: Finished onCreate"); 64 | 65 | Preference about = (Preference)getPreferenceScreen().findPreference("about"); 66 | about.setOnPreferenceClickListener(new OnPreferenceClickListener() { 67 | public boolean onPreferenceClick(Preference preference) { 68 | showDialog(ABOUT); 69 | return true; 70 | } 71 | }); 72 | } 73 | } 74 | --------------------------------------------------------------------------------