Mercurial > hg > forks > UniversalIndentGUI
changeset 71:e27535be8ade
Redesigned about dialog for easier translation.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@228 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Mon, 12 Feb 2007 20:56:55 +0000 |
parents | 748007ef722b |
children | f2066f80aee8 |
files | src/aboutdialog.cpp src/aboutdialog.ui |
diffstat | 2 files changed, 56 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aboutdialog.cpp Sun Feb 11 17:17:35 2007 +0000 +++ b/src/aboutdialog.cpp Mon Feb 12 20:56:55 2007 +0000 @@ -31,6 +31,7 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) { + qApp->setStyleSheet("QTextBrowser{background-color:transparent}"); setupUi(this); QString qplText = "<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 /> \
--- a/src/aboutdialog.ui Sun Feb 11 17:17:35 2007 +0000 +++ b/src/aboutdialog.ui Mon Feb 12 20:56:55 2007 +0000 @@ -43,7 +43,7 @@ <number>9</number> </property> <property name="spacing" > - <number>6</number> + <number>4</number> </property> <item> <widget class="QLabel" name="label" > @@ -76,11 +76,51 @@ </widget> </item> <item> + <widget class="QTextBrowser" name="textBrowser_2" > + <property name="sizePolicy" > + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize" > + <size> + <width>16777215</width> + <height>25</height> + </size> + </property> + <property name="frameShape" > + <enum>QFrame::NoFrame</enum> + </property> + <property name="verticalScrollBarPolicy" > + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="html" > + <string><html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;">Version 0.4.1 Beta rev.225, 11th February 2007 </p></body></html></string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_3" > + <property name="text" > + <string>... is a cross platform compatible GUI for several code formatter, beautifier and indenter like GreatCode, AStyle (Artistic Styler), GNU Indent, BCPP and so on. Main feature is a live preview to directly see how the selected formatting option affects the source code.</string> + </property> + <property name="wordWrap" > + <bool>true</bool> + </property> + </widget> + </item> + <item> <widget class="QTextBrowser" name="textBrowser" > <property name="sizePolicy" > <sizepolicy> <hsizetype>5</hsizetype> - <vsizetype>1</vsizetype> + <vsizetype>5</vsizetype> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> @@ -95,7 +135,7 @@ <bool>false</bool> </property> <property name="styleSheet" > - <string>QTextBrowser{background-color:transparent}</string> + <string/> </property> <property name="frameShape" > <enum>QFrame::NoFrame</enum> @@ -106,13 +146,9 @@ <property name="html" > <string><html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; 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:'MS Shell Dlg'; font-size:8pt;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt;">Version 0.4.1 Beta rev.225, 11th February 2007</span></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;"></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;"><span style=" color:#000000;">... is a cross platform compatible GUI for several code formatter, beautifier and indenter like GreatCode, AStyle (Artistic Styler), GNU Indent, BCPP and so on. Main feature is a live preview to directly see how the selected formatting option affects the source code.</span></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt; color:#000000;"></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt; color:#000000;">Written by : Thomas Schweitzer</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt; color:#000000;">Project Homepage : <a href="http://universalindent.sourceforge.net"><span style=" text-decoration: underline; color:#0000ff;">http://universalindent.sourceforge.net</span></a></p></body></html></string> +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Written by : Thomas Schweitzer </p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Project Homepage : <a href="http://universalindent.sourceforge.net"><span style=" text-decoration: underline; color:#0000ff;">http://universalindent.sourceforge.net</span></a> </p></body></html></string> </property> </widget> </item> @@ -125,13 +161,21 @@ </item> <item> <widget class="QTextEdit" name="textEdit" > + <property name="sizePolicy" > + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>7</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="readOnly" > <bool>true</bool> </property> <property name="html" > <string><html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;"> <p style="-qt-paragraph-type:empty; 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;"></p></body></html></string> </property> </widget>