summaryrefslogtreecommitdiffstats
path: root/kcontrol/konqhtml/javaopts.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/javaopts.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/javaopts.h')
-rw-r--r--kcontrol/konqhtml/javaopts.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/kcontrol/konqhtml/javaopts.h b/kcontrol/konqhtml/javaopts.h
new file mode 100644
index 000000000..638b3a921
--- /dev/null
+++ b/kcontrol/konqhtml/javaopts.h
@@ -0,0 +1,126 @@
+//-----------------------------------------------------------------------------
+//
+// HTML Options
+//
+// (c) Martin R. Jones 1996
+//
+// Port to KControl
+// (c) Torben Weis 1998
+//
+// Redesign and cleanup
+// (c) Daniel Molkentin 2000
+//
+//-----------------------------------------------------------------------------
+
+#ifndef __JAVAOPTS_H__
+#define __JAVAOPTS_H__
+
+#include <kcmodule.h>
+
+#include "domainlistview.h"
+#include "policies.h"
+
+class KColorButton;
+class KConfig;
+class KListView;
+class KURLRequester;
+class KIntNumInput;
+
+class QCheckBox;
+class QComboBox;
+class QLineEdit;
+class QListViewItem;
+class QRadioButton;
+
+class KJavaOptions;
+
+/** policies with java-specific constructor
+ */
+class JavaPolicies : public Policies {
+public:
+ /**
+ * constructor
+ * @param config configuration to initialize this instance from
+ * @param group config group to use if this instance contains the global
+ * policies (global == true)
+ * @param global true if this instance contains the global policy settings,
+ * false if this instance contains policies specific for a domain.
+ * @param domain name of the domain this instance is used to configure the
+ * policies for (case insensitive, ignored if global == true)
+ */
+ JavaPolicies(KConfig* config, const QString &group, bool global,
+ const QString &domain = QString::null);
+
+ /** empty constructur to make QMap happy
+ * don't use for constructing a policies instance.
+ * @internal
+ */
+ JavaPolicies();
+
+ virtual ~JavaPolicies();
+};
+
+/** Java-specific enhancements to the domain list view
+ */
+class JavaDomainListView : public DomainListView {
+ Q_OBJECT
+public:
+ JavaDomainListView(KConfig *config,const QString &group,KJavaOptions *opt,
+ QWidget *parent,const char *name = 0);
+ virtual ~JavaDomainListView();
+
+ /** remnant for importing pre KDE 3.2 settings
+ */
+ void updateDomainListLegacy(const QStringList &domainConfig);
+
+protected:
+ virtual JavaPolicies *createPolicies();
+ virtual JavaPolicies *copyPolicies(Policies *pol);
+ virtual void setupPolicyDlg(PushButton trigger,PolicyDialog &pDlg,
+ Policies *copy);
+
+private:
+ QString group;
+ KJavaOptions *options;
+};
+
+class KJavaOptions : public KCModule
+{
+ Q_OBJECT
+
+public:
+ KJavaOptions( 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 slotChanged();
+ void toggleJavaControls();
+
+private:
+
+ KConfig* m_pConfig;
+ QString m_groupname;
+ JavaPolicies java_global_policies;
+
+ QCheckBox* enableJavaGloballyCB;
+ QCheckBox* javaSecurityManagerCB;
+ QCheckBox* useKioCB;
+ QCheckBox* enableShutdownCB;
+ KIntNumInput* serverTimeoutSB;
+ QLineEdit* addArgED;
+ KURLRequester* pathED;
+ bool _removeJavaDomainSettings;
+
+ JavaDomainListView *domainSpecific;
+
+ friend class JavaDomainListView;
+};
+
+#endif // __HTML_OPTIONS_H__
+