Skip to content

Commit

Permalink
Merge branch 'release/0.9.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
leftytennis committed Aug 5, 2016
2 parents 3390f5a + 2cc999e commit e5106d7
Show file tree
Hide file tree
Showing 30 changed files with 90 additions and 80 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "Sparkle"]
path = Sparkle
url = git@github.com:sparkle-project/Sparkle
[submodule "src/Sparkle"]
path = src/Sparkle
url = https://github.com/sparkle-project/Sparkle.git
76 changes: 4 additions & 72 deletions InkjetPlumber.pro
Original file line number Diff line number Diff line change
@@ -1,75 +1,7 @@
#-------------------------------------------------
#
# Project created by QtCreator 2016-07-02T13:04:25
#
#-------------------------------------------------

QT += core gui printsupport
TEMPLATE = subdirs

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += ordered

TARGET = InkjetPlumber
TEMPLATE = app

SOURCES += main.cpp\
mainwindow.cpp \
preferencesdialog.cpp \
maintenancejob.cpp \
autoupdater.cpp \
aboutdialog.cpp

HEADERS += mainwindow.h \
version.h \
preferencesdialog.h \
maintenancejob.h \
autoupdater.h \
aboutdialog.h

FORMS += mainwindow.ui \
preferencesdialog.ui \
aboutdialog.ui

RESOURCES += \
InkjetPlumber.qrc

ICON = InkjetPlumber.icns

CONFIG(debug, debug|release) {
DESTDIR = build/debug
DEFINES += INKJETPLUMBER_DEBUG
} else {
DESTDIR = build/release
DEFINES += INKJETPLUMBER_RELEASE
}

OBJECTS_DIR = $${DESTDIR}/.generatedfiles
MOC_DIR = $${DESTDIR}/.generatedfiles
RCC_DIR = $${DESTDIR}/.generatedfiles
UI_DIR = $${DESTDIR}/.generatedfiles

mac {
HEADERS += \
cocoainitializer.h \
sparkleautoupdater.h
OBJECTIVE_SOURCES += \
cocoainitializer.mm \
sparkleautoUpdater.mm
BUNDLE_DIR = $$quote($$DESTDIR/$${TARGET}.app)
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS = -Wl,-rpath,@executable_path/../Frameworks
QMAKE_POST_LINK += ditto -v \"$${PWD}/Sparkle/build/Release/Sparkle.framework/\" \"$${BUNDLE_DIR}/Contents/Frameworks/Sparkle.framework/\" 2>&1;
QMAKE_POST_LINK += /Users/jefft/bin/codesign_app_bundle \"$${BUNDLE_DIR}\" 2>&1
INCLUDEPATH += $$PWD/Sparkle/build/Release/Sparkle.framework/Headers/
LIBS += -F$${PWD}/Sparkle/build/Release/
LIBS += -framework Sparkle -framework AppKit
QMAKE_INFO_PLIST = InkjetPlumber.plist
plist.target = Info.plist
plist.depends = InkjetPlumber.plist "$${DESTDIR}/$${TARGET}.app/Contents/Info.plist"
plist.commands = $(DEL_FILE) \"$${DESTDIR}/$${TARGET}.app/Contents/Info.plist\" $$escape_expand(\n\t) \
$(COPY_FILE) InkjetPlumber.plist \"$${DESTDIR}/$${TARGET}.app/Contents/Info.plist\"
QMAKE_EXTRA_TARGETS = plist
PRE_TARGETDEPS += $$plist.target
}
SUBDIRS = \
src
1 change: 0 additions & 1 deletion Sparkle
Submodule Sparkle deleted from 092feb
File renamed without changes.
2 changes: 1 addition & 1 deletion InkjetPlumber.plist → src/InkjetPlumber.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleIdentifier</key>
<string>org.threeputt.Inkjet Plumber</string>
<key>CFBundleVersion</key>
<string>0.9.5</string>
<string>0.9.6</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>SUAutomaticallyUpdate</key>
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/Sparkle
Submodule Sparkle added at 43e96f
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions mainwindow.cpp → src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ MainWindow::MainWindow(QWidget* parent)
connect(tray_action_quit, &QAction::triggered, this, &MainWindow::close);
connect(tray_menu_, &QMenu::aboutToShow, this, &MainWindow::about_to_show_tray_menu);

