Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 43 | #endif | |||
---|---|---|---|---|---|
144 | about.setupCommandLine(&parser); | 144 | about.setupCommandLine(&parser); | ||
145 | parser.process(app); | 145 | parser.process(app); | ||
146 | about.processCommandLine(&parser); | 146 | about.processCommandLine(&parser); | ||
147 | 147 | | |||
148 | #if defined(HAVE_OPENBABEL2) && defined(HAVE_EIGEN) && defined(HAVE_AVOGADRO) | 148 | #if defined(HAVE_OPENBABEL2) && defined(HAVE_EIGEN) && defined(HAVE_AVOGADRO) | ||
149 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("m") << QLatin1String("molecule"), i18n("Open the given molecule file"), QLatin1String("file"))); | 149 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("m") << QLatin1String("molecule"), i18n("Open the given molecule file"), QLatin1String("file"))); | ||
150 | #endif | 150 | #endif | ||
151 | 151 | | |||
152 | Kalzium *mainWin = 0; | 152 | Kalzium *mainWin = nullptr; | ||
153 | 153 | | |||
154 | if (app.isSessionRestored()) { | 154 | if (app.isSessionRestored()) { | ||
155 | RESTORE(Kalzium); | 155 | RESTORE(Kalzium); | ||
156 | } else { | 156 | } else { | ||
157 | // no session.. just start up normally | 157 | // no session.. just start up normally | ||
158 | 158 | | |||
159 | /// @todo do something with the command line args here | 159 | /// @todo do something with the command line args here | ||
160 | 160 | | |||
Show All 16 Lines |