mirror of https://github.com/vitalif/openscad
Merge pull request #278 from openscad/autoup_not_implemented
fix build errors, display 'not implemented' message on win32/linuxfelipesanches-svg
commit
abc9da96c8
|
@ -229,7 +229,8 @@ HEADERS += src/version_check.h \
|
|||
src/linalg.h \
|
||||
src/system-gl.h \
|
||||
src/stl-utils.h \
|
||||
src/svg.h
|
||||
src/svg.h \
|
||||
src/AutoUpdater.h
|
||||
|
||||
SOURCES += src/version_check.cc \
|
||||
src/ProgressWidget.cc \
|
||||
|
@ -276,6 +277,7 @@ SOURCES += src/version_check.cc \
|
|||
src/OpenCSGWarningDialog.cc \
|
||||
src/editor.cc \
|
||||
src/glview.cc \
|
||||
src/AutoUpdater.cc \
|
||||
\
|
||||
src/builtin.cc \
|
||||
src/export.cc \
|
||||
|
@ -321,11 +323,9 @@ SOURCES += src/cgalutils.cc \
|
|||
macx {
|
||||
HEADERS += src/AppleEvents.h \
|
||||
src/EventFilter.h \
|
||||
src/AutoUpdater.h \
|
||||
src/SparkleAutoUpdater.h \
|
||||
src/CocoaUtils.h
|
||||
SOURCES += src/AppleEvents.cc \
|
||||
src/AutoUpdater.cc
|
||||
SOURCES += src/AppleEvents.cc
|
||||
OBJECTIVE_SOURCES += src/SparkleAutoUpdater.mm \
|
||||
src/CocoaUtils.mm
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "Preferences.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QFontDatabase>
|
||||
#include <QKeyEvent>
|
||||
#include <QSettings>
|
||||
|
@ -192,10 +193,19 @@ void Preferences::on_fontSize_editTextChanged(const QString &size)
|
|||
emit fontChanged(getValue("editor/fontfamily").toString(), intsize);
|
||||
}
|
||||
|
||||
void unimplemented_msg()
|
||||
{
|
||||
QMessageBox mbox;
|
||||
mbox.setText("Sorry, this feature is not implemented on your Operating System");
|
||||
mbox.exec();
|
||||
}
|
||||
|
||||
void Preferences::on_updateCheckBox_toggled(bool on)
|
||||
{
|
||||
if (AutoUpdater *updater =AutoUpdater::updater()) {
|
||||
updater->setAutomaticallyChecksForUpdates(on);
|
||||
} else {
|
||||
unimplemented_msg();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -203,6 +213,8 @@ void Preferences::on_snapshotCheckBox_toggled(bool on)
|
|||
{
|
||||
if (AutoUpdater *updater =AutoUpdater::updater()) {
|
||||
updater->setEnableSnapshots(on);
|
||||
} else {
|
||||
unimplemented_msg();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -210,6 +222,8 @@ void Preferences::on_checkNowButton_clicked()
|
|||
{
|
||||
if (AutoUpdater *updater =AutoUpdater::updater()) {
|
||||
updater->checkForUpdates();
|
||||
} else {
|
||||
unimplemented_msg();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue