1 #include <QtWidgets/qdesktopwidget.h>
3 #include <QtWidgets/QApplication>
6 #include "mfextensions/Binaries/mvdlg.hh"
9 std::cout <<
"usage: msgviewer [options]\n"
10 <<
"allowed options:\n"
11 <<
" -h [ --help ] display this help message\n"
12 <<
" -c [ --configuration ] arg specify the configuration file to msgviewer\n";
15 int main(
int argc,
char** argv) {
16 QApplication app(argc, argv);
18 std::string conf = std::string();
21 for (
int i = 1; i < argc; ++i) {
22 if (!strcmp(argv[i],
"-h") || !strcmp(argv[i],
"--help")) {
27 else if ((!strcmp(argv[i],
"-c") || !strcmp(argv[i],
"--configuration")) && i < argc - 1) {
28 conf = std::string(argv[i + 1]);
33 std::cout <<
"unknown option: " << argv[i] <<
"\n";
41 dialog.setWindowFlags(Qt::Window);
Message Viewer Dialog Window