tray_.setIcon(QIcon(":/icons/InkjetPlumber.icns"));
QIcon icon(":/icons/InkjetPlumber.icns");
icon.setIsMask(true);
tray_.setIcon(icon);
tray_.setContextMenu(tray_menu_);
tray_.show();

Expand Down Expand Up @@ -852,9 +854,10 @@ void MainWindow::maint_job_updated(MaintenanceJob* job, bool save)
if (!maint_job_map_.contains(job->printer_name))
{
maint_job_map_.insert(job->printer_name, job);
show_printer_info(job->printer_name);
}

show_printer_info(job->printer_name);

if (save)
write_printer_settings(job->printer_name);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
75 changes: 75 additions & 0 deletions src/src.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#-------------------------------------------------
#
# Project created by QtCreator 2016-07-02T13:04:25
#
#-------------------------------------------------

QT += core gui printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = InkjetPlumber
TEMPLATE = app

SOURCES += main.cpp\
mainwindow.cpp \
preferencesdialog.cpp \
maintenancejob.cpp \
autoupdater.cpp \
aboutdialog.cpp

HEADERS += mainwindow.h \
version.h \
preferencesdialog.h \
maintenancejob.h \
autoupdater.h \
aboutdialog.h

FORMS += mainwindow.ui \
preferencesdialog.ui \
aboutdialog.ui

RESOURCES += \
InkjetPlumber.qrc

ICON = InkjetPlumber.icns

CONFIG(debug, debug|release) {
DESTDIR = build/debug
DEFINES += INKJETPLUMBER_DEBUG
} else {
DESTDIR = build/release
DEFINES += INKJETPLUMBER_RELEASE
}

OBJECTS_DIR = $${DESTDIR}/.generatedfiles
MOC_DIR = $${DESTDIR}/.generatedfiles
RCC_DIR = $${DESTDIR}/.generatedfiles
UI_DIR = $${DESTDIR}/.generatedfiles

mac {
HEADERS += \
cocoainitializer.h \
sparkleautoupdater.h
OBJECTIVE_SOURCES += \
cocoainitializer.mm \
sparkleautoUpdater.mm
BUNDLE_DIR = $$quote($$DESTDIR/$${TARGET}.app)
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS = -Wl,-rpath,@executable_path/../Frameworks
QMAKE_POST_LINK += ditto -v \"$${PWD}/Sparkle/build/Release/Sparkle.framework/\" \"$${BUNDLE_DIR}/Contents/Frameworks/Sparkle.framework/\" 2>&1;
QMAKE_POST_LINK += /Users/jefft/bin/codesign_app_bundle \"$${BUNDLE_DIR}\" 2>&1
INCLUDEPATH += $$PWD/Sparkle/build/Release/Sparkle.framework/Headers/
LIBS += -F$${PWD}/Sparkle/build/Release/
LIBS += -framework Sparkle -framework AppKit
QMAKE_INFO_PLIST = InkjetPlumber.plist
plist.target = Info.plist
plist.depends = InkjetPlumber.plist "$${DESTDIR}/$${TARGET}.app/Contents/Info.plist"
plist.commands = $(DEL_FILE) \"$${DESTDIR}/$${TARGET}.app/Contents/Info.plist\" $$escape_expand(\n\t) \
$(COPY_FILE) InkjetPlumber.plist \"$${DESTDIR}/$${TARGET}.app/Contents/Info.plist\"
QMAKE_EXTRA_TARGETS = plist
PRE_TARGETDEPS += $$plist.target
}
2 changes: 1 addition & 1 deletion version.h → src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
#ifndef VERSION_H
#define VERSION_H

#define INKJETPLUMBER_VERSION "0.9.5"
#define INKJETPLUMBER_VERSION "0.9.6"

#endif // VERSION_H

0 comments on commit e5106d7

Please sign in to comment.