1
//This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
2
//Copyright 2010/2011 Marco Di Antonio
4
// AcetoneISO is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
9
// AcetoneISO is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with AcetoneISO. If not, see <http://www.gnu.org/licenses/>.
16
#include <QApplication>
17
#include "acetoneiso.h"
18
#include <QTranslator>
20
int main(int argc, char *argv[])
22
QApplication app(argc, argv);
24
//const char *h = "--help";
25
QString clImage = argv[1];
26
if ( clImage.contains("--help") or clImage.contains("-h")) {
27
printf ( "\nAcetoneISO Distribuited under GPL v.3.0 \nAuthors:\nMarco Di Antonio 2010\nFabrizio Di Marco and Marco Di Antonio 2006-2007-2008-2009 \nContact: acetoneiso@gmail.com\nWebsite:www.acetoneteam.org\nusage: \nacetoneiso [$path_to_imagefile_to_mount] --> mounts given image and opens it in default filemanager \nacetoneiso --> opens AcetoneISO GUI\nacetoneiso --help --> shows this help\n\n" );
30
//printf ( "Mounting %s\n", argv[1] );
32
QString locale = QLocale::system().name();
33
QTranslator translator;
34
translator.load(QString(":/locale/acetoneiso_") + locale);
35
app.installTranslator(&translator);
37
acetoneiso *dialog = new acetoneiso();