Commit fd024fc3 authored by Claudio Valerio's avatar Claudio Valerio

Merge branch 'master' of github.com:Sankore/Sankore-3.1

parents 4eea0597 2673646c
...@@ -137,10 +137,10 @@ macx { ...@@ -137,10 +137,10 @@ macx {
VERSION_RC_PATH = "$$BUILD_DIR/version_rc" VERSION_RC_PATH = "$$BUILD_DIR/version_rc"
# Embed version into executable for breakpad # Embed version into executable for breakpad
QMAKE_LFLAGS += -sectcreate \ # QMAKE_LFLAGS += -sectcreate \
__DATA \ # __DATA \
__version \ # __version \
$$VERSION_RC_PATH # $$VERSION_RC_PATH
QMAKE_CXXFLAGS_RELEASE += -gdwarf-2 \ QMAKE_CXXFLAGS_RELEASE += -gdwarf-2 \
-mdynamic-no-pic -mdynamic-no-pic
......
...@@ -1078,8 +1078,7 @@ ...@@ -1078,8 +1078,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../sankore.qrc"> <iconset resource="../sankore.qrc">
<normaloff>:/images/toolPalette/podcast.svg</normaloff> <normaloff>:/images/toolbar/record.png</normaloff>:/images/toolbar/record.png</iconset>
<normalon>:/images/toolPalette/podcastOn.svg</normalon>:/images/toolPalette/podcast.svg</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Podcast</string> <string>Podcast</string>
...@@ -1563,6 +1562,9 @@ ...@@ -1563,6 +1562,9 @@
<property name="toolTip"> <property name="toolTip">
<string>Share Capture on the Web</string> <string>Share Capture on the Web</string>
</property> </property>
<property name="visible">
<bool>true</bool>
</property>
</action> </action>
<action name="actionDesktopTools"> <action name="actionDesktopTools">
<property name="checkable"> <property name="checkable">
...@@ -1637,6 +1639,10 @@ ...@@ -1637,6 +1639,10 @@
</property> </property>
</action> </action>
<action name="actionHideApplication"> <action name="actionHideApplication">
<property name="icon">
<iconset resource="../sankore.qrc">
<normaloff>:/images/toolbar/hide.png</normaloff>:/images/toolbar/hide.png</iconset>
</property>
<property name="text"> <property name="text">
<string>Hide Sankoré</string> <string>Hide Sankoré</string>
</property> </property>
......
resources/images/paletteLibrary.png

1.55 KB | W: | H:

resources/images/paletteLibrary.png

1.54 KB | W: | H:

resources/images/paletteLibrary.png
resources/images/paletteLibrary.png
resources/images/paletteLibrary.png
resources/images/paletteLibrary.png
  • 2-up
  • Swipe
  • Onion skin
resources/images/paletteNavigator.png

1.39 KB | W: | H:

resources/images/paletteNavigator.png

1.17 KB | W: | H:

resources/images/paletteNavigator.png
resources/images/paletteNavigator.png
resources/images/paletteNavigator.png
resources/images/paletteNavigator.png
  • 2-up
  • Swipe
  • Onion skin
resources/images/toolbar/paraschool.png

395 Bytes | W: | H:

resources/images/toolbar/paraschool.png

1.54 KB | W: | H:

resources/images/toolbar/paraschool.png
resources/images/toolbar/paraschool.png
resources/images/toolbar/paraschool.png
resources/images/toolbar/paraschool.png
  • 2-up
  • Swipe
  • Onion skin
resources/images/toolbar/record.png

2.39 KB | W: | H:

resources/images/toolbar/record.png

1.67 KB | W: | H:

resources/images/toolbar/record.png
resources/images/toolbar/record.png
resources/images/toolbar/record.png
resources/images/toolbar/record.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
<file>images/reload.svg</file> <file>images/reload.svg</file>
<file>images/frozen.svg</file> <file>images/frozen.svg</file>
<file>images/unfrozen.svg</file> <file>images/unfrozen.svg</file>
<file>images/toolbar/display.png</file>
<file>images/toolbar/window.png</file> <file>images/toolbar/window.png</file>
<file>images/toolbar/plusBlack.png</file> <file>images/toolbar/plusBlack.png</file>
<file>images/toolbar/plusBlackOn.png</file> <file>images/toolbar/plusBlackOn.png</file>
...@@ -107,7 +106,6 @@ ...@@ -107,7 +106,6 @@
<file>images/toolbar/captureWindow.png</file> <file>images/toolbar/captureWindow.png</file>
<file>images/toolbar/extraTool.png</file> <file>images/toolbar/extraTool.png</file>
<file>images/toolbar/webUpload.png</file> <file>images/toolbar/webUpload.png</file>
<file>images/toolbar/record.png</file>
<file>images/toolbar/stop.png</file> <file>images/toolbar/stop.png</file>
<file>images/toolbar/pause.png</file> <file>images/toolbar/pause.png</file>
<file>images/toolbar/cut.png</file> <file>images/toolbar/cut.png</file>
...@@ -121,7 +119,6 @@ ...@@ -121,7 +119,6 @@
<file>images/toolbar/eraserTool.png</file> <file>images/toolbar/eraserTool.png</file>
<file>images/toolbar/lineTool.png</file> <file>images/toolbar/lineTool.png</file>
<file>images/toolbar/tools.png</file> <file>images/toolbar/tools.png</file>
<file>images/toolbar/paraschool.png</file>
<file>images/stylusPalette/arrow.png</file> <file>images/stylusPalette/arrow.png</file>
<file>images/stylusPalette/arrowOn.png</file> <file>images/stylusPalette/arrowOn.png</file>
<file>images/stylusPalette/eraser.png</file> <file>images/stylusPalette/eraser.png</file>
...@@ -259,8 +256,6 @@ ...@@ -259,8 +256,6 @@
<file>images/libpalette/notFound.png</file> <file>images/libpalette/notFound.png</file>
<file>images/libpalette/trash_favorite.svg</file> <file>images/libpalette/trash_favorite.svg</file>
<file>images/libpalette/back.png</file> <file>images/libpalette/back.png</file>
<file>images/paletteLibrary.png</file>
<file>images/paletteNavigator.png</file>
<file>images/stylusPalette/eraserArrow.png</file> <file>images/stylusPalette/eraserArrow.png</file>
<file>images/stylusPalette/eraserOnArrow.png</file> <file>images/stylusPalette/eraserOnArrow.png</file>
<file>images/stylusPalette/markerArrow.png</file> <file>images/stylusPalette/markerArrow.png</file>
...@@ -284,5 +279,11 @@ ...@@ -284,5 +279,11 @@
<file>images/libpalette/miniFavorite.png</file> <file>images/libpalette/miniFavorite.png</file>
<file>images/libpalette/home.png</file> <file>images/libpalette/home.png</file>
<file>images/toolbar/updates.png</file> <file>images/toolbar/updates.png</file>
<file>images/paletteLibrary.png</file>
<file>images/paletteNavigator.png</file>
<file>images/toolbar/paraschool.png</file>
<file>images/toolbar/display.png</file>
<file>images/toolbar/hide.png</file>
<file>images/toolbar/record.png</file>
</qresource> </qresource>
</RCC> </RCC>
...@@ -145,7 +145,7 @@ void UBBoardPaletteManager::setupPalettes() ...@@ -145,7 +145,7 @@ void UBBoardPaletteManager::setupPalettes()
addItemActions << UBApplication::mainWindow->actionAddItemToCurrentPage; addItemActions << UBApplication::mainWindow->actionAddItemToCurrentPage;
addItemActions << UBApplication::mainWindow->actionAddItemToNewPage; addItemActions << UBApplication::mainWindow->actionAddItemToNewPage;
addItemActions << UBApplication::mainWindow->actionAddItemToLibrary; addItemActions << UBApplication::mainWindow->actionAddItemToLibrary;
addItemActions << UBApplication::mainWindow->actionShareItemOnWeb; //addItemActions << UBApplication::mainWindow->actionShareItemOnWeb;
mAddItemPalette = new UBActionPalette(addItemActions, Qt::Horizontal, 0); mAddItemPalette = new UBActionPalette(addItemActions, Qt::Horizontal, 0);
mAddItemPalette->setButtonIconSize(QSize(128, 128)); mAddItemPalette->setButtonIconSize(QSize(128, 128));
...@@ -299,7 +299,7 @@ void UBBoardPaletteManager::connectPalettes() ...@@ -299,7 +299,7 @@ void UBBoardPaletteManager::connectPalettes()
connect(UBApplication::mainWindow->actionAddItemToCurrentPage, SIGNAL(triggered()), this, SLOT(addItemToCurrentPage())); connect(UBApplication::mainWindow->actionAddItemToCurrentPage, SIGNAL(triggered()), this, SLOT(addItemToCurrentPage()));
connect(UBApplication::mainWindow->actionAddItemToNewPage, SIGNAL(triggered()), this, SLOT(addItemToNewPage())); connect(UBApplication::mainWindow->actionAddItemToNewPage, SIGNAL(triggered()), this, SLOT(addItemToNewPage()));
connect(UBApplication::mainWindow->actionAddItemToLibrary, SIGNAL(triggered()), this, SLOT(addItemToLibrary())); connect(UBApplication::mainWindow->actionAddItemToLibrary, SIGNAL(triggered()), this, SLOT(addItemToLibrary()));
connect(UBApplication::mainWindow->actionShareItemOnWeb, SIGNAL(triggered()), this, SLOT(shareItemOnWeb())); //connect(UBApplication::mainWindow->actionShareItemOnWeb, SIGNAL(triggered()), this, SLOT(shareItemOnWeb()));
connect(UBApplication::mainWindow->actionEraseItems, SIGNAL(triggered()), mErasePalette, SLOT(close())); connect(UBApplication::mainWindow->actionEraseItems, SIGNAL(triggered()), mErasePalette, SLOT(close()));
connect(UBApplication::mainWindow->actionEraseAnnotations, SIGNAL(triggered()), mErasePalette, SLOT(close())); connect(UBApplication::mainWindow->actionEraseAnnotations, SIGNAL(triggered()), mErasePalette, SLOT(close()));
......
...@@ -277,7 +277,7 @@ void UBDockPalette::paintEvent(QPaintEvent *event) ...@@ -277,7 +277,7 @@ void UBDockPalette::paintEvent(QPaintEvent *event)
path.addRect(0.0, 0.0, width()-border(), height()); path.addRect(0.0, 0.0, width()-border(), height());
path.addRoundedRect(width()-2*border(), border(), 2*border(), TABSIZE, radius(), radius()); path.addRoundedRect(width()-2*border(), border(), 2*border(), TABSIZE, radius(), radius());
painter.drawPath(path); painter.drawPath(path);
painter.drawPixmap(width() - border(), border() + (TABSIZE / 2) - 6, 12, 12, mIcon); painter.drawPixmap(width() - border() + 1, border() + 1 , border() - 4, TABSIZE - 2, mIcon);
} }
else if(mOrientation == eUBDockOrientation_Right) else if(mOrientation == eUBDockOrientation_Right)
{ {
...@@ -286,7 +286,7 @@ void UBDockPalette::paintEvent(QPaintEvent *event) ...@@ -286,7 +286,7 @@ void UBDockPalette::paintEvent(QPaintEvent *event)
path.addRect(border(), 0.0, width()-border(), height()); path.addRect(border(), 0.0, width()-border(), height());
path.addRoundedRect(0.0, border(), 2*border(), TABSIZE, radius(), radius()); path.addRoundedRect(0.0, border(), 2*border(), TABSIZE, radius(), radius());
painter.drawPath(path); painter.drawPath(path);
painter.drawPixmap(2, border() + (TABSIZE / 2) - 6, 12, 12, mIcon); painter.drawPixmap(2, border() + 1, border() - 3, TABSIZE - 2, mIcon);
} }
else else
{ {
......
#include <QMessageBox>
#include <QFileDialog>
#include "UBUpdateDlg.h"
UBUpdateDlg::UBUpdateDlg(QWidget *parent, int nbFiles, const QString& bkpPath)
: QDialog(parent)
, mpDlgBttn(NULL)
{
setFixedSize(400, 110);
setModal(true);
setWindowTitle(tr("Document updater"));
setLayout(&mLayout);
QString str = QString::number(nbFiles);
str.append(tr(" files require an update."));
mNbFilesLabel.setText(str);
mLayout.addWidget(&mNbFilesLabel);
mBkpLabel.setText(tr("Backup path: "));
mBkpPath.setText(bkpPath);
mBrowseBttn.setText(tr("Browse"));
mHLayout.addWidget(&mBkpLabel);
mHLayout.addWidget(&mBkpPath, 1);
mHLayout.addWidget(&mBrowseBttn);
mLayout.addLayout(&mHLayout);
mpDlgBttn = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this);
mLayout.addWidget(mpDlgBttn);
mpDlgBttn->button(QDialogButtonBox::Ok)->setText(tr("Update"));
mpDlgBttn->button(QDialogButtonBox::Cancel)->setText("Remind me later");
QObject::connect(&mBrowseBttn, SIGNAL(clicked()), this, SLOT(onBrowse()));
QObject::connect(mpDlgBttn, SIGNAL(accepted()), this, SLOT(onUpdate()));
QObject::connect(mpDlgBttn, SIGNAL(rejected()), this, SLOT(reject()));
}
UBUpdateDlg::~UBUpdateDlg()
{
if(NULL != mpDlgBttn)
{
delete mpDlgBttn;
mpDlgBttn = NULL;
}
}
void UBUpdateDlg::onBrowse()
{
QString qsSelectedDir;
qsSelectedDir = QFileDialog::getExistingDirectory(this, tr("Select a backup folder"), mBkpPath.text());
mBkpPath.setText(qsSelectedDir);
}
void UBUpdateDlg::onUpdate()
{
emit updateFiles();
}
void UBUpdateDlg::onFilesUpdated(bool bResult)
{
QString qsMsg;
if(bResult)
{
qsMsg = tr("Files update successful");
}
else
{
qsMsg = tr("An error occured during the update. The files have not been affected.");
}
QMessageBox::information(this, tr("Files update results"), qsMsg, QMessageBox::Ok);
}
QString UBUpdateDlg::backupPath()
{
return mBkpPath.text();
}
#ifndef UBUPDATEDLG_H
#define UBUPDATEDLG_H
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QHBoxLayout>
class UBUpdateDlg : public QDialog
{
Q_OBJECT
public:
UBUpdateDlg(QWidget *parent = 0, int nbFiles = 0, const QString& bkpPath = "");
~UBUpdateDlg();
QString backupPath();
public slots:
void onFilesUpdated(bool bResult);
signals:
void updateFiles();
private slots:
void onBrowse();
void onUpdate();
private:
QLabel mNbFilesLabel;
QLabel mBkpLabel;
QLineEdit mBkpPath;
QPushButton mBrowseBttn;
QDialogButtonBox* mpDlgBttn;
QVBoxLayout mLayout;
QHBoxLayout mHLayout;
};
#endif // UBUPDATEDLG_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment