#include "trace.h"
#include "progress.h"
-#ifdef Q_WS_MAC
-# define ICON_PREFIX ":/icons/mac/"
-#else
-# define ICON_PREFIX ":/icons/"
-#endif
-
BookView::BookView(QWidget *parent):
QWebView(parent), contentIndex(-1), mBook(0),
restorePositionAfterLoad(false), positionAfterLoad(0), loaded(false),
model/bookfinder.cpp \
widgets/listwindow.cpp \
widgets/progress.cpp \
- widgets/adopterwindow.cpp
+ widgets/adopterwindow.cpp \
+ platform.cpp
HEADERS += \
mainwindow.h \
widgets/progress.h \
widgets/adopterwindow.h \
widgets/listview.h \
- model/xmlhandler.h
+ model/xmlhandler.h \
+ platform.h
RESOURCES += \
dorian.qrc
# include "modeltest.h"
#endif
-#ifdef Q_WS_MAC
-# define ICON_PREFIX ":/icons/mac/"
-#else
-# define ICON_PREFIX ":/icons/"
-#endif
-
const int PROGRESS_HEIGHT = 17;
static const char *DORIAN_VERSION =
#include "pkg/version.txt"
if (name == "text") {
contentTitle = currentText;
} else if (name == "navPoint") {
- qDebug() << "BcxHander::endElement: url" << contentUrl << "title"
+ qDebug() << "NcxHander::endElement: url" << contentUrl << "title"
<< contentTitle << "id" << contentId;
Book::ContentItem item;
item.href = contentUrl;
+dorian (0.2.3-1) unstable; urgency=low
+
+ * Keep library data in database
+
+ -- Akos Polster <akos@pipacs.com> Thu, 8 Oct 2010 02:00:00 +0200
+
dorian (0.2.2-1) unstable; urgency=low
* Speed up book parsing
#endif // Q_WS_MAEMO_5
#include "adopterwindow.h"
+#include "platform.h"
#include "trace.h"
-#ifdef Q_WS_MAC
-# define ICON_PREFIX ":/icons/mac/"
-#else
-# define ICON_PREFIX ":/icons/"
-#endif
-
AdopterWindow::AdopterWindow(QWidget *parent):
QMainWindow(parent), grabbingZoomKeys(false), mainChild(0)
{
Trace t("AdopterWindow::addToolBarAction");
qDebug() << "icon" << iconName << "text" << text;
#ifndef Q_OS_SYMBIAN
- return toolBar->addAction(QIcon(ICON_PREFIX + iconName + ".png"), text,
- receiver, member);
+ return toolBar->addAction(QIcon(Platform::icon(iconName)),
+ text, receiver, member);
#else
Q_UNUSED(iconName);
QAction *action = new QAction(text, this);
#include <QtGui>
#include "translucentbutton.h"
+#include "platform.h"
#include "trace.h"
-#ifdef Q_WS_MAC
-# define ICON_PREFIX ":/icons/mac/"
-#else
-# define ICON_PREFIX ":/icons/"
-#endif
-
const int TranslucentButton::pixels = 95;
TranslucentButton::TranslucentButton(const QString &name_, QWidget *parent):
QPainter painter(this);
if (!transparent) {
painter.setRenderHint(QPainter::Antialiasing, true);
- painter.drawPixmap(0, 0, QPixmap(ICON_PREFIX + name + ".png").scaled(
+ painter.drawPixmap(0, 0, QPixmap(Platform::icon(name)).scaled(
QSize(pixels, pixels), Qt::IgnoreAspectRatio,
Qt::SmoothTransformation));
} else {