CFEL - ASG Software Suite
2.5.0
CASS
|
the main starter for jocassview More...
#include <iostream>
#include <QtCore/QSettings>
#include <QtCore/QFileInfo>
#include <QtGui/QApplication>
#include "jocassviewer.h"
#include "cl_parser.hpp"
#include "jocassview_version.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
the main starter for jocassview
Definition in file jocassview/main.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
open an instance of the jocassviwer
parse command line parameters and if first parameter is given open file
show help and exit if requested
show version and exit if requested
Definition at line 29 of file jocassview/main.cpp.
References cass::CommandlineArgumentParser::add(), QCoreApplication::arguments(), QFileInfo::baseName(), QApplication::exec(), QString::fromStdString(), jocassview::JoCASSViewer::openFile(), jocassview::JoCASSViewer::refreshDisplayableItemsList(), QSettings::setDefaultFormat(), jocassview::JoCASSViewer::setDisplayedItem(), jocassview::JoCASSViewer::startViewer(), cass::CommandlineArgumentParser::usage(), and QSettings::value().