# include "camdialog.h"
#endif
-//#ifdef RS_CAM
-//# include "xpm/intro_camexpert.xpm"
-//# include "xpm/splash_camexpert.xpm"
-//#else
-//# include "xpm/intro_qcad.xpm"
-//# ifndef QC_CUSTOM_SPLASH
-//# include "xpm/splash_qcad.xpm"
-//# endif
-//#endif
-
#ifndef QC_SPLASH_TXTCOL
# define QC_SPLASH_TXTCOL Qt::black
#endif
#endif
settings.endGroup();
- // show initial config dialog:
+ // Show initial config dialog if necessary:
if (unit == "Invalid")
{
DEBUG->print("main: show initial config dialog..");
"Please choose the unit you want to use for new drawings and your "
"preferred language.<br>"
"You can changes these settings later in the Options Dialog of Architektonas.");
-// QPixmap pxm(":/res/intro.xpm");
-// di.setPixmap(pxm);
di.setPixmap(QPixmap(":/res/intro.xpm"));
if (di.exec())
#ifdef QSPLASHSCREEN_H
DEBUG->print("main: splashscreen..");
-//# ifdef QC_CUSTOM_SPLASH
-// QPixmap * pixmap = new QPixmap(qPixmapFromMimeSource(QC_CUSTOM_SPLASH));
-//# else
-//// QPixmap * pixmap = new QPixmap(":/res/splash.xpm");
-// QPixmap * pixmap = new QPixmap(":/res/splash_qcad.xpm");
QPixmap * pixmap = new QPixmap(":/res/splash.png");
-//# endif
-
-/*
- splash = new QSplashScreen(*pixmap);
- splash->show();
- splash->message(app.tr("Loading.."),
- Qt::AlignRight|Qt::AlignBottom, QC_SPLASH_TXTCOL);
- DEBUG->print("main: splashscreen: OK");
-*/
#endif
DEBUG->print("main: init fontlist..");
// loading files:
DEBUG->print("main: loading files..");
- bool files_loaded = false;
+ bool filesLoaded = false;
for(QStringList::Iterator it=fileList.begin(); it!=fileList.end(); ++it)
{
}
#endif
appWin->slotFileOpen(*it, RS2::FormatUnknown);
- files_loaded = true;
+ filesLoaded = true;
}
DEBUG->print("main: loading files: OK");
-//none of this demo shit
-//#ifdef RS_DEMO
-// QTimer::singleShot(10 * 60 * 1000, appWin, SLOT(slotFileDemoQuit()));
-//#endif
-
#ifdef QSPLASHSCREEN_H
# ifndef QC_DELAYED_SPLASH_SCREEN
if (splash)
delete pixmap;
#endif
- //app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
-
// renew: avoid . / , confusion on German environments
//setlocale(LC_NUMERIC, "C");
setlocale(LC_ALL, "C");
DEBUG->print("main: app.exec()");
- if (!files_loaded)
+ if (!filesLoaded)
appWin->slotFileNew();
appWin->slotRunStartScript();