Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pypt committed May 31, 2012
0 parents commit 1c69bec
Show file tree
Hide file tree
Showing 11 changed files with 326 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
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
24 changes: 24 additions & 0 deletions Fervor.pro
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
1 change: 1 addition & 0 deletions README.mdown
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/).
13 changes: 13 additions & 0 deletions fvupdateconfig.h.sample
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
16 changes: 16 additions & 0 deletions fvupdatewindow.cpp
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;
}
22 changes: 22 additions & 0 deletions fvupdatewindow.h
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
136 changes: 136 additions & 0 deletions fvupdatewindow.ui
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>
14 changes: 14 additions & 0 deletions sample/main.cpp
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();
}
22 changes: 22 additions & 0 deletions sample/mainwindow.cpp
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;
}
25 changes: 25 additions & 0 deletions sample/mainwindow.h
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
45 changes: 45 additions & 0 deletions sample/mainwindow.ui
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>

0 comments on commit 1c69bec

Please sign in to comment.