3 #include <QtWidgets/QApplication>
4 #include <QtWidgets/qdesktopwidget.h>
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";
17 int main(
int argc,
char** argv)
19 QApplication app(argc, argv);
21 std::string conf = std::string();
25 for (
int i = 1; i < argc; ++i)
27 if (!strcmp(argv[i],
"-h") || !strcmp(argv[i],
"--help"))
33 else if ((!strcmp(argv[i],
"-c") || !strcmp(argv[i],
"--configuration"))
36 conf = std::string(argv[i + 1]);
42 std::cout <<
"unknown option: " << argv[i] <<
"\n";
50 dialog.setWindowFlags(Qt::Window);
Message Viewer Dialog Window