summaryrefslogtreecommitdiffstats
path: root/kcontrol/konqhtml/jsopts.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 /kcontrol/konqhtml/jsopts.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 'kcontrol/konqhtml/jsopts.h')
-rw-r--r--kcontrol/konqhtml/jsopts.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/kcontrol/konqhtml/jsopts.h b/kcontrol/konqhtml/jsopts.h
new file mode 100644
index 000000000..41f5c87fd
--- /dev/null
+++ b/kcontrol/konqhtml/jsopts.h
@@ -0,0 +1,90 @@
+//-----------------------------------------------------------------------------
+//
+// HTML Options
+//
+// (c) Martin R. Jones 1996
+//
+// Port to KControl
+// (c) Torben Weis 1998
+
+#ifndef __JSOPTS_H__
+#define __JSOPTS_H__
+
+#include <kcmodule.h>
+
+#include "domainlistview.h"
+#include "jspolicies.h"
+
+class KColorButton;
+class KConfig;
+class KURLRequester;
+class QCheckBox;
+class QComboBox;
+class QLineEdit;
+class QListViewItem;
+class QRadioButton;
+class QSpinBox;
+class QButtonGroup;
+
+class PolicyDialog;
+
+class KJavaScriptOptions;
+
+/** JavaScript-specific enhancements to the domain list view
+ */
+class JSDomainListView : public DomainListView {
+ Q_OBJECT
+public:
+ JSDomainListView(KConfig *config,const QString &group,KJavaScriptOptions *opt,
+ QWidget *parent,const char *name = 0);
+ virtual ~JSDomainListView();
+
+ /** remnant for importing pre KDE 3.2 settings
+ */
+ void updateDomainListLegacy(const QStringList &domainConfig);
+
+protected:
+ virtual JSPolicies *createPolicies();
+ virtual JSPolicies *copyPolicies(Policies *pol);
+ virtual void setupPolicyDlg(PushButton trigger,PolicyDialog &pDlg,
+ Policies *copy);
+
+private:
+ QString group;
+ KJavaScriptOptions *options;
+};
+
+class KJavaScriptOptions : public KCModule
+{
+ Q_OBJECT
+public:
+ KJavaScriptOptions( KConfig* config, QString group, QWidget* parent = 0, const char* name = 0 );
+
+ virtual void load();
+ virtual void load( bool useDefaults );
+ virtual void save();
+ virtual void defaults();
+
+ bool _removeJavaScriptDomainAdvice;
+
+private slots:
+ void slotChangeJSEnabled();
+
+private:
+
+ KConfig *m_pConfig;
+ QString m_groupname;
+ JSPolicies js_global_policies;
+ QCheckBox *enableJavaScriptGloballyCB;
+ QCheckBox *reportErrorsCB;
+ QCheckBox *jsDebugWindow;
+ JSPoliciesFrame *js_policies_frame;
+ bool _removeECMADomainSettings;
+
+ JSDomainListView* domainSpecific;
+
+ friend class JSDomainListView;
+};
+
+#endif // __JSOPTS_H__
+