Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
v0.9.4-rc
Browse files Browse the repository at this point in the history
- Update system now detects already downloaded updates
- Added checksum check for downloaded updates
- File logging available
- From LGPL to GPL
- Added copyright comments in all source files
  • Loading branch information
Lymphatus committed Jan 28, 2016
1 parent e51c9dc commit b86dee6
Show file tree
Hide file tree
Showing 30 changed files with 1,404 additions and 225 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,11 +2,17 @@

###### 0.9.4-beta
* FIXED
* Remove/Clear button behaviour
* Remove/Clear button behaviour with empty lists
* Overflow for big file sizes converted to human form
* Bugfixes
* From LGPL to GPL
* ADDED
* Context menu for the file list
* Save/Open list
* Copyright notice in source files
* Update system now detects already downloaded updates
* Checksum check for downloaded updates
* Loggin to file

----------

Expand Down
1 change: 0 additions & 1 deletion CaesiumPH.pro
Expand Up @@ -45,7 +45,6 @@ SOURCES += main.cpp\
usageinfo.cpp \
networkoperations.cpp \
qdroptreewidget.cpp \
ctreewidgetitem.cpp \
cphlist.cpp

HEADERS += caesiumph.h \
Expand Down
827 changes: 668 additions & 159 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
@@ -1,5 +1,5 @@
## CaesiumPH
##### v0.9.4-beta (build 20151228) - Copyright © Matteo Paonessa, 2015. All Rights Reserved.
##### v0.9.4-beta (build 20160128) - Copyright © Matteo Paonessa, 2016. All Rights Reserved.

----------

Expand Down
23 changes: 23 additions & 0 deletions aboutdialog.cpp
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include "utils.h"
Expand Down
23 changes: 23 additions & 0 deletions aboutdialog.h
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H

Expand Down
20 changes: 19 additions & 1 deletion aboutdialog.ui
Expand Up @@ -197,7 +197,7 @@
</font>
</property>
<property name="text">
<string2015 - SaeraSoft and Matteo Paonessa</string>
<string2016 - SaeraSoft and Matteo Paonessa</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
Expand All @@ -219,6 +219,24 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="websiteLabel_2">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;http://saerasoft.com/caesium&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;License&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
Expand Down
30 changes: 27 additions & 3 deletions caesiumph.cpp
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#include "caesiumph.h"
#include "ui_caesiumph.h"
#include "aboutdialog.h"
Expand Down Expand Up @@ -678,16 +701,17 @@ void CaesiumPH::checkUpdates() {
qDebug() << "Check updates called";
NetworkOperations* op = new NetworkOperations();
op->checkForUpdates();
connect(op, SIGNAL(checkForUpdatesFinished(int, QString)), this, SLOT(updateAvailable(int, QString)));
connect(op, SIGNAL(updateDownloadFinished(QString)), this, SLOT(updateDownloadFinished(QString)));
connect(op, SIGNAL(checkForUpdatesFinished(int, QString, QString)), this, SLOT(updateAvailable(int, QString, QString)));
}

void CaesiumPH::updateAvailable(int version, QString versionTag) {
void CaesiumPH::updateAvailable(int version, QString versionTag, QString checksum) {
qDebug() << "FOUND UPDATE VERSION " << version;
updateVersionTag = versionTag;
if (version > versionNumber) {
NetworkOperations* op = new NetworkOperations();
connect(op, SIGNAL(updateDownloadFinished(QString)), this, SLOT(updateDownloadFinished(QString)));
op->downloadUpdateRequest();
op->downloadUpdateRequest(checksum);
}
}

Expand Down
25 changes: 24 additions & 1 deletion caesiumph.h
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#ifndef CAESIUMPH_H
#define CAESIUMPH_H

Expand Down Expand Up @@ -52,7 +75,7 @@ private slots:
void closeEvent(QCloseEvent *event);
void on_settingsButton_clicked();
void showImportProgressDialog(QStringList);
void updateAvailable(int, QString);
void updateAvailable(int, QString, QString);
void on_updateButton_clicked();
void updateDownloadFinished(QString);
void clearUI();
Expand Down
23 changes: 23 additions & 0 deletions cimageinfo.cpp
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#include "cimageinfo.h"
#include "utils.h"

Expand Down
23 changes: 23 additions & 0 deletions cimageinfo.h
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#ifndef CIMAGEINFO_H
#define CIMAGEINFO_H

Expand Down
27 changes: 25 additions & 2 deletions cphlist.cpp
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#include "cphlist.h"
#include "utils.h"

Expand Down Expand Up @@ -44,7 +67,7 @@ QList<QTreeWidgetItem*> CPHList::readFile(QString path) {
//CLose the file
in.close();
} else {
qDebug() << "ERROR Failed to open " << path;
qCritical() << "Failed to open CPHLF at path: " << path;
}
return items;
}
Expand Down Expand Up @@ -72,7 +95,7 @@ void CPHList::writeToFile(QList<QTreeWidgetItem *> list, QString path) {
//CLose the file
out.close();
} else {
qDebug() << "ERROR Failed to write " << path;
qCritical() << "Failed to write CPHLF at path: " << path;
return;
}
}
23 changes: 23 additions & 0 deletions cphlist.h
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#ifndef CLIST_H
#define CLIST_H

Expand Down
Empty file removed ctreewidgetitem.cpp
Empty file.
23 changes: 23 additions & 0 deletions ctreewidgetitem.h
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#ifndef CTREEWIDGETITEM_H
#define CTREEWIDGETITEM_H

Expand Down
25 changes: 24 additions & 1 deletion exif.cpp
@@ -1,3 +1,26 @@
/**
*
* This file is part of CaesiumPH.
*
* CaesiumPH - A Caesium version featuring lossless JPEG optimization/compression
* for photographers and webmasters.
*
* Copyright (C) 2016 - Matteo Paonessa
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.
* If not, see <http://www.gnu.org/licenses/>
*
*/

#include <exiv2/exiv2.hpp>
#include "exif.h"
#include "utils.h"
Expand Down Expand Up @@ -125,6 +148,6 @@ void writeExif(Exiv2::ExifData exifData, Exiv2::ExifData* newExifData, std::stri
}
catch (Exiv2::AnyError& e) {
//TODO Error handling
qDebug() << "Caught Exiv2 exception '" + QString(e.what()) + "'\n";
qWarning() << "Caught Exiv2 exception: " + QString(e.what()) + "\n";
}
}

0 comments on commit b86dee6

Please sign in to comment.