changeset 153:57a9f1437c2e

Removed the GPL text, which starts and translates UiGui much faster. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@356 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Thu, 31 May 2007 18:13:59 +0000
parents 0368946331ea
children fb02fcbcb500
files src/aboutdialog.cpp src/aboutdialog.ui
diffstat 2 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/aboutdialog.cpp	Thu May 31 18:13:23 2007 +0000
+++ b/src/aboutdialog.cpp	Thu May 31 18:13:59 2007 +0000
@@ -33,6 +33,7 @@
 {
 	qApp->setStyleSheet("QTextBrowser{background-color:transparent}");
     setupUi(this);
+	/*
     gplText = "<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body style=\" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;\"><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:Courier New; font-size:8pt;\"> You may use, distribute and copy the UniversalIndentGUI under the terms of<br /> GNU General Public License version 2, which is displayed below.<br /><br />-------------------------------------------------------------------------<br /><br />		    GNU GENERAL PUBLIC LICENSE<br />		       Version 2, June 1991<br /><br /> Copyright (C) 1989, 1991 Free Software Foundation, Inc.<br />                  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA<br /> Everyone is permitted to copy and distribute verbatim copies<br /> of this license document, but changing it is not allowed.<br /><br />			    Preamble<br /><br />  The licenses for most software are designed to take away your<br />freedom to share and change it.  By contrast, the GNU General Public<br />License is intended to guarantee your freedom to share and change free<br />software--to make sure the software is free for all its users.  This<br />General Public License applies to most of the Free Software<br />Foundation's software and to any other program whose authors commit to<br />using it.  (Some other Free Software Foundation software is covered by<br />the GNU Library General Public License instead.)  You can apply it to<br />your programs, too.<br /><br />  When we speak of free software, we are referring to freedom, not<br />price.  Our General Public Licenses are designed to make sure that you<br />have the freedom to distribute copies of free software (and charge for<br />this service if you wish), that you receive source code or can get it<br />if you want it, that you can change the software or use pieces of it<br />in new free programs; and that you know you can do these things.<br /><br />  To protect your rights, we need to make restrictions that forbid<br />anyone to deny you these rights or to ask you to surrender the rights.<br /> \
     These restrictions translate to certain responsibilities for you if you<br />distribute copies of the software, or if you modify it.<br /><br />  For example, if you distribute copies of such a program, whether<br />gratis or for a fee, you must give the recipients all the rights that<br />you have.  You must make sure that they, too, receive or can get the<br />source code.  And you must show them these terms so they know their<br />rights.<br /><br />  We protect your rights with two steps: (1) copyright the software, and<br />(2) offer you this license which gives you legal permission to copy,<br />distribute and/or modify the software.<br /><br />  Also, for each author's protection and ours, we want to make certain<br />that everyone understands that there is no warranty for this free<br />software.  If the software is modified by someone else and passed on, we<br />want its recipients to know that what they have is not the original, so<br />that any problems introduced by others will not reflect on the original<br />authors' reputations.<br /><br />  Finally, any free program is threatened constantly by software<br />patents.  We wish to avoid the danger that redistributors of a free<br />program will individually obtain patent licenses, in effect making the<br />program proprietary.  To prevent this, we have made it clear that any<br />patent must be licensed for everyone's free use or not licensed at all.<br /><br />  The precise terms and conditions for copying, distribution and<br />modification follow.<br /><br /><br />		    GNU GENERAL PUBLIC LICENSE<br />   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION<br /><br />  0. This License applies to any program or other work which contains<br />a notice placed by the copyright holder saying it may be distributed<br />under the terms of this General Public License.  The \"Program\", below,<br />refers to any such program or work, and a \"work based on the Program\"<br />means either the Program or any derivative work under copyright law:<br />that is to say, a work containing the Program or a portion of it,<br />either verbatim or with modifications and/or translated into another<br />language.  (Hereinafter, translation is included without limitation in<br /> \
     the term \"modification\".)  Each licensee is addressed as \"you\".<br /><br />Activities other than copying, distribution and modification are not<br />covered by this License; they are outside its scope.  The act of<br />running the Program is not restricted, and the output from the Program<br />is covered only if its contents constitute a work based on the<br />Program (independent of having been made by running the Program).<br />Whether that is true depends on what the Program does.<br /><br />  1. You may copy and distribute verbatim copies of the Program's<br />source code as you receive it, in any medium, provided that you<br />conspicuously and appropriately publish on each copy an appropriate<br />copyright notice and disclaimer of warranty; keep intact all the<br />notices that refer to this License and to the absence of any warranty;<br />and give any other recipients of the Program a copy of this License<br />along with the Program.<br /><br />You may charge a fee for the physical act of transferring a copy, and<br />you may at your option offer warranty protection in exchange for a fee.<br /><br />  2. You may modify your copy or copies of the Program or any portion<br />of it, thus forming a work based on the Program, and copy and<br />distribute such modifications or work under the terms of Section 1<br />above, provided that you also meet all of these conditions:<br /><br />    a) You must cause the modified files to carry prominent notices<br />    stating that you changed the files and the date of any change.<br /><br />    b) You must cause any work that you distribute or publish, that in<br />    whole or in part contains or is derived from the Program or any<br />    part thereof, to be licensed as a whole at no charge to all third<br />    parties under the terms of this License.<br /><br />    c) If the modified program normally reads commands interactively<br />    when run, you must cause it, when started running for such<br />    interactive use in the most ordinary way, to print or display an<br />    announcement including an appropriate copyright notice and a<br />    notice that there is no warranty (or else, saying that you provide<br />    a warranty) and that users may redistribute the program under<br /> \
@@ -45,6 +46,9 @@
     it under the terms of the GNU General Public License as published by<br />    the Free Software Foundation; either version 2 of the License, or<br />    (at your option) any later version.<br /><br />    This program is distributed in the hope that it will be useful,<br />    but WITHOUT ANY WARRANTY; without even the implied warranty of<br />    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br />    GNU General Public License for more details.<br /><br />    You should have received a copy of the GNU General Public License<br />    along with this program; if not, write to the Free Software<br />    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA<br /><br /><br />Also add information on how to contact you by electronic and paper mail.<br /><br />If the program is interactive, make it output a short notice like this<br />when it starts in an interactive mode:<br /><br />    Gnomovision version 69, Copyright (C) year name of author<br />    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.<br />    This is free software, and you are welcome to redistribute it<br />    under certain conditions; type `show c' for details.<br /><br />The hypothetical commands `show w' and `show c' should show the appropriate<br />parts of the General Public License.  Of course, the commands you use may<br />be called something other than `show w' and `show c'; they could even be<br />mouse-clicks or menu items--whatever suits your program.<br /><br />You should also get your employer (if you work as a programmer) or your<br />school, if any, to sign a \"copyright disclaimer\" for the program, if<br />necessary.  Here is a sample; alter the names:<br /><br />  Yoyodyne, Inc., hereby disclaims all copyright interest in the program<br />  `Gnomovision' (which makes passes at compilers) written by James Hacker.<br /><br />  &lt;signature of Ty Coon&gt;, 1 April 1989<br />  Ty Coon, President of Vice<br /><br />This General Public License does not permit incorporating your program into<br />proprietary programs.  If your program is a subroutine library, you may<br />consider it more useful to permit linking proprietary applications with the<br /> \
     library.  If this is what you want to do, use the GNU Library General<br />Public License instead of this License.<br /><br />-------------------------------------------------------------------------<br /></p></body></html>";
     textEdit->setHtml(gplText);
+	*/
+	textEdit->hide();
+	label_2->hide();
     connect( textBrowser, SIGNAL(anchorClicked (const QUrl)), this, SLOT(linkClicked(const QUrl)) );
     textBrowserSavedContent = textBrowser->toHtml();
 
@@ -72,8 +76,9 @@
 void AboutDialog::changeEvent(QEvent *event) {
     if (event->type() == QEvent::LanguageChange) {
         retranslateUi(this);
-
-        textEdit->setHtml(gplText);
+		
+		//TODO: Setting the whole GPL here slows down the program too much. Should write something else.
+        //textEdit->setHtml(gplText);
 
         QString versionString = textBrowser_2->toHtml();
         versionString = versionString.arg(version).arg(revision).arg(buildDate);
--- a/src/aboutdialog.ui	Thu May 31 18:13:23 2007 +0000
+++ b/src/aboutdialog.ui	Thu May 31 18:13:59 2007 +0000
@@ -154,6 +154,19 @@
     </widget>
    </item>
    <item>
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item>
     <widget class="QLabel" name="label_2" >
      <property name="text" >
       <string>License:</string>