-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from ess-dmsc/issue_249_mutex
Issue 249 mutex
- Loading branch information
Showing
20 changed files
with
94 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
/* Copyright (C) 2020 European Spallation Source, ERIC. See LICENSE file */ | ||
//===----------------------------------------------------------------------===// | ||
/// | ||
/// \file daqlite.cpp | ||
/// | ||
/// \brief Daquiri Light main application | ||
/// | ||
/// Handles command line option(s), instantiates GUI | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include <Configuration.h> | ||
#include <Custom2DPlot.h> | ||
#include <MainWindow.h> | ||
#include <WorkerThread.h> | ||
|
||
#include <QApplication> | ||
#include <QPlot/QPlot.h> | ||
#include <fmt/format.h> | ||
#include <QCommandLineParser> | ||
|
||
int main(int argc, char *argv[]) { | ||
QApplication app(argc, argv); | ||
|
||
QCommandLineParser CLI; | ||
CLI.setApplicationDescription("Daquiri light - when you're driving home"); | ||
CLI.addHelpOption(); | ||
|
||
QCommandLineOption fileOption("f", "Configuration file", "file"); | ||
CLI.addOption(fileOption); | ||
CLI.process(app); | ||
|
||
Configuration Config; | ||
if (CLI.isSet(fileOption)) { | ||
std::string FileName = CLI.value(fileOption).toStdString(); | ||
Config.fromJsonFile(FileName); | ||
} | ||
|
||
MainWindow w(Config); | ||
w.resize(Config.Plot.Width, Config.Plot.Height); | ||
|
||
return app.exec(); | ||
} | ||
/* Copyright (C) 2020 European Spallation Source, ERIC. See LICENSE file */ | ||
//===----------------------------------------------------------------------===// | ||
/// | ||
/// \file daqlite.cpp | ||
/// | ||
/// \brief Daquiri Light main application | ||
/// | ||
/// Handles command line option(s), instantiates GUI | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include <Configuration.h> | ||
#include <Custom2DPlot.h> | ||
#include <MainWindow.h> | ||
#include <WorkerThread.h> | ||
|
||
#include <QApplication> | ||
#include <QPlot/QPlot.h> | ||
#include <fmt/format.h> | ||
#include <QCommandLineParser> | ||
|
||
int main(int argc, char *argv[]) { | ||
QApplication app(argc, argv); | ||
|
||
QCommandLineParser CLI; | ||
CLI.setApplicationDescription("Daquiri light - when you're driving home"); | ||
CLI.addHelpOption(); | ||
|
||
QCommandLineOption fileOption("f", "Configuration file", "file"); | ||
CLI.addOption(fileOption); | ||
CLI.process(app); | ||
|
||
Configuration Config; | ||
if (CLI.isSet(fileOption)) { | ||
std::string FileName = CLI.value(fileOption).toStdString(); | ||
Config.fromJsonFile(FileName); | ||
} | ||
|
||
MainWindow w(Config); | ||
w.setWindowTitle(QString::fromStdString(Config.Plot.WindowTitle)); | ||
w.resize(Config.Plot.Width, Config.Plot.Height); | ||
|
||
return app.exec(); | ||
} |