CFEL - ASG Software Suite  2.5.0
CASS
Functions
jocassview/main.cpp File Reference

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"
+ Include dependency graph for jocassview/main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Detailed Description

the main starter for jocassview

Author
Lutz Foucar

Definition in file jocassview/main.cpp.

Function Documentation

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

Todo:
remove all non alphanumerical characters from the keystring before calling function

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().