Debian Codegraph @

src/main.cpp

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2009 by The qGo Project *
3 * *
4 * This file is part of qGo. *
5 * *
6 * qGo is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, see <http://www.gnu.org/licenses/> *
18 * or write to the Free Software Foundation, Inc., *
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20 ***************************************************************************/
21
22
23 #include <QApplication>
24
25 #include "mainwindow.h"cxx . . $ `<file>/src/mainwindow.h`/
26 #include "defines.h"cxx . . $ `<file>/src/defines.h`/
27
28
29 struct _preferencescxx . . $ _preferences# preferencescxx . . $ preferences.;
30 MainWindowcxx . . $ MainWindow# * mainwindowcxx . . $ mainwindow. = 0;
31 ConnectionWidgetcxx . . $ ConnectionWidget# * connectionWidgetcxx . . $ connectionWidget. = 0;
32
33 void startqGocxx . . $ startqGo(49f6e7a06ebc5aa8).(void)
34 {
35 QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).;
36 bool restarting = false;
37
38 if(mainwindowcxx . . $ mainwindow.)
39 {
40 restarting = true;
41 mainwindowcxx . . $ mainwindow.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
42 }
43 mainwindowcxx . . $ mainwindow. = new MainWindowcxx . . $ MainWindow#(0,0cxx . . $ QFlags#QFlags(e0a983ae3e5301c).);
44 if(restarting)
45 mainwindowcxx . . $ mainwindow.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
46
47 QVariantcxx . . $ QVariant# main_window_size_x = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("MAIN_WINDOW_SIZE_X"cxx . . $ QString#QString(85c52e162fed56f9).);
48 if(main_window_size_x !=cxx . . $ QVariant#`operator!=`(d03696648ee9d662). QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).())
49 {
50 mainwindowcxx . . $ mainwindow.->resizecxx . . $ QWidget#resize(3e454b8ccf442868).(main_window_size_x.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(), settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("MAIN_WINDOW_SIZE_Y"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).());
51 mainwindowcxx . . $ mainwindow.->movecxx . . $ QWidget#move(3e454b8ccf442868).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("MAIN_WINDOW_POS_X"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(), settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("MAIN_WINDOW_POS_Y"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).());
52 }
53 }
54
55 int maincxx . . $ main(afcd3168fc1188a4).(int argc, char *argv[])
56 {
57 Q_INIT_RESOURCEcxx . . $ `<external>/15045578679651060896/qglobal.h:469:9`!(application);
58 QApplicationcxx . . $ QApplication# * app = new QApplicationcxx . . $ QApplication#QApplication(6e9b1c7df49e191d).(argc, argv);
59
60 QTranslatorcxx . . $ QTranslator# qtTranslatorcxx . . $ QTranslator#QTranslator(749de1b6ae65bddd).;
61 if (qtTranslator.loadcxx . . $ QTranslator#load(a6ed734e29d96aae).(QLocalecxx . . $ QLocale#QLocale(49f6e7a06ebc5aa8).(), "qt"cxx . . $ QString#QString(85c52e162fed56f9)., "_"cxx . . $ QString#QString(85c52e162fed56f9).,
62 QLibraryInfocxx . . $ QLibraryInfo#::locationcxx . . $ QLibraryInfo#location(dd7ac78f10b8a525).(QLibraryInfocxx . . $ QLibraryInfo#::TranslationsPathcxx . . $ QLibraryInfo#TranslationsPath.)))
63 app->installTranslatorcxx . . $ QCoreApplication#installTranslator(d376406de50edad7).(&qtTranslator);
64 else
65 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "qgo translation file for locale " <<cxx . . $ `operator<<`(54e4ae08a244b5af). QLocalecxx . . $ QLocale#QLocale(49f6e7a06ebc5aa8).() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). " not found in " <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). QLibraryInfocxx . . $ QLibraryInfo#::locationcxx . . $ QLibraryInfo#location(dd7ac78f10b8a525).(QLibraryInfocxx . . $ QLibraryInfo#::TranslationsPathcxx . . $ QLibraryInfo#TranslationsPath.)+cxx . . $ operator+(3d22f08efddf8107)."/translations";
66
67 QTranslatorcxx . . $ QTranslator# qgoTranslatorcxx . . $ QTranslator#QTranslator(749de1b6ae65bddd).;
68 if (qgoTranslator.loadcxx . . $ QTranslator#load(a6ed734e29d96aae).(QLocalecxx . . $ QLocale#QLocale(49f6e7a06ebc5aa8).(), "qgo"cxx . . $ QString#QString(85c52e162fed56f9)., "_"cxx . . $ QString#QString(85c52e162fed56f9).,
69 QCoreApplicationcxx . . $ QCoreApplication#::applicationDirPathcxx . . $ QCoreApplication#applicationDirPath(4365c3963150523e).()+cxx . . $ operator+(3d22f08efddf8107)."/translations"))
70 app->installTranslatorcxx . . $ QCoreApplication#installTranslator(d376406de50edad7).(&qgoTranslator);
71 else
72 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "qgo translation file for locale " <<cxx . . $ `operator<<`(54e4ae08a244b5af). QLocalecxx . . $ QLocale#QLocale(49f6e7a06ebc5aa8).() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). " not found in " <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). QCoreApplicationcxx . . $ QCoreApplication#::applicationDirPathcxx . . $ QCoreApplication#applicationDirPath(4365c3963150523e).()+cxx . . $ operator+(3d22f08efddf8107)."/translations";
73
74 app->setOrganizationNamecxx . . $ QCoreApplication#setOrganizationName(3520e46b33348bf6).("qGo"cxx . . $ QString#QString(85c52e162fed56f9).);
75 app->setApplicationNamecxx . . $ QCoreApplication#setApplicationName(3520e46b33348bf6).("qGo"cxx . . $ QString#QString(85c52e162fed56f9).);
76
77 QCommandLineParsercxx . . $ QCommandLineParser# parsercxx . . $ QCommandLineParser#QCommandLineParser(49f6e7a06ebc5aa8).;
78 parser.processcxx . . $ QCommandLineParser#process(b8a59b8a0e185f8a).(*app);
79 const QStringListcxx . . $ QStringList# args = parser.positionalArgumentscxx . . $ QCommandLineParser#positionalArguments(e1dbd5c4feadc8f5).();
80
81 startqGocxx . . $ startqGo(49f6e7a06ebc5aa8).();
82 mainwindowcxx . . $ mainwindow.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
83
84 QStringListcxx . . $ QStringList#::const_iteratorcxx . . $ QList#const_iterator# filenamecxx . . $ QList#const_iterator#const_iterator(ced63f7c635d850d).;
85 for ( filename =cxx . . $ QList#const_iterator#`operator=`(35f8aeb06fed384f). args.begincxx . . $ QList#begin(84b7b73c4fb47a00).(); filename !=cxx . . $ QList#const_iterator#`operator!=`(18681b9804797606). args.endcxx . . $ QList#end(84b7b73c4fb47a00).(); ++cxx . . $ QList#const_iterator#operator++(b8ec5848ade221bd).filename )
86 {
87 mainwindowcxx . . $ mainwindow.->openSGFcxx . . $ MainWindow#openSGF(7df51288a9ebd664).(*cxx . . $ QString#QString(132dd6869045752b).filename);
88 }
89
90 srand(time(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!));
91
92 return app->execcxx . . $ QApplication#exec(b126dc7c1de90089).();
93 }