[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3005 - gnunet-qt/src/plugins/about
From: |
durner |
Subject: |
[GNUnet-SVN] r3005 - gnunet-qt/src/plugins/about |
Date: |
Sun, 11 Jun 2006 14:06:12 -0700 (PDT) |
Author: durner
Date: 2006-06-11 14:06:07 -0700 (Sun, 11 Jun 2006)
New Revision: 3005
Modified:
gnunet-qt/src/plugins/about/about.cc
gnunet-qt/src/plugins/about/about.h
gnunet-qt/src/plugins/about/about.pro.in
gnunet-qt/src/plugins/about/about.ui
Log:
Make welcome screen translatable
Modified: gnunet-qt/src/plugins/about/about.cc
===================================================================
--- gnunet-qt/src/plugins/about/about.cc 2006-06-11 20:03:29 UTC (rev
3004)
+++ gnunet-qt/src/plugins/about/about.cc 2006-06-11 21:06:07 UTC (rev
3005)
@@ -24,13 +24,74 @@
* @author Nils Durner
*/
+#include <config.h>
#include "about.h"
GAboutPlugin::GAboutPlugin() : GPlugin()
{
setupUi(this);
+
+ welcome();
}
+void GAboutPlugin::welcome()
+{
+ htmAbout->setHtml(
+ "<html>"
+ "<body>"
+ "<table bgcolor=\"#0a6cce\" border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" height=\"62\" width=\"100%\">"
+ "<tr>"
+ "<td colspan=\"3\" height=\"10\" nowrap=\"nowrap\"
valign=\"middle\" />"
+ "</tr>"
+ "<tr>"
+ "<td />"
+ "<td>"
+ "<font color=\"white\" face=\"Arial, Helvetica\"
size=\"6\"><b>GNUnet</b></font>"
+ "<br>"
+ "<font color=\"#d3d3d3\" size=\"4\" face=\"Bitstream Vera Sans,
Lucida Grande, Trebuchet MS, Lucida Sans Unicode, Luxi Sans, Helvetica, Arial,
Sans-Serif\">"
+ + tr("GNU‘s decentralized anonymous and
censorship-resistant P2P framework.") +
+ "</font>"
+ "<td align=\"right\">"
+ "<img src=\"qrc:/pixmaps/gnunet-qt-logo.png\"
/> "
+ "</td>"
+ "</tr>"
+ "</table>"
+ "<table bgcolor=\"#0a6cce\" border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" width=\"100%\">"
+ "<tr>"
+ "<td colspan=\"4\" height=\"10\" nowrap=\"nowrap\" />"
+ "</tr>"
+ "</table>"
+ "<table bgcolor=\"#0a6cce\" border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" width=\"100%\">"
+ "<tr>"
+ "<td bgcolor=\"#E4E4E4\" color=\"#FFFFFF\" width=\"33%\"
align=\"left\"><a href=\"about\">"
+ "<font face=\"Arial, Helvetica\">" + tr("About") +
"</font></a></td>"
+ "<td bgcolor=\"#E4E4E4\" color=\"#FFFFFF\" width=\"33%\"
align=\"center\"><a href=\"welcome\">"
+ "<font face=\"Arial, Helvetica\">" + tr("Welcome") +
"</font></a>"
+ "</td>"
+ "<td bgcolor=\"#E4E4E4\" color=\"#FFFFFF\" width=\"34%\"
align=\"right\"><a href=\"notes\">"
+ "<font face=\"Arial, Helvetica\">" + tr("Release notes") +
"</font></a>"
+ "</td>"
+ "</tr>"
+ "</table>"
+ "<br>"
+ "<center>"
+ "<font face=\"Arial, Helvetica\" size=\"5\"><b>" + tr("Welcome to ")
+ PACKAGE_STRING "</b></font>"
+ "<br />"
+ "<br />"
+ "<table width=\"90%\">"
+ "<tr>"
+ "<td>"
+ "<font size=\"4\">" +
+ tr("gnunet-qt is the Qt user interface for GNUnet. It is intended to
eventually provide a universal, pluggable interface for all GNUnet services.") +
+ "</font>"
+ "</td>"
+ "</tr>"
+ "</table>"
+ "</center>"
+ "</body>"
+ "</html>");
+}
+
extern "C"
{
Modified: gnunet-qt/src/plugins/about/about.h
===================================================================
--- gnunet-qt/src/plugins/about/about.h 2006-06-11 20:03:29 UTC (rev 3004)
+++ gnunet-qt/src/plugins/about/about.h 2006-06-11 21:06:07 UTC (rev 3005)
@@ -37,6 +37,8 @@
public:
GAboutPlugin();
+protected:
+ void welcome();
};
#endif /*ABOUT_H_*/
Modified: gnunet-qt/src/plugins/about/about.pro.in
===================================================================
--- gnunet-qt/src/plugins/about/about.pro.in 2006-06-11 20:03:29 UTC (rev
3004)
+++ gnunet-qt/src/plugins/about/about.pro.in 2006-06-11 21:06:07 UTC (rev
3005)
@@ -1,6 +1,6 @@
TEMPLATE = lib
TARGET = libgnunetqtmodule_about
-INCLUDEPATH = ../../include .
+INCLUDEPATH = ../../../ ../../include .
DLLDESTDIR = .
LIBS = -L../../common -lgnunetqt_common
QMAKE_LFLAGS += -shared @LDFLAGS@
Modified: gnunet-qt/src/plugins/about/about.ui
===================================================================
--- gnunet-qt/src/plugins/about/about.ui 2006-06-11 20:03:29 UTC (rev
3004)
+++ gnunet-qt/src/plugins/about/about.ui 2006-06-11 21:06:07 UTC (rev
3005)
@@ -26,13 +26,10 @@
<number>6</number>
</property>
<item>
- <widget class="QTextBrowser" name="textBrowser" >
+ <widget class="QTextBrowser" name="htmAbout" >
<property name="acceptDrops" >
<bool>false</bool>
</property>
- <property name="html" >
- <string><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;"><table border="0" width="100%" cellspacing="0"
cellpadding="0" bgcolor="#0a6cce"><tr><td
colspan="3"></td></tr><tr><td></td><td><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:Arial,
Helvetica; font-weight:600; color:#ffffff;"><font
size="6">GNUnet</font></span> <br /><span style="
font-family:Bitstream Vera Sans, Lucida Grande, Trebuchet MS, Lucida Sans
Unicode, Luxi Sans, Helvetica, Arial, Sans-Serif; color:#d3d3d3;"><font
size="4">GNU‘s decentralized anonymous and censorship-resistant P2P framework.
</font></span> </p></td><td><p align="right" style="
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><img
src=":/pixmaps/gnunet-qt-logo.png" />
</p></td></tr></table><table border="0" width="100%"
cellspacing="0" cellpadding="0" bgcolor="#0a6cce"><tr><td
colspan="4"></td></tr></table><table border="0" width="100%"
cellspacing="0" cellpadding="0" bgcolor="#0a6cce"><tr><td width="33%"
bgcolor="#e4e4e4"><p style=" margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
background-color:#e4e4e4;"><a href="about"><span style="
font-family:Arial, Helvetica; text-decoration: underline;
color:#0000ff;">About</span></a></p></td><td width="33%"
bgcolor="#e4e4e4"><p align="center" style=" margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px; background-color:#e4e4e4;"><a href="about"><span style="
font-family:Arial, Helvetica; text-decoration: underline;
color:#0000ff;">Welcome</span></a></p></td><td width="34%"
bgcolor="#e4e4e4"><p align="right" style=" margin-top:0px;
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px; background-color:#e4e4e4;"><a href="about"><span style="
font-family:Arial, Helvetica; text-decoration: underline;
color:#0000ff;">Release
notes</span></a></p></td></tr></table><p style="
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><br /></p><p align="center"
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><span style=" font-family:Arial,
Helvetica; font-weight:600;"><font size="5">Welcome to gnunet-qt
0.7.0e</font></span> <br /><br /></p><table border="0"
align="center" width="90%" cellspacing="2" cellpadding="0"><tr><td><p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0; text-indent:0px;"><font size="4">gnunet-qt is the Qt
user interface for GNUnet. It is intended to eventually provide a universal,
pluggable interface for all GNUnet services. </font>
</p></td></tr></table></body></html></string>
- </property>
</widget>
</item>
</layout>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3005 - gnunet-qt/src/plugins/about,
durner <=