Go to the documentation of this file.00001
00010 #include "UrgRecorderWidget.h"
00011 #include <QApplication>
00012 #include <QTranslator>
00013
00014
00015 int main(int argc, char *argv[])
00016 {
00017 QApplication app(argc, argv);
00018 bool record_intensity_ = false;
00019 for (int i = 1; i < argc; ++i) {
00020 if (! strcmp(argv[i], "-i")) {
00021 record_intensity_ = true;
00022 }
00023 }
00024
00025
00026 QString locale = QLocale::system().name();
00027 QTranslator translator;
00028 translator.load("UrgRecorder_" + locale);
00029 app.installTranslator(&translator);
00030
00031
00032 UrgRecorderWidget widget;
00033 if (record_intensity_) {
00034 widget.setIntensityMode();
00035 }
00036 widget.show();
00037 return app.exec();
00038 }