diff --git a/trunk/AUTHORS b/trunk/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/trunk/COPYING b/trunk/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/trunk/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/trunk/ChangeLog b/trunk/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/trunk/INSTALL b/trunk/INSTALL new file mode 100644 index 0000000..7d1c323 --- /dev/null +++ b/trunk/INSTALL @@ -0,0 +1,365 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, +2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + Briefly, the shell commands `./configure; make; make install' should +configure, build, and install this package. The following +more-detailed instructions are generic; see the `README' file for +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. Caching is +disabled by default to prevent problems with accidental use of stale +cache files. + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You need `configure.ac' if +you want to change it or regenerate `configure' using a newer version +of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. + + With a non-GNU `make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use `make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + +Installation Names +================== + + By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/trunk/NEWS b/trunk/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/trunk/README b/trunk/README new file mode 100644 index 0000000..e2cd478 --- /dev/null +++ b/trunk/README @@ -0,0 +1,11 @@ +Zum Konfigurieren muss der Pfad zur Installation des gepatchten Qts angegeben werden, z.B.: + + ./bootstrap.sh && \ + QMAKE=/usr/local/Trolltech/Qt-4.6.3/bin/qmake ./configure && \ + make + +Start e.g. with: + +SWISSSIGNER='java -Xmx256M -Dorg.jpedal.jai=true -Dswing.aatext=true -Dch.abacus.swisssigner.incamail.certlogin=false -splash:swisssigner-splash.png -Dch.abacus.pkcs11.configuration=swisssigner-pkcs11.cfg -Duser.language=de -cp /home/marc/downloads/swisssigner/swisssigner.jar:/home/marc/downloads/swisssigner/bc.jar:bcmail.jar:/home/marc/downloads/swisssigner/bcpg.jar:/home/marc/downloads/swisssigner/bctsp.jar:/home/marc/downloads/swisssigner/exml.jar:/home/marc/downloads/swisssigner/itext.jar:/home/marc/downloads/swisssigner/jai_codec.jar:/home/marc/downloads/swisssigner/jai_core.jar:/home/marc/downloads/swisssigner/jai_imageio.jar:/home/marc/downloads/swisssigner/jdic.jar:/home/marc/downloads/swisssigner/jdic_native.jar:/home/marc/downloads/swisssigner/jdic_stub_unix.jar:/home/marc/downloads/swisssigner/jpedal.jar: ch.abacus.hotdog.SwissSigner locale=de document=%1 browser_bin=firefox keystores=pkcs11' + +src/swisssurfer --mime application/pdf pdf "$SWISSSIGNER" --mime application/x-java-jnlp-file jnlp "javaws %1" http://swisssign.com/de/swisssign-support/ss-faq/7-server-certificates/34-how-to-apache-konfiguration-mit-ssl-zertifikaten diff --git a/trunk/bootstrap.sh b/trunk/bootstrap.sh new file mode 100755 index 0000000..916e283 --- /dev/null +++ b/trunk/bootstrap.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +## @file +## +## $Id: bootstrap.sh 2 2009-06-16 13:20:59Z $ +## +## $Date: 2004/08/31 15:57:19 $ +## $Author: marc $ +## +## @copy © Marc Wäckerlin +## @license LGPL, see file COPYING +## +## $Log: bootstrap.sh,v $ +## Revision 1.3 2004/08/31 15:57:19 marc +## added file header +## + +test -f makefile && make distclean +aclocal && libtoolize --force && automake -a && autoconf diff --git a/trunk/configure.in b/trunk/configure.in new file mode 100644 index 0000000..f003757 --- /dev/null +++ b/trunk/configure.in @@ -0,0 +1,164 @@ +# $Id: configure.in 2654 2011-06-20 10:00:54Z marc $ +AC_ALIAS([AC_DEFINE_DIR], [AX_DEFINE_DIR]) +AC_DEFUN([AX_DEFINE_DIR], [ + prefix_NONE= + exec_prefix_NONE= + test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix + test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix +dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn +dnl refers to ${prefix}. Thus we have to use `eval' twice. + eval ax_define_dir="\"[$]$2\"" + eval ax_define_dir="\"$ax_define_dir\"" + AC_SUBST($1, "$ax_define_dir") + AC_DEFINE_UNQUOTED($1, "$ax_define_dir", [$3]) + test "$prefix_NONE" && prefix=NONE + test "$exec_prefix_NONE" && exec_prefix=NONE +]) + +AC_INIT([README]) +SRC_DIR=src +TST_DIR= +DOC_DIR=doc + +m4_define(x_packagename, swisssurfer) +m4_define(x_major, 1) +m4_define(x_minor, 2) + +PACKAGENAME=x_packagename +MAJOR=x_major +MINOR=x_minor +BUILDDATE=$(date "+%d.%m.%Y/%H.%M") + +if svn info . 2>&1 > /dev/null; then + LEAST=$(LANG= svn info $path | sed -n 's/Revision: //p') + break; +else + LEAST=[$(pwd | sed -n 's,^.*/'${PACKAGENAME}'-'${MAJOR}'\.'${MINOR}'\.\([0-9]*\).*$,\1,p')] + if test -z "${LEAST}"; then + LEAST="ERROR CANNOT DETERMINE REVISION NUMBER from $(pwd)" + fi +fi + +AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc.waeckerlin@tech.swisssign.com]) + +# files to create +AC_CONFIG_FILES([makefile ${PACKAGENAME}.spec src/version.cxx + src/makefile + src/qmake.pro src/languages.qrc + doc/doxyfile doc/makefile + debian/changelog]) + +# copy M4 to shell +AC_SUBST(MAJOR) +AC_SUBST(MINOR) +AC_SUBST(LEAST) +AC_SUBST(BUILDDATE) + +# libtool versioning +LIB_MAJOR=m4_eval(x_major+x_minor) +LIB_MINOR=${LEAST} +LIB_LEAST=x_minor +LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}" +AC_SUBST(LIB_VERSION) + +# home +AC_SUBST(HOME) + +# datadir for languages +AX_DEFINE_DIR([DATADIR], [datadir]) +#AC_SUBST(DATADIR) + +# macros +README=README +AC_SUBST_FILE(README) +CHANGE_LOG=ChangeLog +AC_SUBST_FILE(CHANGE_LOG) + +AM_CPPFLAGS="-DPACKAGEVERSION='\"${VERSION}\"' -DPACKAGENAME='\"${PACKAGENAME}\"'" + +# Get rid of that stupid -O2 -g opions! +CXXFLAGS="${CXXFLAGS:-}" + +# languages +AC_LANG(C++) + +# programs +AC_PROG_CXX +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_PROG_LIBTOOL +AC_CHECK_PROG(have_doxygen, doxygen, yes, no) +AC_CHECK_PROG(have_dot, dot, yes, no) + +AC_ARG_ENABLE(pedantic, + [AS_HELP_STRING([--enable-pedantic], + [enable all warnings and checks, abort on warnings])], + [have_pedantic="$enableval"; test "$enableval" = "yes" && \ + AM_CXXFLAGS="${AM_CXXFLAGS:-} -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"]) +dnl problem in libs: -Wshadow -Wcast-qual +dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) +AM_CONDITIONAL(PEDANTIC, test "$enableval" = "yes") +AC_ARG_ENABLE(dot, + [AS_HELP_STRING([--disable-dot], + [disable dot graphic tools for documentation])], + [have_dot="$enableval"]) +test "$enableval" = "yes" && HAVE_DOT="YES" || HAVE_DOT="NO"; +AM_PATH_CPPUNIT([1.0.0], [have_cppunit="yes"], [have_cppunit="no"]) + +MINGW32=no +MAC=no +case $host_os in + *mingw32*) MINGW32=yes;; + *darwin* | *rhapsody* | *macosx*) MAC=yes;; +esac +AM_CONDITIONAL(MINGW32, test "$MINGW32" = "yes") +AM_CONDITIONAL(MAC, test "$MAC" = "yes") + +# Special Options +AC_CHECK_PROGS([LRELEASE], [lrelease-qt4 lrelease-mac lrelease]) +test -n "$LRELEASE" || AC_MSG_ERROR([lrelease for Qt 4 not found!]) +AC_SUBST(LRELEASE) +AC_CHECK_PROGS([LUPDATE], [lupdate-qt4 lupdate-mac lupdate]) +test -n "$LUPDATE" || AC_MSG_ERROR([lupdate for Qt 4 not found!]) +AC_SUBST(LUPDATE) + +# Environment Variables +AC_ARG_VAR(LUPDATE_ARGS, [arguments for qt lupdate command, e.g. -no-obsolete]) +AC_PATH_PROG(QMAKE, [qmake qmake-qt4], []) +AC_ARG_VAR(QMAKE, [path to qmake program]) + +# export macros +SRCDIR=${srcdir} +AC_SUBST(SRCDIR) +AC_SUBST(SRC_DIR) +AC_SUBST(TST_DIR) +AC_SUBST(DOC_DIR) +AC_SUBST(HAVE_DOT) +AC_SUBST(THREADS) +AC_SUBST(PACKAGENAME) +AC_SUBST(AM_CXXFLAGS) +AC_SUBST(AM_CPPFLAGS) +AC_SUBST(LIBS) + +# create output +AC_OUTPUT +# infos and warnings +if test "$have_doxygen" = "no"; then +AC_MSG_WARN([Missing program doxygen! + - you cannot rebuild the documentation with make doc + - there are precompiled derived files in the distribution]); fi +if test "$have_dot" = "no"; then +AC_MSG_WARN([Missing program dot! + - when you rebild documentation with make doc, there are no generated images + - there are precompiled derived files in the distribution]); fi +if test "$have_cppunit" = "no"; then +AC_MSG_WARN([Missing cppunit development library! + - you cannot check the library using "make check" + - everything else works perfectly]); fi +if test "$have_pedantic" == "yes"; then +AC_MSG_NOTICE([Pedantic compile mode enabled! + - all warnings for GNU g++ are enabled + - all warnings result in an error + - doxygen warnings are treated as error too]); fi diff --git a/trunk/debian/changelog.in b/trunk/debian/changelog.in new file mode 100644 index 0000000..d3336a7 --- /dev/null +++ b/trunk/debian/changelog.in @@ -0,0 +1,5 @@ +@PACKAGE@ (@VERSION@-1) unstable; urgency=low + + * see https://dev.swisssign.com/projects/swisssurfer for changes + + -- Marc Wäckerlin (SwissSign AG) Wed, 07 Apr 2010 10:23:02 +0200 diff --git a/trunk/debian/compat b/trunk/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/trunk/debian/compat @@ -0,0 +1 @@ +7 diff --git a/trunk/debian/control b/trunk/debian/control new file mode 100644 index 0000000..e6acbc8 --- /dev/null +++ b/trunk/debian/control @@ -0,0 +1,21 @@ +Source: swisssurfer +Section: web +Priority: extra +Maintainer: Marc Wäckerlin (SwissSign AG) +Build-Depends: debhelper (>= 7), autotools-dev +Standards-Version: 3.8.1 +Homepage: https://dev.swisssign.com/projects/swisssurfer + +Package: swisssurfer-dev +Section: devel +Architecture: any +Depends: swisssurfer (= ${binary:Version}) +Description: swisssurfer + . + +Package: swisssurfer +Section: web +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: swisssurfer + . diff --git a/trunk/debian/copyright b/trunk/debian/copyright new file mode 100644 index 0000000..60e23e7 --- /dev/null +++ b/trunk/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Marc Wäckerlin (SwissSign AG) on +Wed, 07 Apr 2010 10:23:02 +0200. + +It was downloaded from https://dev.swisssign.com/projects/swisssurfer + +Upstream Author(s): + + Marc Wäckerlin (SwissSign AG) + +Copyright: + + Marc Wäckerlin (SwissSign AG) + +License: + + LGPL version 3 + +The Debian packaging is: + + Copyright (C) 2010 Marc Wäckerlin (SwissSign AG) + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/trunk/debian/cron.d.ex b/trunk/debian/cron.d.ex new file mode 100644 index 0000000..211a129 --- /dev/null +++ b/trunk/debian/cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the init package +# +0 4 * * * root [ -x /usr/bin/init_maintenance ] && /usr/bin/init_maintenance diff --git a/trunk/debian/dirs b/trunk/debian/dirs new file mode 100644 index 0000000..e69de29 diff --git a/trunk/debian/docs b/trunk/debian/docs new file mode 100644 index 0000000..50bd824 --- /dev/null +++ b/trunk/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/trunk/debian/emacsen-install.ex b/trunk/debian/emacsen-install.ex new file mode 100644 index 0000000..270ae54 --- /dev/null +++ b/trunk/debian/emacsen-install.ex @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/init + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=init + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 diff --git a/trunk/debian/emacsen-remove.ex b/trunk/debian/emacsen-remove.ex new file mode 100644 index 0000000..53656c9 --- /dev/null +++ b/trunk/debian/emacsen-remove.ex @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/init + +FLAVOR=$1 +PACKAGE=init + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/init.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi diff --git a/trunk/debian/emacsen-startup.ex b/trunk/debian/emacsen-startup.ex new file mode 100644 index 0000000..58c1fae --- /dev/null +++ b/trunk/debian/emacsen-startup.ex @@ -0,0 +1,25 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file, e.g. /etc/emacs/site-start.d/50init.el +;; for the Debian init package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The init package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/init"))) +;; If package-dir does not exist, the init package must have +;; removed but not purged, and we should skip the setup. + (when (file-directory-p package-dir) + (setq load-path (cons package-dir load-path)) + (autoload 'init-mode "init-mode" + "Major mode for editing init files." t) + (add-to-list 'auto-mode-alist '("\\.init$" . init-mode)))) + diff --git a/trunk/debian/manpage.1.ex b/trunk/debian/manpage.1.ex new file mode 100644 index 0000000..a74da1f --- /dev/null +++ b/trunk/debian/manpage.1.ex @@ -0,0 +1,59 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH INIT SECTION "April 8, 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +init \- program to do something +.SH SYNOPSIS +.B init +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B init +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBinit\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +init was written by . +.PP +This manual page was written by Marc Wäckerlin (SwissSign AG) , +for the Debian project (and may be used by others). diff --git a/trunk/debian/manpage.sgml.ex b/trunk/debian/manpage.sgml.ex new file mode 100644 index 0000000..b7ee501 --- /dev/null +++ b/trunk/debian/manpage.sgml.ex @@ -0,0 +1,154 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + FIRSTNAME"> + SURNAME"> + + April 8, 2010"> + + SECTION"> + marc.waeckerlin@tech.swisssign.com"> + + INIT"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + Instead, it has documentation in the &gnu; + Info format; see below. + + &dhpackage; is a program that... + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + Info files. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (and may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + diff --git a/trunk/debian/manpage.xml.ex b/trunk/debian/manpage.xml.ex new file mode 100644 index 0000000..23b0a5f --- /dev/null +++ b/trunk/debian/manpage.xml.ex @@ -0,0 +1,291 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A typical entry +in a Makefile or Makefile.am is: + +DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl +XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" + +manpage.1: manpage.xml + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The XSL files are in +docbook-xsl. A description of the parameters you can use can be found in the +docbook-xsl-doc-* packages. Please remember that if you create the nroff +version in one of the debian/rules file targets (such as build), you will need +to include xsltproc and docbook-xsl in your Build-Depends control field. +Alternatively use the xmlto command/package. That will also automatically +pull in xsltproc and docbook-xsl. + +Notes for using docbook2x: docbook2x-man does not automatically create the +AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as + ... . + +To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections +read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be +found in the docbook-xsl-doc-html package. + +Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` + +General documentation about man-pages and man-page-formatting: +man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + +--> + + + + + + + + + + + + + +]> + + + + &dhtitle; + &dhpackage; + + + &dhfirstname; + &dhsurname; + Wrote this manpage for the Debian system. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the Debian system + (and may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + program to do something + + + + &dhpackage; + + + + + + + + + this + + + + + + + + this + that + + + + + &dhpackage; + + + + + + + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; and bar + commands. + This manual page was written for the Debian distribution + because the original program does not have a manual page. + Instead, it has documentation in the GNU + info + 1 + format; see below. + &dhpackage; is a program that... + + + OPTIONS + The program follows the usual GNU command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + + info + 1 + files. + + + + + + + Does this and that. + + + + + + + Show summary of options. + + + + + + + Show version of program. + + + + + + FILES + + + /etc/foo.conf + + The system-wide configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + ${HOME}/.foo.conf + + The per-user configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + + + ENVIONMENT + + + FOO_CONF + + If used, the defined file is used as configuration + file (see also ). + + + + + + DIAGNOSTICS + The following diagnostics may be issued + on stderr: + + + Bad configuration file. Exiting. + + The configuration file seems to contain a broken configuration + line. Use the option, to get more info. + + + + + &dhpackage; provides some return codes, that can + be used in scripts: + + Code + Diagnostic + + 0 + Program exited successfully. + + + 1 + The configuration file seems to be broken. + + + + + + BUGS + The program is currently limited to only work + with the foobar library. + The upstreams BTS can be found + at . + + + SEE ALSO + + + bar + 1 + , + baz + 1 + , + foo.conf + 5 + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + info + 1 + system. + +
+ diff --git a/trunk/debian/menu b/trunk/debian/menu new file mode 100644 index 0000000..dcfafc8 --- /dev/null +++ b/trunk/debian/menu @@ -0,0 +1,8 @@ +?package(swisssurfer):\ + needs="X11"\ + hints="Lightweight,Fast,Small,Security,SSL,Cryptoki,Certificate"\ + section="Applications/Network/Web Browsing"\ + title="SwissSurfer"\ + longtitle="SwissSurfer Internet Browser"\ + command="/usr/bin/swisssurfer"\ + icon="/usr/share/swisssurfer/swisssurfer.xpm" diff --git a/trunk/debian/menu.ex b/trunk/debian/menu.ex new file mode 100644 index 0000000..3f387e8 --- /dev/null +++ b/trunk/debian/menu.ex @@ -0,0 +1,2 @@ +?package(init):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ + title="init" command="/usr/bin/init" diff --git a/trunk/debian/postinst.ex b/trunk/debian/postinst.ex new file mode 100644 index 0000000..2a7188b --- /dev/null +++ b/trunk/debian/postinst.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postinst script for init +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/trunk/debian/postrm.ex b/trunk/debian/postrm.ex new file mode 100644 index 0000000..0850e9b --- /dev/null +++ b/trunk/debian/postrm.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for init +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/trunk/debian/preinst.ex b/trunk/debian/preinst.ex new file mode 100644 index 0000000..70b142e --- /dev/null +++ b/trunk/debian/preinst.ex @@ -0,0 +1,35 @@ +#!/bin/sh +# preinst script for init +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/trunk/debian/prerm.ex b/trunk/debian/prerm.ex new file mode 100644 index 0000000..aac0e70 --- /dev/null +++ b/trunk/debian/prerm.ex @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for init +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/trunk/debian/rules b/trunk/debian/rules new file mode 100755 index 0000000..0e2df50 --- /dev/null +++ b/trunk/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + + +config.status: configure + dh_testdir +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" + + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f [Mm]akefile ] || $(MAKE) distclean + rm -f config.sub config.guess + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) prefix=$(CURDIR)/debian/tmp/usr install + + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install + dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/trunk/debian/shlibs.local.ex b/trunk/debian/shlibs.local.ex new file mode 100644 index 0000000..2566e8d --- /dev/null +++ b/trunk/debian/shlibs.local.ex @@ -0,0 +1 @@ +libproxyface 1.0.34 proxyface (>> 1.0.34-0), proxyface (<< 1.0.34-99) diff --git a/trunk/debian/swisssurfer-dev.dirs b/trunk/debian/swisssurfer-dev.dirs new file mode 100644 index 0000000..aac9d43 --- /dev/null +++ b/trunk/debian/swisssurfer-dev.dirs @@ -0,0 +1,3 @@ +#usr/lib +#usr/include +usr/share diff --git a/trunk/debian/swisssurfer-dev.install b/trunk/debian/swisssurfer-dev.install new file mode 100644 index 0000000..ddbb436 --- /dev/null +++ b/trunk/debian/swisssurfer-dev.install @@ -0,0 +1,7 @@ +usr/share/doc/swisssurfer/html +#usr/include/* +#usr/lib/lib*.a +#usr/lib/lib*.so +#usr/lib/*.la +#usr/lib/pkgconfig +#usr/share/pkgconfig diff --git a/trunk/debian/swisssurfer.dirs b/trunk/debian/swisssurfer.dirs new file mode 100644 index 0000000..7ccba22 --- /dev/null +++ b/trunk/debian/swisssurfer.dirs @@ -0,0 +1,3 @@ +#usr/lib +usr/bin +usr/share diff --git a/trunk/debian/swisssurfer.doc-base.EX b/trunk/debian/swisssurfer.doc-base.EX new file mode 100644 index 0000000..c9255c2 --- /dev/null +++ b/trunk/debian/swisssurfer.doc-base.EX @@ -0,0 +1,20 @@ +Document: swisssurfer +Title: Debian swisssurfer Manual +Author: +Abstract: This manual describes what swisssurfer is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/proxyface/proxyface.sgml.gz + +Format: postscript +Files: /usr/share/doc/proxyface/proxyface.ps.gz + +Format: text +Files: /usr/share/doc/proxyface/proxyface.text.gz + +Format: HTML +Index: /usr/share/doc/proxyface/html/index.html +Files: /usr/share/doc/proxyface/html/*.html diff --git a/trunk/debian/swisssurfer.install b/trunk/debian/swisssurfer.install new file mode 100644 index 0000000..7d80f14 --- /dev/null +++ b/trunk/debian/swisssurfer.install @@ -0,0 +1,11 @@ +usr/bin/swisssurfer +usr/share/applications/swisssurfer.desktop +usr/share/swisssurfer/swisssurfer.xpm +usr/share/swisssurfer/swisssurfer.png +usr/share/doc/swisssurfer/AUTHORS +usr/share/doc/swisssurfer/NEWS +usr/share/doc/swisssurfer/README +usr/share/doc/swisssurfer/COPYING +usr/share/doc/swisssurfer/INSTALL +usr/share/doc/swisssurfer/ChangeLog +#usr/lib/lib*.so.* diff --git a/trunk/debian/watch.ex b/trunk/debian/watch.ex new file mode 100644 index 0000000..9e3713b --- /dev/null +++ b/trunk/debian/watch.ex @@ -0,0 +1,23 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webpage +# +#http://www.example.com/downloads.php proxyface-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/proxyface-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/proxyface-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge, for devscripts >= 2.9 +# http://sf.net/proxyface/proxyface-(.*)\.tar\.gz + +# Uncomment to find new files on GooglePages +# http://example.googlepages.com/foo.html proxyface-(.*)\.tar\.gz diff --git a/trunk/doc/doxyfile.in b/trunk/doc/doxyfile.in new file mode 100644 index 0000000..0a7821b --- /dev/null +++ b/trunk/doc/doxyfile.in @@ -0,0 +1,1724 @@ +# Doxyfile 1.7.4 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = "Projektdokumentation @PACKAGENAME@" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = "Version @MAJOR@.@MINOR@.@LEAST@" + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = German + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = YES + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 2 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = "id=\par File-ID\n" \ + "copy=\par Copyright\n" \ + "license=\par License\n" \ + "classmutex=\par Reentrant:\nAccess is locked with class static mutex @c " \ + "instancemutex=\par Reentrant:\nAccess is locked with per instance mutex @c " \ + "mutex=\par Reentrant:\nAccess is locked with mutex @c " + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = YES + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penalty. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will roughly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = YES + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = YES + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = YES + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = YES + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = doxygenlayout.xml + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = NO + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = doxygen.errors + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = @SRCDIR@/../src + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = *.[ch]xx \ + *.doc + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = moc_* \ + uic_* \ + qrc_* + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = . + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = YES + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is adviced to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the stylesheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = YES + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = com.swisssign.dev + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = com.swisssign.dev + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = "Marc Wäckerlin (SwissSign AG)" + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = YES + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = @PACKAGENAME@.qch + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.waweckerlin.marc.dev + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = com.swisssign.dev + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = YES + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = YES + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the +# mathjax.org site, so you can quickly see the result without installing +# MathJax, but it is strongly recommended to install a local copy of MathJax +# before deployment. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = NO + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = YES + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4 + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = YES + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = YES + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = YES + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = YES + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = HAVE_STACKTRACE + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = @PACKAGENAME@.doxytag + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = NO + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = @HAVE_DOT@ + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will write a font called Helvetica to the output +# directory and reference it in all dot files that doxygen generates. +# When you want a differently looking font you can specify the font name +# using DOT_FONTNAME. You need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = NO + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = NO + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = YES + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/trunk/doc/doxygenlayout.xml b/trunk/doc/doxygenlayout.xml new file mode 100644 index 0000000..4e20439 --- /dev/null +++ b/trunk/doc/doxygenlayout.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/doc/makefile.am b/trunk/doc/makefile.am new file mode 100644 index 0000000..6d47d94 --- /dev/null +++ b/trunk/doc/makefile.am @@ -0,0 +1,47 @@ +## @file +## +## $Id: makefile.am 7 2010-03-01 14:55:44Z marc $ +## +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +ALL_SRC = ${top_srcdir}/src/*.[ch]xx +# ${top_srcdir}/src/*.doc + +DIRS = html +#latex + +all: ${DIRS} + +.PHONY: doc clean-local distclean-local dist-hool install-data-hook \ + uninstall-hook + +deps = ${top_srcdir}/COPYING ${top_srcdir}/README \ + ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog + +html: ${ALL_SRC} doxyfile ${deps} + doxygen doxyfile +if PEDANTIC + test \! -s doxygen.errors +endif +# cd latex && make +# mv latex/refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf + +CLEANFILES = doxygen.errors @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf +DISTCLEANFILES = @PACKAGENAME@.doxytag +MAINTAINERCLEANFILES = makefile.in + +distclean-local: + - rm -r html latex + +dist-hook: html +# cp -r html latex ${distdir}/ + +install-data-hook: + test -d $(DESTDIR)${docdir} || mkdir -p $(DESTDIR)${docdir} + chmod -R u+w $(DESTDIR)${docdir} + cp -r html $(DESTDIR)${docdir}/ + +uninstall-hook: + -chmod -R u+w $(DESTDIR)${docdir} + -rm -rf $(DESTDIR)${docdir}/* diff --git a/trunk/doc/screenshot.png b/trunk/doc/screenshot.png new file mode 100644 index 0000000..ceb2971 Binary files /dev/null and b/trunk/doc/screenshot.png differ diff --git a/trunk/makefile.am b/trunk/makefile.am new file mode 100644 index 0000000..056e35a --- /dev/null +++ b/trunk/makefile.am @@ -0,0 +1,66 @@ +## @file +## +## $Id: makefile.am 2 2009-06-16 13:20:59Z $ +## +## $Date: 2008-08-26 13:09:21 $ +## $Author: marc $ +## +## @copy © Marc Wäckerlin +## @license LGPL, see file COPYING +## +## 1 2 3 4 5 6 7 8 +## 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +SUBDIRS = @SRC_DIR@ @TST_DIR@ @DOC_DIR@ + +nobase_include_HEADERS = + +EXTRA_DIST = bootstrap.sh debian + +DISTCLEANFILES = debian/changelog + +deb: dist + tar xzvf @PACKAGE@-@VERSION@.tar.gz + cd @PACKAGE@-@VERSION@ && dpkg-buildpackage + rm -rf @PACKAGE@-@VERSION@ + +doc_DATA = AUTHORS NEWS README COPYING INSTALL ChangeLog @PACKAGENAME@.spec + +RPMS = /usr/src/packages/RPMS/i586/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ + /usr/src/packages/RPMS/i586/@PACKAGENAME@-devel-@MAJOR@.@MINOR@.@LEAST@-1.i586.rpm \ + /usr/src/packages/SRPMS/@PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@-1.src.rpm + +.PHONY: release tag rpm webserver \ + doc clean-local distclean-local dist-hool install-data-hook \ + uninstall-hook + +release: tag webserver + +tag: distcheck + cvs ci -R . + cvs tag -FR REL_@PACKAGENAME@-@MAJOR@-@MINOR@-@LEAST@ . + +rpm: dist + cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \ + /usr/src/packages/SOURCES/ + rpmbuild -ba --clean @PACKAGENAME@.spec + +deps = ${top_srcdir}/COPYING ${top_srcdir}/README ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog + +clean-local: + - rm doxygen.err lib@PACKAGENAME@.doxytag + - rm @PACKAGENAME@-dev_@MAJOR@.@MINOR@.@LEAST@-*.deb \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-*.changes \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-1.tar.gz \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-1.dsc \ + @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \ + @PACKAGENAME@_@MAJOR@.@MINOR@.@LEAST@-*.deb + +distclean-local: + - rm -r ${top_builddir}/@DOC_DIR@/html/* ${top_builddir}/@DOC_DIR@/latex/* + - rm makefile makefile.in doxygen.err libmrw.doxytag + - find . -name '*~' | xargs rm + - rm -r autom4te.cache + - rm aclocal.m4 config.guess config.sub configure \ + depcomp install-sh ltmain.sh makefile makefile.in \ + missing mkinstalldirs diff --git a/trunk/src/Info.plist b/trunk/src/Info.plist new file mode 100644 index 0000000..81296ac --- /dev/null +++ b/trunk/src/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + swisssurfer + CFBundleGetInfoString + SwissSign, (c) 2011 + CFBundleIconFile + swisssurfer.icns + CFBundleIdentifier + com.swisssign.swisssurfer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + SwissSurfer + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + SWSI + CFBundleVersion + 1.0.0 + NSAppleScriptEnabled + + + diff --git a/trunk/src/authentication.hxx b/trunk/src/authentication.hxx new file mode 100644 index 0000000..19be8a0 --- /dev/null +++ b/trunk/src/authentication.hxx @@ -0,0 +1,40 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __AUTHENTICATION_HXX__ +#define __AUTHENTICATION_HXX__ + +#include +#include +#include + +class Authentication: public QDialog, protected Ui::Authentication { + Q_OBJECT; + public: + Authentication(QAuthenticator* auth, QWidget* p=0): + QDialog(p), _auth(auth) { + setupUi(this); + _realm->setText(_auth->realm()); + _user->setText(_auth->user()); + _password->setText(_auth->password()); + } + public Q_SLOTS: + virtual void accept() { + _auth->setUser(_user->text()); + _auth->setPassword(_password->text()); + QDialog::accept(); + } + virtual void reject() { + _auth->setUser(QString()); + _auth->setPassword(QString()); + QDialog::reject(); + } + private: + QAuthenticator* _auth; +}; + +#endif diff --git a/trunk/src/authentication.ui b/trunk/src/authentication.ui new file mode 100644 index 0000000..d08ddfa --- /dev/null +++ b/trunk/src/authentication.ui @@ -0,0 +1,132 @@ + + + Authentication + + + + 0 + 0 + 277 + 172 + + + + Authorization + + + + + + + + Authentication required for: + + + false + + + + + + + realm + + + false + + + + + + + + + + + Username: + + + + + + + + + + Password: + + + + + + + QLineEdit::Password + + + + + + + + + Qt::Vertical + + + + 20 + 0 + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + true + + + + + + + + + buttonBox + accepted() + Authentication + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + Authentication + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/trunk/src/browser.hxx b/trunk/src/browser.hxx new file mode 100644 index 0000000..ee5ac56 --- /dev/null +++ b/trunk/src/browser.hxx @@ -0,0 +1,1568 @@ +/*! @file + + @id $Id: browser.hxx 15 2010-06-03 14:17:27Z marc $ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef BROWSER_HXX +#define BROWSER_HXX + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class Browser: public QMainWindow, protected Ui::Browser { + + Q_OBJECT; + + public: + + Browser(const QString& actlib, const QStringList& urls = QStringList(), + QSettings* settings=0, + Settings::MimeTypes mimeTypes = Settings::MimeTypes(), + bool kiosk = false, bool login = true, bool quirks=true): + _url(0), _find(new ButtonLineEdit), + _kiosk(kiosk), + _settings(mimeTypes, this, settings, !kiosk), + _errorLog(this), _logincertificate(this), + _proxy("http://swisssign.com", this), + _showErrorLog(0), + _startUrl(urls.size()), + _quirks(quirks), _search(new ButtonLineEdit), + _searchEngines(new QComboBox) { + LOG<addPermanentWidget(_find); + _find->add(actionUnFind); + _find->add(actionClearFind); + _find->hide(); + statusBar()->addPermanentWidget(_progress = new QProgressBar()); + _progress -> setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + statusBar()->addPermanentWidget(new QLabel("-")); + statusBar()->addPermanentWidget(_zoom = new QSlider(Qt::Horizontal)); + statusBar()->addPermanentWidget(new QLabel("+")); + _zoom->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + _zoom->setMinimum(10); + _zoom->setMaximum(190); + _zoom->setValue(100); + _zoom->setSingleStep(1); + _zoom->setPageStep(10); + _zoom->setTickPosition(QSlider::TicksAbove); + assert(connect(_zoom, SIGNAL(valueChanged(int)), SLOT(zoom(int)))); + if (!_quirks) { + _toolbar->addAction(actionReload); + _toolbar->addAction(actionStop); + } + if (!_kiosk) { + QComboBox* combo(new QComboBox(_toolbar)); + _url = combo; + combo->setInsertPolicy(QComboBox::NoInsert); + combo->setLineEdit(new ButtonLineEdit(combo)); + combo->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength); + combo->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, + QSizePolicy::Preferred)); + combo->setEditable(!_kiosk); + assert(connect(combo, SIGNAL(currentIndexChanged(const QString&)), + SLOT(load(QString)))); + assert(connect(combo->lineEdit(), SIGNAL(returnPressed()), + SLOT(load()))); + assert(connect(combo->lineEdit(), SIGNAL(textChanged(QString)), + SLOT(goodUrl()))); + if (_quirks) { + dynamic_cast(combo->lineEdit())->add + (actionStop); + dynamic_cast(combo->lineEdit())->add + (actionReload); + } + if (!_quirks) { + dynamic_cast(combo->lineEdit())->add + (actionAddBookmark); + dynamic_cast(combo->lineEdit())->add + (actionClearLocation); + } + _editbookmarks = + std::auto_ptr(new EditBookmarks(combo, this)); + } else { + QLineEdit* label(new QLineEdit(_toolbar)); + _url = label; + label->setReadOnly(true); + _url->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, + QSizePolicy::Minimum)); + } + _toolbar->addWidget(_url); + QFrame* searchFrame(new QFrame); + searchFrame->setBackgroundRole(QPalette::Base); + searchFrame->setAutoFillBackground(true); + QHBoxLayout* layout(new QHBoxLayout); + layout->addWidget(_searchEngines); + _searchEngines->setStyleSheet(tr("background-color: white", + "search engines combobox")); + layout->addWidget(_search); + searchFrame->setLayout(layout); + _toolbar->addWidget(searchFrame); + _search->add(actionSearch); + if (!_quirks) _search->add(actionClearSearch); + _search->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, + QSizePolicy::Minimum)); + assert(connect(_search, SIGNAL(returnPressed()), + SLOT(on_actionSearch_triggered()))); + if (_quirks) { + _toolbar->addAction(actionAddBookmark); + _toolbar->addAction(actionHome); + } + assert(connect(&_errorLog, SIGNAL(reset()), SLOT(errorReset()))); + assert(connect(&_networkManager, SIGNAL(finished(QNetworkReply*)), + SLOT(finished(QNetworkReply*)))); + assert(connect(&_networkManager, SIGNAL(created(QNetworkReply*)), + &_downloadManager, SLOT(add(QNetworkReply*)))); + assert(connect(&_downloadManager, SIGNAL(progress(qint64, qint64)), + SLOT(progress(qint64, qint64)))); + assert(connect(&_downloadManager, SIGNAL(started()), + SLOT(started()))); + assert(connect(&_downloadManager, SIGNAL(finished()), + SLOT(finished()))); + assert(connect(&_downloadManager, SIGNAL(error(QString)), + SLOT(downloadError(QString)))); + assert(connect(&_downloadManager, SIGNAL(metaDataChanged(QNetworkReply*)), + SLOT(metaDataChanged(QNetworkReply*)))); + assert(connect(&_settings, SIGNAL(newSettings()), SLOT(newSettings()))); + newSettings(); + on_actionNewTab_triggered(); + + if (!settings || _kiosk) { + actionSettings->setVisible(false); + actionEditBookmarks->setVisible(false); + } + if (_kiosk) { + actionNew->setEnabled(false); + actionNew->setVisible(false); + actionNewTab->setEnabled(false); + actionNewTab->setVisible(false); + actionCloseTab->setVisible(false); + } + if (!_kiosk && !_startUrl && _settings.flag("SaveWindowState") + && _settings()) + loadWin(); + if (urls.size()) load(urls.at(0)); + for (int i(1); isecond->fileName(); + it->second->setAutoRemove(_settings.flag("CloseApps")); + delete it->second; + it->second = 0; + if (_settings.flag("CloseApps")) { + it->first->terminate(); + delete it->first; + } + } + } + + //! Whitelisting + bool check(QUrl page) { + return true; + } + + QWebView* newTab() { + QWebView* browser(new QWebView); + browser->setPage(new WebPage(this, browser)); + browser->page()->setPluginFactory(new PluginFactory); + browser->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); + browser->page()->setNetworkAccessManager(&_networkManager); + browser->page()->setForwardUnsupportedContent(true); + _url->setFocus(); + // QWebView + assert(connect(browser, SIGNAL(urlChanged(const QUrl&)), + SLOT(urlChanged(const QUrl&)))); + assert(connect(browser, SIGNAL(linkClicked(const QUrl&)), + SLOT(linkClicked(const QUrl&)))); + assert(connect(browser, SIGNAL(iconChanged()), + SLOT(iconChanged()))); + assert(connect(browser, SIGNAL(titleChanged(const QString&)), + SLOT(titleChanged(const QString&)))); + assert(connect(browser, SIGNAL(statusBarMessage(const QString&)), + SLOT(statusBarMessage(const QString&)))); + assert(connect(browser, SIGNAL(loadProgress(int)), + SLOT(loadProgress(int)))); + assert(connect(browser, SIGNAL(loadStarted()), + SLOT(loadStarted()))); + assert(connect(browser, SIGNAL(loadFinished(bool)), + SLOT(loadFinished(bool)))); + // QWebPage WebAction + assert(connect(browser->pageAction(QWebPage::OpenLink), + SIGNAL(triggered(bool)), + SLOT(triggeredOpenLink(bool)))); + assert(connect(browser->pageAction(QWebPage::OpenLinkInNewWindow), + SIGNAL(triggered(bool)), + SLOT(triggeredOpenLinkInNewWindow(bool)))); + assert(connect(browser->pageAction(QWebPage::OpenFrameInNewWindow), + SIGNAL(triggered(bool)), + SLOT(triggeredOpenFrameInNewWindow(bool)))); + assert(connect(browser->pageAction(QWebPage::DownloadLinkToDisk), + SIGNAL(triggered(bool)), + SLOT(triggeredDownloadLinkToDisk(bool)))); + assert(connect(browser->pageAction(QWebPage::CopyLinkToClipboard), + SIGNAL(triggered(bool)), + SLOT(triggeredCopyLinkToClipboard(bool)))); + assert(connect(browser->pageAction(QWebPage::OpenImageInNewWindow), + SIGNAL(triggered(bool)), + SLOT(triggeredOpenImageInNewWindow(bool)))); + assert(connect(browser->pageAction(QWebPage::DownloadImageToDisk), + SIGNAL(triggered(bool)), + SLOT(triggeredDownloadImageToDisk(bool)))); + assert(connect(browser->pageAction(QWebPage::CopyImageToClipboard), + SIGNAL(triggered(bool)), + SLOT(triggeredCopyImageToClipboard(bool)))); + assert(connect(browser->pageAction(QWebPage::Back), + SIGNAL(triggered(bool)), + SLOT(triggeredBack(bool)))); + assert(connect(browser->pageAction(QWebPage::Forward), + SIGNAL(triggered(bool)), + SLOT(triggeredForward(bool)))); + assert(connect(browser->pageAction(QWebPage::Stop), + SIGNAL(triggered(bool)), + SLOT(triggeredStop(bool)))); + assert(connect(browser->pageAction(QWebPage::Reload), + SIGNAL(triggered(bool)), + SLOT(triggeredReload(bool)))); + assert(connect(browser->pageAction(QWebPage::Cut), + SIGNAL(triggered(bool)), + SLOT(triggeredCut(bool)))); + assert(connect(browser->pageAction(QWebPage::Copy), + SIGNAL(triggered(bool)), + SLOT(triggeredCopy(bool)))); + assert(connect(browser->pageAction(QWebPage::Paste), + SIGNAL(triggered(bool)), + SLOT(triggeredPaste(bool)))); + assert(connect(browser->pageAction(QWebPage::Undo), + SIGNAL(triggered(bool)), + SLOT(triggeredUndo(bool)))); + assert(connect(browser->pageAction(QWebPage::Redo), + SIGNAL(triggered(bool)), + SLOT(triggeredRedo(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToNextChar), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToNextChar(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToPreviousChar), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToPreviousChar(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToNextWord), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToNextWord(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToPreviousWord), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToPreviousWord(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToNextLine), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToNextLine(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToPreviousLine), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToPreviousLine(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToStartOfLine), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToStartOfLine(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToEndOfLine), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToEndOfLine(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToStartOfBlock), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToStartOfBlock(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToEndOfBlock), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToEndOfBlock(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToStartOfDocument), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToStartOfDocument(bool)))); + assert(connect(browser->pageAction(QWebPage::MoveToEndOfDocument), + SIGNAL(triggered(bool)), + SLOT(triggeredMoveToEndOfDocument(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectNextChar), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectNextChar(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectPreviousChar), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectPreviousChar(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectNextWord), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectNextWord(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectPreviousWord), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectPreviousWord(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectNextLine), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectNextLine(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectPreviousLine), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectPreviousLine(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectStartOfLine), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectStartOfLine(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectEndOfLine), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectEndOfLine(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectStartOfBlock), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectStartOfBlock(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectEndOfBlock), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectEndOfBlock(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectStartOfDocument), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectStartOfDocument(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectEndOfDocument), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectEndOfDocument(bool)))); + assert(connect(browser->pageAction(QWebPage::DeleteStartOfWord), + SIGNAL(triggered(bool)), + SLOT(triggeredDeleteStartOfWord(bool)))); + assert(connect(browser->pageAction(QWebPage::DeleteEndOfWord), + SIGNAL(triggered(bool)), + SLOT(triggeredDeleteEndOfWord(bool)))); + assert(connect(browser->pageAction(QWebPage::SetTextDirectionDefault), + SIGNAL(triggered(bool)), + SLOT(triggeredSetTextDirectionDefault(bool)))); + assert(connect(browser->pageAction(QWebPage::SetTextDirectionLeftToRight), + SIGNAL(triggered(bool)), + SLOT(triggeredSetTextDirectionLeftToRight(bool)))); + assert(connect(browser->pageAction(QWebPage::SetTextDirectionRightToLeft), + SIGNAL(triggered(bool)), + SLOT(triggeredSetTextDirectionRightToLeft(bool)))); + assert(connect(browser->pageAction(QWebPage::ToggleBold), + SIGNAL(triggered(bool)), + SLOT(triggeredToggleBold(bool)))); + assert(connect(browser->pageAction(QWebPage::ToggleItalic), + SIGNAL(triggered(bool)), + SLOT(triggeredToggleItalic(bool)))); + assert(connect(browser->pageAction(QWebPage::ToggleUnderline), + SIGNAL(triggered(bool)), + SLOT(triggeredToggleUnderline(bool)))); + assert(connect(browser->pageAction(QWebPage::InspectElement), + SIGNAL(triggered(bool)), + SLOT(triggeredInspectElement(bool)))); + assert(connect(browser->pageAction(QWebPage::InsertParagraphSeparator), + SIGNAL(triggered(bool)), + SLOT(triggeredInsertParagraphSeparator(bool)))); + assert(connect(browser->pageAction(QWebPage::InsertLineSeparator), + SIGNAL(triggered(bool)), + SLOT(triggeredInsertLineSeparator(bool)))); + assert(connect(browser->pageAction(QWebPage::SelectAll), + SIGNAL(triggered(bool)), + SLOT(triggeredSelectAll(bool)))); + // QWebPage + assert(connect(browser->page(), SIGNAL(contentsChanged()), + SLOT(contentsChanged()))); + assert(connect(browser->page(), + SIGNAL(databaseQuotaExceeded(QWebFrame*, QString)), + SLOT(databaseQuotaExceeded(QWebFrame*, QString)))); + assert(connect(browser->page(), + SIGNAL(downloadRequested(const QNetworkRequest&)), + SLOT(downloadRequested(const QNetworkRequest&)))); + assert(connect(browser->page(), SIGNAL(frameCreated(QWebFrame*)), + SLOT(frameCreated(QWebFrame*)))); + assert(connect(browser->page(), + SIGNAL(geometryChangeRequested(const QRect&)), + SLOT(geometryChangeRequested(const QRect&)))); +// assert(connect(browser->page(), SIGNAL(linkClicked(const QUrl&)), +// SLOT(linkClicked(const QUrl&)))); + assert(connect(browser->page(), + SIGNAL(linkHovered(const QString&, const QString&, + const QString&)), + SLOT(linkHovered(const QString&, const QString&, + const QString&)))); +// assert(connect(browser->page(), SIGNAL(loadFinished(bool)), +// SLOT(loadFinished(bool)))); +// assert(connect(browser->page(), SIGNAL(loadProgress(int)), +// SLOT(loadProgress(int)))); +// assert(connect(browser->page(), SIGNAL(loadStarted()), +// SLOT(loadStarted()))); + assert(connect(browser->page(), + SIGNAL(menuBarVisibilityChangeRequested(bool)), + SLOT(menuBarVisibilityChangeRequested(bool)))); + assert(connect(browser->page(), SIGNAL(microFocusChanged()), + SLOT(microFocusChanged()))); + assert(connect(browser->page(), SIGNAL(printRequested(QWebFrame*)), + SLOT(printRequested(QWebFrame*)))); + assert(connect(browser->page(), SIGNAL(repaintRequested(const QRect&)), + SLOT(repaintRequested(const QRect&)))); + assert(connect(browser->page(), + SIGNAL(restoreFrameStateRequested(QWebFrame*)), + SLOT(restoreFrameStateRequested(QWebFrame*)))); + assert(connect(browser->page(), + SIGNAL(saveFrameStateRequested(QWebFrame*, + QWebHistoryItem*)), + SLOT(saveFrameStateRequested(QWebFrame*, + QWebHistoryItem*)))); + assert(connect(browser->page(), + SIGNAL(scrollRequested(int, int, const QRect&)), + SLOT(scrollRequested(int, int, const QRect&)))); + assert(connect(browser->page(), SIGNAL(selectionChanged()), + SLOT(selectionChanged()))); +// assert(connect(browser->page(), SIGNAL(statusBarMessage(const QString&)), +// SLOT(statusBarMessage(const QString&)))); + assert(connect(browser->page(), + SIGNAL(statusBarVisibilityChangeRequested(bool)), + SLOT(statusBarVisibilityChangeRequested(bool)))); + assert(connect(browser->page(), + SIGNAL(toolBarVisibilityChangeRequested(bool)), + SLOT(toolBarVisibilityChangeRequested(bool)))); + // assert(connect(browser->page(), + // SIGNAL(unsupportedContent(QNetworkReply*)), + // SLOT(unsupportedContent(QNetworkReply*)))); + assert(connect(browser->page(), SIGNAL(windowCloseRequested()), + SLOT(windowCloseRequested()))); + // QNetworkAccessManager + assert(connect(browser->page()->networkAccessManager(), + SIGNAL(authenticationRequired(QNetworkReply*, + QAuthenticator*)), + SLOT(authenticationRequired(QNetworkReply*, + QAuthenticator*)))); + assert(connect(browser->page()->networkAccessManager(), + SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, + QAuthenticator*)), + SLOT(proxyAuthenticationRequired(const QNetworkProxy&, + QAuthenticator*)))); + assert(connect(browser->page()->networkAccessManager(), + SIGNAL(sslErrors(QNetworkReply*, const QList&)), + SLOT(sslErrors(QNetworkReply*, const QList&)))); + _tabs->setCurrentIndex(_tabs->addTab(browser, tr("New Tab"))); + _tabs->setTabsClosable(_tabs->count()>1); + return browser; + } + + protected: + + void closeEvent(QCloseEvent *event) { + LOG; + if (!_kiosk && !_startUrl && _settings.flag("SaveWindowState") + && _settings()) + saveWin(); + QMainWindow::closeEvent(event); + QApplication::exit(0); + } + + private Q_SLOTS: + + void load() { + LOG; + if (qobject_cast(_url)) + load(qobject_cast(_url)->currentText()); + else + load(qobject_cast(_url)->text()); + } + + void load(QString page) { + _settings.replaceSearchEngine(page); + if (QUrl(page).scheme()=="") page = "http://"+page; + load(QUrl(page)); + } + + void load(QUrl page, QWebView* view=0) { + LOG<showMessage(tr("Checking: %1").arg(page.toString())); + if (!check(page)) { + LOG<<"########## BLACK LISTED IGNORED ##########"; + statusBar()->showMessage(tr("Forbidden: %1").arg(page.toString())); + QMessageBox::warning(this, tr("Access Denied"), + tr("

Access denied due to security" + " considerations.

You are not" + " allowed to connect to %1.") + .arg(page.toString())); + return; + } + statusBar()->showMessage(tr("Reading: %1").arg(page.toString())); + if (!page.isValid()) { + statusBar()->showMessage(tr("Illegal URL: %1").arg(page.errorString())); + return; + } + if (!view) view=qobject_cast(_tabs->currentWidget()); + view->load(page); + } + + void newSettings() { + _searchEngines->clear(); + for (Settings::SearchEngines::const_iterator + it(_settings.searchEngines().begin()); + it!=_settings.searchEngines().end(); it++) + if (QFile(":/icons/"+it.key()).exists()) + _searchEngines->addItem(QIcon(":/icons/"+it.key()), "", it.value()); + else + _searchEngines->addItem(it.key(), it.value()); + if (_searchEngines->count()==0) + _searchEngines->addItem(QIcon(":/icons/gg"), tr("gg"), + tr("http://www.google.com/search?hl=%2&q=%1")); + } + + void on_actionAddBookmark_triggered() { + QComboBox* url(qobject_cast(_url)); + if (_url) { + url->addItem(url->currentText()); + QAction* a(_bookmarks->addAction(url->currentText())); + a->setData(url->currentText()); + connect(a, SIGNAL(triggered(bool)), SLOT(loadFromHistory())); + } + } + + void on_actionEditBookmarks_triggered() { + _editbookmarks->show(); + } + + void zoom(int i) { + LOG<showMessage(tr("Zoom: %1%").arg(i)); + qobject_cast(_tabs->currentWidget())->setZoomFactor(i/100.0); + } + + void loadFromHistory() { + load(qobject_cast(sender())->data().toString()); + } + + void on_actionHome_activated() { + LOG; + load(_home); + } + + void on_actionNew_triggered() { + LOG; + QStringList args(QCoreApplication::arguments()); + QString prg(args.takeFirst()); + statusBar()->showMessage(tr("opening new window"), 5000); + QProcess::startDetached(prg, args); + } + + void on_actionNewTab_triggered() { + newTab(); + } + + void on_actionCloseTab_triggered() { + on__tabs_tabCloseRequested(_tabs->currentIndex()); + } + + void on__tabs_currentChanged(int index) { + if (qobject_cast(_url)) + qobject_cast(_url)->setEditText + (qobject_cast(_tabs->currentWidget()) + ->url().toString()); + else + qobject_cast(_url)->setText + (qobject_cast(_tabs->currentWidget()) + ->url().toString()); + activateTab(); + } + + void on__tabs_tabCloseRequested(int index) { + _tabs->removeTab(index); + _tabs->setTabsClosable(_tabs->count()>1); + } + + void on_actionPrintPreview_triggered() { + QPrintPreviewDialog preview(&_printer, this); + connect(&preview, SIGNAL(paintRequested(QPrinter*)), + qobject_cast(_tabs->currentWidget()), + SLOT(print(QPrinter*))); + preview.exec(); + } + + void on_actionInstantPrint_triggered() { + qobject_cast(_tabs->currentWidget())->print(&_printer); + } + + void on_actionPrint_triggered() { + QPrintDialog dialog(&_printer, this); + dialog.setWindowTitle(tr("Print Document")); + if (dialog.exec()!=QDialog::Accepted) return; + on_actionInstantPrint_triggered(); + } + + void on_actionClose_triggered() { + LOG; + close(); + } + + void on_actionBack_triggered() { + LOG; + qobject_cast(_tabs->currentWidget())->history()->back(); + } + + void on_actionBack_hovered() { + LOG; + if (!qobject_cast(_tabs->currentWidget())->history() + ->backItem().isValid()) + return; + actionBack->setStatusTip + (tr("%1 - %2", "statusbar actionBack_hovered %1=url %2=title") + .arg(qobject_cast(_tabs->currentWidget())->history() + ->backItem().url().toString()) + .arg(qobject_cast(_tabs->currentWidget())->history() + ->backItem().title())); + actionBack->showStatusText(this); + } + + void on_actionForward_triggered() { + LOG; + qobject_cast(_tabs->currentWidget())->history()->forward(); + } + + void on_actionForward_hovered() { + LOG; + if (!qobject_cast(_tabs->currentWidget())->history() + ->forwardItem().isValid()) + return; + actionForward->setStatusTip + (tr("%1 - %2", "statusbar actionForward_hovered %1=url %2=title") + .arg(qobject_cast(_tabs->currentWidget())->history() + ->forwardItem().url().toString()) + .arg(qobject_cast(_tabs->currentWidget())->history() + ->forwardItem().title())); + actionForward->showStatusText(this); + } + + void on_actionReload_triggered() { + LOG; + qobject_cast(_tabs->currentWidget())->reload(); + } + + void on_actionStop_triggered() { + LOG; + for (int i(0); i<_tabs->count(); ++i) + qobject_cast(_tabs->widget(i))->stop(); + _downloadManager.abort(); + } + + void on_actionClearLocation_triggered() { + if (!qobject_cast(_url)) return; + qobject_cast(_url)->clearEditText(); + qobject_cast(_url)->setFocus(); + } + + void on_actionClearFind_triggered() { + _find->clear(); + _find->setFocus(); + } + + void on_actionFind_triggered() { + if (_find->isHidden()) { + _find->setText(qobject_cast(_tabs->currentWidget()) + ->selectedText()); + _find->show(); + } + disconnect(_find, SIGNAL(returnPressed()), this, SLOT(rfind())); + disconnect(_find, SIGNAL(textEdited(QString)), this, SLOT(rfind())); + assert(connect(_find, SIGNAL(returnPressed()), SLOT(find()))); + assert(connect(_find, SIGNAL(textEdited(QString)), SLOT(find()))); + _find->changeStyleSheet(tr("background-color: white", "neutral find")); + _find->setFocus(); + } + + void on_actionReverseFind_triggered() { + if (_find->isHidden()) { + _find->setText(qobject_cast(_tabs->currentWidget()) + ->selectedText()); + _find->show(); + } + disconnect(_find, SIGNAL(returnPressed()), this, SLOT(find())); + disconnect(_find, SIGNAL(textEdited(QString)), this, SLOT(find())); + assert(connect(_find, SIGNAL(returnPressed()), SLOT(rfind()))); + assert(connect(_find, SIGNAL(textEdited(QString)), SLOT(rfind()))); + _find->changeStyleSheet(tr("background-color: white", "neutral find")); + _find->setFocus(); + } + + void find(const QString& txt=QString()) { + if (qobject_cast(_tabs->currentWidget())->findText + (_find->text(), + QWebPage::FindWrapsAroundDocument)) + _find->changeStyleSheet(tr("background-color: #ADA", "text found")); + else + _find->changeStyleSheet(tr("background-color: #F77", "text not found")); + } + + void rfind(const QString& txt=QString()) { + if(qobject_cast(_tabs->currentWidget())->findText + (_find->text(), + QWebPage::FindWrapsAroundDocument + |QWebPage::FindBackward)) + _find->changeStyleSheet(tr("background-color: #ADA", "text found")); + else + _find->changeStyleSheet(tr("background-color: #F77", "text not found")); + } + + void on_actionUnFind_triggered() { + _find->hide(); + } + + void on_actionSearch_triggered() { + load(_searchEngines->itemData(_searchEngines->currentIndex()).toString() + .arg(_search->text()) + .arg(QLocale::system().name().left(2))); + } + + void on_actionClearSearch_triggered() { + _search->clear(); + } + + void on_actionProxy_triggered() { + _proxy.show(); + } + + void on_actionLoginCertificate_triggered() { + _logincertificate.show(); + } + + void on_actionErrorLog_triggered() { + _errorLog.show(); + } + + void on_actionAbout_triggered() { + QMessageBox::about(this, tr("About"), + tr("%8\n" + "Version: %1\n" + "Builddate: %2\n" + "Libraries:\n" + "%3\n" + "%4\n" + "qt-%5 (%6)\n" + "openssl-%7") + .arg(VERSION) + .arg(BUILDDATE) + .arg(QString::fromStdString(proxy::version())) + .arg(QString::fromStdString(pcsc::version())) + .arg(qVersion()) + .arg(QT_VERSION_STR) + .arg(SHLIB_VERSION_NUMBER) + .arg(QApplication::applicationName())); + } + + void on_actionSettings_triggered() { + _settings.show(); + } + + void on_actionSaveWindowState_triggered() { + saveWin(); + } + + void on_actionLoadWindowState_triggered() { + loadWin(); + } + + void saveWin() { + LOG<<"Save Window State"; + if (!_settings()) return; + QStringList urls; + if (qobject_cast(_url)) + for (int i(0); i(_url)->count(); ++i) + urls<(_url)->itemText(i); + _settings()->setValue("Window/Urls", urls); + QStringList tabs; + for (int i(0); i<_tabs->count(); ++i) + tabs<(_tabs->widget(i))->url().toString(); + _settings()->setValue("Window/Tabs", tabs); + _settings()->setValue("Window/CurrentTab", _tabs->currentIndex()); + _settings()->setValue("Window/Geometry", saveGeometry()); + _settings()->setValue("Window/WindowState", saveState()); + } + + void loadWin() { + LOG; + QStringList urls(_settings()->value("Window/Urls").toStringList()); + urls.sort(); + urls.removeDuplicates(); + if (qobject_cast(_url)) { + qobject_cast(_url)->clear(); + qobject_cast(_url)->addItems(urls); + } + _bookmarks->clear(); + for (QStringList::iterator it(urls.begin()); it!=urls.end(); ++it) { + QAction* a(_bookmarks->addAction(*it)); + a->setData(*it); + connect(a, SIGNAL(triggered(bool)), SLOT(loadFromHistory())); + } + QStringList tabs(_settings()->value("Window/Tabs").toStringList()); + int oldCnt(_tabs->count()); + for (QStringList::iterator it(tabs.begin()); it!=tabs.end(); ++it) { + LOG<<"-------------------------------------------------------------"; + load(*it, newTab()); + LOG<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"; + } + for (int i(0); icount()>1; ++i) _tabs->removeTab(0); + _tabs->setTabsClosable(_tabs->count()>1); + _tabs->setCurrentIndex(_settings()->value("Window/CurrentTab").toInt()); + restoreGeometry(_settings()->value("Window/Geometry").toByteArray()); + restoreState(_settings()->value("Window/WindowState").toByteArray()); + } + + //@name QWebView slots + //@{ + + void urlChanged(const QUrl& url) { + LOG<currentWidget()) return; + LOG<<"signal on current tab"; + if (qobject_cast(_url)) + qobject_cast(_url)->setEditText(url.toString()); + else + qobject_cast(_url)->setText(url.toString()); + } + + void linkClicked(const QUrl& url) { + LOG<(sender())); + } + + void iconChanged() { + LOG; + QWebView* view(qobject_cast(sender())); + int index = _tabs->indexOf(view); + if (index<0) return; + QIcon icon(QWebSettings::iconForUrl(view->url())); + if (icon.isNull()) { + LOG<<"Icon for URL is Null"<url(); + QPixmap pixmap(QWebSettings::webGraphic + (QWebSettings::DefaultFrameIconGraphic)); + if (!pixmap.isNull()) icon = pixmap; + } else icon = icon.pixmap(16, 16); + if (icon.isNull()) LOG<<"Icon is still null"; + _tabs->setTabIcon(index, icon); + } + + void titleChanged(const QString& text) { + LOG<setTabText(_tabs->indexOf(qobject_cast(sender())), + trUtf8("%1").arg(text)); + } + + void statusBarMessage(const QString& text) { + LOG<showMessage(tr("Info: %1").arg(text)); + } + + void loadProgress(int i) { + LOG<(_tabs->currentWidget())->size()); + qobject_cast(_tabs->currentWidget())->resize(0,0); + qobject_cast(_tabs->currentWidget())->resize(sz); + if (ok) { + statusBar()->showMessage(tr("done.")); + goodUrl(); + } + activateTab(); + } + + //@} + + //@name QWebPage WebAction slots + //@{ + + void triggeredOpenLink(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredOpenLinkInNewWindow(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredOpenFrameInNewWindow(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredDownloadLinkToDisk(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredCopyLinkToClipboard(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredOpenImageInNewWindow(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredDownloadImageToDisk(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredCopyImageToClipboard(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredBack(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredForward(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredStop(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredReload(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredCut(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredCopy(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredPaste(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredUndo(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredRedo(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToNextChar(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToPreviousChar(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToNextWord(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToPreviousWord(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToNextLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToPreviousLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToStartOfLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToEndOfLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToStartOfBlock(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToEndOfBlock(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToStartOfDocument(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredMoveToEndOfDocument(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectNextChar(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectPreviousChar(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectNextWord(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectPreviousWord(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectNextLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectPreviousLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectStartOfLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectEndOfLine(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectStartOfBlock(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectEndOfBlock(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectStartOfDocument(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectEndOfDocument(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredDeleteStartOfWord(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredDeleteEndOfWord(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSetTextDirectionDefault(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSetTextDirectionLeftToRight(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSetTextDirectionRightToLeft(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredToggleBold(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredToggleItalic(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredToggleUnderline(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredInspectElement(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredInsertParagraphSeparator(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredInsertLineSeparator(bool) { + LOG<(sender())->data().toString(); + } + + void triggeredSelectAll(bool) { + LOG<(sender())->data().toString(); + } + + //@} + + //@name QWebPage slots + //@{ + + void contentsChanged() { + LOG; + } + + void databaseQuotaExceeded(QWebFrame* frame, QString databaseName) { + LOG<showMessage(tr("%1", "statusbar for hovered link %1=url") + .arg(link)); + } + +// void loadFinished(bool ok) { +// LOG<<(ok?"succeess":"error"); +// } + +// void loadProgress(int progress) { +// LOG<header(QNetworkRequest::ContentTypeHeader).toString(); + LOG<<"Status:"<<_downloadManager.networkError(reply->error()); + QList rh(reply->rawHeaderPairs()); + for(QList::iterator it(rh.begin()); + it!=rh.end(); ++it) { + LOG<<"RawHeader:"<first<second; + } + if (reply->isFinished()) + handleContent(reply); + else + assert(connect(reply, SIGNAL(finished()), SLOT(downloadFinished()))); + } + + void downloadFinished() { + LOG; + QNetworkReply *reply(qobject_cast(sender())); + handleContent(reply); + } + + //! check and handle content that is defined in settings + void metaDataChanged(QNetworkReply* reply) { + QString filename + (QString::fromUtf8(reply->rawHeader("Content-Disposition"))); + if (filename.contains + (QRegExp("^\\s*attachment\\s*;\\s*filename\\s*=\\s*\"[^\"]+\""))) { + LOG<<"From Content-Disposition"; + filename = filename.replace + (QRegExp("^\\s*attachment\\s*;\\s*filename\\s*=\\s*\"([^\"]+)\".*"), + "\\1"); + } else { + LOG<<"From path"; + filename = + QFileInfo(!reply->url().toLocalFile().isEmpty() + ?reply->url().toLocalFile() + :reply->url().path()).fileName(); + } + LOG<<"Filename:"<header(QNetworkRequest::ContentTypeHeader).toString(), + filename)); + if (!type.isEmpty()) unsupportedContent(reply); + } + + void handleContent(QNetworkReply* reply) { + LOG<<"Location:"<header(QNetworkRequest::LocationHeader) + .toString(); + LOG<<"Content-Type:"<header(QNetworkRequest::ContentTypeHeader) + .toString(); + LOG<<"Content-Disposition:"<rawHeader("Content-Disposition"); + LOG<<"Status:"<<_downloadManager.networkError(reply->error()); + LOG<<"URL:"<url().toString(); + LOG<<"File:"<url().toLocalFile(); + LOG<<"Path:"<url().path(); + if (reply->error()!=QNetworkReply::NoError) { + LOG<<"Error:"<<_downloadManager.networkError(reply->error()); + return; + } + QString filename + (QString::fromUtf8(reply->rawHeader("Content-Disposition"))); + if (filename.contains + (QRegExp("^\\s*attachment\\s*;\\s*filename\\s*=\\s*\"[^\"]+\""))) { + LOG<<"From Content-Disposition"; + filename = filename.replace + (QRegExp("^\\s*attachment\\s*;\\s*filename\\s*=\\s*\"([^\"]+)\".*"), + "\\1"); + } else { + LOG<<"From path"; + filename = + QFileInfo(!reply->url().toLocalFile().isEmpty() + ?reply->url().toLocalFile() + :reply->url().path()).fileName(); + } + LOG<<"Filename:"<header(QNetworkRequest::ContentTypeHeader).toString(), + filename)); + if (!type.isEmpty()) { + filename.replace(QRegExp("^(.*)\\."+type.at(0)+"$"), + "\\1"); // remove extension + run(reply, filename+"."+type.at(0), type.at(1)); + } else { + SaveOrRunDialog choice(_kiosk, this); + choice.setup(filename, + reply->header(QNetworkRequest::ContentTypeHeader) + .toString(), + reply->url().host()); + if (choice.exec()==QDialog::Accepted) { + if (choice.save()) { + QFile file(choice.sor()->filename()); + file.open(QIODevice::WriteOnly); + file.write(reply->readAll()); + file.close(); + } else if (choice.run()) { + run(reply, filename, choice.sor()->program()+" %1"); + } else { + // ... + } + } + } + } + + void run(QNetworkReply* reply, QString filename, QString command) { + TemporaryFile *file(new TemporaryFile + (QDir::tempPath()+QDir::separator() + +filename)); + file->open(); + reply->seek(0); + file->write(reply->readAll()); + file->close(); + LOG<<"Stored as:"<fileName(); + statusBar()->showMessage(tr("launching application ..."), 5000); + QProcess* process(new QProcess); + _downloadProcesses[process] = file; + assert(connect(process, SIGNAL(finished(int, QProcess::ExitStatus)), + SLOT(processFinished()))); + QStringList args(command.split(" ") + .replaceInStrings("%1", file->fileName())); + QString prg(args.takeFirst()); + LOG<<"Running:"<start(prg, args); + } + + void processFinished() { + LOG; + if (_downloadProcesses.find(qobject_cast(sender())) + == _downloadProcesses.end()) return; + if (_downloadProcesses[qobject_cast(sender())]) + _downloadProcesses[qobject_cast(sender())] + ->setAutoRemove(true); + delete _downloadProcesses[qobject_cast(sender())]; + _downloadProcesses.erase(qobject_cast(sender())); + } + + //@} + + void windowCloseRequested() { + LOG; + } + + //@} + + //@name DownloadManager signals + //@{ + + void progress(qint64 done, qint64 total) { + _progress->setMaximum(total); + _progress->setValue(done); + } + + void started() { + QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); + if (_quirks) { + actionStop->setEnabled(true); + } else { + actionStop->setVisible(true); + actionReload->setVisible(false); + } + _progress->setRange(0, 0); + _progress->setValue(0); + _progress->setEnabled(true); + _progress->show(); + } + + void finished() { + LOG; + QApplication::restoreOverrideCursor(); + if (_quirks) { + actionStop->setEnabled(false); + } else { + actionStop->setVisible(false); + actionReload->setVisible(true); + } + _progress->setRange(0, 1); + _progress->setValue(1); + _progress->setEnabled(false); + } + + void finished(QNetworkReply *r) { + LOG; + if (r->error()!=QNetworkReply::NoError && + r->error()!=QNetworkReply::OperationCanceledError) { + statusBar()->showMessage(DownloadManager::networkError(r->error())); + badUrl(); + if (!_showErrorLog) { + statusBar()->addPermanentWidget + ((_showErrorLog = new QPushButton(QIcon(":/icons/error"), + tr("errors", "show error log")))); + assert(connect(_showErrorLog, SIGNAL(clicked(bool)), + actionErrorLog, SLOT(trigger()))); + } + _showErrorLog->show(); + } + } + + void errorReset() { + LOG; + _showErrorLog->hide(); + } + + void badUrl() { + if (qobject_cast(_url)) + dynamic_cast + (qobject_cast(_url)->lineEdit()) + ->changeStyleSheet(tr("background-color: #F77", "invalid url")); + else + qobject_cast(_url) + ->setStyleSheet(tr("background-color: #F77", "invalid url")); + } + + void goodUrl() { + if (qobject_cast(_url)) + dynamic_cast + (qobject_cast(_url)->lineEdit()) + ->changeStyleSheet(tr("background-color: white", "valid url")); + else + qobject_cast(_url) + ->setStyleSheet(tr("background-color: white", "valid url")); + } + + void downloadError(QString error) { + _errorLog.append(error); + } + + //@} + + //@name QNetworkAccessManager signals + //@{ + + void authenticationRequired(QNetworkReply* reply, + QAuthenticator* authenticator) { + LOG<url().toString()<realm(); + statusBar()->showMessage(tr("authentication required")); + Authentication auth(authenticator, this); + if (auth.exec()==QDialog::Rejected) reply->abort(); + } + + void proxyAuthenticationRequired(const QNetworkProxy& proxy, + QAuthenticator* authenticator) { + LOG; + } + + void sslErrors(QNetworkReply* reply, const QList& errors) { + LOG; + statusBar()->showMessage(tr("ssl error")); + } + + //@} + + private: + + void activateTab() { + iconChanged(); + QWebHistory* history(qobject_cast(_tabs->currentWidget()) + ->history()); + actionForward->setEnabled(history->canGoForward()); + actionBack->setEnabled(history->canGoBack()); + _history->clear(); + QList items(history->items()); + for (int i = 0; i < items.size(); ++i) { + QAction* a(_history->addAction(items[i].title())); + a->setData(items[i].url()); + connect(a, SIGNAL(triggered(bool)), SLOT(loadFromHistory())); + } + } + + private: + + class ButtonLineEdit: public QLineEdit { + public: + ButtonLineEdit(QWidget* p=0): QLineEdit(p) { + LOG; + } + QToolButton* add(QAction* a) { + LOG; + QToolButton* b(new QToolButton(this)); + b->setDefaultAction(a); + add(b); + return b; + } + ButtonLineEdit& add(QToolButton* b) { + LOG; + b->setParent(this); + b->setStyleSheet("QToolButton { border: none; padding: 0; }"); + b->setCursor(Qt::ArrowCursor); + _buttons.push_back(b); + resizeEvent(0); + return *this; + } + ButtonLineEdit& changeStyleSheet(QString s) { + LOG; + _style = s; + resizeEvent(0); + return *this; + } + protected: + void resizeEvent(QResizeEvent*) { + QSize sz; + int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); + for (Buttons::iterator it(_buttons.begin()); + it!=_buttons.end(); ++it) { + if (sz.isEmpty()) sz = (*it)->sizeHint(); + else sz.setWidth(sz.width()+(*it)->sizeHint().width()); + (*it)->move(rect().right() - frameWidth - sz.width(), + (rect().bottom() + 1 - (*it)->sizeHint().height())/2); + } + setStyleSheet(QString("QLineEdit { padding-right: %1px; %2 }") + .arg(sz.width() + frameWidth + 1) + .arg(_style)); + } + private: + typedef QList Buttons; + Buttons _buttons; + QString _style; + }; + + private: + + QWidget* _url; + ButtonLineEdit* _find; + QSlider* _zoom; + QProgressBar* _progress; + QString _home; + bool _kiosk; + QPrinter _printer; + SslClientAuthNetworkAccessManager _networkManager; + DownloadManager _downloadManager; + typedef std::map DownloadProcesses; + DownloadProcesses _downloadProcesses; + Settings _settings; + ErrorLog _errorLog; + LoginCertificate _logincertificate; + gui::Proxy _proxy; + QPushButton* _showErrorLog; + std::auto_ptr _editbookmarks; + bool _startUrl; + bool _quirks; + ButtonLineEdit* _search; + QComboBox* _searchEngines; +}; +#endif diff --git a/trunk/src/browser.ui b/trunk/src/browser.ui new file mode 100644 index 0000000..a26b070 --- /dev/null +++ b/trunk/src/browser.ui @@ -0,0 +1,487 @@ + + + Browser + + + + 0 + 0 + 1009 + 756 + + + + SwissSurfer + + + + + + + -1 + + + Qt::ElideMiddle + + + true + + + true + + + true + + + + + + + + + true + + + toolBar + + + + 32 + 32 + + + + TopToolBarArea + + + false + + + + + + + + + 0 + 0 + 1009 + 23 + + + + + &File + + + + + + + + + + + + + + Edit + + + + + + + + + + + + + + + + History + + + + + Info + + + + + + + + Bookmarks + + + + + + + + + + + true + + + + :/icons/reload:/icons/reload + + + neu laden + + + F5 + + + + + true + + + + :/icons/stop:/icons/stop + + + stoppen + + + Esc + + + + + false + + + + :/icons/back:/icons/back + + + zurückkehren + + + Alt+Left + + + Qt::WindowShortcut + + + + + false + + + + :/icons/forward:/icons/forward + + + weitergehen + + + Alt+Right + + + Qt::WindowShortcut + + + + + + :/icons/gohome:/icons/gohome + + + Startseite + + + Ctrl+Home + + + Qt::WindowShortcut + + + + + + :/icons/newwindow:/icons/newwindow + + + &New Browser + + + New Browser Window + + + Ctrl+N + + + + + + :/icons/close:/icons/close + + + &Quit + + + + + + :/icons/settings:/icons/settings + + + &Proxy... + + + + + + :/icons/print:/icons/print + + + Print ... + + + + + + :/icons/printpreview:/icons/printpreview + + + Print Pre&view ... + + + + + + :/icons/print:/icons/print + + + Quick &Print + + + Ctrl+P + + + + + Next Tab + + + Shift+Right + + + + + Previous Tab + + + Shift+Left + + + + + + :/icons/newtab:/icons/newtab + + + New Tab + + + Add New Tab + + + Ctrl+T + + + + + + :/icons/find:/icons/find + + + Find + + + find in page + + + Ctrl+F + + + + + + :/icons/close:/icons/close + + + Close Find + + + Esc + + + + + + :/icons/about:/icons/about + + + &About + + + QAction::AboutQtRole + + + + + + :/icons/settings:/icons/settings + + + &Settings ... + + + QAction::PreferencesRole + + + + + + :/icons/find:/icons/find + + + &Reverse Find + + + Ctrl+R + + + + + + :/icons/error:/icons/error + + + Error Log + + + show error logs + + + + + + :/icons/usercert:/icons/usercert + + + User Login Certificate + + + + + + :/icons/settings:/icons/settings + + + &Proxy ... + + + + + + :/icons/clearlocation:/icons/clearlocation + + + Clear Location + + + clear location bar + + + + + + :/icons/addbookmark:/icons/addbookmark + + + Add Bookmark + + + add bookmark to location bar + + + Ctrl+D + + + + + + :/icons/addbookmark:/icons/addbookmark + + + &Bookmarks + + + + + + :/icons/clearlocation:/icons/clearlocation + + + Clear Find + + + clear find bar + + + + + + :/icons/close:/icons/close + + + &Close Tab + + + Ctrl+W + + + + + Sa&ve Session + + + + + &Load Session + + + + + + :/icons/find:/icons/find + + + Search + + + + + + :/icons/clearlocation:/icons/clearlocation + + + Clear Search + + + + + + + + diff --git a/trunk/src/certificate.hxx b/trunk/src/certificate.hxx new file mode 100644 index 0000000..cfbedd7 --- /dev/null +++ b/trunk/src/certificate.hxx @@ -0,0 +1,112 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef CERTIFICATE_HXX +#define CERTIFICATE_HXX + +#include +#include +#include +#include +#include + +#include + +class Certificate: public QWidget, protected Ui::Certificate { + public: + Certificate(QWidget* p): QWidget(p) { + setupUi(this); + } + Certificate& certificate(const QSslCertificate& cert) { + _cert->clear(); + if (!cert.isValid()) return *this; + _cert->addTopLevelItem + ((new QTreeWidgetItem + (QStringList()<addTopLevelItem + ((new QTreeWidgetItem + (QStringList()<addTopLevelItem + ((new QTreeWidgetItem + (QStringList()<addTopLevelItem + ((new QTreeWidgetItem + (QStringList()<addTopLevelItem + // ((new QTreeWidgetItem + // (QStringList()<addTopLevelItem + ((it = new QTreeWidgetItem(QStringList()<=QSslCertificate::Organization; + si=(QSslCertificate::SubjectInfo)((int)si-1)) + if (!cert.subjectInfo(si).isEmpty()) + it->addChild + ((new QTreeWidgetItem + (QStringList()<addChild + ((it2 = new QTreeWidgetItem + (QStringList()< + asns(cert.alternateSubjectNames()); + for (QMultiMap::iterator + asn(asns.begin()); asn!=asns.end(); ++asn) + it2->addChild + ((new QTreeWidgetItem + (QStringList()<addTopLevelItem + ((it = new QTreeWidgetItem(QStringList()<=QSslCertificate::Organization; + si=(QSslCertificate::SubjectInfo)((int)si-1)) + if (!cert.issuerInfo(si).isEmpty()) + it->addChild + ((new QTreeWidgetItem + (QStringList()<expandAll(); + _cert->resizeColumnToContents(0); + _cert->resizeColumnToContents(1); + return *this; + } + QString alternateName(QSsl::AlternateNameEntryType an) { + switch (an) { + case QSsl::EmailEntry: return tr("E-Mail"); + case QSsl::DnsEntry: return tr("URL"); + } + return tr("error", "unknown certificate subject alternate name"); + } + QString subjectInfo(QSslCertificate::SubjectInfo si) { + switch (si) { + case QSslCertificate::Organization: + return tr("Organization"); + case QSslCertificate::CommonName: + return tr("Common Name"); + case QSslCertificate::LocalityName: + return tr("Locality"); + case QSslCertificate::OrganizationalUnitName: + return tr("Organizational Unit"); + case QSslCertificate::CountryName: + return tr("Country"); + case QSslCertificate::StateOrProvinceName: + return tr("State or Province"); + } + return tr("error", "unknown certificate subject info"); + } +}; + +#endif diff --git a/trunk/src/certificate.ui b/trunk/src/certificate.ui new file mode 100644 index 0000000..9b0a434 --- /dev/null +++ b/trunk/src/certificate.ui @@ -0,0 +1,59 @@ + + + Certificate + + + + 0 + 0 + 400 + 320 + + + + Form + + + + + + QAbstractItemView::NoEditTriggers + + + true + + + true + + + false + + + true + + + false + + + true + + + false + + + + Attribute + + + + + Value + + + + + + + + + diff --git a/trunk/src/downloadmanager.hxx b/trunk/src/downloadmanager.hxx new file mode 100644 index 0000000..822ba30 --- /dev/null +++ b/trunk/src/downloadmanager.hxx @@ -0,0 +1,279 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include +#include +#include + +#include +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class DownloadManager: public QObject { + Q_OBJECT; + public: + + DownloadManager& operator+=(QNetworkReply* reply) { + LOG; + add(reply); + return *this; + } + + static QString networkError(QNetworkReply::NetworkError err) { + LOG<Unknown network error (code: %1).") + .arg(err); + } + } + + Q_SIGNALS: + + void progress(qint64 done, qint64 total); + void started(); + void finished(); + void error(QString); + void metaDataChanged(QNetworkReply*); + + public Q_SLOTS: + + void add(QNetworkReply* reply) { + LOG<<_downloads.size()<url().toString(); + LOG<&)), + SLOT(sslErrors(const QList&)))); + assert(connect(reply, SIGNAL(uploadProgress(qint64, qint64)), + SLOT(uploadProgress(qint64, qint64)))); + if (_downloads.size()==1) started(); + } + + void abort() { + while (_downloads.size()) _downloads.begin()->first->abort(); + } + + private: + + void calcProgress() { + //LOG; + qint64 done(0); + qint64 total(0); + for (Downloads::iterator it(_downloads.begin()); + it!=_downloads.end(); ++it) { + done += it->second.progress.first; + total += it->second.progress.second; + } + progress(done, total); + } + + private Q_SLOTS: + + void downloadProgress(qint64 bytesReceived, qint64 bytesTotal) { + //LOG<(sender())].progress.first + = bytesReceived; + _downloads[qobject_cast(sender())].progress.second + = bytesTotal; + calcProgress(); + } + void error(QNetworkReply::NetworkError code) { + LOG<<"Status:"<(sender())); + _downloads[reply].error += + tr("

Network Error

" + "
URL:
%1
" + "
Error Code:
%3
" + "
Error Details:
%2
") + .arg(reply->url().toString()) + .arg(networkError(code)) + .arg(code); + } + void slotDestroyed(QObject* obj) { + LOG<<_downloads.size(); + _downloads.erase((QNetworkReply*)obj); + } + void slotFinished() { + LOG<<_downloads.size(); + QNetworkReply* reply(qobject_cast(sender())); + if (_downloads[reply].error.size()) + error(_downloads[reply].error); + _downloads.erase(reply); + if (_downloads.size()==0) finished(); + } + void slotMetaDataChanged() { + LOG; + QNetworkReply* reply(qobject_cast(sender())); + if (!reply) return; + LOG<<"Location:"<header(QNetworkRequest::LocationHeader) + .toString(); + LOG<<"Content-Type:"<header(QNetworkRequest::ContentTypeHeader) + .toString(); + LOG<<"Content-Disposition:"<rawHeader("Content-Disposition"); + LOG<<"Status:"<error()); + LOG<<"URL:"<url().toString(); + LOG<<"File:"<url().toLocalFile(); + LOG<<"Path:"<url().path(); + metaDataChanged(reply); + } + void sslErrors(const QList & errors) { + LOG; + QNetworkReply* reply(qobject_cast(sender())); + for (QList::const_iterator err(errors.begin()); + err!=errors.end(); ++err) { + LOG<<"SSL-Error: "<<(int)err->error()<<": "<errorString(); + LOG<<"Certificate Issuer: " + <<"O="<certificate().issuerInfo(QSslCertificate::Organization) + <<"CN="<certificate().issuerInfo(QSslCertificate::CommonName) + <<"L="<certificate().issuerInfo(QSslCertificate::LocalityName) + <<"OU="<certificate().issuerInfo(QSslCertificate::OrganizationalUnitName) + <<"C="<certificate().issuerInfo(QSslCertificate::CountryName) + <<"ST="<certificate().issuerInfo(QSslCertificate::StateOrProvinceName); + LOG<<"Certificate Subject: " + <<"O="<certificate().subjectInfo(QSslCertificate::Organization) + <<"CN="<certificate().subjectInfo(QSslCertificate::CommonName) + <<"L="<certificate().subjectInfo(QSslCertificate::LocalityName) + <<"OU="<certificate().subjectInfo(QSslCertificate::OrganizationalUnitName) + <<"C="<certificate().subjectInfo(QSslCertificate::CountryName) + <<"ST="<certificate().subjectInfo(QSslCertificate::StateOrProvinceName); + LOG<<"Certificate:\n"<certificate().toPem(); + _downloads[reply].error += + tr("

SSL Error

