Imported Upstream version 2.0.1
authorRoberto C. Sanchez <roberto@connexer.com>
Wed, 22 Oct 2014 02:48:23 +0000 (22:48 -0400)
committerRoberto C. Sanchez <roberto@connexer.com>
Wed, 22 Oct 2014 02:48:23 +0000 (22:48 -0400)
CMakeLists.txt
ChangeLog
src/backend/rendering/cdisplayrendering.cpp
src/bibletime.cpp
src/frontend/display/bthtmlreaddisplay.cpp
src/util/cresmgr.cpp
src/util/cresmgr.h

index 9274447488c47feeec6b4cfeaea563e4c7969ae0..e2f052b49e1c3d9bafb0e93004fbda57ab7c25ed 100644 (file)
@@ -2,7 +2,7 @@ PROJECT(bibletime CXX C)
 CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
 
 #Version
-ADD_DEFINITIONS(-DBT_VERSION=\\\"2.0\\\")
+ADD_DEFINITIONS(-DBT_VERSION=\\\"2.0.1\\\")
 
 #Non-English locales to be processed and installed for UI, handbook and howto
 LIST(APPEND MESSAGE_LOCALE_LANGS af bg cs da de en_GB es et fi fr hu it ko nl nn_NO no pl pt_br ro ru sk sv ua vi zh_CN zh_TW)
@@ -307,7 +307,7 @@ SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "BibleTime for Windows Beta")
 SET(CPACK_PACKAGE_VENDOR "http://www.bibletime.info")
 SET(CPACK_PACKAGE_VERSION_MAJOR "2")
 SET(CPACK_PACKAGE_VERSION_MINOR "0")
-SET(CPACK_PACKAGE_VERSION_PATCH "0")
+SET(CPACK_PACKAGE_VERSION_PATCH "1")
 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "BibleTime")
 
 ######################################################
index fd0afa11d3d0fdb3e3161635bb4bae45512f8ad8..ce7b6a8a919e58b545068c425d16cfcd9e306596 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-06-06 Martin Gruner <mgruner@crosswire.org>
+       * Release 2.0.1
+
+2009-06-02 Martin Gruner <mgruner@crosswire.org>
+       * Fix bug #2799800: Display broken when verse numbers are turned off
+
+2009-05-30 Gary Holmlund
+       * Fix defect, the main window icon was missing - defect # 2798758
+       * Removed debug code writing a out.txt file in the current directory without warning
+
 2009-05-28 Martin Gruner <mgruner@crosswire.org>
        * release 2.0
 
index 8c6c5258cad41a3feb0ad3b200ebf92a0cfe8a80..50d5b188fd4ed8efaedf698eecfb9045f6f1c9f2 100644 (file)
@@ -19,6 +19,7 @@
 //Qt
 #include <QString>
 #include <QRegExp>
+#include <QDebug>
 
 namespace Rendering {
 
@@ -80,8 +81,9 @@ namespace Rendering {
                        }
                }
 
+
                if (linkText.isEmpty()) {
-                       return QString("<a name=\"").append(keyToHTMLAnchor(item.key())).append("\" />");
+                       return QString("<a name=\"").append(keyToHTMLAnchor(item.key())).append("\"></a>");
                }
                else {
                        return QString("<a name=\"").append(keyToHTMLAnchor(item.key())).append("\" ")
@@ -147,7 +149,7 @@ namespace Rendering {
                CDisplayTemplateMgr::Settings settings;
                settings.modules = modules;
                settings.langAbbrev = ((modules.count() == 1) && lang->isValid()) ? lang->abbrev() : QString::null;
-               
+
                if (modules.count() == 1)
                        settings.pageDirection = (modules.first()->textDirection() == CSwordModuleInfo::LeftToRight) ? "ltr"  : "rtl";
                else
index c4510f69c543d04d5eb0a05c405fcb53ab3d16d2..0877a8ffccc575138be61d6c92b6509335d05ac8 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "util/ctoolclass.h"
 #include "util/cpointers.h"
+#include "util/cresmgr.h"
 #include "util/directoryutil.h"
 
 #include "backend/drivers/cswordmoduleinfo.h"
@@ -75,6 +76,7 @@ BibleTime::BibleTime() :
    initConnections();
    readSettings();
    setPlainCaption(QString());
+       setWindowIcon( util::filesystem::DirectoryUtil::getIcon(CResMgr::mainWindow::icon) );
 }
 
 BibleTime::~BibleTime() 
index 6cb959c7077a3c18342022819257c86d226823f0..53d10e73f9e7c19e0601ba6a1ea4b8e5d424cecb 100644 (file)
@@ -213,19 +213,11 @@ const QString BtHtmlReadDisplay::text( const CDisplay::TextType format, const CD
        return QString();
 }
 
-#include <QTextStream>
 // Puts html text and javascript into QWebView
 void BtHtmlReadDisplay::setText( const QString& newText ) 
 {
        QString jsText = newText;
 
-     QFile file("out.txt");
-     if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
-         return;
-
-     QTextStream out(&file);
-     out <<  newText << "\n";
-
        jsText.replace(body,jsBegin+javascript+jsEnd+body);
 
        // Disconnect any previous connect and connect to slot that loads the javascript object
@@ -379,4 +371,4 @@ bool BtHtmlReadDisplayView::event(QEvent* e)
     if ( e->type() == QEvent::Leave )
         m_display->m_jsObject->clearPrevAttribute();
     return QWidget::event(e);
-}
\ No newline at end of file
+}
index 1bd51afb231b3d3720135977e496b339c214d3d0..27eb8f440a320c0ab1681524503ce1c937044750 100644 (file)
@@ -13,6 +13,9 @@
 
 
 namespace CResMgr {
+       namespace mainWindow {
+               const QString icon = "bibletime.svg";
+       } // mainWindow
        namespace modules {
                namespace bible {
                        const QString icon_unlocked  = "bible.svg";
index 1fa39534cd7b1539211a2b5ee8e93e893de17532..95d931e9603aa5820df0b9520aeb80855a487951 100644 (file)
@@ -20,6 +20,9 @@
 namespace CResMgr {
        void init_tr();
 
+       namespace mainWindow {
+               extern const QString icon;
+       }
        namespace modules {
                namespace bible {
                        extern const QString icon_unlocked;