summaryrefslogtreecommitdiffstats
path: root/src/kile/kileapplication.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 03:05:17 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 03:05:17 +0000
commit2c945cd914550233ed352ff195afeb4dd793f122 (patch)
tree4796bfab5733942b90b5a66bb05655be5fdcca03 /src/kile/kileapplication.cpp
downloadkile-2c945cd914550233ed352ff195afeb4dd793f122.tar.gz
kile-2c945cd914550233ed352ff195afeb4dd793f122.zip
Added abandoned KDE3 version of Kile
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kile@1088055 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kile/kileapplication.cpp')
-rw-r--r--src/kile/kileapplication.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/kile/kileapplication.cpp b/src/kile/kileapplication.cpp
new file mode 100644
index 0000000..7764d51
--- /dev/null
+++ b/src/kile/kileapplication.cpp
@@ -0,0 +1,54 @@
+/***************************************************************************
+ begin : Sun Apr 21 2002
+ copyright : (C) 2002 - 2003 by Pascal Brachet, 2003 Jeroen Wijnhout
+ email : Jeroen.Wijnhout@kdemail.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "kileapplication.h"
+
+#include <kglobal.h>
+#include <kstandarddirs.h>
+#include <kate/document.h>
+
+#include <qframe.h>
+#include <qpixmap.h>
+#include <qlabel.h>
+#include <qpainter.h>
+#include <qfont.h>
+#include <qfontmetrics.h>
+
+static QFrame *pix=0;
+static QWidget *splash=0;
+
+
+KileApplication::KileApplication()
+{
+ QRect screen = QApplication::desktop()->screenGeometry();
+ QPixmap pm(KGlobal::dirs()->findResource("appdata","pics/kile_splash.png"));
+ splash = new QWidget( 0, "splash", WDestructiveClose | WStyle_Customize | WStyle_NoBorder | WX11BypassWM | WStyle_StaysOnTop );
+ pix=new QFrame(splash,"pix",QWidget::WStyle_NoBorder | QWidget::WStyle_Customize);
+ pix->setBackgroundPixmap(pm);
+ pix->setLineWidth(0);
+ pix->setGeometry( 0,0,398, 120 );
+ splash->adjustSize();
+ splash->setCaption( "Kile" );
+ splash->move( screen.center() - QPoint( splash->width() / 2, splash->height() / 2 ) );
+ splash->show();
+}
+KileApplication::~KileApplication(){
+}
+
+void KileApplication::closeSplash()
+{
+splash->hide();
+delete splash;
+}