-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1c69bec
Showing
11 changed files
with
326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# custom config | ||
fvupdateconfig.h | ||
|
||
# OS X | ||
.DS_Store | ||
|
||
# Qt | ||
*.pro.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2012-04-18T13:27:45 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui webkit | ||
|
||
TARGET = Fervor | ||
VERSION = 1.0 | ||
TEMPLATE = app | ||
|
||
DEFINES += APP_VERSION=\\\"$$VERSION\\\" | ||
|
||
SOURCES += main.cpp\ | ||
mainwindow.cpp \ | ||
fvupdatewindow.cpp | ||
|
||
HEADERS += mainwindow.h \ | ||
fvupdatewindow.h \ | ||
fvupdateconfig.h | ||
|
||
FORMS += mainwindow.ui \ | ||
fvupdatewindow.ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fervor is (will / should be) a simple, multiplatform (Qt-based) application autoupdater, "inspired" by [Sparkle](http://sparkle.andymatuschak.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef FVUPDATECONFIG_H | ||
#define FVUPDATECONFIG_H | ||
|
||
// | ||
// Info.plist: | ||
// | ||
// SUEnableSystemProfiling = YES | ||
// SUExpectsDSASignature = YES | ||
// SUFeedURL = http://anglonas.fotonija.lt/MacOSX/updates.php | ||
// SUPublicDSAKeyFile = aupdate_dsa_pub.pem | ||
// | ||
|
||
#endif // FVUPDATECONFIG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "fvupdatewindow.h" | ||
#include "ui_fvupdatewindow.h" | ||
#include "fvupdateconfig.h" | ||
|
||
|
||
FvUpdateWindow::FvUpdateWindow(QWidget *parent) : | ||
QWidget(parent), | ||
ui(new Ui::FvUpdateWindow) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
FvUpdateWindow::~FvUpdateWindow() | ||
{ | ||
delete ui; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef FVUPDATEWINDOW_H | ||
#define FVUPDATEWINDOW_H | ||
|
||
#include <QWidget> | ||
|
||
namespace Ui { | ||
class FvUpdateWindow; | ||
} | ||
|
||
class FvUpdateWindow : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit FvUpdateWindow(QWidget *parent = 0); | ||
~FvUpdateWindow(); | ||
|
||
private: | ||
Ui::FvUpdateWindow *ui; | ||
}; | ||
|
||
#endif // FVUPDATEWINDOW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>FvUpdateWindow</class> | ||
<widget class="QWidget" name="FvUpdateWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>615</width> | ||
<height>329</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Software Update</string> | ||
</property> | ||
<layout class="QHBoxLayout" name="horizontalLayout_6"> | ||
<item> | ||
<widget class="QGraphicsView" name="graphicsView"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>80</width> | ||
<height>80</height> | ||
</size> | ||
</property> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>80</width> | ||
<height>80</height> | ||
</size> | ||
</property> | ||
<property name="interactive"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="label"> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>A new version of %s is available!</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="text"> | ||
<string>%s %s is now available - you have %s. Would you like to download it now?</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QGroupBox" name="groupBox"> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="title"> | ||
<string>Release Notes:</string> | ||
</property> | ||
<layout class="QHBoxLayout" name="horizontalLayout_7"> | ||
<item> | ||
<widget class="QWebView" name="webView"> | ||
<property name="url"> | ||
<url> | ||
<string>about:blank</string> | ||
</url> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
<item> | ||
<widget class="QPushButton" name="pushButton"> | ||
<property name="text"> | ||
<string>Skip This Version</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_5"> | ||
<item> | ||
<widget class="QPushButton" name="pushButton_2"> | ||
<property name="text"> | ||
<string>Remind Me Later</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pushButton_3"> | ||
<property name="text"> | ||
<string>Install Update</string> | ||
</property> | ||
<property name="autoDefault"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="default"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>QWebView</class> | ||
<extends>QWidget</extends> | ||
<header>QtWebKit/QWebView</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <QtGui/QApplication> | ||
#include "mainwindow.h" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QApplication a(argc, argv); | ||
|
||
a.setApplicationVersion(APP_VERSION); | ||
|
||
MainWindow w; | ||
w.show(); | ||
|
||
return a.exec(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "mainwindow.h" | ||
#include "ui_mainwindow.h" | ||
#include "fvupdatewindow.h" | ||
#include <QDebug> | ||
|
||
|
||
MainWindow::MainWindow(QWidget *parent) : | ||
QMainWindow(parent), | ||
ui(new Ui::MainWindow) | ||
{ | ||
ui->setupUi(this); | ||
|
||
updateWindow = new FvUpdateWindow(); | ||
|
||
connect(ui->updateButton, SIGNAL(clicked()), updateWindow, SLOT(show())); | ||
} | ||
|
||
MainWindow::~MainWindow() | ||
{ | ||
delete ui; | ||
delete updateWindow; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef MAINWINDOW_H | ||
#define MAINWINDOW_H | ||
|
||
#include <QMainWindow> | ||
class FvUpdateWindow; | ||
|
||
|
||
namespace Ui { | ||
class MainWindow; | ||
} | ||
|
||
class MainWindow : public QMainWindow | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit MainWindow(QWidget *parent = 0); | ||
~MainWindow(); | ||
|
||
private: | ||
Ui::MainWindow *ui; | ||
FvUpdateWindow* updateWindow; | ||
}; | ||
|
||
#endif // MAINWINDOW_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>MainWindow</class> | ||
<widget class="QMainWindow" name="MainWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>300</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>MainWindow</string> | ||
</property> | ||
<widget class="QWidget" name="centralWidget"> | ||
<widget class="QPushButton" name="updateButton"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>140</x> | ||
<y>110</y> | ||
<width>114</width> | ||
<height>32</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Updates</string> | ||
</property> | ||
</widget> | ||
</widget> | ||
<widget class="QMenuBar" name="menuBar"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>22</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
</widget> | ||
<layoutdefault spacing="6" margin="11"/> | ||
<resources/> | ||
<connections/> | ||
</ui> |