http___fossies.org_linux_csvtosql_jdk_src_net_sf_csv2sql_frontends_gui_simple_SimpleGui.java.xml
http___fossies.org_linux_docear_source_freeplane_framework_windows-installer_gpl-2.0_croatian.txt_1.xml
1.1 2.1 3.1 4.1 5.1 5.2 7.1 9.1 10.1 11.1 12.1 14.1 15.1 16.1 16.2 17.1 19.1 20.1 21.1 23.1 25.1 25.2 26.1 26.2 27.1 27.2 28.1 28.2 29.1 29.2 30.1 30.2 31.1 31.2 32.1 32.2 33.1 33.2 34.1 34.2 35.1 35.2 36.1 37.1 37.2 38.1 38.2 39.1 39.2 40.1 40.2 43.1 45.1 47.1 49.1 50.1 53.1 54.1 55.1 56.1 57.1 58.1 59.1 61.1 63.1 64.1 65.1 66.1 67.1 68.1 69.1 70.1 74.1 76.1 77.1 78.1 78.2 78.3 78.4 78.5 78.6 78.7 78.8 78.9 78.10 78.11 78.12 78.13 78.14 78.15 78.16 78.17 78.18 78.19 78.20 78.21 78.22 78.23 78.24 78.25 78.26 78.27 78.28 78.29 78.30 78.31 78.32 78.33 78.34 78.35 78.36 78.37 78.38 78.39 78.40 78.41 78.42 78.43 78.44 78.45 78.46 78.47 78.48 78.49 78.50 78.51 78.52 78.53 78.54 78.55 78.56 78.57 79.1 81.1 83.1 84.1 85.1 86.1 87.1 91.1 93.1 94.1 95.1 96.1 97.1 98.1 102.1 104.1 105.1 108.1 109.1 110.1 111.1 113.1 114.1 115.1 116.1 118.1 119.1 120.1 121.1 126.1 127.1 130.1 131.1 132.1 133.1 135.1 137.1 138.1 139.1 141.1 142.1 145.1 146.1 148.1 149.1 150.1 152.1 153.1 157.1 158.1 159.1 160.1 161.1 163.1 164.1 165.1 166.1 167.1 172.1 174.1 175.1 175.2 176.1 177.1 177.2 178.1 179.1 180.1 183.1 184.1 185.1 186.1 187.1 188.1
"Fossies" - the Fresh Open Source Software Archive Member "csvtosql_jdk50/src/net/sf/csv2sql/frontends/gui/simple/SimpleGui.java" (11 Oct 2006, 25157 Bytes) of archive /linux/privat/csvtosql_jdk50_3.1.0.tar.gz: As a special service "Fossies" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. You may also interested in "Fossies" according reference docs file. 2 Copyright (C) 2006 Davide Consonni 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 14 You should have received a copy of the GNU Lesser General Public 15 License along with this library; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 package net.sf.csv2sql.frontends.gui.simple; 20 import java.awt. Dimension; 21 import java.awt. Font; 22 import java.awt. Toolkit; 23 import java.awt.event. ActionEvent; 24 import java.awt.event. ActionListener; 25 import java.io. BufferedWriter; 26 import java.io. File; 27 import java.io. FileWriter; 28 import java.util. List; 29 import java.util. ArrayList; 30 import java.util. Iterator; 31 import javax.swing.*; 32 import net.sf.csv2sql.configuration. XmlConfigurator; 33 import net.sf.csv2sql.writers. AbstractWriter; 34 import org.netbeans.lib.awtextra. AbsoluteConstraints; 35 import org.netbeans.lib.awtextra. AbsoluteLayout; 38 * @author  Davide Consonni 40 public class SimpleGui extends JFrame { 42 List statements = new ArrayList(); 44 public SimpleGui() { 45 initComponents(); 48 private void initComponents() { 49 jFileChooser1 = new JFileChooser(); 50 jButton1 = new JButton(); 51 jScrollPane1 = new JScrollPane(); 52 jTextArea1 = new JTextArea(); 53 jButton2 = new JButton(); 54 jButton3 = new JButton(); 56 getContentPane().setLayout(new AbsoluteLayout()); 58 setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); 59 setTitle("csv2sql simple gui frontend"); 60 setResizable(false); 61 jButton1.setFont(new Font("Dialog", 0, 10)); 62 jButton1.setText("Load Descriptor"); 63 jButton1.addActionListener(new ActionListener() { 64 public void actionPerformed(ActionEvent evt) { 65 jButton1ActionPerformed(evt); 69 getContentPane().add(jButton1, new AbsoluteConstraints(10, 270, 110, 20)); 71 jTextArea1.setEditable(false); 72 jTextArea1.setFont(new Font("DialogInput", 0, 10)); 73 jTextArea1.setText("\t\t GNU GENERAL PUBLIC LICENSE\n\t\t Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\t\t\t Preamble\n\n The licenses for most software are designed to take away your\nfreedom to share and change it. By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users. This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it. (Some other Free Software Foundation software is covered by\nthe GNU Library General Public License instead.) You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have. You must make sure that they, too, receive or can get the\nsource code. And you must show them these terms so they know their\nrights.\n\n We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware. If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n Finally, any free program is threatened constantly by software\npatents. We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary. To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\f\n\t\t GNU GENERAL PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License. The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage. (Hereinafter, translation is included without limitation in\nthe term \"modification\".) Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope. The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n 1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n 2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n a) You must cause the modified files to carry prominent notices\n stating that you changed the files and the date of any change.\n\n b) You must cause any work that you distribute or publish, that in\n whole or in part contains or is derived from the Program or any\n part thereof, to be licensed as a whole at no charge to all third\n parties under the terms of this License.\n\n c) If the modified program normally reads commands interactively\n when run, you must cause it, when started running for such\n interactive use in the most ordinary way, to print or display an\n announcement including an appropriate copyright notice and a\n notice that there is no warranty (or else, saying that you provide\n a warranty) and that users may redistribute the program under\n these conditions, and telling the user how to view a copy of this\n License. (Exception: if the Program itself is interactive but\n does not normally print such an announcement, your work based on\n the Program is not required to print an announcement.)\n\f\nThese requirements apply to the modified work as a whole. If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works. But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n 3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n a) Accompany it with the complete corresponding machine-readable\n source code, which must be distributed under the terms of Sections\n 1 and 2 above on a medium customarily used for software interchange; or,\n\n b) Accompany it with a written offer, valid for at least three\n years, to give any third party, for a charge no more than your\n cost of physically performing source distribution, a complete\n machine-readable copy of the corresponding source code, to be\n distributed under the terms of Sections 1 and 2 above on a medium\n customarily used for software interchange; or,\n\n c) Accompany it with the information you received as to the offer\n to distribute corresponding source code. (This alternative is\n allowed only for noncommercial distribution and only if you\n received the program in object code or executable form with such\n an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it. For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable. However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\f\n 4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License. Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n 5. You are not required to accept this License, since you have not\nsigned it. However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works. These actions are\nprohibited by law if you do not accept this License. Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n 6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions. You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n 7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all. For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices. Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\f\n 8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded. In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n 9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation. If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n 10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission. For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this. Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n\t\t\t NO WARRANTY\n\n 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n\t\t END OF TERMS AND CONDITIONS\n\f\n\t How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n  \n Copyright (C)    \n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this\nwhen it starts in an interactive mode:\n\n Gnomovision version 69, Copyright (C) year name of author\n Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, the commands you use may\nbe called something other than `show w' and `show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary. Here is a sample; alter the names:\n\n Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n `Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n  , 1 April 1989\n Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs. If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary. If this is what you want to do, use the GNU Library General\nPublic License instead of this License.\n"); 74 jScrollPane1.setViewportView(jTextArea1); 76 getContentPane().add(jScrollPane1, new AbsoluteConstraints(10, 10, 540, 250)); 78 jButton2.setFont(new Font("Dialog", 0, 10)); 79 jButton2.setText("Exit"); 80 jButton2.addActionListener(new ActionListener() { 81 public void actionPerformed(ActionEvent evt) { 82 jButton2ActionPerformed(evt); 86 getContentPane().add(jButton2, new AbsoluteConstraints(420, 270, 130, 20)); 88 jButton3.setFont(new Font("Dialog", 0, 10)); 89 jButton3.setText("Save to file"); 90 jButton3.setEnabled(false); 91 jButton3.addActionListener(new ActionListener() { 92 public void actionPerformed(ActionEvent evt) { 93 jButton3ActionPerformed(evt); 97 getContentPane().add(jButton3, new AbsoluteConstraints(150, 270, 120, 20)); 99 Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); 100 setBounds((screenSize.width-568)/2, (screenSize.height-328)/2, 568, 328); 103 private void jButton3ActionPerformed(ActionEvent evt) { 104 jFileChooser1 = new JFileChooser(); 105 jFileChooser1.setSelectedFile(new File("output.sql")); 106 if (jFileChooser1.showSaveDialog(getContentPane()) == JFileChooser.APPROVE_OPTION) { 108 BufferedWriter output = new BufferedWriter(new FileWriter(jFileChooser1.getSelectedFile())); 109 Iterator it = statements.iterator(); 110 while (it.hasNext()) { 111 output.write( (String)it.next() +"\n" ); 113 output.close(); 114 } catch (Exception e) { 115 jTextArea1.setText("ERROR: couldn't save sql file."); 116 e.printStackTrace(); 121 private void jButton2ActionPerformed(ActionEvent evt) { 122 System.exit(0); 125 private void jButton1ActionPerformed(ActionEvent evt) { 126 jFileChooser1 = new JFileChooser(); 127 jFileChooser1.setSelectedFile(new File("descriptor.xml")); 128 if (jFileChooser1.showOpenDialog(getContentPane()) == JFileChooser.APPROVE_OPTION) { 130 File descriptor = jFileChooser1.getSelectedFile(); 132 //read configuration 133 XmlConfigurator config = new XmlConfigurator(); 134 config.load(descriptor); 136 if (config.CURRENT_DESCRIPTOR_VERSION != config.getDescriptorVersion()) { 137 throw new Exception("configuration version incompatible with this version"); 140 //generate statements 141 config.getRender().render(); 143 //output statements 144 Iterator it = config.getWriters().iterator(); 145 while (it.hasNext()) { 147 AbstractWriter writer = (AbstractWriter)it.next(); 148 writer.write(); 152 jTextArea1.setText(""); 153 StringBuffer sb = new StringBuffer(); 154 Iterator it2 = statements.iterator(); 155 while (it2.hasNext()) { 156 sb.append((String)it2.next()+"\n"); 158 jTextArea1.setText(sb.toString()); 159 jButton3.setEnabled(true); 160 } catch (Exception e) { 161 jTextArea1.setText("ERROR: invalid or corrupted descriptor\n"+e.getMessage()); 162 e.printStackTrace(); 167 public static void main(String args[]) { 169 //jar (metouia) 170 UIManager.setLookAndFeel("net.sourceforge.mlf.metouia. MetouiaLookAndFeel"); 171 //jar (liquidlnf) 172 //UIManager.setLookAndFeel("com.birosoft.liquid. LiquidLookAndFeel"); 173 JFrame.setDefaultLookAndFeelDecorated(true); 174 } catch (Exception e) {e.printStackTrace();} 175 new SimpleGui().setVisible(true); 178 private JButton jButton1; 179 private JButton jButton2; 180 private JButton jButton3; 181 private JFileChooser jFileChooser1; 182 private JScrollPane jScrollPane1; 183 private JTextArea jTextArea1;
1.1 2.1 3.1 4.1 5.1 6.1 7.1 9.1 9.2 9.3 11.1 11.2 11.3 14.1 15.1 16.1 18.1 20.1 20.2 20.3 20.4 22.1 22.2 24.1 24.2 26.1 26.2 26.3 28.1 30.1 30.2 32.1 32.2 32.3 34.1 36.1 37.1 39.1 39.2 39.3 41.1 41.2 41.3 43.1 45.1 47.1 49.1 51.1 53.1 53.2 55.1 55.2 55.3 57.1 59.1 61.1 63.1 65.1 67.1 67.2 69.1 69.2 69.3 71.1 73.1 73.2 73.3 75.1 75.2 75.3 75.4 77.1 77.2 77.3 79.1 79.2 79.3 81.1 83.1 83.2 85.1 87.1 87.2 89.1 89.2 91.1 91.2 91.3 93.1 93.2 93.3 95.1 97.1 97.2 97.3 97.4 99.1 101.1 103.1 105.1 107.1 107.2 110.1 112.1 113.1 114.1 115.1 117.1 118.1 119.1 119.2 120.1 122.1 123.1 124.1 125.1 127.1 129.1 131.1 132.1 133.1 133.2 134.1 135.1 137.1 137.2 139.1 139.2 141.1 142.1 145.1 147.1 147.2 147.3
"Fossies" - the Fresh Open Source Software archive Member "docear-1.1.0.1_stable_build232/freeplane_framework/windows-installer/gpl-2.0_croatian.txt" (22 Oct 2013, 17290 Bytes) of archive /linux/misc/docear_source.zip: As a special service "Fossies" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field. 1 GNU OPĆA JAVNA LICENCA 2 verzija 2, lipanj 1991. 4 Ovo je neslužbeni prijevod GNU Opće javne licence na hrvatski jezik. Nije ga objavio Free Software Foundation i zakonito ne izriče uvjete distribucije programa koji koriste GNU GPL -- to čini samo izvorni, engleski tekst GNU GPL-a. Međutim, nadamo se da će ovaj prijevod pomoći hrvatskim čitateljima u boljem razumijevanju GPL-a. 6 This is an unofficial translation of the GNU General Public License into Croatian. It was not published by the Free Software Foundation, and does not legally state the distribution terms for software that uses the GNU GPL--only the original English text of the GNU GPL does that. However, we hope that this translation will help Croatian speakers understand the GNU GPL better. Free Software Foundation, Inc. 10 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Umnažanje i distribuiranje primjeraka ove licence jednakih izvorniku dopušteno je svakomu, no njeno je mijenjanje zabranjeno. Predgovor Licence većine programa nastoje vam oduzeti slobodu da ih dijelite i mijenjate. Tomu nasuprot, GNU Opća javna licenca jamči vam slobodu dijeljenja i mijenjanja slobodnih programa -- kako bi program bio slobodan za sve svoje korisnike. Ova Opća javna licenca vrijedi za veći dio programa Free Software Foundationa i bilo koji drugi program čiji se autor obveže na njeno korištenje. (Neke druge programe Free Software Foundationa pokriva GNU Opća javna licenca za knjižnice.) I vi je možete primjeniti na svoje programe. Kada govorimo o slobodnim programima, govorimo o slobodi, a ne cijeni. Naša Opća javna licenca je stvorena kako bi vam zajamčila slobodu distribuiranja primjeraka slobodnih programa (i, ako želite, naplaćivanje toga), primanje izvornog koda ili mogućnost da ga dobijete, mogućnost mijenjanja programa ili korištenja njegovih dijelova u novim slobodnim programima; te saznanje da to možete učiniti. Kako bi zaštitili vaša prava, moramo postaviti ograničenja koja zabranjuju bilo kome poricanje ovih prava ili zahtjev da ih se odreknete. Ova ograničenja predstavljaju određene odgovornosti za vas ako distribuirate ili mijenjate primjerke programa. Na primjer, ako distribuirate primjerke takvog programa, besplatno ili ne, primateljima morate dati sva prava koja imate i sami. Također, oni moraju dobiti izvorni kod ili mogućnost njegova dobivanja. A vi ih morate obavijestiti o ovim uvjetima kako bi znali svoja prava. Vaša prava štitimo u dva koraka: 1. stavljajući autorska prava na program, te 2. nudeći vam ovu licencu koja vam omogućava zakonito umnažanje, distribuiranje i/ili mijenjanje programa. Također, zbog zaštite svakog autora i nas, želimo biti sigurni da svi razumiju da za ovakve slobodne programe nema jamstva. Ako program netko promijeni i pošalje dalje, želimo da njegovi primatelji znaju kako ono što su dobili nije izvornik, kako bilo kakvi problemi u takvoj verziji ne bi utjecali na ugled izvornog autora. Na kraju, svakom slobodnom programu stalno prijete patenti. Želimo izbjeći opasnost individualnog licenciranja od strane redistributora slobodnog programa, što bi program učinilo vlasništvom. Da to spriječimo, razjasnili smo kako svaki patent mora biti licenciran za svačiju slobodnu uporabu ili uopće ne biti licenciran. Slijede točne obveze i uvjeti za umnažanje, distribuiranje i mijenjanje. GNU OPĆA JAVNA LICENCA OBVEZE I UVJETI ZA UMNAŽANJE, DISTRIBUIRANJE I MIJENJANJE Ova Licenca vrijedi za svaki program ili drugo djelo koje sadrži obavijest vlasnika autorskog prava prema kojoj se ono može distribuirati pod uvjetima ove Opće javne licence. Pojam "Program" nadalje se odnosi na svaki takav program ili djelo, a "djelo zasnovano na Programu" odnosi se na Program ili bilo koji rad izveden iz njega po zakonu o autorskim pravima: dakle, djelo koje sadrži program ili njegov dio, točan ili s promjenama i/ili preveden na drugi jezik. (Nadalje, prijevod je bez ograničenja uključen u pojam "promjena".) Svakom korisniku licence obraćamo se kao "vama". O aktivnostima osim umnažanja, distribucije i mijenjanja ova Licenca ne govori; one su izvan njenog dosega. Čin pokretanja Programa nije ograničen, a o njegovom rezultatu govorimo samo ako je sadržaj rezultata također djelo zasnovano na Programu (bez obzira što ga je stvorio Program). Je li to istina ovisi o funkciji Programa. Smijete umnažati i distribuirati točne kopije izvornog koda Programa kakvog ga dobijete, na bilo kakvom mediju, ako očigledno i prikladno na svakoj kopiji istaknete odgovarajuću poruku o autorskim pravima i odricanje jamstava; ostavite nepromijenjenim sve obavijesti koje se odnose na ovu Licencu i na nepostojanje jamstava; i dajte svakom primatelju Programa primjerak ove Licence zajedno s Programom. Smijete naplatiti fizički čin prenošenja kopije i možete po svom izboru ponuditi jamstvo za naplatu. Smijete mijenjati svoj primjerak ili primjerke Programa ili bilo kojeg njegovog dijela, tako oblikovajući djelo zasnovano na Programu, i umnažati i distribuirati takve promjene ili djelo pod uvjetima prethodnog Dijela 1., ako zadovoljavate ove uvjete: 44 a) Promijenjene datoteke moraju nositi istaknute obavijesti da ste promijenili datoteke i datum svake promjene. 46 b) Svako djelo koje distribuirate ili objavite, a koje u cjelosti ili djelomično sadrži ili je izvedeno iz Programa ili njegovog dijela, mora biti licencirano u cjelosti bez naplate svima pod uvjetima ove Licence. 48 c) Ako promijenjeni program, kada je normalno pokrenut, čita naredbe interaktivno, on mora, pokrenut za takvu interaktivnu uporabu u najuobičajenijem načinu, ispisati ili prikazati obavijest koja uključuje odgovarajuću poruku o autorskim pravima i obavijest da nema jamstva (ili drugačiju, koja kaže da vi jamčite) i da korisnici mogu ponovno distribuirati program pod ovim uvjetima, i objasniti korisniku kako da pročita primjerak ove Licence. (Iznimka: ako je sam Program interaktivan, ali obično ne ispisuje takvu obavijest, vaše djelo zasnovano na Programu ne mora ispisati obavijest.) Ove potrebe vrijede za promijenjeno djelo u cjelini. Ako raspoznatljivi dijelovi tog djela nisu izvedeni iz Programa, i mogu se sami razumno smatrati nezavisnim i odvojenim djelima, onda ova Licenca, i njeni uvjeti, ne vrijede za te dijelove kada ih distribuirate kao zasebna djela. Ali ako distribuirate iste dijelove kao dio cjeline koja je djelo zasnovano na Programu, distribucija te cjeline mora zadovoljavati uvjete ove Licence, čije dozvole drugima koji su je licencirali vrijede za cjelinu, odnosno svaki njen dio bez obzira tko ga je napisao. Dakle, ovom dijelu nije namjera da dobije prava ili da pobija vaša prava na djelo koje ste vi napisali u cjelini; namjera mu je poboljšati pravo nadzora distribucije izvedenih ili skupljenih djela zasnovanih na Programu. Također, sama integracija drugog djela nezasnovanog na Programu s Programom (ili djelom zasnovanim na Programu) na mediju pohranjivanja ili distribucije ne dovodi to drugo djelo u doseg ove Licence. Smijete umnažati i distribuirati Program (ili djelo na njemu zasnovano, po Dijelu 2.) u objektnom kodu ili izvršnom obliku pod uvjetima Dijela 1. i 2. ako učinite jedno od sljedećeg: 58 a) Popratite ga potpunim odgovarajućim strojno čitljivim izvornim kodom, koji mora biti distribuiran pod uvjetima Dijela 1. i 2. na mediju po izboru korištenom za razmjenu programa; ili 60 b) Popratite ga pisanom ponudom, koja vrijedi barem tri godine, da ćete svakoj trećoj stranci dati, za cijenu ne veću od vašeg troška fizičkog vršenja distribucije izvornog koda, potpunu strojno čitljivu kopiju odgovarajućeg izvornog koda, koju će se distribuirati pod uvjetima Dijela 1. i 2. na mediju po izboru korištenom za razmjenu programa; ili 62 c) Popratite ga informacijama koje ste vi primili o ponudi za distribuciju odgovarajućeg izvornog koda. (Ova mogućnost vrijedi samo za nekomercijalnu distribuciju i samo ako ste primili program u objektnom kodu ili izvršnom obliku s takvom ponudom, prema prethodnom Odlomku b.) Pod izvornim kodom za djelo mislimo na željeni oblik djela za njegovo mijenjanje. Za izvršno djelo, potpuni izvorni kod odnosi se na izvorni kod svih modula koje ono sadrži, uz datoteke koje definiraju svako uključeno sučelje, uz skripte za nadzor prevođenja i instalacije izvršne datoteke. Međutim, kao posebna iznimka, distribuirani izvorni kod ne mora uključiti bilo što što se obično distribuira (bilo u izvornom kodu, bilo u izvršnom obliku) s glavnim dijelovima (prevodioc, jezgra, itd.) operacijskog sustava na kojem izvršna datoteka radi, osim ako sam taj dio prati izvršnu datoteku. Ako se izvršna datoteka ili objektni kod distribuira omogućavanjem pristupa kopiji na određenom mjestu, onda se omogućavanje jednakog pristupa izvornom kodu smatra distribucijom izvornog koda, iako se drugi ne prisiljavaju na umnažanje izvornog koda zajedno s objektnim. Ne smijete umnažati, mijenjati, podlicencirati ili distribuirati Program osim kako je izraženo u ovoj Licenci. Bilo kakav pokušaj umnažanja, mijenjanja, podlicenciranja ili distribuiranja Programa je nezakonit, i odmah poništava vaša prava prema ovoj Licenci. Međutim, strankama koje su od vas dobile kopije ili prava pod ovom Licencom neće biti poništene licence, dok zadovoljavaju sve uvjete. Ne morate prihvatiti ovu Licencu, pošto ju niste potpisali. Međutim, ništa vam drugo ne jamči dozvolu za mijenjanje ili distribuciju Programa ili iz njega izvedenih djela. Te su radnje zakonom zabranjene ako ne prihvatite ovu Licencu. Prema tome, mijenjanjem ili distribuiranjem Programa (ili djela na njemu zasnovanog), pokazujete svoj pristanak na ovu Licencu, i sve njene obveze i uvjete za umnažanje, distribuiranje i mijenjanje Programa ili djela na njemu zasnovanih. Svaki put kada ponovo distribuirate Program (ili bilo koje djelo zasnovano na Programu), primatelj automatski prima licencu od izvornog vlasnika za umnažanje, distribuiranje ili mijenjanje Programa prema ovim obvezama i uvjetima. Ne smijete nametnuti bilo kakva daljnja ograničenja na primateljevo korištenje ovdje zajamčenih prava. Niste odgovorni za traženje zadovoljavanja ove Licence od drugih stranaka. Ako vam se, kao posljedicu sudske presude ili tužbe za kršenje patenta ili iz bilo kojeg drugog razloga (ne samo što se tiče patenata), nameću obveze (bilo sudskim nalogom, nagodbom, ili drukčije) u kontradikciji s uvjetima ove Licence, to ne znači da smijete kršiti uvjete ove Licence. Ako ne možete distribuirati tako da zadovoljavate istodobno i svoje obveze pod ovom Licencom i sve ostale odgovarajuće obveze, onda kao posljedicu uopće ne smijete distribuirati Program. Na primjer, ako patentna licenca ne dopušta slobodnu redistribuciju Programa svima koji njegove kopije dobiju izravno ili neizravno od vas, onda je jedini način na koji možete zadovoljiti i nju i ovu Licencu prestanak distribuiranja Programa. Ako se bilo koji dio ovog Dijela drži nevažećim ili neprovedivim pod bilo kakvim okolnostima, namjena je Dijela da vrijedi i Dio u cjelini namijenjen je da vrijedi u drugim okolnostima. Ovom Dijelu nije svrha da vas potakne na kršenje patenata ili drugih prava na vlasništvo ili na njihovo pobijanje; jedina mu je svrha zaštita integriteta distribucijskog sustava slobodnih programa, kojeg implementira javna praksa. Mnogi ljudi su velikodušno pridonijeli velikom broju programa distribuiranim kroz taj sustav pouzdajući se u dosljednu primjenu tog sustava; na autoru/donatoru je odluka da li će programe distribuirati nekim drugim sustavom i korisnik licence ne može mu nametati svoj izbor. Namjera ovog Dijela je razjašnjavanje onoga za što se vjeruje da su posljedice ostatka Licence. Ako je distribucija i/ili korištenje Programa u nekim državama ograničeno bilo patentima bilo sučeljima na koje se polažu autorska prava, izvorni vlasnik autorskih prava koji je Program stavio pod ovu Licencu može dodati eksplicitno zemljopisno ograničenje distribucije izuzimajući takve države, i čineći distribuciju dozvoljenom samo u ili među državama koje nisu izuzete. U tom slučaju, ova Licenca uključuje ograničenje kao da je napisano u tijelu ove Licence. Free Software Foundation s vremena na vrijeme može objaviti promijenjene i/ili nove verzije Opće javne licence. Takve nove verzije bit će duhom slične sadašnjoj, no mogu se razlikovati u detaljima kako bi se riješili novi problemi ili brige. Svakoj verziji se daje različit broj verzije. Ako Program navodi broj verzije ove Licence koja za njega vrijedi i "bilo koja kasnija verzija", smijete poštovati obveze i uvjete te verzije ili bilo koje kasnije verzije koju je objavio Free Software Foundation. Ako Program ne određuje broj verzije ove Licence, smijete odabrati bilo koju verziju ikad izdanu od strane Free Software Foundationa. Ako želite uključiti dijelove Programa u druge besplatne programe čiji se uvjeti distribucije razlikuju, pišite autoru i tražite njegovu dozvolu. Za programe čija autorska prava ima Free Software Foundation, pišite Free Software Foundationu; ponekad radi toga radimo iznimke. U odlučivanju će nas voditi dva cilja čuvanja slobode svih izvedenica iz našeg programa i promicanje dijeljenja i ponovnog korištenja programa općenito. NEMA JAMSTVA POŠTO JE PROGRAM LICENCIRAN BESPLATNO, ZA PROGRAM NEMA JAMSTVA, U MJERI DOPUŠTENOJ PRIMJENJIVIM ZAKONOM. OSIM AKO JE DRUKČIJE IZRAŽENO NAPISMENO, VLASNICI AUTORSKIH PRAVA I/ILI DRUGE STRANKE PROGRAM DAJU "KAKAV JEST" BEZ JAMSTVA BILO KOJE VRSTE, IZRAŽENOG ILI PODRAZUMIJEVANOG, UKLJUČUJUĆI, ALI NE SAMO NJIH, PODRAZUMIJEVANA JAMSTVA TRGOVINSKE PRIKLADNOSTI I ODGOVARANJA ODREĐENOJ SVRSI. SVI RIZICI VEZANI ZA KVALITETU I BRZINU PROGRAMA OSTAJU NA VAMA. AKO SE PROGRAM POKAŽE NEVALJANIM, VI SNOSITE SVE TROŠKOVE POTREBNOG ODRŽAVANJA, POPRAVLJANJA I ISPRAVLJANJA. NI U KOJEM SLUČAJU, OSIM NUŽNO PO PRIMJENJIVOM ZAKONU ILI NAGODBOM NAPISMENO, BILO KOJI VLASNIK AUTORSKIH PRAVA, ILI BILO KOJA DRUGA STRANKA KOJA SMIJE MIJENJATI I/ILI REDISTRIBUIRATI PROGRAM KAKO JE DOZVOLJENO GORE, NEĆE BITI VAMA ODGOVORAN ZA ŠTETE, UKLJUČUJUĆI OPĆE, POSEBNE, SLUČAJNE ILI POSLJEDIČNE ŠTETE PROIZAŠLE IZ KORIŠTENJA ILI NEMOGUĆNOSTI KORIŠTENJA PROGRAMA (UKLJUČUJUĆI, ALI NE SAMO NJIH, GUBITAK PODATAKA ILI ČINJENJE PODATAKA NETOČNIM ILI GUBITKE VAS ILI DRUGIH STRANAKA ILI NEUSPJEH PROGRAMA DA RADI S BILO KOJIM DRUGIM PROGRAMOM), ČAK I AKO JE TAKAV VLASNIK ILI DRUGA STRANKA UPOZORENA NA MOGUĆNOST TAKVIH ŠTETA. KRAJ OBVEZA I UVJETA Kako ove obveze primjeniti na vaše nove programe Ako razvijete novi program i želite da bude od najveće moguće koristi javnosti, najbolji je način da to postignete učiniti ga slobodnim programom, kojeg svatko može distribuirati i mijenjati pod ovim uvjetima. Kako biste to učinili, programu dodajte sljedeće obavijesti. Najsigurnije je dodati ih na početku svake datoteke s izvornim kodom, da naglasite nepostojanje jamstva; svaka bi datoteka trebala imati barem i "copyright" red i upustvo kako doći do cijele obavijesti. Copyright (C) 19gg Ovaj program je slobodan; možete ga distribuirati i/ili 108 mijenjati pod uvjetima GNU Opće javne licence kako ju je 109 objavio Free Software Foundation; ili verzije 2 Licence, 110 ili (po vašem izboru) bilo koje novije verzije. Ovaj program se distribuira u nadi da će biti koristan, ali BEZ IKAKVOG JAMSTVA; čak i bez podrazumijevanog jamstva TRGOVINSKE PRIKLADNOSTI ili ODGOVARANJA ODREĐENOJ SVRSI. Za 115 detalje pročitajte GNU Opću javnu licencu. Trebali ste dobiti primjerak GNU Opće javne licence uz ovaj 118 program; ako niste, pišite na adresu: Free Software Foundation, Inc., 120 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Također dodajte informacije kako vas kontaktirati elektronski i poštom. Ako je program interaktivan, neka ispiše kratku poruku poput ove kada se pokreće u interaktivnom načinu: Gnomovizija verzija 69, Copyright (C) 19gg ime autora Gnomovizija dolazi BEZ IKAKVOG JAMSTVA; za detalje napišite 128 "pokaži j". Ovo je slobodan program, i slobodno ga 129 možete distribuirati pod određenim uvjetima; za detalje 130 napišite "pokaži u". Hipotetske naredbe "pokaži j" i "pokaži u" trebale bi pokazati odgovarajuće dijelove Opće javne licence. Naravno, naredbe koje ćete vi koristiti mogu se zvati drukčije; to čak mogu biti klikovi mišem ili dijelovi izbornika -- što god odgovara vašem programu. Također biste trebali zamoliti svog poslodavca (ako radite kao programer) ili školu, ako je ima, da, ako je potrebno, potpiše "odricanje od autorskih prava" za program. Evo primjera; promijenite imena: MM, d. o. o., odriče se svih autorskih prava na program "Gnomoviziju" 137 (koji se upucava kompajlerima) koji je napisao Hrvoje Haker. Miroslav Moćnik, predsjednik MM d. o. o. Ova Opća javna licenca ne dozvoljava uključivanje vašeg programa u vlasničke programe. Ako je vaš program knjižnica podrutina, možda ćete smatrati korisnijim ako dopustite vezanje vlasničkih aplikacija s njom. Ako to želite učiniti, umjesto ove Licence koristite GNU Opću javnu licencu za knjižnice.