Debian Codegraph @

src/main.cc

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2002-2003 Andi Peredri *
3 * [email protected] *
4 * Copyright (C) 2004-2007 Artur Wiebe *
5 * [email protected] *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21 ***************************************************************************/
22
23 #include <QApplication>
24 #include <QTranslator>
25 #include <QLocale>
26 #include <QDebug>
27 #include <QLibraryInfo>
28 //#include <QPlastiqueStyle>
29
30
31 #include "toplevel.h"cxx . . $ `<file>/src/toplevel.h`/
32 #include "common.h"cxx . . $ `<file>/src/common.h`/
33
34
35 int maincxx . . $ main(afcd3168fc1188a4).(int argc, char *argv[])
36 {
37 QApplicationcxx . . $ QApplication# appcxx . . $ QApplication#QApplication(6e9b1c7df49e191d).(argc,argv);
38 QStringcxx . . $ QString# current_lang = QLocalecxx . . $ QString#QString(132dd6869045752b).::systemcxx . . $ QLocale#system(7171962d3a2fd395).().namecxx . . $ QLocale#name(6ef7b6c27b00b43d).().splitcxx . . $ QString#split(c8b44a97dcb6200d).("_"cxx . . $ QString#QString(85c52e162fed56f9).).frontcxx . . $ QList#front(19b2b6f17af048b).();
39 QStringcxx . . $ QString# qt_lang_path = QLibraryInfocxx . . $ QLibraryInfo#::locationcxx . . $ QLibraryInfo#location(dd7ac78f10b8a525).(QLibraryInfocxx . . $ QLibraryInfo#::TranslationsPathcxx . . $ QLibraryInfo#TranslationsPath.);
40 QStringcxx . . $ QString# qcheckers_share_path = PREFIXcxx . . $ `<built-in>:480:9`!"/share/qcheckers/lang";
41
42 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!()
43 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Your Locale:" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). current_lang <<cxx . . $ QDebug#`operator<<`(eeec1a57ad6beb98). endlcxx . . $ QTextStreamFunctions/endl(e06208c9acdf85a).
44 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "QCheckers Prefix path:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). PREFIXcxx . . $ `<built-in>:480:9`! <<cxx . . $ QDebug#`operator<<`(eeec1a57ad6beb98). endlcxx . . $ QTextStreamFunctions/endl(e06208c9acdf85a).
45 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "QT Translations path:" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). qt_lang_path <<cxx . . $ QDebug#`operator<<`(eeec1a57ad6beb98). endlcxx . . $ QTextStreamFunctions/endl(e06208c9acdf85a).;
46
47 // Qt translations
48 QTranslatorcxx . . $ QTranslator# qt_trcxx . . $ QTranslator#QTranslator(749de1b6ae65bddd).;
49 if(qt_tr.loadcxx . . $ QTranslator#load(142924642d8b819d).("qt_" +cxx . . $ operator+(c75c3ae4eb9af1a8). current_lang, qt_lang_path)) {
50 app.installTranslatorcxx . . $ QCoreApplication#installTranslator(d376406de50edad7).(&qt_tr);
51 } else {
52 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Loading Qt translations failed.";
53 }
54
55 // App translations
56 QTranslatorcxx . . $ QTranslator# app_trcxx . . $ QTranslator#QTranslator(749de1b6ae65bddd).;
57 if(app_tr.loadcxx . . $ QTranslator#load(142924642d8b819d).("qcheckers_" +cxx . . $ operator+(c75c3ae4eb9af1a8). current_lang,
58 qcheckers_share_path)) {
59 app.installTranslatorcxx . . $ QCoreApplication#installTranslator(d376406de50edad7).(&app_tr);
60 } else {
61 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Loading QCheckers translations failed.";
62 }
63
64 myTopLevelcxx . . $ myTopLevel#* top = new myTopLevelcxx . . $ myTopLevel#();
65 top->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
66
67 // command line
68 if(app.argumentscxx . . $ QCoreApplication#arguments(669a05bc42dd57cc).().lengthcxx . . $ QList#length(455f465bc33b4cdf).()==2) {
69 top->opencxx . . $ myTopLevel#open(3520e46b33348bf6).(app.argumentscxx . . $ QCoreApplication#arguments(669a05bc42dd57cc).()[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).1]);
70 }
71
72 int exit = app.execcxx . . $ QApplication#exec(b126dc7c1de90089).();
73
74 delete top;
75 return exit;
76 }