|
|
@ -62,7 +62,7 @@ bool getShowGUI(TDECmdLineArgs *args);
|
|
|
|
* @param showGUI If the GUI should be shown.
|
|
|
|
* @param showGUI If the GUI should be shown.
|
|
|
|
* @return The startup logo for the application, or a null pointer if it shouldn't be shown.
|
|
|
|
* @return The startup logo for the application, or a null pointer if it shouldn't be shown.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
KStartupLogo* showStartupLogo(TDEConfig* cfg, bool showGUI);
|
|
|
|
TDEStartupLogo* showStartupLogo(TDEConfig* cfg, bool showGUI);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Initializes the document used by the application.
|
|
|
|
* Initializes the document used by the application.
|
|
|
@ -110,7 +110,7 @@ int main(int argc, char *argv[]) {
|
|
|
|
flushEvents();
|
|
|
|
flushEvents();
|
|
|
|
TDEConfig * cfg = app.config();
|
|
|
|
TDEConfig * cfg = app.config();
|
|
|
|
|
|
|
|
|
|
|
|
KStartupLogo* startLogo = showStartupLogo(cfg, showGUI);
|
|
|
|
TDEStartupLogo* startLogo = showStartupLogo(cfg, showGUI);
|
|
|
|
|
|
|
|
|
|
|
|
if (showGUI) {
|
|
|
|
if (showGUI) {
|
|
|
|
uml->show();
|
|
|
|
uml->show();
|
|
|
@ -145,18 +145,18 @@ bool getShowGUI(TDECmdLineArgs *args) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KStartupLogo* showStartupLogo(TDEConfig* cfg, bool showGUI) {
|
|
|
|
TDEStartupLogo* showStartupLogo(TDEConfig* cfg, bool showGUI) {
|
|
|
|
KStartupLogo* startLogo = 0L;
|
|
|
|
TDEStartupLogo* startLogo = 0L;
|
|
|
|
|
|
|
|
|
|
|
|
cfg->setGroup( "General Options" );
|
|
|
|
cfg->setGroup( "General Options" );
|
|
|
|
bool showLogo = cfg->readBoolEntry( "logo", true );
|
|
|
|
bool showLogo = cfg->readBoolEntry( "logo", true );
|
|
|
|
if (showGUI && showLogo) {
|
|
|
|
if (showGUI && showLogo) {
|
|
|
|
#if KDE_IS_VERSION(3,3,90)
|
|
|
|
#if KDE_IS_VERSION(3,3,90)
|
|
|
|
startLogo = new KStartupLogo(0);
|
|
|
|
startLogo = new TDEStartupLogo(0);
|
|
|
|
startLogo->setHideEnabled(true);
|
|
|
|
startLogo->setHideEnabled(true);
|
|
|
|
KWin::setMainWindow(startLogo, UMLApp::app()->winId());
|
|
|
|
KWin::setMainWindow(startLogo, UMLApp::app()->winId());
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
startLogo = new KStartupLogo(UMLApp::app());
|
|
|
|
startLogo = new TDEStartupLogo(UMLApp::app());
|
|
|
|
startLogo->setHideEnabled(true);
|
|
|
|
startLogo->setHideEnabled(true);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
KWin::setState(startLogo->winId(), NET::KeepAbove);
|
|
|
|
KWin::setState(startLogo->winId(), NET::KeepAbove);
|
|
|
|