summaryrefslogtreecommitdiffstats
path: root/konqueror/about/konq_aboutpage.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /konqueror/about/konq_aboutpage.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/about/konq_aboutpage.h')
-rw-r--r--konqueror/about/konq_aboutpage.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/konqueror/about/konq_aboutpage.h b/konqueror/about/konq_aboutpage.h
new file mode 100644
index 000000000..9ec77b5d5
--- /dev/null
+++ b/konqueror/about/konq_aboutpage.h
@@ -0,0 +1,63 @@
+#ifndef __konq_aboutpage_h__
+#define __konq_aboutpage_h__
+
+#include <kparts/factory.h>
+#include <khtml_part.h>
+
+class KHTMLPart;
+class KInstance;
+
+class KonqAboutPageFactory : public KParts::Factory
+{
+public:
+ KonqAboutPageFactory( QObject *parent = 0, const char *name = 0 );
+ virtual ~KonqAboutPageFactory();
+
+ virtual KParts::Part *createPartObject( QWidget *parentWidget, const char *widgetName,
+ QObject *parent, const char *name,
+ const char *classname, const QStringList &args );
+
+ static KInstance *instance() { return s_instance; }
+
+ static QString launch();
+ static QString intro();
+ static QString specs();
+ static QString tips();
+ static QString plugins();
+
+private:
+ static QString loadFile( const QString& file );
+
+ static KInstance *s_instance;
+ static QString *s_launch_html, *s_intro_html, *s_specs_html, *s_tips_html, *s_plugins_html;
+};
+
+class KonqAboutPage : public KHTMLPart
+{
+ Q_OBJECT
+public:
+ KonqAboutPage( /*KonqMainWindow *mainWindow,*/
+ QWidget *parentWidget, const char *widgetName,
+ QObject *parent, const char *name );
+ ~KonqAboutPage();
+
+ virtual bool openURL( const KURL &url );
+
+ virtual bool openFile();
+
+ virtual void saveState( QDataStream &stream );
+ virtual void restoreState( QDataStream &stream );
+
+protected:
+ virtual void urlSelected( const QString &url, int button, int state, const QString &target, KParts::URLArgs args = KParts::URLArgs() );
+
+private:
+ void serve( const QString&, const QString& );
+
+ KHTMLPart *m_doc;
+ //KonqMainWindow *m_mainWindow;
+ QString m_htmlDoc;
+ QString m_what;
+};
+
+#endif