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