gnunet-svn
[Top][All Lists]
Advanced

[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&#8216;s decentralized anonymous and 
censorship-resistant P2P framework.") +
+              "</font>"
+            "<td align=\"right\">"
+                "<img src=\"qrc:/pixmaps/gnunet-qt-logo.png\" 
/>&nbsp;&nbsp;&nbsp;&nbsp;"
+            "</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>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" 
/>&lt;/head>&lt;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;">&lt;table border="0" width="100%" cellspacing="0" 
cellpadding="0" bgcolor="#0a6cce">&lt;tr>&lt;td 
colspan="3">&lt;/td>&lt;/tr>&lt;tr>&lt;td>&lt;/td>&lt;td>&lt;p style=" 
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; 
-qt-block-indent:0; text-indent:0px;">&lt;span style=" font-family:Arial, 
Helvetica; font-weight:600; color:#ffffff;">&lt;font 
size="6">GNUnet&lt;/font>&lt;/span> &lt;br />&lt;span style=" 
font-family:Bitstream Vera Sans, Lucida Grande, Trebuchet MS, Lucida Sans 
Unicode, Luxi Sans, Helvetica, Arial, Sans-Serif; color:#d3d3d3;">&lt;font 
size="4">GNU‘s decentralized anonymous and censorship-resistant P2P framework. 
&lt;/font>&lt;/span> &lt;/p>&lt;/td>&lt;td>&lt;p align="right" style=" 
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; 
-qt-block-indent:0; text-indent:0px;">&lt;img 
src=":/pixmaps/gnunet-qt-logo.png" />  
&lt;/p>&lt;/td>&lt;/tr>&lt;/table>&lt;table border="0" width="100%" 
cellspacing="0" cellpadding="0" bgcolor="#0a6cce">&lt;tr>&lt;td 
colspan="4">&lt;/td>&lt;/tr>&lt;/table>&lt;table border="0" width="100%" 
cellspacing="0" cellpadding="0" bgcolor="#0a6cce">&lt;tr>&lt;td width="33%" 
bgcolor="#e4e4e4">&lt;p style=" margin-top:0px; margin-bottom:0px; 
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; 
background-color:#e4e4e4;">&lt;a href="about">&lt;span style=" 
font-family:Arial, Helvetica; text-decoration: underline; 
color:#0000ff;">About&lt;/span>&lt;/a>&lt;/p>&lt;/td>&lt;td width="33%" 
bgcolor="#e4e4e4">&lt;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;">&lt;a href="about">&lt;span style=" 
font-family:Arial, Helvetica; text-decoration: underline; 
color:#0000ff;">Welcome&lt;/span>&lt;/a>&lt;/p>&lt;/td>&lt;td width="34%" 
bgcolor="#e4e4e4">&lt;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;">&lt;a href="about">&lt;span style=" 
font-family:Arial, Helvetica; text-decoration: underline; 
color:#0000ff;">Release 
notes&lt;/span>&lt;/a>&lt;/p>&lt;/td>&lt;/tr>&lt;/table>&lt;p style=" 
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; 
-qt-block-indent:0; text-indent:0px;">&lt;br />&lt;/p>&lt;p align="center" 
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; 
-qt-block-indent:0; text-indent:0px;">&lt;span style=" font-family:Arial, 
Helvetica; font-weight:600;">&lt;font size="5">Welcome to gnunet-qt 
0.7.0e&lt;/font>&lt;/span> &lt;br />&lt;br />&lt;/p>&lt;table border="0" 
align="center" width="90%" cellspacing="2" cellpadding="0">&lt;tr>&lt;td>&lt;p 
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; 
-qt-block-indent:0; text-indent:0px;">&lt;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. &lt;/font> 
&lt;/p>&lt;/td>&lt;/tr>&lt;/table>&lt;/body>&lt;/html></string>
-     </property>
     </widget>
    </item>
   </layout>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]