diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
| commit | 2d1068e60bce7ae1fff11623454900e8cee956b1 (patch) | |
| tree | acebe276e30466ef0ab91bc3da5e379bec0d7dc5 /map65/main.cpp | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
New upstream version 2.6.0~rc3+repackupstream/2.6.0_rc3+repack
Diffstat (limited to 'map65/main.cpp')
| -rwxr-xr-x | map65/main.cpp | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/map65/main.cpp b/map65/main.cpp index 07e1d4c0..225713d3 100755 --- a/map65/main.cpp +++ b/map65/main.cpp @@ -1,43 +1,43 @@ -#include <fftw3.h> -#ifdef QT5 -#include <QtWidgets> -#else -#include <QtGui> -#endif -#include <QApplication> - -#include "revision_utils.hpp" -#include "mainwindow.h" - -extern "C" { - // Fortran procedures we need - void four2a_ (_Complex float *, int * nfft, int * ndim, int * isign, int * iform, int len); -} - -int main(int argc, char *argv[]) -{ - QApplication a {argc, argv}; - // Override programs executable basename as application name. - a.setApplicationName ("MAP65"); - a.setApplicationVersion ("3.0.0"); - // switch off as we share an Info.plist file with WSJT-X - a.setAttribute (Qt::AA_DontUseNativeMenuBar); - MainWindow w; - w.show (); - QObject::connect (&a, &QApplication::lastWindowClosed, &a, &QApplication::quit); - auto result = a.exec (); - - // clean up lazily initialized FFTW3 resources - { - int nfft {-1}; - int ndim {1}; - int isign {1}; - int iform {1}; - // free FFT plan resources - four2a_ (nullptr, &nfft, &ndim, &isign, &iform, 0); - } - fftwf_forget_wisdom (); - fftwf_cleanup (); - - return result; -} +#include <fftw3.h>
+#ifdef QT5
+#include <QtWidgets>
+#else
+#include <QtGui>
+#endif
+#include <QApplication>
+
+#include "revision_utils.hpp"
+#include "mainwindow.h"
+
+extern "C" {
+ // Fortran procedures we need
+ void four2a_ (_Complex float *, int * nfft, int * ndim, int * isign, int * iform, int len);
+}
+
+int main(int argc, char *argv[])
+{
+ QApplication a {argc, argv};
+ // Override programs executable basename as application name.
+ a.setApplicationName ("MAP65");
+ a.setApplicationVersion ("3.0.0");
+ // switch off as we share an Info.plist file with WSJT-X
+ a.setAttribute (Qt::AA_DontUseNativeMenuBar);
+ MainWindow w;
+ w.show ();
+ QObject::connect (&a, &QApplication::lastWindowClosed, &a, &QApplication::quit);
+ auto result = a.exec ();
+
+ // clean up lazily initialized FFTW3 resources
+ {
+ int nfft {-1};
+ int ndim {1};
+ int isign {1};
+ int iform {1};
+ // free FFT plan resources
+ four2a_ (nullptr, &nfft, &ndim, &isign, &iform, 0);
+ }
+ fftwf_forget_wisdom ();
+ fftwf_cleanup ();
+
+ return result;
+}
|