" + "
URL:
%1
" + "
Error Code:
%3
" + "
Error Details:
%2
" + "" + "" + "" + "" + "" + "" + "" + "" + "
Certificate Issuer
Organization:%4
Common Name:%5
Location:%6
Organizational Unit:%7
Country:%8
State or Provive:%9
" + "" + "" + "" + "" + "" + "" + "" + "" + "
Certificate Subject
Organization:%10
Common Name:%11
Location:%12
Organizational Unit:%13
Country:%14
State or Provive:%15
") + .arg(reply->url().toString()) + .arg(err->errorString()) + .arg(err->error()) + .arg(err->certificate().issuerInfo(QSslCertificate::Organization)) + .arg(err->certificate().issuerInfo(QSslCertificate::CommonName)) + .arg(err->certificate().issuerInfo(QSslCertificate::LocalityName)) + .arg(err->certificate().issuerInfo(QSslCertificate::OrganizationalUnitName)) + .arg(err->certificate().issuerInfo(QSslCertificate::CountryName)) + .arg(err->certificate().issuerInfo(QSslCertificate::StateOrProvinceName)) + .arg(err->certificate().subjectInfo(QSslCertificate::Organization)) + .arg(err->certificate().subjectInfo(QSslCertificate::CommonName)) + .arg(err->certificate().subjectInfo(QSslCertificate::LocalityName)) + .arg(err->certificate().subjectInfo(QSslCertificate::OrganizationalUnitName)) + .arg(err->certificate().subjectInfo(QSslCertificate::CountryName)) + .arg(err->certificate().subjectInfo(QSslCertificate::StateOrProvinceName)); + } + } + + void uploadProgress(qint64 bytesSent, qint64 bytesTotal) { + //LOG<(sender())].progress.first + = bytesSent; + _downloads[qobject_cast(sender())].progress.second + = bytesTotal; + calcProgress(); + } + + private: + + typedef std::pair Progress; + struct Download { + Progress progress; + QString error; + }; + typedef std::map Downloads; + + Downloads _downloads; +}; diff --git a/trunk/src/editbookmarks.hxx b/trunk/src/editbookmarks.hxx new file mode 100644 index 0000000..34f631e --- /dev/null +++ b/trunk/src/editbookmarks.hxx @@ -0,0 +1,60 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __EDITBOOKMARKS_HXX__ +#define __EDITBOOKMARKS_HXX__ + +#include +#include +#include +#include + +#include + +class EditBookmarks: public QDialog, protected Ui::EditBookmarks { + Q_OBJECT; + public: + EditBookmarks(QComboBox* url, QWidget* p=0): QDialog(p), _url(url) { + setupUi(this); + reject(); + } + virtual void accept() { + QStringList urls; + for (int i(0); i<_bookmarks->count(); ++i) + urls<<_bookmarks->item(i)->text(); + QString current(_url->currentText()); + _url->clear(); + _url->addItems(urls); + _url->lineEdit()->setText(current); + QDialog::accept(); + } + virtual void reject() { + QStringList urls; + for (int i(0); i<_url->count(); ++i) + urls<<_url->itemText(i); + _bookmarks->clear(); + _bookmarks->addItems(urls); + QDialog::reject(); + } + protected Q_SLOTS: + void on__remove_clicked(bool) { + QList items(_bookmarks->selectedItems()); + qDebug()<<"Delete "<::iterator it(items.begin()); + it!=items.end(); ++it) { + qDebug()<<"Delete Item: "<<(*it)->text(); + delete _bookmarks->takeItem(_bookmarks->row(*it)); + } + } + void on__add_clicked(bool) { + _bookmarks->addItem(_url->currentText()); + } + private: + QComboBox* _url; +}; + +#endif diff --git a/trunk/src/editbookmarks.ui b/trunk/src/editbookmarks.ui new file mode 100644 index 0000000..e7e6f7f --- /dev/null +++ b/trunk/src/editbookmarks.ui @@ -0,0 +1,130 @@ + + + EditBookmarks + + + + 0 + 0 + 514 + 584 + + + + Edit Bookmarks + + + + + + + + + + + + + :/icons/addbookmark:/icons/addbookmark + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + - + + + + :/icons/close:/icons/close + + + + + + + + + true + + + Use Drag/Drop to move, double-click to edit. + + + true + + + QAbstractItemView::InternalMove + + + true + + + QAbstractItemView::ExtendedSelection + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + true + + + + + + + + + + + buttonBox + accepted() + EditBookmarks + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + EditBookmarks + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/trunk/src/errorlog.hxx b/trunk/src/errorlog.hxx new file mode 100644 index 0000000..fee9587 --- /dev/null +++ b/trunk/src/errorlog.hxx @@ -0,0 +1,38 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef ERRORLOG_HXX +#define ERRORLOG_HXX + +#include +#include + +class ErrorLog: public QDialog, protected Ui::ErrorLog { + public: + Q_OBJECT; + Q_SIGNALS: + void reset(); + public: + ErrorLog(QWidget* p): QDialog(p) { + setupUi(this); + } + void append(QString text) { + _errors->append(text); + } + protected Q_SLOTS: + void on__buttons_clicked(QAbstractButton* button) { + switch (_buttons->buttonRole(button)) { + case QDialogButtonBox::ResetRole: { + _errors->clear(); + reset(); + } break; + default:; + } + } +}; + +#endif diff --git a/trunk/src/errorlog.ui b/trunk/src/errorlog.ui new file mode 100644 index 0000000..83ffd46 --- /dev/null +++ b/trunk/src/errorlog.ui @@ -0,0 +1,67 @@ + + + ErrorLog + + + + 0 + 0 + 534 + 353 + + + + Error Log + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close|QDialogButtonBox::Reset + + + + + + + + + _buttons + accepted() + ErrorLog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + _buttons + rejected() + ErrorLog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/trunk/src/languages.qrc.in b/trunk/src/languages.qrc.in new file mode 100644 index 0000000..57f0a61 --- /dev/null +++ b/trunk/src/languages.qrc.in @@ -0,0 +1,8 @@ + + + @PACKAGENAME@_de.qm + @PACKAGENAME@_fr.qm + @PACKAGENAME@_it.qm + @PACKAGENAME@_en.qm + + diff --git a/trunk/src/logincertificate.hxx b/trunk/src/logincertificate.hxx new file mode 100644 index 0000000..96de65e --- /dev/null +++ b/trunk/src/logincertificate.hxx @@ -0,0 +1,32 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef LOGINCERTIFICATE_HXX +#define LOGINCERTIFICATE_HXX + +#include + +class LoginCertificate: public QDialog, protected Ui::LoginCertificate { + public: + LoginCertificate(QWidget* p): QDialog(p) { + setupUi(this); + setup(); + } + LoginCertificate& setup() { + QSslCertificate c(QSslConfiguration::defaultConfiguration() + .localCertificate()); + _cert->certificate(c); + return *this; + } + protected: + virtual void showEvent(QShowEvent *event) { + setup(); + QDialog::showEvent(event); + } +}; + +#endif diff --git a/trunk/src/logincertificate.ui b/trunk/src/logincertificate.ui new file mode 100644 index 0000000..68778d0 --- /dev/null +++ b/trunk/src/logincertificate.ui @@ -0,0 +1,85 @@ + + + LoginCertificate + + + + 0 + 0 + 726 + 471 + + + + User Login Certificate + + + + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + true + + + + + + + + 0 + 0 + + + + + + + + + Certificate + QWidget +
certificate.hxx
+ 1 +
+
+ + + + buttonBox + accepted() + LoginCertificate + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + LoginCertificate + reject() + + + 316 + 260 + + + 286 + 274 + + + + +
diff --git a/trunk/src/main.cxx b/trunk/src/main.cxx new file mode 100644 index 0000000..80fc336 --- /dev/null +++ b/trunk/src/main.cxx @@ -0,0 +1,415 @@ +/*! @file + + @id $Id: main.cxx 15 2010-06-03 14:17:27Z marc $ + + Build für Windoof: + QMAKESPEC=$(pwd)/mkspecs/mingw-g++ qmake-qt4 && make release +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include + +const QByteArray SWISSSIGN_EV_GOLD_CA_2009_G2 + ("-----BEGIN CERTIFICATE-----\n" + "MIIGvzCCBaegAwIBAgIQAPI39KUS4aGJo+mkR4+YuTANBgkqhkiG9w0BAQUFADBN\n" + "MQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFHMScwJQYDVQQDEx5T\n" + "d2lzc1NpZ24gRVYgR29sZCBDQSAyMDA5IC0gRzIwHhcNMTAwNDI5MDgyMzA2WhcN\n" + "MTIwNDI5MDgyMzA2WjCCASQxCzAJBgNVBAYTAkNIMQ0wCwYDVQQIEwRCZXJuMQ0w\n" + "CwYDVQQHEwRCZXJuMSAwHgYDVQQKExdEaWUgU2Nod2VpemVyaXNjaGUgUG9zdDEa\n" + "MBgGA1UEAxMRaWRwLnN3aXNzc2lnbi5uZXQxJzAlBgkqhkiG9w0BCQEWGG9wZXJh\n" + "dGlvbnNAc3dpc3NzaWduLmNvbTEbMBkGA1UECRMSVmlrdG9yaWFzdHJhc3NlIDIx\n" + "MQ0wCwYDVQQREwQzMDMwMRUwEwYLKwYBBAGCNzwCAQITBEJlcm4xEzARBgsrBgEE\n" + "AYI3PAIBAxMCQ0gxGzAZBgNVBA8TElYxLjAsIENsYXVzZSA1LihiKTEbMBkGA1UE\n" + "BRMSQ0gtMDM1LjguMDE3LjIxNy03MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\n" + "CgKCAQEA6vtopNyjugIQb+OwsjcAN60Uo1ClcnFa+0Eme5MOCQg8khGwux42aRTL\n" + "kUfcTrOye4J8ThE5/9Qm32hagA+mPQRWAkQqZKDJCPU7LMEQKzClZs4LYA04Vv32\n" + "WFbeSVh3tK6j92tQ8mbtUep1S/dye9j72P1WQxdd2uJrwzQgA3ftEoVJ6lOMEcBS\n" + "cR4lfCdFbQMSwfRI3g2BKPfuYZ+Vp90rF/0Si2kNd1CrBYdLhoZFvPFBapdcK9g/\n" + "QzBXfoLQb7MZkR3o8HtUOzcmEl7fhvO/8PEh5hJgn/hnLlFW0TIrqd/ag+n4U17V\n" + "isDHS13eaSPE7qq1xhfeTda2QBk9/wIDAQABo4ICwDCCArwwHAYDVR0RBBUwE4IR\n" + "aWRwLnN3aXNzc2lnbi5uZXQwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsG\n" + "AQUFBwMBBggrBgEFBQcDAjAdBgNVHQ4EFgQUs/yd7N1TLOjtmtcB+S16SzcX5W8w\n" + "HwYDVR0jBBgwFoAUiHRGbcd8tfpycRnevydeDWjg9ycwgf8GA1UdHwSB9zCB9DBH\n" + "oEWgQ4ZBaHR0cDovL2NybC5zd2lzc3NpZ24ubmV0Lzg4NzQ0NjZEQzc3Q0I1RkE3\n" + "MjcxMTlERUJGMjc1RTBENjhFMEY3MjcwgaiggaWggaKGgZ9sZGFwOi8vZGlyZWN0\n" + "b3J5LnN3aXNzc2lnbi5uZXQvQ049ODg3NDQ2NkRDNzdDQjVGQTcyNzExOURFQkYy\n" + "NzVFMEQ2OEUwRjcyNyUyQ089U3dpc3NTaWduJTJDQz1DSD9jZXJ0aWZpY2F0ZVJl\n" + "dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9p\n" + "bnQwYgYDVR0gBFswWTBXBglghXQBWQECAQEwSjBIBggrBgEFBQcCARY8aHR0cDov\n" + "L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS9Td2lzc1NpZ24tR29sZC1DUC1DUFMt\n" + "UjQucGRmMIHGBggrBgEFBQcBAQSBuTCBtjBkBggrBgEFBQcwAoZYaHR0cDovL3N3\n" + "aXNzc2lnbi5uZXQvY2dpLWJpbi9hdXRob3JpdHkvZG93bmxvYWQvODg3NDQ2NkRD\n" + "NzdDQjVGQTcyNzExOURFQkYyNzVFMEQ2OEUwRjcyNzBOBggrBgEFBQcwAYZCaHR0\n" + "cDovL29jc3Auc3dpc3NzaWduLm5ldC84ODc0NDY2REM3N0NCNUZBNzI3MTE5REVC\n" + "RjI3NUUwRDY4RTBGNzI3MA0GCSqGSIb3DQEBBQUAA4IBAQCNpT2u/s/IKqXrWmHX\n" + "TTVbW2Kh8xul9jLole+hWXtx8Ln4E8oW+bV25HGUjt8QrC1wXGABRCijgIjQ8PtR\n" + "CQrcwJCmC9ShcckP7KXiaETaT67TUB8qIQ/pf3akNeWKcdFGcD6CDYM7umuu1Q1X\n" + "326mufNviiqlU0uoK1LJQHhme3HMHarYdzkuIeShvIYHUYP3JnorXaizcCqjBhdF\n" + "rj4QcCZx8hKE6gmNL+dJkBM/5CSqByy15tMs2qa0iMdwkPUiNxlL0VuZkwzooVQx\n" + "1eKQwsSx3807MkQMKs+4v1LexkY+5/xU9dvtyRysjuSEWS8yCx3+E3fOOVAIX5jD\n" + "0uSX\n" + "-----END CERTIFICATE-----"); +const QByteArray SWISSSIGN_SERVER_GOLD_CA_2008_G2 + ("-----BEGIN CERTIFICATE-----\n" + "MIIGXjCCBEagAwIBAgIIXsz6acAzJ+8wDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UE\n" + "BhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEfMB0GA1UEAxMWU3dpc3NTaWdu\n" + "IEdvbGQgQ0EgLSBHMjAeFw0wODA3MDcxNzA2MDNaFw0yMzA3MDcxNzA2MDNaMFEx\n" + "CzAJBgNVBAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxKzApBgNVBAMTIlN3\n" + "aXNzU2lnbiBTZXJ2ZXIgR29sZCBDQSAyMDA4IC0gRzIwggEiMA0GCSqGSIb3DQEB\n" + "AQUAA4IBDwAwggEKAoIBAQDNMradteMVxVvR6t+pOooZejP8r1lY85el0PB7C118\n" + "iKYv1Apfq3mZ0wt7ZdpCyd2DzKE338Ki04Qn9IidLCkKDLOSNtlQlw4Yvg12W2bU\n" + "/WVaVAeUN0Tn3VeCkdWbSRIbvTGU63X9dp5lbgEm8XyjpLAK3SKABn7dWivfWuBo\n" + "oUCy64hJ+fSWljJmqG772Qmc9p3GxfN7/L227JH4SMaOwVcJd0rkvMTi1bWa1XFp\n" + "Q3lIlxW91JBEKqBKsru1h7wOq81VwIa3a2pdFgWY8F45G7M2Om9bLL5TiJ3Emkbl\n" + "gKIFRX+GztmnQdKdY8c8rpknh/jWr6YiqYm+jV6+crGhAgMBAAGjggJEMIICQDAO\n" + "BgNVHQ8BAf8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUl3be\n" + "CjTlEJpAxOvYnVpTeyHMRz4wHwYDVR0jBBgwFoAUWyV7lqRlUX64OfPAeGZe6Drn\n" + "8O4wgf8GA1UdHwSB9zCB9DBHoEWgQ4ZBaHR0cDovL2NybC5zd2lzc3NpZ24ubmV0\n" + "LzVCMjU3Qjk2QTQ2NTUxN0VCODM5RjNDMDc4NjY1RUU4M0FFN0YwRUUwgaiggaWg\n" + "gaKGgZ9sZGFwOi8vZGlyZWN0b3J5LnN3aXNzc2lnbi5uZXQvQ049NUIyNTdCOTZB\n" + "NDY1NTE3RUI4MzlGM0MwNzg2NjVFRTgzQUU3RjBFRSUyQ089U3dpc3NTaWduJTJD\n" + "Qz1DSD9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9\n" + "Y1JMRGlzdHJpYnV0aW9uUG9pbnQwYgYDVR0gBFswWTBXBglghXQBWQECAQMwSjBI\n" + "BggrBgEFBQcCARY8aHR0cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS9Td2lz\n" + "c1NpZ24tR29sZC1DUC1DUFMtUjMucGRmMHQGCCsGAQUFBwEBBGgwZjBkBggrBgEF\n" + "BQcwAoZYaHR0cDovL3N3aXNzc2lnbi5uZXQvY2dpLWJpbi9hdXRob3JpdHkvZG93\n" + "bmxvYWQvNUIyNTdCOTZBNDY1NTE3RUI4MzlGM0MwNzg2NjVFRTgzQUU3RjBFRTAN\n" + "BgkqhkiG9w0BAQUFAAOCAgEAPuJBwXDS9McQwt5Gp0xHGpeiTCr4qmBwIKM33x8J\n" + "U3xjHQ/ynptuwkI5sqQsUcfuHe6uipqA3lIJoBM8u6M65jg/tZTsLoExFE+DtOf5\n" + "pHDvUXMFwhsjv9AbkhL6X1LBZAZEMkOpnuRdR2FD0wy1Kh4Hbel9LwmmaYJdfH5a\n" + "tkKVlHsN0b6stJ6zEX0dIgi/7M4FYaAZgoxBS1OijPxFCSl0sFT6UYf0GYXcr6M+\n" + "URLc1NBofDHo/lIrTygFNfk7PIvOrBoREiOqNtE5RnuGyJa+tt2y2P3QyGBE6Ppi\n" + "e/VCCMJagmH8yel0WhuyDUJE35bpNEL34w+pJKr7ApQ1sT0yh607jGEbl53Y+vFC\n" + "Uuwo39MMqzx26notCbj0izccf+nDuW05jFQWmRc6OCI2L9Yw34r+1PQTmQe1TKx6\n" + "FqnW3WP66ZwbXfGXwwfqmjcK+42695kQYSLsDfNaxxkCBTkt+MauYgXWiOfzAnYz\n" + "R2nMQ/LHTDsTpTMkJ+eA/bHcrUJVkBHNWDiolD5C03oSFY0fPRlSnfXHRpgcOkq8\n" + "yI/OYArKo4tvQpAYPnG7ELI/j2grgRx6xutuVMYVmzhr/JnqFto5Eg32hKjA5H5+\n" + "c4Ssw1ZaGGMMb9aMFlnJi4SYoXB8MfL+SU/u1K54dM1mV/oFK6e2dtGgaYDdV86v\n" + "0qo=\n" + "-----END CERTIFICATE-----"); +const QByteArray SWISSSIGN_GOLD_CA_G2 + ("-----BEGIN CERTIFICATE-----\n" + "MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJ\n" + "BgNVBAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3\n" + "aXNzU2lnbiBHb2xkIENBIC0gRzIwHhcNMDYxMDI1MDgzMDM1WhcNMzYxMDI1\n" + "MDgzMDM1WjBFMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFH\n" + "MR8wHQYDVQQDExZTd2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG\n" + "9w0BAQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJC\n" + "Eyq8ZVeCQD5XJM1QiyUqt2/876LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9\n" + "lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5CjCA12UNNhPqE21Is8w4ndwtr\n" + "vxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpgvd21mWRT\n" + "uKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbL\n" + "tK/tREDFylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpK\n" + "xVKJ+STnnXepgv9VHKVxaSvRAiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdV\n" + "xVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuendjIj3o02yMszYF9rNt85m\n" + "ndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkOpeUD\n" + "DniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59\n" + "je883WX0XaxR7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxM\n" + "gI93e2CaHt+28kgeDrpOVG2Y4OGiGqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOB\n" + "rDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E\n" + "FgQUWyV7lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64\n" + "OfPAeGZe6Drn8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEF\n" + "BQcCARYgaHR0cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZI\n" + "hvcNAQEFBQADggIBACe645R88a7A3hfm5djV9VSwg/S7zV4Fe0+fdWavPOhW\n" + "fvxyeDgD2StiGwC5+OlgzczOUYrHUDFu4Up+GC9pWbY9ZIEr44OE5iKHjn3g\n" + "7gKZYbge9LgriBIWhMIxkziWMaa5O1M/wySTVltpkuzFwbs4AOPsF6m43Md8\n" + "AYOfMke6UiI0HTJ6CVanfCU2qT1L2sCCbwq7EsiHSycR+R4tx5M/nttfJmtS\n" + "2S6K8RTGRI0Vqbe/vd6mGu6uLftIdxf+u+yvGPUqUfA5hJeVbG4bwyvEdGB5\n" + "JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxpmo/a77KwPJ+HbBIrZXAVUjEa\n" + "JM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCChdiDyyJkvC24JdVU\n" + "orgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid392qgQmwLOM7X\n" + "dVAyksLfKzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEppLd6leNcG\n" + "2mqeSz53OiATIgHQv2ieY2BrNU0LbbqhPcCT4H8js1WtciVORvnSFu+wZMEB\n" + "nunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6LqjviOvrv1vA+ACOzB2+htt\n" + "Qc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ\n" + "-----END CERTIFICATE-----\n"); +const QByteArray SWISSSIGN_PLATINUM_CA_G2 + ("-----BEGIN CERTIFICATE-----\n" + "MIIFwTCCA6mgAwIBAgIITrIAZwwDXU8wDQYJKoZIhvcNAQEFBQAwSTELMAkG\n" + "A1UEBhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEjMCEGA1UEAxMaU3dp\n" + "c3NTaWduIFBsYXRpbnVtIENBIC0gRzIwHhcNMDYxMDI1MDgzNjAwWhcNMzYx\n" + "MDI1MDgzNjAwWjBJMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWdu\n" + "IEFHMSMwIQYDVQQDExpTd2lzc1NpZ24gUGxhdGludW0gQ0EgLSBHMjCCAiIw\n" + "DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMrfogLi2vj8Bxax3mCq3pZc\n" + "ZB/HL37PZ/pEQtZ2Y5Wu669yIIpFR4ZieIbWIDkm9K6j/SPnpZy1IiEZtzeT\n" + "IsBQnIJ71NUERFzLtMKfkr4k2HtnIuJpX+UFeNSH2XFwMyVTtIc7KZAoNppV\n" + "RDBopIOXfw0enHb/FZ1glwCNioUD7IC+6ixuEFGSzH7VozPY1kneWCqv9hbr\n" + "S3uQMpe5up1Y8fhXSQQeol0GcN1x2/ndi5objM89o03Oy3z2u5yg+gnOI2Ky\n" + "6Q0f4nIoj5+saCB9bzuohTEJfwvH6GXp43gOCWcwizSC+13gzJ2BbWLuCB4E\n" + "LE6b7P6pT1/9aXjvCR+htL/68++QHkwFix7qepF6w9fl+zC8bBsQWJj3Gl/Q\n" + "KTIDE0ZNYWqFTFJ0LwYfexHihJfGmfNtf9dng34TaNhxKFrYzt3oEBSa/m0j\n" + "h26OWnA81Y0JAKeqvLAxN23IhBQeW71FYyBrS3SMvds6DsHPWhaPpZjydomy\n" + "ExI7C3d3rLvlPClKknLKYRorXkzig3R3+jVIeoVNjZpTxN94ypeRSCtFKwH3\n" + "HBqi7Ri6Cr2D+m+8jVeTO9TUps4e8aCxzqv9KyiaTxvXw3LbpMS/XUz13XuW\n" + "ae5ogObnmLo2t/5u7Su9IPhlGdpVCX4l3P5hYnL5fhgC72O00Puv5TtjjGeP\n" + "AgMBAAGjgawwgakwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8w\n" + "HQYDVR0OBBYEFFCvzAeHFUdvOMW0ZdHelarp35zMMB8GA1UdIwQYMBaAFFCv\n" + "zAeHFUdvOMW0ZdHelarp35zMMEYGA1UdIAQ/MD0wOwYJYIV0AVkBAQEBMC4w\n" + "LAYIKwYBBQUHAgEWIGh0dHA6Ly9yZXBvc2l0b3J5LnN3aXNzc2lnbi5jb20v\n" + "MA0GCSqGSIb3DQEBBQUAA4ICAQAIhab1Fgz8RBrBY+D5VUYI/HAcQiiWjrfF\n" + "wUF1TglxeeVtlspLpYhg0DB0uMoI3LQwnkAHFmtllXcBrqS3NQuB2nEVqXQX\n" + "OHtYyvkv+8Bldo1bAbl93oI9ZLi+FHSjClTTLJUYFzX1UWs/j6KWYTl4a0vl\n" + "pqD4U99REJNi54Av4tHgvI42Rncz7Lj7jposiU0xEQ8mngS7twSNC/K5/Fqd\n" + "Oxa3L8iYq/6KUFkuozv8KV2LwUvJ4ooTHbG/u0IdUt1O2BReEMYxB+9xJ/cb\n" + "OQncguqLs5WGXv312l0xpuAxtpTmREl0xRbl9x8DYSjFyMsSoEJL+WuICI20\n" + "MhjzdZ/EfwBPBZWcoxcCw7NTm6ogOSkrZvqdr16zktK1puEa+S1BaYEUtLS1\n" + "7Yk9zvupnTVCRLEcFHOBzyoBNZox1S2PbYTfgE1X4z/FhHXaicYwu+uPyyII\n" + "oK6q8QNsOktNCaUOcsZWayFCTiMlFGiudgp8DAdwZPmaL/YFOSbGDI8Zf0Ne\n" + "bvRbFS/bYV3mZy8/CJT5YLSYMdp08YSTcU1f+2BY0fvEwW2JorsgH51xkcsy\n" + "mxM9Pn2SUjWskpSi0xjCfMfqr3YFFt1nJ8J+HAciIfNAChs0B0QTwoRqjt8Z\n" + "Wr9/6x3iGjjRXK9HkmuAtTClyY3YqzGBH9/CZjfTk6mFhnll0g==\n" + "-----END CERTIFICATE-----\n"); +const QByteArray SWISSSIGN_SILVER_CA_G2 + ("-----BEGIN CERTIFICATE-----\n" + "MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkG\n" + "A1UEBhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dp\n" + "c3NTaWduIFNpbHZlciBDQSAtIEcyMB4XDTA2MTAyNTA4MzI0NloXDTM2MTAy\n" + "NTA4MzI0NlowRzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBB\n" + "RzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkq\n" + "hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dO\n" + "cbpLj6VzHVxumK4DV644N0MvFz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gRE\n" + "pzn5/ASLHvGiTSf5YXu6t+WiE7brYT7QbNHm+/pe7R20nqA1W6GSy/BJkv6F\n" + "CgU+5tkL4k+73JU3/JHpMjUi0R86TieFnbAVlDLaYQ1HTWBCrpJH6INaUFjp\n" + "iou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH6ATK72oxh9TAtvmUcXtnZLi2\n" + "kUpCe2UuMGoM9ZDulebyzYLs2aFK7PayS+VFheZteJMELpyCbTapxDFkH4aD\n" + "Cyr0NQp4yVXPQbBH6TCfmb5hqAaEuSh6XzjZG6k4sIN/c8HDO0gqgg8hm7jM\n" + "qDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5FZGkECwJMoBgs5PAKrYY\n" + "C51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRHHTBsROop\n" + "N4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTfjNFu\n" + "sB3hB48IHpmccelM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb6\n" + "5i/4z3GcRm25xBWNOHkDRUjvxF3XCO6HOSKGsg0PWEP3calILv3q1h8CAwEA\n" + "AaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNV\n" + "HQ4EFgQUF6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRB\n" + "tjpbO8tFnb0cwpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggr\n" + "BgEFBQcCARYgaHR0cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJ\n" + "KoZIhvcNAQEFBQADggIBAHPGgeAn0i0P4JUw4ppBf1AsX19iYamGamkYDHRJ\n" + "1l2E6kFSGG9YrVBWIGrGvShpWJHckRE1qTodvBqlYJ7YH39FkWnZfrt4csEG\n" + "DyrOj4VwYaygzQu4OSlWhDJOhrs9xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcS\n" + "H9/L3XWgwF15kIwb4FDm3jH+mHtwX6WQ2K34ArZv02DdQEsixT2tOnqfGhpH\n" + "kXkzuoLcMmkDlm4fS/Bx/uNncqCxv1yL5PqZIseEuRuNI5c/7SXgz2W79WEE\n" + "790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFaDGi8aRl5xB9+lwW/xekkUV7U\n" + "1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2Xem1ZqSqPe97Dh4kQ\n" + "mUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQRdAtq/gsD/KNV\n" + "V4n+SsuuWxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29\n" + "MC/HpeZBoNquBYeaoKRlbEwJDIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm\n" + "0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ubDgEj8Z+7fNzcbBGXJbLy\n" + "tGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u\n" + "-----END CERTIFICATE-----\n"); + +void notrace(QtMsgType, const char*) { + return; +} + +extern QWEBKIT_EXPORT void qt_drt_overwritePluginDirectories(); + +int main(int argv, char** argc) try { +// qInstallMsgHandler(notrace); +// std::cout.rdbuf((new std::stringstream)->rdbuf()); +// std::cerr.rdbuf((new std::stringstream)->rdbuf()); +// std::clog.rdbuf((new std::stringstream)->rdbuf()); + //............................................................................ + QSslConfiguration sslConfig(QSslConfiguration::defaultConfiguration()); + sslConfig.setProtocol(QSsl::AnyProtocol); + sslConfig.setPeerVerifyMode(QSslSocket::AutoVerifyPeer); + QList certs(sslConfig.caCertificates()); + for (QList::iterator cert(certs.begin()); + cert!=certs.end(); ++cert) { + qDebug()<<"CERTIFICATE: " + <issuerInfo(QSslCertificate::Organization) + <issuerInfo(QSslCertificate::CommonName) + <subjectInfo(QSslCertificate::Organization) + <subjectInfo(QSslCertificate::CommonName); + } + // certs.push_back(QSslCertificate(SWISSSIGN_EV_GOLD_CA_2009_G2)); + // certs.push_back(QSslCertificate(SWISSSIGN_GOLD_CA_G2)); + // //certs.push_back(QSslCertificate(SWISSSIGN_SERVER_GOLD_CA_2008_G2)); + // certs.push_back(QSslCertificate(SWISSSIGN_SILVER_CA_G2)); + // certs.push_back(QSslCertificate(SWISSSIGN_PLATINUM_CA_G2)); + // sslConfig.setCaCertificates(certs); + //............................................................................ + QStringList l(QProcess::systemEnvironment()); + QMap env; + for (QStringList::iterator it(l.begin()); it!=l.end(); ++it) { + QStringList v(it->split('=')); + QString key(*v.begin()); + QString value((v.pop_front(), v.join("="))); + env.insert(key, value); + qDebug()<<"env:"<setAttribute + (QWebSettings::PluginsEnabled, true); + bool silent(false); + bool quirks(false); + bool login(false); + Settings::MimeTypes mimetypes; + QStringList args(app.arguments()); + std::auto_ptr settings + (std::auto_ptr(new QSettings("SwissSign", "SwissSurfer"))); + for (QStringList::iterator it(args.begin()); ++it!=args.end();) + if (*it=="-h" || *it=="--help" || *it=="-help" || *it=="/?") { + std::cout< ...]\n" + "Options:\n" + " -h, --help show this help text\n" + " -k, --kiosk no url bar\n" + " if you sepcify -k and -s, -k must be first\n" + " -q, --quirks alternate user interface\n" + " -n, --no-settings don't load or store any settings\n" + " --login ask for smartcard password at startup\n" + " -l, --lib path to file libengine_act.so\n" + " -s, --settings \n" + " load settings from \n" + " if you sepcify -k and -s, -k must be first\n" + " -c, --cert load local client certificate from \n" + " -y, --key load local certificate key from \n" + " -m, --mime \n" + " start for mimetype \n" + " optional full URL\n" + "Environment:\n" + " LANGUAGE \"de\", \"en\", ... (actual: %5)\n" + " PROXY_TYPE \"http\" or \"socks\" or \"\" (actual: %2)\n" + " PROXY_PORT proxy port number (actual: %3)\n" + " PROXY_HOST proxy host name (actual: %4)\n" + " SWISSSURFER_USERAGENT fake user agent (actual: %6)\n") + .arg(QFileInfo(argc[0]).fileName()) + .arg(env["PROXY_TYPE"]).arg(env["PROXY_PORT"]).arg(env["PROXY_HOST"]) + .arg(env["LANGUAGE"]).arg(env["SWISSSURFER_USERAGENT"]) + .toStdString() + < + (new QSettings(*it, QSettings::IniFormat)); + } else if ((*it=="-c" || *it=="--cert") && ++it!=args.end()) { + QFile file(*it); + file.open(QIODevice::ReadOnly); + QSslCertificate c(&file); + if (c.isNull()) { + std::cerr<' > @PACKAGENAME@_$@.ts + echo '' >> @PACKAGENAME@_$@.ts + echo '' >> @PACKAGENAME@_$@.ts + xqilla merge-translation.xquery >> @PACKAGENAME@_$@.ts + echo '' >> @PACKAGENAME@_$@.ts + rm translation.old translation.new + +print: + @echo "LANGS=${LANGS}" + @echo "ALL_SRC=${ALL_SRC}" + @echo "QMAKE=${QMAKE}" + @echo "QMAKE_OPTIONS=${QMAKE_OPTIONS}" + @echo "QMAKE_MAKEFILE=${QMAKE_MAKEFILE}" + @echo "QMAKE_TARGET=${QMAKE_TARGET}" + @echo "TARGETS=${TARGETS}" + + +@PACKAGENAME@_%.qm: ${top_srcdir}/src/@PACKAGENAME@_%.ts + ${LRELEASE} $< -qm $@ + +%.xpm: resources/%.png + convert $< $@ || cp $< $@ + +%.ts: ${ALL_SRC} + ${LUPDATE} @LUPDATE_ARGS@ ${QMAKE_PROJECT} + +${QMAKE_MAKEFILE}: ${QMAKE_PROJECT} ${ALL_SRC} + ${QMAKE} -o $@ $< + +${QMAKE_TARGET}: ${QMAKE_MAKEFILE} ${ALL_SRC} $(LANGS:%=@PACKAGENAME@_%.qm) + make -f ${QMAKE_MAKEFILE} + +clean-local: + -rm -r ${QMAKE_TARGET}.app + +CLEANFILES = ${TARGETS} ${TARGETS:%=%.exe} $(LANGS:%=@PACKAGENAME@_%.qm) \ + *.o *.obj qrc_*.cpp ui_*.h moc_*.cpp \ + ${QMAKE_TARGET} \ + @PACKAGENAME@.xpm +MAINTAINERCLEANFILES = makefile.in ${QMAKE_MAKEFILE} diff --git a/trunk/src/pdfdisplay.hpp b/trunk/src/pdfdisplay.hpp new file mode 100644 index 0000000..d3c5b4b --- /dev/null +++ b/trunk/src/pdfdisplay.hpp @@ -0,0 +1,134 @@ +#ifndef __PDFDISPLAY_HPP__ +#define __PDFDISPLAY_HPP__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include + +class PDFDisplay : public QWidget // picture display widget +{ +public: + PDFDisplay( Poppler::Document *d, bool arthur ) +{ + showTextRects = false; + doc = d; + m_currentPage = 0; + if (arthur) + { + backendString = "Arthur"; + doc->setRenderBackend(Poppler::Document::ArthurBackend); + } + else + { + backendString = "Splash"; + doc->setRenderBackend(Poppler::Document::SplashBackend); + } + doc->setRenderHint(Poppler::Document::Antialiasing, true); + doc->setRenderHint(Poppler::Document::TextAntialiasing, true); +} + ~PDFDisplay() +{ + qDeleteAll(textRects); + delete doc; +} + + void setShowTextRects(bool show) +{ + showTextRects = show; +} + void display() +{ + if (doc) { + Poppler::Page *page = doc->page(m_currentPage); + if (page) { + qDebug() << "Displaying page using" << backendString << "backend: " << m_currentPage; + QTime t = QTime::currentTime(); + image = page->renderToImage(); + qDebug() << "Rendering took" << t.msecsTo(QTime::currentTime()) << "msecs"; + qDeleteAll(textRects); + if (showTextRects) + { + QPainter painter(&image); + painter.setPen(Qt::red); + textRects = page->textList(); + for (auto tb(textRects.begin()); tb!=textRects.end(); ++tb) + painter.drawRect((*tb)->boundingBox()); + } + else textRects.clear(); + update(); + delete page; + } + } else { + qWarning() << "doc not loaded"; + } +} + +protected: + void paintEvent( QPaintEvent * ) +{ + QPainter paint( this ); // paint widget + if (!image.isNull()) { + paint.drawImage(0, 0, image); + } else { + qWarning() << "null image"; + } +} + void keyPressEvent( QKeyEvent *e ) +{ + if (e->key() == Qt::Key_Down) + { + if (m_currentPage + 1 < doc->numPages()) + { + m_currentPage++; + display(); + } + } + else if (e->key() == Qt::Key_Up) + { + if (m_currentPage > 0) + { + m_currentPage--; + display(); + } + } + else if (e->key() == Qt::Key_Q) + { + exit(0); + } +} + void mousePressEvent( QMouseEvent *e ) +{ + int i = 0; + for (auto tb(textRects.begin()); tb!=textRects.end(); ++tb) + { + if ((*tb)->boundingBox().contains(e->pos())) + { + QString tt = QString("Text: \"%1\"\nIndex in text list: %2").arg((*tb)->text()).arg(i); + QToolTip::showText(e->globalPos(), tt, this); + break; + } + ++i; + } +} + +private: + int m_currentPage; + QImage image; + Poppler::Document *doc; + QString backendString; + bool showTextRects; + QList textRects; +}; + + +#endif diff --git a/trunk/src/pinentry.hxx b/trunk/src/pinentry.hxx new file mode 100644 index 0000000..84fdeda --- /dev/null +++ b/trunk/src/pinentry.hxx @@ -0,0 +1,89 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __PINDIALOG_HXX__ +#define __PINDIALOG_HXX__ + +#include +#include +#include +#include + +#include +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class PinEntry: public QDialog, public Ui::PinEntry { + Q_OBJECT; + public: + PinEntry(const QSslCertificate& cert, QWidget *parent=0): QDialog(parent) { + setupUi(this); + _cert->certificate(cert); + _name->setText(utfConv(cert.subjectInfo(QSslCertificate::CommonName)) + .remove(" (Authentication)")); + _mail->setText(utfConv(cert.alternateSubjectNames() + .value(QSsl::EmailEntry))); + if (!cert.subjectInfo(QByteArray("serialNumber")).isEmpty()) { + _certSerialTitle->setText(tr("SuisseID Number:")); + _certSerial->setText(cert.subjectInfo(QByteArray("serialNumber"))); + } else { + _certSerialTitle->setText + (tr("Postzertifikat:", "title for postzertificate serial number")); + _certSerial->setText(cert.serialNumber()); + } + } + PinEntry& retries(int num) { + _pinstatus->setCurrentIndex(num==-1?1:(num==-2?2:0)); + _retries->setText(tr("there are %1 PIN attempts left").arg(num)); + return *this; + } + QString pin() const { + return _pin->text(); + } + int myexec() { + LOG; + show(); + LOG<<"SSSSSSSSSTTTTTTTAAAAAAAAAAAAARRRRRRRRRRTTTTTTTTTT"; + int res(_run.exec(QEventLoop::ExcludeSocketNotifiers)); + LOG<<"EEEEEEEEEEEEENNNNNNNNNNNNNNNNNNNNNDDDDDDDDDDDDDDEEEEEEEEEEEEE"; + hide(); + return res; + } + public Q_SLOTS: + virtual void accept() { + LOG; + QDialog::accept(); + } + virtual void done(int r) { + LOG<setCurrentIndex(s?1:0); + } + protected: + QString utfConv(const QString& txt) { + QByteArray value(txt.toAscii()); + for (int i(-1); (i=value.indexOf("\\x"))!=-1 && i+3 + + PinEntry + + + + 0 + 0 + 603 + 494 + + + + Certificate PIN Entry + + + false + + + + + + Please enter your PIN to unlock Certificate + + + + + + + + PIN: + + + _pin + + + + + + + QLineEdit::Password + + + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + Name: + + + + + + + TextLabel + + + + + + + E-Mail: + + + + + + + TextLabel + + + + + + + SuisseID Number: + + + + + + + TextLabel + + + + + + + + + + + 0 + 0 + + + + 0 + + + + + + + + 0 + 0 + + + + %1 PIN attempts left + + + true + + + + + + + + + + + + 0 + 0 + + + + bad or locked certificate + + + true + + + + + + + + + + + + + + + + + Show Certificate Details + + + true + + + false + + + + + + + 0 + + + + + + + + + 0 + 0 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + Certificate + QWidget +
certificate.hxx
+ 1 +
+
+ + + + + + buttonBox + accepted() + PinEntry + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + PinEntry + reject() + + + 316 + 260 + + + 286 + 274 + + + + +
diff --git a/trunk/src/pluginfactory.hxx b/trunk/src/pluginfactory.hxx new file mode 100644 index 0000000..7fe6f1a --- /dev/null +++ b/trunk/src/pluginfactory.hxx @@ -0,0 +1,60 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __PLUGINFACTORY_HXX__ +#define __PLUGINFACTORY_HXX__ + +#include +#include + +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +#define foreach(A, B) \ + auto foreach_loopvar_##A(B); \ + for (auto A(foreach_loopvar_##A.begin()); A!=foreach_loopvar_##A.end(); ++A) + +class PluginFactory: public QWebPluginFactory { + public: + PluginFactory(QObject* p=0): QWebPluginFactory(p) { + LOG; + Plugin plugin; + plugin.name = "Show PDF-Document"; + plugin.description = "Plugin for PDF documents"; + MimeType mime; + mime.fileExtensions<<"pdf"; + mime.name = "application/pdf"; + mime.description = "PDF-Document"; + plugin.mimeTypes< plugins() const { + LOG; + return _plugins; + } + virtual void refreshPlugins() { + LOG; + } + private: + QList _plugins; +}; + +#endif diff --git a/trunk/src/qmake.pro.in b/trunk/src/qmake.pro.in new file mode 100644 index 0000000..184c0a4 --- /dev/null +++ b/trunk/src/qmake.pro.in @@ -0,0 +1,56 @@ +QT += webkit network gui +CONFIG += no_keywords +QMAKE_LIBS += -lproxyface -lpcscxx -lssl -lcrypto +QMAKE_CXXFLAGS += -Wno-parentheses -Wno-unused-parameter + +unix { + !macx { + CONFIG += debug + QMAKE_INCDIR += /usr/include/PCSC + QMAKE_INCDIR += /usr/local/include/PCSC + QMAKE_LIBS += -lpcsclite -lproxy + } +} +macx { + QMAKE_INCDIR += /opt/local/include + QMAKE_LIBDIR += /opt/local/lib + QMAKE_LFLAGS += -F/System/Library/Frameworks/PCSC.framework + LIBS += -framework PCSC + QMAKE_INCDIR += /System/Library/Frameworks/PCSC.framework/Headers + QMAKE_INFO_PLIST = Info.plist + CONFIG += x86 +} +win32 { + QMAKE_LIBS += -lwinhttp -lgdi32 -lws2_32 + QMAKE_LIBS += /opt/local/i586-mingw32msvc/lib/winscard.a + CONFIG += release +} +ICON = swisssurfer.icns + +TRANSLATIONS = @PACKAGENAME@_en.ts \ + @PACKAGENAME@_de.ts \ + @PACKAGENAME@_fr.ts \ + @PACKAGENAME@_it.ts + +SOURCES = main.cxx webpage.cxx + +HEADERS = browser.hxx smartcardauth.hxx pinentry.hxx \ + downloadmanager.hxx settings.hxx sslclientnetworkmanager.hxx \ + authentication.hxx webpage.hxx errorlog.hxx \ + certificate.hxx logincertificate.hxx editbookmarks.hxx \ + pluginfactory.hxx pdfdisplay.hpp saveorrun.hxx temporaryfile.hxx + +FORMS = browser.ui settings.ui pinentry.ui authentication.ui errorlog.ui \ + certificate.ui logincertificate.ui editbookmarks.ui saveorrun.ui + +RESOURCES = languages.qrc resources.qrc + +TARGET = @PACKAGENAME@ + +CODECFORSRC = UTF-8 +CODECFORTR = UTF-8 + +DEFINES += VERSION=\'\"@VERSION@\"\' BUILDDATE=\'\"@BUILDDATE@\"\' + +## DEBUG +# QMAKE_CXXFLAGS += -include iostream -D\"CRYPTOKI_LOG(X)=std::clog<<\\\"CRYPTOKI_\\\"< + + resources/icons/gg.png + resources/icons/tel.png + resources/icons/wp.png + resources/icons/about.png + resources/icons/addbookmark.png + resources/icons/back.png + resources/icons/clearlocation.png + resources/icons/close.png + resources/icons/error.png + resources/icons/find.png + resources/icons/forward.png + resources/icons/gohome.png + resources/icons/newtab.png + resources/icons/newwindow.png + resources/icons/print.png + resources/icons/printpreview.png + resources/icons/reload.png + resources/icons/settings.png + resources/icons/stop.png + resources/icons/up.png + resources/icons/usercert.png + resources/icons/swisssurfer_32x32x32.png + + diff --git a/trunk/src/resources/icons/about.png b/trunk/src/resources/icons/about.png new file mode 100644 index 0000000..87baf76 Binary files /dev/null and b/trunk/src/resources/icons/about.png differ diff --git a/trunk/src/resources/icons/about.svg b/trunk/src/resources/icons/about.svg new file mode 100644 index 0000000..d18adc3 --- /dev/null +++ b/trunk/src/resources/icons/about.svg @@ -0,0 +1,133 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/addbookmark.png b/trunk/src/resources/icons/addbookmark.png new file mode 100644 index 0000000..5bb80b2 Binary files /dev/null and b/trunk/src/resources/icons/addbookmark.png differ diff --git a/trunk/src/resources/icons/addbookmark.svg b/trunk/src/resources/icons/addbookmark.svg new file mode 100644 index 0000000..274e5c8 --- /dev/null +++ b/trunk/src/resources/icons/addbookmark.svg @@ -0,0 +1,435 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/back.png b/trunk/src/resources/icons/back.png new file mode 100644 index 0000000..495df52 Binary files /dev/null and b/trunk/src/resources/icons/back.png differ diff --git a/trunk/src/resources/icons/clearlocation.png b/trunk/src/resources/icons/clearlocation.png new file mode 100644 index 0000000..06f4fa9 Binary files /dev/null and b/trunk/src/resources/icons/clearlocation.png differ diff --git a/trunk/src/resources/icons/clearlocation.svg b/trunk/src/resources/icons/clearlocation.svg new file mode 100644 index 0000000..707e075 --- /dev/null +++ b/trunk/src/resources/icons/clearlocation.svg @@ -0,0 +1,166 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/close.png b/trunk/src/resources/icons/close.png new file mode 100644 index 0000000..c935cd8 Binary files /dev/null and b/trunk/src/resources/icons/close.png differ diff --git a/trunk/src/resources/icons/close.svg b/trunk/src/resources/icons/close.svg new file mode 100644 index 0000000..6a83e36 --- /dev/null +++ b/trunk/src/resources/icons/close.svg @@ -0,0 +1,111 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/error.png b/trunk/src/resources/icons/error.png new file mode 100644 index 0000000..e3ea764 Binary files /dev/null and b/trunk/src/resources/icons/error.png differ diff --git a/trunk/src/resources/icons/error.svg b/trunk/src/resources/icons/error.svg new file mode 100644 index 0000000..98a72a7 --- /dev/null +++ b/trunk/src/resources/icons/error.svg @@ -0,0 +1,68 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/find.png b/trunk/src/resources/icons/find.png new file mode 100644 index 0000000..8e71884 Binary files /dev/null and b/trunk/src/resources/icons/find.png differ diff --git a/trunk/src/resources/icons/find.svg b/trunk/src/resources/icons/find.svg new file mode 100644 index 0000000..b37ba88 --- /dev/null +++ b/trunk/src/resources/icons/find.svg @@ -0,0 +1,572 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/forward.png b/trunk/src/resources/icons/forward.png new file mode 100644 index 0000000..71781a5 Binary files /dev/null and b/trunk/src/resources/icons/forward.png differ diff --git a/trunk/src/resources/icons/gg.png b/trunk/src/resources/icons/gg.png new file mode 100644 index 0000000..2263213 Binary files /dev/null and b/trunk/src/resources/icons/gg.png differ diff --git a/trunk/src/resources/icons/gohome.png b/trunk/src/resources/icons/gohome.png new file mode 100644 index 0000000..279e586 Binary files /dev/null and b/trunk/src/resources/icons/gohome.png differ diff --git a/trunk/src/resources/icons/newtab.png b/trunk/src/resources/icons/newtab.png new file mode 100644 index 0000000..4d4f661 Binary files /dev/null and b/trunk/src/resources/icons/newtab.png differ diff --git a/trunk/src/resources/icons/newtab.svg b/trunk/src/resources/icons/newtab.svg new file mode 100644 index 0000000..66fa809 --- /dev/null +++ b/trunk/src/resources/icons/newtab.svg @@ -0,0 +1,290 @@ + + + + + + Oxygen team + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/newwindow.png b/trunk/src/resources/icons/newwindow.png new file mode 100644 index 0000000..39b8559 Binary files /dev/null and b/trunk/src/resources/icons/newwindow.png differ diff --git a/trunk/src/resources/icons/newwindow.svg b/trunk/src/resources/icons/newwindow.svg new file mode 100644 index 0000000..6dbbcba --- /dev/null +++ b/trunk/src/resources/icons/newwindow.svg @@ -0,0 +1,398 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/print.png b/trunk/src/resources/icons/print.png new file mode 100644 index 0000000..559bfad Binary files /dev/null and b/trunk/src/resources/icons/print.png differ diff --git a/trunk/src/resources/icons/print.svg b/trunk/src/resources/icons/print.svg new file mode 100644 index 0000000..13900dd --- /dev/null +++ b/trunk/src/resources/icons/print.svg @@ -0,0 +1,194 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/printpreview.png b/trunk/src/resources/icons/printpreview.png new file mode 100644 index 0000000..080645b Binary files /dev/null and b/trunk/src/resources/icons/printpreview.png differ diff --git a/trunk/src/resources/icons/printpreview.svg b/trunk/src/resources/icons/printpreview.svg new file mode 100644 index 0000000..e9cc5f9 --- /dev/null +++ b/trunk/src/resources/icons/printpreview.svg @@ -0,0 +1,211 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors, Source: GNOME-Colors + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/reload.png b/trunk/src/resources/icons/reload.png new file mode 100644 index 0000000..b5040b7 Binary files /dev/null and b/trunk/src/resources/icons/reload.png differ diff --git a/trunk/src/resources/icons/settings.png b/trunk/src/resources/icons/settings.png new file mode 100644 index 0000000..79a5ce4 Binary files /dev/null and b/trunk/src/resources/icons/settings.png differ diff --git a/trunk/src/resources/icons/settings.svg b/trunk/src/resources/icons/settings.svg new file mode 100644 index 0000000..28bcc69 --- /dev/null +++ b/trunk/src/resources/icons/settings.svg @@ -0,0 +1,630 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/source b/trunk/src/resources/icons/source new file mode 100644 index 0000000..3fa4754 --- /dev/null +++ b/trunk/src/resources/icons/source @@ -0,0 +1,9 @@ +Icons taken from konqueror-buttonset 1.5 on http://www.kde-look.org/content/show.php/konqueror-buttonset?content=28212 (download: http://www.kde-look.org/content/download.php?content=28212&id=1&tan=58988840) +License: Artistic 2.0 + +back.png +forward.png +gohome.png +reload.png +stop.png +up.png diff --git a/trunk/src/resources/icons/stop.png b/trunk/src/resources/icons/stop.png new file mode 100644 index 0000000..5bba35f Binary files /dev/null and b/trunk/src/resources/icons/stop.png differ diff --git a/trunk/src/resources/icons/swisssurfer_32x32x32.png b/trunk/src/resources/icons/swisssurfer_32x32x32.png new file mode 100644 index 0000000..6290a43 Binary files /dev/null and b/trunk/src/resources/icons/swisssurfer_32x32x32.png differ diff --git a/trunk/src/resources/icons/tel.png b/trunk/src/resources/icons/tel.png new file mode 100644 index 0000000..1c99f1e Binary files /dev/null and b/trunk/src/resources/icons/tel.png differ diff --git a/trunk/src/resources/icons/up.png b/trunk/src/resources/icons/up.png new file mode 100644 index 0000000..69ca91d Binary files /dev/null and b/trunk/src/resources/icons/up.png differ diff --git a/trunk/src/resources/icons/usercert.png b/trunk/src/resources/icons/usercert.png new file mode 100644 index 0000000..24718b2 Binary files /dev/null and b/trunk/src/resources/icons/usercert.png differ diff --git a/trunk/src/resources/icons/usercert.svg b/trunk/src/resources/icons/usercert.svg new file mode 100644 index 0000000..703b63e --- /dev/null +++ b/trunk/src/resources/icons/usercert.svg @@ -0,0 +1,362 @@ + + + + + + + + + + unsorted + + + + + Open Clip Art Library, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons, Source: Oxygen Icons + + + + + + + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/trunk/src/resources/icons/wp.png b/trunk/src/resources/icons/wp.png new file mode 100644 index 0000000..ba3fc73 Binary files /dev/null and b/trunk/src/resources/icons/wp.png differ diff --git a/trunk/src/resources/swisssurfer.png b/trunk/src/resources/swisssurfer.png new file mode 100644 index 0000000..6290a43 Binary files /dev/null and b/trunk/src/resources/swisssurfer.png differ diff --git a/trunk/src/saveorrun.hxx b/trunk/src/saveorrun.hxx new file mode 100644 index 0000000..ba97a2b --- /dev/null +++ b/trunk/src/saveorrun.hxx @@ -0,0 +1,209 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __SAVEORRUN_HXX__ +#define __SAVEORRUN_HXX__ + +#include + +#include +#include +#include +#include +#include +#include + +#include +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class SaveOrRun: public QWidget, public Ui::SaveOrRun { + Q_OBJECT; + + Q_SIGNALS: + + void save(); + void run(); + + public: + + SaveOrRun(QWidget* p=0): QWidget(p) { + LOG; + setupUi(this); + _filename->setText(savePath()+QDir::separator()); + _program->setText(QCoreApplication::applicationDirPath() + +QDir::separator()); + } + + void setup(QString obj, QString type, QString src) { + LOG; + _object->setText(obj); + _type->setText(type); + _source->setText(src); + _filename->setText(savePath()+QDir::separator()+obj); + } + + QString filename() { + LOG; + return _filename->text(); + } + + QString program() { + LOG; + return _program->text(); + } + + protected Q_SLOTS: + + void on__saveFileAs_clicked(bool=true) { + LOG; + if ((QFileInfo(filename()).exists() + && QMessageBox::question(this, tr("File Exists"), + tr("File already exists:\n\n" + "%1\n\n" + "Overwrite?").arg(filename()), + QMessageBox::Yes|QMessageBox::No) + == QMessageBox::No) + || filename().size()==0) + return; // reject + save(); + } + + void on__openFileIn_clicked(bool=true) { + LOG; + if ((!QFile::exists(program()) + || !QFileInfo(program()).isExecutable() + || QFileInfo(program()).isDir()) + || program().size()==0) + return; // reject + run(); + } + + void on__browseSaveAs_clicked(bool) { + LOG; + QString saveFile + (QFileDialog::getSaveFileName(this, tr("Save File As ..."), + _filename->text(), QString(), 0, + QFileDialog::DontConfirmOverwrite)); + if (!saveFile.size()) return; + if (QFileInfo(saveFile).isDir()) + saveFile += QDir::separator()+_object->text(); + _filename->setText(saveFile); + on__saveFileAs_clicked(); + } + + void on__browseOpenWith_clicked(bool) { + LOG; + QString openFile + (QFileDialog::getOpenFileName(this, tr("Open File With ..."), + _program->text())); + if (!openFile.size()) return; + _program->setText(openFile); + on__openFileIn_clicked(); + } + + protected: + + QString savePath() { + LOG; + QString path(QDir::homePath()); + QStringList defpaths; + defpaths<<"downloads"<<"Downloads"<<"Documents" + <setText(mime); + _source->setText(url.host()); + } + +}; + +class SaveOrRunDialog: public QDialog { + Q_OBJECT; + + public: + + SaveOrRunDialog(bool kiosk=false, QWidget* p=0): + QDialog(p), _action(UNDEFINED), _sor(new SaveOrRun) { + LOG; + QVBoxLayout* l(new QVBoxLayout(this)); + l->addWidget(_sor); + assert(connect(_sor, SIGNAL(save()), SLOT(doSave()))); + assert(connect(_sor, SIGNAL(run()), SLOT(doRun()))); + assert(connect(_sor->_buttons, SIGNAL(rejected()), SLOT(reject()))); + } + + void setup(QString obj, QString type, QString src) { + _sor->setup(obj, type, src); + } + + bool save() { + LOG; + return _action==SAVE; + } + + bool run() { + LOG; + return _action==RUN; + } + + SaveOrRun* sor() { + LOG; + return _sor; + } + + public Q_SLOTS: + + void doSave() { + LOG; + _action = SAVE; + accept(); + } + + void doRun() { + LOG; + _action = RUN; + accept(); + } + + protected: + + enum Action { + SAVE, + RUN, + UNDEFINED + } _action; + + SaveOrRun* _sor; + +}; + +#endif diff --git a/trunk/src/saveorrun.ui b/trunk/src/saveorrun.ui new file mode 100644 index 0000000..411b1e1 --- /dev/null +++ b/trunk/src/saveorrun.ui @@ -0,0 +1,277 @@ + + + SaveOrRun + + + + 0 + 0 + 670 + 294 + + + + Download + + + + + + + + + 0 + 0 + + + + + 75 + true + + + + File: + + + + + + + + 0 + 0 + + + + ... + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Type: + + + + + + + + 0 + 0 + + + + ... + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Source + + + + + + + + 0 + 0 + + + + ... + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + + Save File + + + + + + Save File As: + + + + + + + + + + + 0 + 0 + + + + browse ... + + + + + + + remember save path + + + true + + + + + + + + + + Open in External Application + + + + + + Open File in: + + + + + + + true + + + + + + + true + + + + 0 + 0 + + + + browse ... + + + + + + + remember tool for this type + + + true + + + + + + + + + + Qt::Vertical + + + + 20 + 0 + + + + + + + + QDialogButtonBox::Cancel + + + true + + + + + + + + + _filename + returnPressed() + _saveFileAs + click() + + + 371 + 113 + + + 94 + 126 + + + + + _program + returnPressed() + _openFileIn + click() + + + 371 + 207 + + + 94 + 220 + + + + + diff --git a/trunk/src/settings.hxx b/trunk/src/settings.hxx new file mode 100644 index 0000000..8c56ee6 --- /dev/null +++ b/trunk/src/settings.hxx @@ -0,0 +1,366 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include +#include +#include +#include +#include +#include + +#include +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class Settings: public QDialog, protected Ui::Settings { + + Q_OBJECT; + + public: + + typedef QMap MimeTypes; + typedef QMap SearchEngines; + + Q_SIGNALS: + + void newSettings(); + + public: + + Settings(MimeTypes mimetypes, QWidget* p=0, + QSettings* settings=0, bool autoWrite=true): + QDialog(p), _settings(settings), + _autoWrite(autoWrite), _mimetypes(mimetypes) { + + setupUi(this); + + // Web Attributes + _attributes[QWebSettings::AutoLoadImages] = + _settingAutoLoadImages; + _attributes[QWebSettings::DnsPrefetchEnabled] = + _settingDnsPrefetchEnabled; + _attributes[QWebSettings::JavascriptEnabled] = + _settingJavascriptEnabled; + _attributes[QWebSettings::JavaEnabled] = + _settingJavaEnabled; + _attributes[QWebSettings::PluginsEnabled] = + _settingPluginsEnabled; + _attributes[QWebSettings::PrivateBrowsingEnabled] = + _settingPrivateBrowsingEnabled; + _attributes[QWebSettings::JavascriptCanOpenWindows] = + _settingJavascriptCanOpenWindows; + _attributes[QWebSettings::JavascriptCanAccessClipboard] = + _settingJavascriptCanAccessClipboard; + _attributes[QWebSettings::DeveloperExtrasEnabled] = + _settingDeveloperExtrasEnabled; + _attributes[QWebSettings::SpatialNavigationEnabled] = + _settingSpatialNavigationEnabled; + _attributes[QWebSettings::LinksIncludedInFocusChain] = + _settingLinksIncludedInFocusChain; + _attributes[QWebSettings::ZoomTextOnly] = + _settingZoomTextOnly; + _attributes[QWebSettings::PrintElementBackgrounds] = + _settingPrintElementBackgrounds; + _attributes[QWebSettings::OfflineStorageDatabaseEnabled] = + _settingOfflineStorageDatabaseEnabled; + _attributes[QWebSettings::OfflineWebApplicationCacheEnabled] = + _settingOfflineWebApplicationCacheEnabled; + _attributes[QWebSettings::LocalStorageEnabled] = + _settingLocalStorageEnabled; + _attributes[QWebSettings::LocalContentCanAccessRemoteUrls] = + _settingLocalContentCanAccessRemoteUrls; + _attributes[QWebSettings::LocalContentCanAccessFileUrls] = + _settingLocalContentCanAccessFileUrls; + // not in qt 4.7.0 (mac) + // _attributes[QWebSettings::XSSAuditingEnabled] = + // _settingXSSAuditingEnabled; + _attributes[QWebSettings::AcceleratedCompositingEnabled] = + _settingAcceleratedCompositingEnabled; + _attributes[QWebSettings::TiledBackingStoreEnabled] = + _settingTiledBackingStoreEnabled; + _attributes[QWebSettings::FrameFlatteningEnabled] = + _settingFrameFlatteningEnabled; + // not in qt 4.7.0 (mac) + // _attributes[QWebSettings::SiteSpecificQuirksEnabled] = + // _settingSiteSpecificQuirksEnabled; + + // CheckBoxes + _checkboxes["SaveWindowState"] = + std::make_pair(_saveWindowState, _saveWindowState->isChecked()); + _checkboxes["CloseApps"] = + std::make_pair(_closeApps, _closeApps->isChecked()); + + load(!_mimetypes.size()); + on__buttons_rejected(); + } + + void setSettings(QSettings* settings) { + _settings = settings; + } + + QSettings* operator()() { + return _settings; + } + + void setAttribute(QWebSettings::WebAttribute attr, bool state) { + //LOG; + QWebSettings::globalSettings()->setAttribute(attr, state); + _attributes[attr]->setChecked(state); + } + + bool flag(const QString& name) { + assert(_checkboxes.find(name)!=_checkboxes.end()); + return _checkboxes[name].second; + } + + const QString& text(const QString& name) { + assert(_lineedits.find(name)!=_lineedits.end()); + return _lineedits[name].second; + } + + const MimeTypes& mimetypes() const { + return _mimetypes; + } + + QStringList mimetype(QString mimetype, QString filename) const { + Settings::MimeTypes::const_iterator + it(_mimetypes.find(mimetype.split(';')[0])); + if (it!=_mimetypes.end()) return it.value().toStringList(); + for (it=_mimetypes.begin(); it!=_mimetypes.end(); ++it) + if (filename.endsWith("."+it.value().toStringList().at(0))) + return it.value().toStringList(); + return QStringList(); + } + + QString& replaceSearchEngine(QString& url) { + LOG; + int len(url.indexOf(QRegExp("[ :]"))); + if (len<=0) return url; + QString scheme(url.left(len)); + LOG<<"scheme:"<isWritable()) return false; + // Attributes + for (Attributes::iterator it(_attributes.begin()); + it!=_attributes.end(); ++it) + _settings->setValue + (QString("QWebSettings/%1").arg(it->first), + QWebSettings::globalSettings()->testAttribute(it->first)); + // CheckBoxes + for (CheckBoxes::iterator it(_checkboxes.begin()); + it!=_checkboxes.end(); ++it) + _settings->setValue + (QString("Flags/%1").arg(it->first), it->second.second); + // LineEdits + for (LineEdits::iterator it(_lineedits.begin()); + it!=_lineedits.end(); ++it) + _settings->setValue + (QString("Texts/%1").arg(it->first), it->second.second); + // MimeTypes + _settings->setValue("QWebSettings/MimeTypes", _mimetypes); + // Search Engines + _settings->setValue("QWebSettings/SearchEngines", _searchEngines); + return true; + } + + bool load(bool overwriteMimeTypes=true) { + LOG; + if (!_settings) return false; + // Attributes + for (Attributes::iterator it(_attributes.begin()); + it!=_attributes.end(); ++it) { + QVariant val + (_settings->value + (QString("QWebSettings/%1").arg(it->first), + QWebSettings::globalSettings()->testAttribute(it->first))); + if (val.isValid() && val.canConvert(QVariant::Bool)) + setAttribute(it->first, val.toBool()); + } + // CheckBoxes + for (CheckBoxes::iterator it(_checkboxes.begin()); + it!=_checkboxes.end(); ++it) { + QVariant val + (_settings->value + (QString("Flags/%1").arg(it->first), it->second.second)); + if (val.isValid() && val.canConvert(QVariant::Bool)) { + it->second.first->setChecked(val.toBool()); + it->second.second = val.toBool(); + } + } + // LineEdits + for (LineEdits::iterator it(_lineedits.begin()); + it!=_lineedits.end(); ++it) { + QVariant val + (_settings->value + (QString("Texts/%1").arg(it->first), it->second.second)); + if (val.isValid() && val.canConvert(QVariant::String)) { + it->second.first->setText(val.toString()); + it->second.second = val.toString(); + } + } + // MimeTypes + if (overwriteMimeTypes) { + QVariant val(_settings->value("QWebSettings/MimeTypes")); + if (val.isValid() && val.canConvert(QVariant::Map)) + _mimetypes = val.toMap(); + } + // SearchEngines + QVariant val(_settings->value("QWebSettings/SearchEngines")); + if (val.isValid() && val.canConvert(QVariant::Map)) + _searchEngines = val.toMap(); + newSettings(); + return true; + } + + private Q_SLOTS: + + void on__buttons_accepted() { + LOG; + // Attributes + for (Attributes::iterator it(_attributes.begin()); + it!=_attributes.end(); ++it) + QWebSettings::globalSettings() + ->setAttribute(it->first, it->second->isChecked()); + // CheckBoxes + for (CheckBoxes::iterator it(_checkboxes.begin()); + it!=_checkboxes.end(); ++it) + it->second.second = it->second.first->isChecked(); + // LineEdits + for (LineEdits::iterator it(_lineedits.begin()); + it!=_lineedits.end(); ++it) + it->second.second = it->second.first->text(); + // MimeTypes + _mimetypes.clear(); + for (int row(_mimeTypeTable->rowCount()); row--;) + _mimetypes[_mimeTypeTable->item(row, 0)->text()] = + QStringList() + <<_mimeTypeTable->item(row, 1)->text() + <<_mimeTypeTable->item(row, 2)->text(); + // SearchEngines + _searchEngines.clear(); + for (int row(_searchEngineTable->rowCount()); row--;) + _searchEngines[_searchEngineTable->item(row, 0)->text()] = + _searchEngineTable->item(row, 1)->text(); + // Save + if (_autoWrite) save(); + newSettings(); + } + + void on__buttons_rejected() { + LOG; + // Attributes + for (Attributes::iterator it(_attributes.begin()); + it!=_attributes.end(); ++it) + it->second->setChecked + (QWebSettings::globalSettings()->testAttribute(it->first)); + // CheckBoxes + for (CheckBoxes::iterator it(_checkboxes.begin()); + it!=_checkboxes.end(); ++it) + it->second.first->setChecked(it->second.second); + // LineEdits + for (LineEdits::iterator it(_lineedits.begin()); + it!=_lineedits.end(); ++it) + it->second.first->setText(it->second.second); + // MimeTypes + _mimeTypeTable->setRowCount(_mimetypes.size()); + _mimeTypeTable->verticalHeader()->show(); + _mimeTypeTable->horizontalHeader()->show(); + _mimeTypeTable->horizontalHeader()->setStretchLastSection(true); + int row(0); + for (MimeTypes::iterator it(_mimetypes.begin()); + it!=_mimetypes.end(); ++it, ++row) { + LOG<<"MimeType:"<setItem + (row, 0, new QTableWidgetItem(it.key())); + _mimeTypeTable->setItem + (row, 1, new QTableWidgetItem(it.value().toStringList().at(0))); + _mimeTypeTable->setItem + (row, 2, new QTableWidgetItem(it.value().toStringList().at(1))); + } + // SearchEngines + _searchEngineTable->setRowCount(_searchEngines.size()); + _searchEngineTable->verticalHeader()->show(); + _searchEngineTable->horizontalHeader()->show(); + _searchEngineTable->horizontalHeader()->setStretchLastSection(true); + row = 0; + for (MimeTypes::iterator it(_searchEngines.begin()); + it!=_searchEngines.end(); ++it, ++row) { + LOG<<"SearchEngine:"<setItem + (row, 0, new QTableWidgetItem(it.key())); + _searchEngineTable->setItem + (row, 1, new QTableWidgetItem(it.value().toString())); + } + } + + void on__addMimeType_pressed() { + _mimeTypeTable->setRowCount(_mimeTypeTable->rowCount()+1); + _mimeTypeTable->setItem(_mimeTypeTable->rowCount()-1, 0, + new QTableWidgetItem); + _mimeTypeTable->setItem(_mimeTypeTable->rowCount()-1, 1, + new QTableWidgetItem); + _mimeTypeTable->setItem(_mimeTypeTable->rowCount()-1, 2, + new QTableWidgetItem); + } + + void on__removeMimeType_pressed() { + QList ranges + (_mimeTypeTable->selectedRanges()); + if (ranges.isEmpty()) return; + for (int begin(ranges.at(0).topRow()), count(ranges.at(0).rowCount()); + count; --count) + _mimeTypeTable->removeRow(begin); + } + + void on__addSearchEngine_pressed() { + _searchEngineTable->setRowCount(_searchEngineTable->rowCount()+1); + _searchEngineTable->setItem(_searchEngineTable->rowCount()-1, 0, + new QTableWidgetItem); + _searchEngineTable->setItem(_searchEngineTable->rowCount()-1, 1, + new QTableWidgetItem); + _searchEngineTable->setItem(_searchEngineTable->rowCount()-1, 2, + new QTableWidgetItem); + } + + void on__removeSearchEngine_pressed() { + QList ranges + (_searchEngineTable->selectedRanges()); + if (ranges.isEmpty()) return; + for (int begin(ranges.at(0).topRow()), count(ranges.at(0).rowCount()); + count; --count) + _searchEngineTable->removeRow(begin); + } + + private: + + typedef std::map Attributes ; + Attributes _attributes; + typedef std::map > CheckBoxes; + CheckBoxes _checkboxes; + typedef std::map > LineEdits; + LineEdits _lineedits; + QSettings* _settings; + bool _autoWrite; + MimeTypes _mimetypes; + SearchEngines _searchEngines; + +}; diff --git a/trunk/src/settings.ui b/trunk/src/settings.ui new file mode 100644 index 0000000..cef0a63 --- /dev/null +++ b/trunk/src/settings.ui @@ -0,0 +1,764 @@ + + + Settings + + + + 0 + 0 + 611 + 383 + + + + Settings + + + + + + 0 + + + + Web + + + + + + + + Network Connections + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether images are automatically loaded in web pages.</span></p></body></html> + + + auto load images + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether SwissSurfer will try to pre-fetch DNS entries to speed up browsing.</span></p></body></html> + + + DNS prefetch enabled + + + + + + + + + + Qt::Vertical + + + + 20 + 188 + + + + + + + + + + + + Rendering + + + + + + Specifies whether JavaScript programs can open new windows. + + + JavaScript can open windows + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the Spatial Navigation feature, which consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element he might be trying to reach towards the right and which element he probably wants.</span></p></body></html> + + + spatial navigation + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether hyperlinks should be included in the keyboard focus chain.</span></p></body></html> + + + fokus links + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the zoom factor on a frame applies only to the text or to all content.</span></p></body></html> + + + zoom text only + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the background color and images are also drawn when the page is printed.</span></p></body></html> + + + print element backgrounds + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This feature accelerates animations of web content. CSS animations of the transform and opacity properties will be rendered by composing the cached content of the animated elements.</span></p></body></html> + + + accelerated composing + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables the tiled backing store feature. With the tiled backing store enabled, the web page contents in and around the current visible area is speculatively cached to bitmap tiles. The tiles are automatically kept in sync with the web page as it changes. Enabling tiling can significantly speed up painting heavy operations like scrolling. Enabling the feature increases memory consumption. It does not work well with contents using CSS fixed positioning.</span></p></body></html> + + + tiled backing store + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">With this setting each subframe is expanded to its contents. On touch devices, it is desired to not have any scrollable sub parts of the page as it results in a confusing user experience, with scrolling sometimes scrolling sub parts and at other times scrolling the page itself. For this reason iframes and framesets are barely usable on touch devices. This will flatten all the frames to become one scrollable page.</span></p></body></html> + + + frame flattening + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables WebKit's workaround for broken sites.</span></p></body></html> + + + site specific quirks + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + Security + + + + + + + + Extensions + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the running of JavaScript programs.</span></p></body></html> + + + JavaScript + + + + + + + false + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables Java applets. Currently Java applets are not supported.</span></p></body></html> + + + Java + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables plugins in Web pages (e.g. using NPAPI). Qt plugins with a mimetype such as &quot;application/x-qt-plugin&quot; are not affected by this setting.</span></p></body></html> + + + Netscape plugins + + + + + + + + + + Extras + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables extra tools for Web developers. Currently this enables the &quot;Inspect&quot; element in the context menu as well as the use of QWebInspector which controls the web inspector for web site debugging. </span></p></body></html> + + + developer extras + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + Privacy + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Private browsing prevents SwissSurfer from recording visited pages in the history and storing web page icons.</span></p></body></html> + + + private browsing + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether JavaScript programs can read or write to the clipboard.</span></p></body></html> + + + JavaScript can access clipboard + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 offline storage feature is enabled or not.</span></p></body></html> + + + offline storage database + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 web application cache feature is enabled or not.</span></p></body></html> + + + offline webapplication cache + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 local storage feature is enabled or not.</span></p></body></html> + + + local storage + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access remote urls. </span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Local resources are by default restricted from accessing remote content, which means your </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">file://</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;"> will not be able to access </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">http://domain.com/foo.html</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">. </span></p></body></html> + + + local content can access remote urls + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access other local urls.</span></p></body></html> + + + local content can access file URLs + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether load requests should be monitored for cross-site scripting attempts. Suspicious scripts will be blocked and reported in the inspector's JavaScript console. Enabling this feature might have an impact on performance.</span></p></body></html> + + + cross site scripting auditing + + + + + + + + + + Qt::Vertical + + + + 377 + 27 + + + + + + + + + + + Applications + + + + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + false + + + false + + + false + + + + Mime-Type + + + + + + + + Ext + + + + + + + + Program + + + + + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">%1</span> as file name placeholder.</p></body></html> + + + true + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + - + + + + + + + + + + Search Engines + + + + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + + Scheme + + + + + Query URL + + + + + + + + Use %1 as placeholder for the query, use %2 as placeholder for your system language. + + + true + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + - + + + + + + + + + + Session + + + + + + Session Management + + + + + + save window state when opened withiut URL + + + + + + + true + + + close mimetype helper applications on exit + + + false + + + + + + + + + + Qt::Vertical + + + + 20 + 191 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + _settingXSSAuditingEnabled + _mimeTypeTable + _addMimeType + _removeMimeType + _buttons + _settingAutoLoadImages + _settingDnsPrefetchEnabled + _settingJavascriptCanOpenWindows + _settingSpatialNavigationEnabled + _settingLinksIncludedInFocusChain + _settingZoomTextOnly + _settingPrintElementBackgrounds + _settingAcceleratedCompositingEnabled + _settingTiledBackingStoreEnabled + tabWidget + _settingFrameFlatteningEnabled + _settingSiteSpecificQuirksEnabled + _settingJavascriptEnabled + _settingJavaEnabled + _settingPluginsEnabled + _settingDeveloperExtrasEnabled + _settingPrivateBrowsingEnabled + _settingJavascriptCanAccessClipboard + _settingOfflineStorageDatabaseEnabled + _settingOfflineWebApplicationCacheEnabled + _settingLocalStorageEnabled + _settingLocalContentCanAccessRemoteUrls + _settingLocalContentCanAccessFileUrls + + + + + _buttons + accepted() + Settings + accept() + + + 252 + 378 + + + 157 + 274 + + + + + _buttons + rejected() + Settings + reject() + + + 320 + 378 + + + 286 + 274 + + + + + diff --git a/trunk/src/smartcardauth.hxx b/trunk/src/smartcardauth.hxx new file mode 100644 index 0000000..52484df --- /dev/null +++ b/trunk/src/smartcardauth.hxx @@ -0,0 +1,342 @@ +#ifndef SMARTCARDAUTH_H +#define SMARTCARDAUTH_H + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include +#include +#include +#include + +#include + +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class CryptokiEngine: public QObject, public openssl::Engine { + + Q_OBJECT; + + Q_SIGNALS: + + void certRequired(); + + public: + + CryptokiEngine(std::string lib): + _cryptoki(lib) { + LOG; + } + + operator bool() { + LOG<<"Status of CryptokiEngine: " + <<(_privateKey.get() + ?"privateKey defined, ":"privateKey undefined"); + return _privateKey.get(); + } + + cryptoki::Init& cryptoki() { + return _cryptoki; + } + + void cert(cryptoki::Object& privateKey, const std::string& certVal) { + LOG; + _privateKey = std::auto_ptr + (new cryptoki::Object(privateKey)); + try { // new + QSslConfiguration sslConfig(QSslConfiguration::defaultConfiguration()); + QSslCertificate localcert(QByteArray(certVal.data(), + certVal.size()), + QSsl::Der); + sslConfig.setLocalCertificate(localcert); + assert(localcert.isValid()); + + //RSA_set_default_method(ENGINE_get_RSA(_e)); + QByteArray pem // empty dummy key for qt object instantiation + ("-----BEGIN RSA PRIVATE KEY-----\n" + "MIIBOwIBAAJBAMH2yqAGeVNPdgeZ2GoHo31m9aUxZ7QfK2Go2qLTahLpQ3UL1C8G\n" + "LkuMS8SNK0ZGfRMalIpIhv6bW5l3kjogOncCAwEAAQJABVGECtFCoGMsZFb2lSmy\n" + "dOzOzYHGSy0TnnDn1dEgNnZ8sIljElPtUzm9dyXs2P3ICL1sOd7qjpzfJeyxknDL\n" + "AQIhAO5iKdLmhyuW+EDEH19vDs1Pmqs3/ZnT5UgUiJnTJqz3AiEA0ExIfUOCnxq2\n" + "a3Z46KEivcr8JB2P9VqouBbVryiq/oECIQDj8bPCejMoiEzMSX0iWWTTB9qC/KAg\n" + "FtF4skHIrXKfEwIgPCs86Uo+Ch2aQjKHvJMHSRHAgeI0OmiEwiB+e0lhE4ECIQDd\n" + "IbUmHIXt6oHLJmoGFX46bCcfil5eE5FXfiaw7Q9iPw==\n" + "-----END RSA PRIVATE KEY-----\n"); + QSslKey privkey(pem, QSsl::Rsa, QSsl::Pem, QSsl::PrivateKey); + RSA* rsa((RSA*)privkey.handle()); + if (!ENGINE_init(_e)) return; + rsa->engine=_e; + rsa->meth=ENGINE_get_RSA(_e); + if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, rsa, &rsa->ex_data)) { + ENGINE_finish(_e); + return; + } + set(rsa->n, privateKey, CKA_MODULUS, "CKA_MODULUS"); + set(rsa->e, privateKey, CKA_PUBLIC_EXPONENT, "CKA_PUBLIC_EXPONENT"); + set(rsa->d, privateKey, CKA_PRIVATE_EXPONENT, "CKA_PRIVATE_EXPONENT"); + set(rsa->p, privateKey, CKA_PRIME_1, "CKA_PRIME_1"); + set(rsa->q, privateKey, CKA_PRIME_2, "CKA_PRIME_2"); + set(rsa->dmp1, privateKey, CKA_EXPONENT_1, "CKA_EXPONENT_1"); + set(rsa->dmq1, privateKey, CKA_EXPONENT_2, "CKA_EXPONENT_2"); + set(rsa->iqmp, privateKey, CKA_COEFFICIENT, "CKA_COEFFICIENT"); + rsa->flags |= RSA_FLAG_SIGN_VER; // don't emulate with encrypt/decrypt + assert(!privkey.isNull()); + LOG<<"Setup RSA finished"; + sslConfig.setPrivateKey(privkey); + QSslConfiguration::setDefaultConfiguration(sslConfig); + } catch (const std::exception& e) { + LOG<<"SETUP ERROR: "<sign(in, CKM_RSA_PKCS); + } catch (const std::exception& x) { + certRequired(); // get new certificate + return _privateKey->sign(in, CKM_RSA_PKCS); // try again + } + } + + private: + + cryptoki::Init _cryptoki; + std::auto_ptr _privateKey; + +}; + +class SmartCardAuth: public QObject { + Q_OBJECT; + + public: + + SmartCardAuth(const QString& lib, QWidget* p=0, bool loginAtStart=true): + _parent(p), _e(new CryptokiEngine(lib.toStdString())), _reg(_e) { + LOG; + if (loginAtStart) login(); + assert(connect(_e, SIGNAL(certRequired()), SLOT(login()))); + } + + public Q_SLOTS: + + void login(bool force=true) { + try { + LOG; + Lock lock; + LOG<<"got lock"; + if (!_e || (!force && *_e)) return; // no smartcard or already logged in + LOG<<"start login to smartcard"; + QList authcerts; + QList allcerts; + QSslConfiguration sslConfig(QSslConfiguration::defaultConfiguration()); + _slots = _e->cryptoki().slotList(); + LOG<<"number of slots"<<_slots.size(); + // look for login certificates ---------------------------------------- + for (cryptoki::SlotList::iterator slot(_slots.begin()); + slot!=_slots.end(); ++slot) { + cryptoki::Session session(*slot); + cryptoki::ObjectList certs(session.find + (cryptoki::Attribute(CKA_CLASS) + .from(CKO_CERTIFICATE))); + for (cryptoki::ObjectList::iterator cert(certs.begin()); + cert!=certs.end(); ++cert) { + cryptoki::Attribute label(cert->attribute(CKA_LABEL)); + cryptoki::Attribute id(cert->attribute(CKA_ID)); + LOG<<"**** FOUND CERTIFICATE: "<(CKO_PUBLIC_KEY), + id)); + LOG<<"**** with keys: "<attribute(CKA_VALUE).value); + if (!keys.size()) { // add CA-certificate + LOG<<"**** add to CA-certificates"; + } else { + LOG<<"**** user cert, check for authentictaion"; + if (label.value.find("auth")==0 || + label.value.find("Authentication")!=std::string::npos) { + LOG<<"**** it's our authentication cert"; + authcerts.push_back(CertInfo(data, slot, id)); + } else { + LOG<<"**** it's an unknown cert"; + allcerts.push_back(CertInfo(data, slot, id)); + } + } + } + } + // get pin and install client certificate ------------------------------ + LOG<<"00000000000000000000000000000000000000000000000000"; + if (!authcerts.isEmpty() || !allcerts.isEmpty()) { + LOG<<"11111111111111111111111111111111111111111111111111"; + CertInfo c(authcerts.size()?authcerts[0]:allcerts[0]); + PinEntry pinEntry(QSslCertificate(QByteArray(c.data.data(), + c.data.size()), + QSsl::Der), _parent); + while (true) try { + LOG<<"******************************************1*******"; + pinEntry.retries(retries(c.slot->slotinfo().slotDescription)); + LOG<<"******************************************2*******"; + int res(pinEntry.myexec()); + LOG<<"******************************************3*******"; + if (res!=PinEntry::Accepted) return; + LOG<<"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; + _session = // session login with pin + std::auto_ptr + (new cryptoki::Session(*c.slot)); + LOG<<"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"; + _session->login(pinEntry.pin().toStdString()); + LOG<<"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"; + cryptoki::ObjectList keys + (_session->find(cryptoki::Attribute(CKA_CLASS) + .from(CKO_PRIVATE_KEY), + c.id)); + LOG<<"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; + if (keys.size()==1) { + LOG<<"**** found one private key"; + _e->cert(keys[0], c.data); // install client cert + LOG<<"=================================================="; + break; + } + LOG<<"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; + } catch (std::exception& x) { + pinEntry.pin().clear(); + LOG<<"**** ERROR"<=2) + return ((((unsigned int)(unsigned char)res[res.size()-2])*256) + +((unsigned int)(unsigned char)res[res.size()-1])); + else + return -1; + } + + private: + + struct CertInfo { + CertInfo(std::string d, cryptoki::SlotList::iterator s, + cryptoki::Attribute i): + data(d), slot(s), id(i) { + } + std::string data; + cryptoki::SlotList::iterator slot; + cryptoki::Attribute id; + }; + + class Lock { + public: + Lock() { + LOG<1) loops().back()->exec(); // wait + } + ~Lock() { + LOG<exit(0); // wake up next + } + private: + QList& loops() { // same as a static member variable + static QList _loops; + return _loops; + } + }; + + private: + + QWidget* _parent; + CryptokiEngine* _e; + openssl::RegisterEngine _reg; + cryptoki::SlotList _slots; + std::auto_ptr _session; + +}; + +#endif // SMARTCARDAUTH_H diff --git a/trunk/src/sslclientnetworkmanager.hxx b/trunk/src/sslclientnetworkmanager.hxx new file mode 100644 index 0000000..a644fbe --- /dev/null +++ b/trunk/src/sslclientnetworkmanager.hxx @@ -0,0 +1,58 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 +#include +#include +#include + +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class SslClientAuthNetworkAccessManager: public QNetworkAccessManager { + Q_OBJECT; + public: + + SslClientAuthNetworkAccessManager(QObject* parent = 0): + QNetworkAccessManager(parent) { + LOG; + } + + virtual ~SslClientAuthNetworkAccessManager() { + LOG; + } + + void scAuth(SmartCardAuth* auth) { + _scAuth = std::auto_ptr(auth); + } + + Q_SIGNALS: + + void created(QNetworkReply*); + + protected: + + virtual QNetworkReply* createRequest(Operation op, + const QNetworkRequest& req, + QIODevice* outgoingData = 0 ) { + LOG<login(false); + } + QNetworkReply* rep + (QNetworkAccessManager::createRequest(op, req, outgoingData)); + created(rep); + LOG<<"Reply to URL: "<url().toString(); + return rep; + } + + private: + + std::auto_ptr _scAuth; + +}; diff --git a/trunk/src/swisssurfer.desktop b/trunk/src/swisssurfer.desktop new file mode 100644 index 0000000..1a27e40 --- /dev/null +++ b/trunk/src/swisssurfer.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Name=swisssurfer +Name[de]=swisssurfer +Name[fr]=swisssurfer +Name[it]=swisssurfer +Name[en]=swisssurfer +GenericName=SwissSurfer +Comment=Browser with Post SuisseID login +Icon=/usr/share/swisssurfer/swisssurfer.png +Categories=Network;WebBrowser +Exec=/usr/bin/swisssurfer diff --git a/trunk/src/swisssurfer.icns b/trunk/src/swisssurfer.icns new file mode 100644 index 0000000..71b56ae Binary files /dev/null and b/trunk/src/swisssurfer.icns differ diff --git a/trunk/src/swisssurfer_de.ts b/trunk/src/swisssurfer_de.ts new file mode 100644 index 0000000..7acff8e --- /dev/null +++ b/trunk/src/swisssurfer_de.ts @@ -0,0 +1,1485 @@ + + + +UTF-8 + + Authentication + + + Authorization + + + + + Authentication required for: + + + + + realm + + + + + Username: + + + + + Password: + + + + + Browser + + + SwissSurfer + SwissSign Browser + + + + + toolBar + + + + + &File + + + + + Edit + + + + + Info + + + + + History + + + + + neu laden + + + + + F5 + + + + + stoppen + + + + + zurückkehren + + + + + weitergehen + + + + + Startseite + + + + + Ctrl+Home + + + + + &New Browser + + + + + New Browser Window + + + + + Ctrl+N + + + + + Ctrl+W + + + + + &Proxy... + + + + + Bookmarks + + + + + &Quit + + + + + Ctrl+P + + + + + Next Tab + + + + + Shift+Right + + + + + Previous Tab + + + + + Shift+Left + + + + + + New Tab + + + + + Add New Tab + + + + + Ctrl+T + + + + + Find + + + + + Close Find + + + + + &About + + + + + &Settings ... + + + + + &Reverse Find + + + + + Ctrl+R + + + + + Error Log + + + + + show error logs + + + + + User Login Certificate + + + + + &Proxy ... + + + + + Clear Location + + + + + clear location bar + + + + + Add Bookmark + + + + + add bookmark to location bar + + + + + Ctrl+D + + + + + &Bookmarks + + + + + Clear Find + + + + + clear find bar + + + + + &Close Tab + + + + + Sa&ve Session + + + + + &Load Session + + + + + Search + + + + + Clear Search + + + + + + Esc + + + + + find in page + + + + + Ctrl+F + + + + + Print ... + + + + + Quick &Print + &Print + + + + + Print Pre&view ... + + + + + Checking: %1 + Opening: %1 + + + + + Reading: %1 + Reading: %1% + + + + + Zoom: %1% + + + + + Illegal URL: %1 + + + + + gg + + + + + Print Document + + + + + %1 - %2 + Back to %1 - %2 + statusbar actionBack_hovered %1=url %2=title + + + + + Info: %1 + + + + + done. + + + + + %1 + statusbar for hovered link %1=url + + + + + Forbidden: %1 + + + + + background-color: white + search engines combobox + + + + + SSL Not Supported + + + + + SSL is not supported on your system + + + + + Access Denied + + + + + <p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1. + + + + + http://www.google.com/search?hl=%2&q=%1 + + + + + opening new window + + + + + %1 - %2 + statusbar actionForward_hovered %1=url %2=title + + + + + + background-color: white + neutral find + + + + + + background-color: #ADA + background-color: #7F7 + text found + + + + + + background-color: #F77 + background-color: lightred + text not found + + + + + About + + + + + %8 +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + SwissSurfer +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + + + + + %1 + + + + + launching application ... + + + + + errors + show error log + + + + + + background-color: #F77 + invalid url + + + + + + background-color: white + valid url + + + + + authentication required + + + + + ssl error + + + + + Certificate + + + Valid Since + + + + + Valid Until + + + + + Issuer Info + + + + + Subject Info + + + + + SuisseID Number + + + + + Certificate Serial Number + + + + + Alternate Subject + + + + + E-Mail + + + + + URL + + + + + error + unknown certificate subject alternate name + + + + + Organization + + + + + Common Name + + + + + Locality + + + + + Organizational Unit + + + + + Country + + + + + State or Province + + + + + error + unknown certificate subject info + + + + + Form + + + + + Attribute + + + + + Value + + + + + DownloadManager + + + Network connection successful, remote host can be reached. + + + + + The remote server refused the connection (the server is not accepting requests). + + + + + The remote server closed the connection prematurely, before the entire reply was received and processed. + + + + + The remote host name was not found (invalid hostname). + + + + + The connection to the remote server timed out. + + + + + The operation was canceled via calls to abort() or close() before it was finished. + + + + + The SSL/TLS handshake failed and the encrypted channel could not be established. See SSL-Errors above. + The SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() signal should have been emitted. + + + + + The connection to the proxy server was refused (the proxy server is not accepting requests). + + + + + The proxy server closed the connection prematurely, before the entire reply was received and processed. + + + + + The proxy host name was not found (invalid proxy hostname). + + + + + The connection to the proxy timed out or the proxy did not reply in time to the request sent. + + + + + The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any). + + + + + The access to the remote content was denied (similar to HTTP error 401). + + + + + The operation requested on the remote content is not permitted. + + + + + The remote content was not found at the server (similar to HTTP error 404). + + + + + The remote server requires authentication to serve the content but the credentials provided were not accepted (if any). + + + + + The Network Access API cannot honor the request because the protocol is not known. + + + + + The requested operation is invalid for this protocol. + + + + + An unknown network-related error was detected. + + + + + An unknown proxy-related error was detected. + + + + + An unknonwn error related to the remote content was detected. + + + + + A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.). + + + + + <strong>Unknown network error (code: %1).</string> + + + + + <h1>Network Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl> + <h1>Network Error</h2><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl> + + + + + <h1>SSL Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl><table><caption>Certificate Issuer</caption><tr><th>Organization:</th><td>%4</td></tr><tr><th>Common Name:</th><td>%5</td></tr><tr><th>Location:</th><td>%6</td></tr><tr><th>Organizational Unit:</th><td>%7</td></tr><tr><th>Country:</th><td>%8</td></tr><tr><th>State or Provive:</th><td>%9</td></tr></table><table><caption>Certificate Subject</caption><tr><th>Organization:</th><td>%10</td></tr><tr><th>Common Name:</th><td>%11</td></tr><tr><th>Location:</th><td>%12</td></tr><tr><th>Organizational Unit:</th><td>%13</td></tr><tr><th>Country:</th><td>%14</td></tr><tr><th>State or Provive:</th><td>%15</td></tr></table> + <h1>SSL Error</h2><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl><table><caption>Certificate Issuer</caption><tr><th>Organization:</th><td>%4</td></tr><tr><th>Common Name:</th><td>%5</td></tr><tr><th>Location:</th><td>%6</td></tr><tr><th>Organizational Unit:</th><td>%7</td></tr><tr><th>Country:</th><td>%8</td></tr><tr><th>State or Provive:</th><td>%9</td></tr></table><table><caption>Certificate Subject</caption><tr><th>Organization:</th><td>%10</td></tr><tr><th>Common Name:</th><td>%11</td></tr><tr><th>Location:</th><td>%12</td></tr><tr><th>Organizational Unit:</th><td>%13</td></tr><tr><th>Country:</th><td>%14</td></tr><tr><th>State or Provive:</th><td>%15</td></tr></table> + + + + + EditBookmarks + + + Edit Bookmarks + + + + + + + + + + + - + + + + + Use Drag/Drop to move, double-click to edit. + + + + + ErrorLog + + + Error Log + + + + + LoginCertificate + + + User Login Certificate + + + + + PinEntry + + + Certificate PIN Entry + SwissSign Pin Entry + + + + + Please enter your PIN to unlock Certificate + + + + + PIN: + + + + + Name: + + + + + + + TextLabel + + + + + E-Mail: + + + + + + SuisseID Number: + + + + + %1 PIN attempts left + + + + + bad or locked certificate + + + + + Show Certificate Details + + + + + Postzertifikat: + title for postzertificate serial number + + + + + there are %1 PIN attempts left + + + + + QMessageBox + + + Wrong PIN + + + + + Authentication failed, please try again. + + + + + QObject + + + SwissSurfer + application name + + + + + Usage: %1 [OPTIONS...] [<url> ...] +Options: + -h, --help show this help text + -k, --kiosk no url bar + if you sepcify -k and -s, -k must be first + -q, --quirks alternate user interface + -n, --no-settings don't load or store any settings + --login ask for smartcard password at startup + -l, --lib <file> path to file libengine_act.so + -s, --settings <file> + load settings from <file> + if you sepcify -k and -s, -k must be first + -c, --cert <file> load local client certificate from <file> + -y, --key <file> load local certificate key from <file> + -m, --mime <mime> <ext> <tool> + start <tool> for mimetype <mime> + <url> optional full URL +Environment: + LANGUAGE "de", "en", ... (actual: %5) + PROXY_TYPE "http" or "socks" or "" (actual: %2) + PROXY_PORT proxy port number (actual: %3) + PROXY_HOST proxy host name (actual: %4) + SWISSSURFER_USERAGENT fake user agent (actual: %6) + + + + + + Cannot read PEM certificate from file: %1 + + + + + Read PEM certificates from file: %1 + + + + + Cannot read PEM RSA key from file: %1 + + + + + Read private key from file: %1 + + + + + Too few arguments. +Try: %1 --help + + + + + SaveOrRun + + + File Exists + + + + + File already exists: + +%1 + +Overwrite? + + + + + Save File As ... + + + + + Open File With ... + + + + + Dokumente + Documents folder in local language + + + + + Arbeitsfläche + Desktop folder in local language + + + + + Download + + + + + File: + + + + + + + ... + + + + + Type: + + + + + Source + + + + + Save File + + + + + Save File As: + + + + + + browse ... + + + + + remember save path + + + + + Open in External Application + + + + + Open File in: + + + + + remember tool for this type + + + + + Settings + + + Settings + + + + + Web + + + + + Network Connections + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether images are automatically loaded in web pages.</span></p></body></html> + + + + + auto load images + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether SwissSurfer will try to pre-fetch DNS entries to speed up browsing.</span></p></body></html> + + + + + DNS prefetch enabled + + + + + Rendering + + + + + Specifies whether JavaScript programs can open new windows. + + + + + JavaScript can open windows + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the Spatial Navigation feature, which consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element he might be trying to reach towards the right and which element he probably wants.</span></p></body></html> + + + + + spatial navigation + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether hyperlinks should be included in the keyboard focus chain.</span></p></body></html> + + + + + fokus links + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the zoom factor on a frame applies only to the text or to all content.</span></p></body></html> + + + + + zoom text only + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the background color and images are also drawn when the page is printed.</span></p></body></html> + + + + + print element backgrounds + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This feature accelerates animations of web content. CSS animations of the transform and opacity properties will be rendered by composing the cached content of the animated elements.</span></p></body></html> + + + + + accelerated composing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables the tiled backing store feature. With the tiled backing store enabled, the web page contents in and around the current visible area is speculatively cached to bitmap tiles. The tiles are automatically kept in sync with the web page as it changes. Enabling tiling can significantly speed up painting heavy operations like scrolling. Enabling the feature increases memory consumption. It does not work well with contents using CSS fixed positioning.</span></p></body></html> + + + + + tiled backing store + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">With this setting each subframe is expanded to its contents. On touch devices, it is desired to not have any scrollable sub parts of the page as it results in a confusing user experience, with scrolling sometimes scrolling sub parts and at other times scrolling the page itself. For this reason iframes and framesets are barely usable on touch devices. This will flatten all the frames to become one scrollable page.</span></p></body></html> + + + + + frame flattening + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables WebKit's workaround for broken sites.</span></p></body></html> + + + + + site specific quirks + + + + + Security + + + + + Extensions + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the running of JavaScript programs.</span></p></body></html> + + + + + JavaScript + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables Java applets. Currently Java applets are not supported.</span></p></body></html> + + + + + Java + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables plugins in Web pages (e.g. using NPAPI). Qt plugins with a mimetype such as &quot;application/x-qt-plugin&quot; are not affected by this setting.</span></p></body></html> + + + + + Netscape plugins + + + + + Extras + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables extra tools for Web developers. Currently this enables the &quot;Inspect&quot; element in the context menu as well as the use of QWebInspector which controls the web inspector for web site debugging. </span></p></body></html> + + + + + developer extras + + + + + Privacy + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Private browsing prevents SwissSurfer from recording visited pages in the history and storing web page icons.</span></p></body></html> + + + + + private browsing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether JavaScript programs can read or write to the clipboard.</span></p></body></html> + + + + + JavaScript can access clipboard + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 offline storage feature is enabled or not.</span></p></body></html> + + + + + offline storage database + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 web application cache feature is enabled or not.</span></p></body></html> + + + + + offline webapplication cache + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 local storage feature is enabled or not.</span></p></body></html> + + + + + local storage + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access remote urls. </span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Local resources are by default restricted from accessing remote content, which means your </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">file://</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;"> will not be able to access </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">http://domain.com/foo.html</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">. </span></p></body></html> + + + + + Search Engines + + + + + Scheme + + + + + Query URL + + + + + Use %1 as placeholder for the query, use %2 as placeholder for your system language. + Use <QUERY> as placeholder for the query. + + + + + Session + + + + + Session Management + + + + + save window state when opened withiut URL + save window state + + + + + close mimetype helper applications on exit + + + + + local content can access remote urls + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access other local urls.</span></p></body></html> + + + + + local content can access file URLs + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether load requests should be monitored for cross-site scripting attempts. Suspicious scripts will be blocked and reported in the inspector's JavaScript console. Enabling this feature might have an impact on performance.</span></p></body></html> + + + + + cross site scripting auditing + + + + + Applications + + + + + Mime-Type + + + + + Ext + + + + + Program + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">%1</span> as file name placeholder.</p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">&lt;FILENAME&gt;</span> as file name placeholder.</p></body></html> + + + + + + + + + + + + + - + + + + diff --git a/trunk/src/swisssurfer_en.ts b/trunk/src/swisssurfer_en.ts new file mode 100644 index 0000000..4933657 --- /dev/null +++ b/trunk/src/swisssurfer_en.ts @@ -0,0 +1,1470 @@ + + + +UTF-8 + + Authentication + + + Authorization + + + + + Authentication required for: + + + + + realm + + + + + Username: + + + + + Password: + + + + + Browser + + + SwissSurfer + + + + + toolBar + + + + + &File + + + + + Edit + + + + + History + + + + + Info + + + + + neu laden + + + + + F5 + + + + + stoppen + + + + + + Esc + + + + + zurückkehren + + + + + weitergehen + + + + + Startseite + + + + + Ctrl+Home + + + + + &New Browser + + + + + New Browser Window + + + + + Ctrl+N + + + + + Ctrl+W + + + + + &Proxy... + + + + + Bookmarks + + + + + &Quit + + + + + Print ... + + + + + Print Pre&view ... + + + + + Quick &Print + + + + + Ctrl+P + + + + + Next Tab + + + + + Shift+Right + + + + + Previous Tab + + + + + Shift+Left + + + + + + New Tab + + + + + Add New Tab + + + + + Ctrl+T + + + + + Find + + + + + find in page + + + + + Ctrl+F + + + + + Close Find + + + + + &About + + + + + &Settings ... + + + + + &Reverse Find + + + + + Ctrl+R + + + + + Error Log + + + + + show error logs + + + + + User Login Certificate + + + + + &Proxy ... + + + + + Clear Location + + + + + clear location bar + + + + + Add Bookmark + + + + + add bookmark to location bar + + + + + Ctrl+D + + + + + &Bookmarks + + + + + Clear Find + + + + + clear find bar + + + + + &Close Tab + + + + + Sa&ve Session + + + + + &Load Session + + + + + Search + + + + + Clear Search + + + + + Checking: %1 + + + + + SSL Not Supported + + + + + background-color: white + search engines combobox + + + + + SSL is not supported on your system + + + + + Forbidden: %1 + + + + + Access Denied + + + + + <p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1. + + + + + Reading: %1 + + + + + Illegal URL: %1 + + + + + gg + + + + + http://www.google.com/search?hl=%2&q=%1 + + + + + Zoom: %1% + + + + + opening new window + + + + + Print Document + + + + + %1 - %2 + statusbar actionBack_hovered %1=url %2=title + + + + + %1 - %2 + statusbar actionForward_hovered %1=url %2=title + + + + + + background-color: white + neutral find + + + + + + background-color: #ADA + background-color: #7F7 + text found + + + + + + background-color: #F77 + background-color: lightred + text not found + + + + + About + + + + + %8 +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + SwissSurfer +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + + + + + %1 + + + + + Info: %1 + + + + + done. + + + + + %1 + statusbar for hovered link %1=url + + + + + launching application ... + + + + + errors + show error log + + + + + + background-color: #F77 + invalid url + + + + + + background-color: white + valid url + + + + + authentication required + + + + + ssl error + + + + + Certificate + + + Valid Since + + + + + Valid Until + + + + + Issuer Info + + + + + Subject Info + + + + + SuisseID Number + + + + + Certificate Serial Number + + + + + Alternate Subject + + + + + E-Mail + + + + + URL + + + + + error + unknown certificate subject alternate name + + + + + Organization + + + + + Common Name + + + + + Locality + + + + + Organizational Unit + + + + + Country + + + + + State or Province + + + + + error + unknown certificate subject info + + + + + Form + + + + + Attribute + + + + + Value + + + + + DownloadManager + + + Network connection successful, remote host can be reached. + + + + + The remote server refused the connection (the server is not accepting requests). + + + + + The remote server closed the connection prematurely, before the entire reply was received and processed. + + + + + The remote host name was not found (invalid hostname). + + + + + The connection to the remote server timed out. + + + + + The operation was canceled via calls to abort() or close() before it was finished. + + + + + The SSL/TLS handshake failed and the encrypted channel could not be established. See SSL-Errors above. + + + + + The connection to the proxy server was refused (the proxy server is not accepting requests). + + + + + The proxy server closed the connection prematurely, before the entire reply was received and processed. + + + + + The proxy host name was not found (invalid proxy hostname). + + + + + The connection to the proxy timed out or the proxy did not reply in time to the request sent. + + + + + The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any). + + + + + The access to the remote content was denied (similar to HTTP error 401). + + + + + The operation requested on the remote content is not permitted. + + + + + The remote content was not found at the server (similar to HTTP error 404). + + + + + The remote server requires authentication to serve the content but the credentials provided were not accepted (if any). + + + + + The Network Access API cannot honor the request because the protocol is not known. + + + + + The requested operation is invalid for this protocol. + + + + + An unknown network-related error was detected. + + + + + An unknown proxy-related error was detected. + + + + + An unknonwn error related to the remote content was detected. + + + + + A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.). + + + + + <strong>Unknown network error (code: %1).</string> + + + + + <h1>Network Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl> + + + + + <h1>SSL Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl><table><caption>Certificate Issuer</caption><tr><th>Organization:</th><td>%4</td></tr><tr><th>Common Name:</th><td>%5</td></tr><tr><th>Location:</th><td>%6</td></tr><tr><th>Organizational Unit:</th><td>%7</td></tr><tr><th>Country:</th><td>%8</td></tr><tr><th>State or Provive:</th><td>%9</td></tr></table><table><caption>Certificate Subject</caption><tr><th>Organization:</th><td>%10</td></tr><tr><th>Common Name:</th><td>%11</td></tr><tr><th>Location:</th><td>%12</td></tr><tr><th>Organizational Unit:</th><td>%13</td></tr><tr><th>Country:</th><td>%14</td></tr><tr><th>State or Provive:</th><td>%15</td></tr></table> + + + + + EditBookmarks + + + Edit Bookmarks + + + + + + + + + + + - + + + + + Use Drag/Drop to move, double-click to edit. + + + + + ErrorLog + + + Error Log + + + + + LoginCertificate + + + User Login Certificate + + + + + PinEntry + + + Certificate PIN Entry + + + + + Please enter your PIN to unlock Certificate + + + + + PIN: + + + + + Name: + + + + + + + TextLabel + + + + + E-Mail: + + + + + + SuisseID Number: + + + + + %1 PIN attempts left + + + + + bad or locked certificate + + + + + Show Certificate Details + + + + + Postzertifikat: + title for postzertificate serial number + + + + + there are %1 PIN attempts left + + + + + QMessageBox + + + Wrong PIN + + + + + Authentication failed, please try again. + + + + + QObject + + + SwissSurfer + application name + + + + + Usage: %1 [OPTIONS...] [<url> ...] +Options: + -h, --help show this help text + -k, --kiosk no url bar + if you sepcify -k and -s, -k must be first + -q, --quirks alternate user interface + -n, --no-settings don't load or store any settings + --login ask for smartcard password at startup + -l, --lib <file> path to file libengine_act.so + -s, --settings <file> + load settings from <file> + if you sepcify -k and -s, -k must be first + -c, --cert <file> load local client certificate from <file> + -y, --key <file> load local certificate key from <file> + -m, --mime <mime> <ext> <tool> + start <tool> for mimetype <mime> + <url> optional full URL +Environment: + LANGUAGE "de", "en", ... (actual: %5) + PROXY_TYPE "http" or "socks" or "" (actual: %2) + PROXY_PORT proxy port number (actual: %3) + PROXY_HOST proxy host name (actual: %4) + SWISSSURFER_USERAGENT fake user agent (actual: %6) + + + + + + Cannot read PEM certificate from file: %1 + + + + + Read PEM certificates from file: %1 + + + + + Cannot read PEM RSA key from file: %1 + + + + + Read private key from file: %1 + + + + + Too few arguments. +Try: %1 --help + + + + + SaveOrRun + + + File Exists + + + + + File already exists: + +%1 + +Overwrite? + + + + + Save File As ... + + + + + Open File With ... + + + + + Dokumente + Documents folder in local language + + + + + Arbeitsfläche + Desktop folder in local language + + + + + Download + + + + + File: + + + + + + + ... + + + + + Type: + + + + + Source + + + + + Save File + + + + + Save File As: + + + + + + browse ... + + + + + remember save path + + + + + Open in External Application + + + + + Open File in: + + + + + remember tool for this type + + + + + Settings + + + Settings + + + + + Web + + + + + Network Connections + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether images are automatically loaded in web pages.</span></p></body></html> + + + + + auto load images + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether SwissSurfer will try to pre-fetch DNS entries to speed up browsing.</span></p></body></html> + + + + + DNS prefetch enabled + + + + + Rendering + + + + + Specifies whether JavaScript programs can open new windows. + + + + + JavaScript can open windows + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the Spatial Navigation feature, which consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element he might be trying to reach towards the right and which element he probably wants.</span></p></body></html> + + + + + spatial navigation + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether hyperlinks should be included in the keyboard focus chain.</span></p></body></html> + + + + + fokus links + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the zoom factor on a frame applies only to the text or to all content.</span></p></body></html> + + + + + zoom text only + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the background color and images are also drawn when the page is printed.</span></p></body></html> + + + + + print element backgrounds + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This feature accelerates animations of web content. CSS animations of the transform and opacity properties will be rendered by composing the cached content of the animated elements.</span></p></body></html> + + + + + accelerated composing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables the tiled backing store feature. With the tiled backing store enabled, the web page contents in and around the current visible area is speculatively cached to bitmap tiles. The tiles are automatically kept in sync with the web page as it changes. Enabling tiling can significantly speed up painting heavy operations like scrolling. Enabling the feature increases memory consumption. It does not work well with contents using CSS fixed positioning.</span></p></body></html> + + + + + tiled backing store + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">With this setting each subframe is expanded to its contents. On touch devices, it is desired to not have any scrollable sub parts of the page as it results in a confusing user experience, with scrolling sometimes scrolling sub parts and at other times scrolling the page itself. For this reason iframes and framesets are barely usable on touch devices. This will flatten all the frames to become one scrollable page.</span></p></body></html> + + + + + frame flattening + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables WebKit's workaround for broken sites.</span></p></body></html> + + + + + site specific quirks + + + + + Security + + + + + Extensions + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the running of JavaScript programs.</span></p></body></html> + + + + + JavaScript + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables Java applets. Currently Java applets are not supported.</span></p></body></html> + + + + + Java + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables plugins in Web pages (e.g. using NPAPI). Qt plugins with a mimetype such as &quot;application/x-qt-plugin&quot; are not affected by this setting.</span></p></body></html> + + + + + Netscape plugins + + + + + Extras + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables extra tools for Web developers. Currently this enables the &quot;Inspect&quot; element in the context menu as well as the use of QWebInspector which controls the web inspector for web site debugging. </span></p></body></html> + + + + + developer extras + + + + + Privacy + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Private browsing prevents SwissSurfer from recording visited pages in the history and storing web page icons.</span></p></body></html> + + + + + private browsing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether JavaScript programs can read or write to the clipboard.</span></p></body></html> + + + + + JavaScript can access clipboard + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 offline storage feature is enabled or not.</span></p></body></html> + + + + + offline storage database + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 web application cache feature is enabled or not.</span></p></body></html> + + + + + offline webapplication cache + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 local storage feature is enabled or not.</span></p></body></html> + + + + + local storage + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access remote urls. </span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Local resources are by default restricted from accessing remote content, which means your </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">file://</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;"> will not be able to access </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">http://domain.com/foo.html</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">. </span></p></body></html> + + + + + local content can access remote urls + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access other local urls.</span></p></body></html> + + + + + local content can access file URLs + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether load requests should be monitored for cross-site scripting attempts. Suspicious scripts will be blocked and reported in the inspector's JavaScript console. Enabling this feature might have an impact on performance.</span></p></body></html> + + + + + cross site scripting auditing + + + + + Applications + + + + + Mime-Type + + + + + Ext + + + + + Program + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">%1</span> as file name placeholder.</p></body></html> + + + + + + + + + + + + + - + + + + + Search Engines + + + + + Scheme + + + + + Query URL + + + + + Use %1 as placeholder for the query, use %2 as placeholder for your system language. + + + + + Session + + + + + Session Management + + + + + save window state when opened withiut URL + save window state + + + + + close mimetype helper applications on exit + + + + diff --git a/trunk/src/swisssurfer_fr.ts b/trunk/src/swisssurfer_fr.ts new file mode 100644 index 0000000..7acff8e --- /dev/null +++ b/trunk/src/swisssurfer_fr.ts @@ -0,0 +1,1485 @@ + + + +UTF-8 + + Authentication + + + Authorization + + + + + Authentication required for: + + + + + realm + + + + + Username: + + + + + Password: + + + + + Browser + + + SwissSurfer + SwissSign Browser + + + + + toolBar + + + + + &File + + + + + Edit + + + + + Info + + + + + History + + + + + neu laden + + + + + F5 + + + + + stoppen + + + + + zurückkehren + + + + + weitergehen + + + + + Startseite + + + + + Ctrl+Home + + + + + &New Browser + + + + + New Browser Window + + + + + Ctrl+N + + + + + Ctrl+W + + + + + &Proxy... + + + + + Bookmarks + + + + + &Quit + + + + + Ctrl+P + + + + + Next Tab + + + + + Shift+Right + + + + + Previous Tab + + + + + Shift+Left + + + + + + New Tab + + + + + Add New Tab + + + + + Ctrl+T + + + + + Find + + + + + Close Find + + + + + &About + + + + + &Settings ... + + + + + &Reverse Find + + + + + Ctrl+R + + + + + Error Log + + + + + show error logs + + + + + User Login Certificate + + + + + &Proxy ... + + + + + Clear Location + + + + + clear location bar + + + + + Add Bookmark + + + + + add bookmark to location bar + + + + + Ctrl+D + + + + + &Bookmarks + + + + + Clear Find + + + + + clear find bar + + + + + &Close Tab + + + + + Sa&ve Session + + + + + &Load Session + + + + + Search + + + + + Clear Search + + + + + + Esc + + + + + find in page + + + + + Ctrl+F + + + + + Print ... + + + + + Quick &Print + &Print + + + + + Print Pre&view ... + + + + + Checking: %1 + Opening: %1 + + + + + Reading: %1 + Reading: %1% + + + + + Zoom: %1% + + + + + Illegal URL: %1 + + + + + gg + + + + + Print Document + + + + + %1 - %2 + Back to %1 - %2 + statusbar actionBack_hovered %1=url %2=title + + + + + Info: %1 + + + + + done. + + + + + %1 + statusbar for hovered link %1=url + + + + + Forbidden: %1 + + + + + background-color: white + search engines combobox + + + + + SSL Not Supported + + + + + SSL is not supported on your system + + + + + Access Denied + + + + + <p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1. + + + + + http://www.google.com/search?hl=%2&q=%1 + + + + + opening new window + + + + + %1 - %2 + statusbar actionForward_hovered %1=url %2=title + + + + + + background-color: white + neutral find + + + + + + background-color: #ADA + background-color: #7F7 + text found + + + + + + background-color: #F77 + background-color: lightred + text not found + + + + + About + + + + + %8 +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + SwissSurfer +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + + + + + %1 + + + + + launching application ... + + + + + errors + show error log + + + + + + background-color: #F77 + invalid url + + + + + + background-color: white + valid url + + + + + authentication required + + + + + ssl error + + + + + Certificate + + + Valid Since + + + + + Valid Until + + + + + Issuer Info + + + + + Subject Info + + + + + SuisseID Number + + + + + Certificate Serial Number + + + + + Alternate Subject + + + + + E-Mail + + + + + URL + + + + + error + unknown certificate subject alternate name + + + + + Organization + + + + + Common Name + + + + + Locality + + + + + Organizational Unit + + + + + Country + + + + + State or Province + + + + + error + unknown certificate subject info + + + + + Form + + + + + Attribute + + + + + Value + + + + + DownloadManager + + + Network connection successful, remote host can be reached. + + + + + The remote server refused the connection (the server is not accepting requests). + + + + + The remote server closed the connection prematurely, before the entire reply was received and processed. + + + + + The remote host name was not found (invalid hostname). + + + + + The connection to the remote server timed out. + + + + + The operation was canceled via calls to abort() or close() before it was finished. + + + + + The SSL/TLS handshake failed and the encrypted channel could not be established. See SSL-Errors above. + The SSL/TLS handshake failed and the encrypted channel could not be established. The sslErrors() signal should have been emitted. + + + + + The connection to the proxy server was refused (the proxy server is not accepting requests). + + + + + The proxy server closed the connection prematurely, before the entire reply was received and processed. + + + + + The proxy host name was not found (invalid proxy hostname). + + + + + The connection to the proxy timed out or the proxy did not reply in time to the request sent. + + + + + The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any). + + + + + The access to the remote content was denied (similar to HTTP error 401). + + + + + The operation requested on the remote content is not permitted. + + + + + The remote content was not found at the server (similar to HTTP error 404). + + + + + The remote server requires authentication to serve the content but the credentials provided were not accepted (if any). + + + + + The Network Access API cannot honor the request because the protocol is not known. + + + + + The requested operation is invalid for this protocol. + + + + + An unknown network-related error was detected. + + + + + An unknown proxy-related error was detected. + + + + + An unknonwn error related to the remote content was detected. + + + + + A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.). + + + + + <strong>Unknown network error (code: %1).</string> + + + + + <h1>Network Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl> + <h1>Network Error</h2><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl> + + + + + <h1>SSL Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl><table><caption>Certificate Issuer</caption><tr><th>Organization:</th><td>%4</td></tr><tr><th>Common Name:</th><td>%5</td></tr><tr><th>Location:</th><td>%6</td></tr><tr><th>Organizational Unit:</th><td>%7</td></tr><tr><th>Country:</th><td>%8</td></tr><tr><th>State or Provive:</th><td>%9</td></tr></table><table><caption>Certificate Subject</caption><tr><th>Organization:</th><td>%10</td></tr><tr><th>Common Name:</th><td>%11</td></tr><tr><th>Location:</th><td>%12</td></tr><tr><th>Organizational Unit:</th><td>%13</td></tr><tr><th>Country:</th><td>%14</td></tr><tr><th>State or Provive:</th><td>%15</td></tr></table> + <h1>SSL Error</h2><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl><table><caption>Certificate Issuer</caption><tr><th>Organization:</th><td>%4</td></tr><tr><th>Common Name:</th><td>%5</td></tr><tr><th>Location:</th><td>%6</td></tr><tr><th>Organizational Unit:</th><td>%7</td></tr><tr><th>Country:</th><td>%8</td></tr><tr><th>State or Provive:</th><td>%9</td></tr></table><table><caption>Certificate Subject</caption><tr><th>Organization:</th><td>%10</td></tr><tr><th>Common Name:</th><td>%11</td></tr><tr><th>Location:</th><td>%12</td></tr><tr><th>Organizational Unit:</th><td>%13</td></tr><tr><th>Country:</th><td>%14</td></tr><tr><th>State or Provive:</th><td>%15</td></tr></table> + + + + + EditBookmarks + + + Edit Bookmarks + + + + + + + + + + + - + + + + + Use Drag/Drop to move, double-click to edit. + + + + + ErrorLog + + + Error Log + + + + + LoginCertificate + + + User Login Certificate + + + + + PinEntry + + + Certificate PIN Entry + SwissSign Pin Entry + + + + + Please enter your PIN to unlock Certificate + + + + + PIN: + + + + + Name: + + + + + + + TextLabel + + + + + E-Mail: + + + + + + SuisseID Number: + + + + + %1 PIN attempts left + + + + + bad or locked certificate + + + + + Show Certificate Details + + + + + Postzertifikat: + title for postzertificate serial number + + + + + there are %1 PIN attempts left + + + + + QMessageBox + + + Wrong PIN + + + + + Authentication failed, please try again. + + + + + QObject + + + SwissSurfer + application name + + + + + Usage: %1 [OPTIONS...] [<url> ...] +Options: + -h, --help show this help text + -k, --kiosk no url bar + if you sepcify -k and -s, -k must be first + -q, --quirks alternate user interface + -n, --no-settings don't load or store any settings + --login ask for smartcard password at startup + -l, --lib <file> path to file libengine_act.so + -s, --settings <file> + load settings from <file> + if you sepcify -k and -s, -k must be first + -c, --cert <file> load local client certificate from <file> + -y, --key <file> load local certificate key from <file> + -m, --mime <mime> <ext> <tool> + start <tool> for mimetype <mime> + <url> optional full URL +Environment: + LANGUAGE "de", "en", ... (actual: %5) + PROXY_TYPE "http" or "socks" or "" (actual: %2) + PROXY_PORT proxy port number (actual: %3) + PROXY_HOST proxy host name (actual: %4) + SWISSSURFER_USERAGENT fake user agent (actual: %6) + + + + + + Cannot read PEM certificate from file: %1 + + + + + Read PEM certificates from file: %1 + + + + + Cannot read PEM RSA key from file: %1 + + + + + Read private key from file: %1 + + + + + Too few arguments. +Try: %1 --help + + + + + SaveOrRun + + + File Exists + + + + + File already exists: + +%1 + +Overwrite? + + + + + Save File As ... + + + + + Open File With ... + + + + + Dokumente + Documents folder in local language + + + + + Arbeitsfläche + Desktop folder in local language + + + + + Download + + + + + File: + + + + + + + ... + + + + + Type: + + + + + Source + + + + + Save File + + + + + Save File As: + + + + + + browse ... + + + + + remember save path + + + + + Open in External Application + + + + + Open File in: + + + + + remember tool for this type + + + + + Settings + + + Settings + + + + + Web + + + + + Network Connections + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether images are automatically loaded in web pages.</span></p></body></html> + + + + + auto load images + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether SwissSurfer will try to pre-fetch DNS entries to speed up browsing.</span></p></body></html> + + + + + DNS prefetch enabled + + + + + Rendering + + + + + Specifies whether JavaScript programs can open new windows. + + + + + JavaScript can open windows + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the Spatial Navigation feature, which consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element he might be trying to reach towards the right and which element he probably wants.</span></p></body></html> + + + + + spatial navigation + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether hyperlinks should be included in the keyboard focus chain.</span></p></body></html> + + + + + fokus links + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the zoom factor on a frame applies only to the text or to all content.</span></p></body></html> + + + + + zoom text only + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the background color and images are also drawn when the page is printed.</span></p></body></html> + + + + + print element backgrounds + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This feature accelerates animations of web content. CSS animations of the transform and opacity properties will be rendered by composing the cached content of the animated elements.</span></p></body></html> + + + + + accelerated composing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables the tiled backing store feature. With the tiled backing store enabled, the web page contents in and around the current visible area is speculatively cached to bitmap tiles. The tiles are automatically kept in sync with the web page as it changes. Enabling tiling can significantly speed up painting heavy operations like scrolling. Enabling the feature increases memory consumption. It does not work well with contents using CSS fixed positioning.</span></p></body></html> + + + + + tiled backing store + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">With this setting each subframe is expanded to its contents. On touch devices, it is desired to not have any scrollable sub parts of the page as it results in a confusing user experience, with scrolling sometimes scrolling sub parts and at other times scrolling the page itself. For this reason iframes and framesets are barely usable on touch devices. This will flatten all the frames to become one scrollable page.</span></p></body></html> + + + + + frame flattening + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables WebKit's workaround for broken sites.</span></p></body></html> + + + + + site specific quirks + + + + + Security + + + + + Extensions + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the running of JavaScript programs.</span></p></body></html> + + + + + JavaScript + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables Java applets. Currently Java applets are not supported.</span></p></body></html> + + + + + Java + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables plugins in Web pages (e.g. using NPAPI). Qt plugins with a mimetype such as &quot;application/x-qt-plugin&quot; are not affected by this setting.</span></p></body></html> + + + + + Netscape plugins + + + + + Extras + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables extra tools for Web developers. Currently this enables the &quot;Inspect&quot; element in the context menu as well as the use of QWebInspector which controls the web inspector for web site debugging. </span></p></body></html> + + + + + developer extras + + + + + Privacy + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Private browsing prevents SwissSurfer from recording visited pages in the history and storing web page icons.</span></p></body></html> + + + + + private browsing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether JavaScript programs can read or write to the clipboard.</span></p></body></html> + + + + + JavaScript can access clipboard + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 offline storage feature is enabled or not.</span></p></body></html> + + + + + offline storage database + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 web application cache feature is enabled or not.</span></p></body></html> + + + + + offline webapplication cache + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 local storage feature is enabled or not.</span></p></body></html> + + + + + local storage + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access remote urls. </span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Local resources are by default restricted from accessing remote content, which means your </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">file://</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;"> will not be able to access </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">http://domain.com/foo.html</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">. </span></p></body></html> + + + + + Search Engines + + + + + Scheme + + + + + Query URL + + + + + Use %1 as placeholder for the query, use %2 as placeholder for your system language. + Use <QUERY> as placeholder for the query. + + + + + Session + + + + + Session Management + + + + + save window state when opened withiut URL + save window state + + + + + close mimetype helper applications on exit + + + + + local content can access remote urls + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access other local urls.</span></p></body></html> + + + + + local content can access file URLs + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether load requests should be monitored for cross-site scripting attempts. Suspicious scripts will be blocked and reported in the inspector's JavaScript console. Enabling this feature might have an impact on performance.</span></p></body></html> + + + + + cross site scripting auditing + + + + + Applications + + + + + Mime-Type + + + + + Ext + + + + + Program + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">%1</span> as file name placeholder.</p></body></html> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">&lt;FILENAME&gt;</span> as file name placeholder.</p></body></html> + + + + + + + + + + + + + - + + + + diff --git a/trunk/src/swisssurfer_it.ts b/trunk/src/swisssurfer_it.ts new file mode 100644 index 0000000..e7cae25 --- /dev/null +++ b/trunk/src/swisssurfer_it.ts @@ -0,0 +1,1460 @@ + + + +UTF-8 + + Authentication + + + Authorization + + + + + Authentication required for: + + + + + realm + + + + + Username: + + + + + Password: + + + + + Browser + + + SwissSurfer + + + + + toolBar + + + + + &File + + + + + Edit + + + + + History + + + + + Info + + + + + neu laden + + + + + F5 + + + + + stoppen + + + + + + Esc + + + + + zurückkehren + + + + + weitergehen + + + + + Startseite + + + + + Ctrl+Home + + + + + &New Browser + + + + + New Browser Window + + + + + Ctrl+N + + + + + Ctrl+W + + + + + &Proxy... + + + + + Bookmarks + + + + + &Quit + + + + + Print ... + + + + + Print Pre&view ... + + + + + Quick &Print + + + + + Ctrl+P + + + + + Next Tab + + + + + Shift+Right + + + + + Previous Tab + + + + + Shift+Left + + + + + + New Tab + + + + + Add New Tab + + + + + Ctrl+T + + + + + Find + + + + + find in page + + + + + Ctrl+F + + + + + Close Find + + + + + &About + + + + + &Settings ... + + + + + &Reverse Find + + + + + Ctrl+R + + + + + Error Log + + + + + show error logs + + + + + User Login Certificate + + + + + &Proxy ... + + + + + Clear Location + + + + + clear location bar + + + + + Add Bookmark + + + + + add bookmark to location bar + + + + + Ctrl+D + + + + + &Bookmarks + + + + + Clear Find + + + + + clear find bar + + + + + &Close Tab + + + + + Sa&ve Session + + + + + &Load Session + + + + + Search + + + + + Clear Search + + + + + background-color: white + search engines combobox + + + + + SSL Not Supported + + + + + SSL is not supported on your system + + + + + Checking: %1 + + + + + Forbidden: %1 + + + + + Access Denied + + + + + <p>Access denied due to security considerations.</p><p>You are not allowed to connect to %1. + + + + + Reading: %1 + + + + + Illegal URL: %1 + + + + + gg + + + + + http://www.google.com/search?hl=%2&q=%1 + + + + + Zoom: %1% + + + + + opening new window + + + + + Print Document + + + + + %1 - %2 + statusbar actionBack_hovered %1=url %2=title + + + + + %1 - %2 + statusbar actionForward_hovered %1=url %2=title + + + + + + background-color: white + neutral find + + + + + + background-color: #ADA + text found + + + + + + background-color: #F77 + text not found + + + + + About + + + + + %8 +Version: %1 +Builddate: %2 +Libraries: +%3 +%4 +qt-%5 (%6) +openssl-%7 + + + + + %1 + + + + + Info: %1 + + + + + done. + + + + + %1 + statusbar for hovered link %1=url + + + + + launching application ... + + + + + errors + show error log + + + + + + background-color: #F77 + invalid url + + + + + + background-color: white + valid url + + + + + authentication required + + + + + ssl error + + + + + Certificate + + + Form + + + + + Attribute + + + + + Value + + + + + Valid Since + + + + + Valid Until + + + + + SuisseID Number + + + + + Certificate Serial Number + + + + + Subject Info + + + + + Alternate Subject + + + + + Issuer Info + + + + + E-Mail + + + + + URL + + + + + error + unknown certificate subject alternate name + + + + + Organization + + + + + Common Name + + + + + Locality + + + + + Organizational Unit + + + + + Country + + + + + State or Province + + + + + error + unknown certificate subject info + + + + + DownloadManager + + + Network connection successful, remote host can be reached. + + + + + The remote server refused the connection (the server is not accepting requests). + + + + + The remote server closed the connection prematurely, before the entire reply was received and processed. + + + + + The remote host name was not found (invalid hostname). + + + + + The connection to the remote server timed out. + + + + + The operation was canceled via calls to abort() or close() before it was finished. + + + + + The SSL/TLS handshake failed and the encrypted channel could not be established. See SSL-Errors above. + + + + + The connection to the proxy server was refused (the proxy server is not accepting requests). + + + + + The proxy server closed the connection prematurely, before the entire reply was received and processed. + + + + + The proxy host name was not found (invalid proxy hostname). + + + + + The connection to the proxy timed out or the proxy did not reply in time to the request sent. + + + + + The proxy requires authentication in order to honour the request but did not accept any credentials offered (if any). + + + + + The access to the remote content was denied (similar to HTTP error 401). + + + + + The operation requested on the remote content is not permitted. + + + + + The remote content was not found at the server (similar to HTTP error 404). + + + + + The remote server requires authentication to serve the content but the credentials provided were not accepted (if any). + + + + + The Network Access API cannot honor the request because the protocol is not known. + + + + + The requested operation is invalid for this protocol. + + + + + An unknown network-related error was detected. + + + + + An unknown proxy-related error was detected. + + + + + An unknonwn error related to the remote content was detected. + + + + + A breakdown in protocol was detected (parsing error, invalid or unexpected responses, etc.). + + + + + <strong>Unknown network error (code: %1).</string> + + + + + <h1>Network Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl> + + + + + <h1>SSL Error</h1><dl><dt>URL:</dt><dd>%1</dd><dt>Error Code:</dt><dd>%3</dd><dt>Error Details:</dt><dd>%2</dd></dl><table><caption>Certificate Issuer</caption><tr><th>Organization:</th><td>%4</td></tr><tr><th>Common Name:</th><td>%5</td></tr><tr><th>Location:</th><td>%6</td></tr><tr><th>Organizational Unit:</th><td>%7</td></tr><tr><th>Country:</th><td>%8</td></tr><tr><th>State or Provive:</th><td>%9</td></tr></table><table><caption>Certificate Subject</caption><tr><th>Organization:</th><td>%10</td></tr><tr><th>Common Name:</th><td>%11</td></tr><tr><th>Location:</th><td>%12</td></tr><tr><th>Organizational Unit:</th><td>%13</td></tr><tr><th>Country:</th><td>%14</td></tr><tr><th>State or Provive:</th><td>%15</td></tr></table> + + + + + EditBookmarks + + + Edit Bookmarks + + + + + + + + + + + - + + + + + Use Drag/Drop to move, double-click to edit. + + + + + ErrorLog + + + Error Log + + + + + LoginCertificate + + + User Login Certificate + + + + + PinEntry + + + Certificate PIN Entry + + + + + Please enter your PIN to unlock Certificate + + + + + PIN: + + + + + Name: + + + + + + + TextLabel + + + + + E-Mail: + + + + + + SuisseID Number: + + + + + %1 PIN attempts left + + + + + bad or locked certificate + + + + + Show Certificate Details + + + + + Postzertifikat: + title for postzertificate serial number + + + + + there are %1 PIN attempts left + + + + + QMessageBox + + + Wrong PIN + + + + + Authentication failed, please try again. + + + + + QObject + + + SwissSurfer + application name + + + + + Usage: %1 [OPTIONS...] [<url> ...] +Options: + -h, --help show this help text + -k, --kiosk no url bar + if you sepcify -k and -s, -k must be first + -q, --quirks alternate user interface + -n, --no-settings don't load or store any settings + --login ask for smartcard password at startup + -l, --lib <file> path to file libengine_act.so + -s, --settings <file> + load settings from <file> + if you sepcify -k and -s, -k must be first + -c, --cert <file> load local client certificate from <file> + -y, --key <file> load local certificate key from <file> + -m, --mime <mime> <ext> <tool> + start <tool> for mimetype <mime> + <url> optional full URL +Environment: + LANGUAGE "de", "en", ... (actual: %5) + PROXY_TYPE "http" or "socks" or "" (actual: %2) + PROXY_PORT proxy port number (actual: %3) + PROXY_HOST proxy host name (actual: %4) + SWISSSURFER_USERAGENT fake user agent (actual: %6) + + + + + + Cannot read PEM certificate from file: %1 + + + + + Read PEM certificates from file: %1 + + + + + Cannot read PEM RSA key from file: %1 + + + + + Read private key from file: %1 + + + + + Too few arguments. +Try: %1 --help + + + + + SaveOrRun + + + File Exists + + + + + File already exists: + +%1 + +Overwrite? + + + + + Save File As ... + + + + + Open File With ... + + + + + Dokumente + Documents folder in local language + + + + + Arbeitsfläche + Desktop folder in local language + + + + + Download + + + + + File: + + + + + + + ... + + + + + Type: + + + + + Source + + + + + Save File + + + + + Save File As: + + + + + + browse ... + + + + + remember save path + + + + + Open in External Application + + + + + Open File in: + + + + + remember tool for this type + + + + + Settings + + + Settings + + + + + Web + + + + + Network Connections + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether images are automatically loaded in web pages.</span></p></body></html> + + + + + auto load images + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether SwissSurfer will try to pre-fetch DNS entries to speed up browsing.</span></p></body></html> + + + + + DNS prefetch enabled + + + + + Rendering + + + + + Specifies whether JavaScript programs can open new windows. + + + + + JavaScript can open windows + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the Spatial Navigation feature, which consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element he might be trying to reach towards the right and which element he probably wants.</span></p></body></html> + + + + + spatial navigation + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether hyperlinks should be included in the keyboard focus chain.</span></p></body></html> + + + + + fokus links + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the zoom factor on a frame applies only to the text or to all content.</span></p></body></html> + + + + + zoom text only + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether the background color and images are also drawn when the page is printed.</span></p></body></html> + + + + + print element backgrounds + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This feature accelerates animations of web content. CSS animations of the transform and opacity properties will be rendered by composing the cached content of the animated elements.</span></p></body></html> + + + + + accelerated composing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables the tiled backing store feature. With the tiled backing store enabled, the web page contents in and around the current visible area is speculatively cached to bitmap tiles. The tiles are automatically kept in sync with the web page as it changes. Enabling tiling can significantly speed up painting heavy operations like scrolling. Enabling the feature increases memory consumption. It does not work well with contents using CSS fixed positioning.</span></p></body></html> + + + + + tiled backing store + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">With this setting each subframe is expanded to its contents. On touch devices, it is desired to not have any scrollable sub parts of the page as it results in a confusing user experience, with scrolling sometimes scrolling sub parts and at other times scrolling the page itself. For this reason iframes and framesets are barely usable on touch devices. This will flatten all the frames to become one scrollable page.</span></p></body></html> + + + + + frame flattening + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">This setting enables WebKit's workaround for broken sites.</span></p></body></html> + + + + + site specific quirks + + + + + Security + + + + + Extensions + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables the running of JavaScript programs.</span></p></body></html> + + + + + JavaScript + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables Java applets. Currently Java applets are not supported.</span></p></body></html> + + + + + Java + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables or disables plugins in Web pages (e.g. using NPAPI). Qt plugins with a mimetype such as &quot;application/x-qt-plugin&quot; are not affected by this setting.</span></p></body></html> + + + + + Netscape plugins + + + + + Extras + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Enables extra tools for Web developers. Currently this enables the &quot;Inspect&quot; element in the context menu as well as the use of QWebInspector which controls the web inspector for web site debugging. </span></p></body></html> + + + + + developer extras + + + + + Privacy + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Private browsing prevents SwissSurfer from recording visited pages in the history and storing web page icons.</span></p></body></html> + + + + + private browsing + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether JavaScript programs can read or write to the clipboard.</span></p></body></html> + + + + + JavaScript can access clipboard + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 offline storage feature is enabled or not.</span></p></body></html> + + + + + offline storage database + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 web application cache feature is enabled or not.</span></p></body></html> + + + + + offline webapplication cache + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether support for the HTML 5 local storage feature is enabled or not.</span></p></body></html> + + + + + local storage + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access remote urls. </span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Local resources are by default restricted from accessing remote content, which means your </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">file://</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;"> will not be able to access </span><span style=" font-family:'Courier New,courier'; font-size:medium; color:#363534;">http://domain.com/foo.html</span><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">. </span></p></body></html> + + + + + local content can access remote urls + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether locally loaded documents are allowed to access other local urls.</span></p></body></html> + + + + + local content can access file URLs + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:medium; color:#363534;">Specifies whether load requests should be monitored for cross-site scripting attempts. Suspicious scripts will be blocked and reported in the inspector's JavaScript console. Enabling this feature might have an impact on performance.</span></p></body></html> + + + + + cross site scripting auditing + + + + + Applications + + + + + Mime-Type + + + + + Ext + + + + + Program + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'DejaVu Serif'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the <span style=" font-weight:600;">Program</span>-column, enter <span style=" font-weight:600;">%1</span> as file name placeholder.</p></body></html> + + + + + + + + + + + + + - + + + + + Search Engines + + + + + Scheme + + + + + Query URL + + + + + Use %1 as placeholder for the query, use %2 as placeholder for your system language. + + + + + Session + + + + + Session Management + + + + + save window state when opened withiut URL + save window state + + + + + close mimetype helper applications on exit + + + + diff --git a/trunk/src/temporaryfile.hxx b/trunk/src/temporaryfile.hxx new file mode 100644 index 0000000..959b56b --- /dev/null +++ b/trunk/src/temporaryfile.hxx @@ -0,0 +1,66 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __TEMPORARYFILE_HXX__ +#define __TEMPORARYFILE_HXX__ + +#include +#include + +#include + +class TemporaryFile: public QFile { + Q_OBJECT; + + public: + + TemporaryFile(QString filename): _autoRemove(false) { + if (exists(filename)) { + QString prefix(filename); + QString suffix(filename); + prefix.remove(QRegExp("\\.[^.]*$")); + suffix.remove(QRegExp("^.*\\.")); + qDebug()<<"filename"< + +namespace xml { + std::string version() { + return "@PACKAGENAME@-@VERSION@"; + } + const std::string WHAT("#(@) @PACKAGENAME@-@VERSION@"); + const std::string IDENT("$Id: @PACKAGENAME@-@VERSION@ $"); +} diff --git a/trunk/src/webpage.cxx b/trunk/src/webpage.cxx new file mode 100644 index 0000000..bea9427 --- /dev/null +++ b/trunk/src/webpage.cxx @@ -0,0 +1,20 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include +#include + +QWebPage* WebPage::createWindow(WebWindowType type) { + switch (type) { + case QWebPage::WebBrowserWindow: + case QWebPage::WebModalDialog: { + return _browser->newTab()->page(); + } break; + } + return 0; +} + diff --git a/trunk/src/webpage.hxx b/trunk/src/webpage.hxx new file mode 100644 index 0000000..d503ef8 --- /dev/null +++ b/trunk/src/webpage.hxx @@ -0,0 +1,44 @@ +/*! @file + + @id $Id$ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#ifndef __WEBPAGE_HXX__ +#define __WEBPAGE_HXX__ + +#include +#include + +#include +#ifndef LOG +#define LOG qDebug()<<__PRETTY_FUNCTION__ +#endif + +class Browser; + +class WebPage: public QWebPage { + public: + WebPage(Browser* b, QObject *parent = 0): QWebPage(parent), _browser(b) {} + protected: + virtual QWebPage* createWindow(WebWindowType type); + virtual QString userAgentForUrl(const QUrl& url) const { + QString add(QProcessEnvironment::systemEnvironment() + .value("SWISSSURFER_USERAGENT")); + return QWebPage::userAgentForUrl(url)+(add.size()?" "+add:QString()); + } + QObject* createPlugin(const QString& classid, const QUrl& url, + const QStringList& paramNames, + const QStringList& paramValues) { + LOG<<"classid:"<