1 //-----------------------------------------------------------------------------
5 // (c) Martin R. Jones 1996
8 // (c) Torben Weis 1998
15 #include "domainlistview.h"
16 #include "jspolicies.h"
22 class KJavaScriptOptions
;
24 /** JavaScript-specific enhancements to the domain list view
26 class JSDomainListView
: public DomainListView
{
29 JSDomainListView(KSharedConfig::Ptr config
,const QString
&group
,KJavaScriptOptions
*opt
,
31 virtual ~JSDomainListView();
33 /** remnant for importing pre KDE 3.2 settings
35 void updateDomainListLegacy(const QStringList
&domainConfig
);
38 virtual JSPolicies
*createPolicies();
39 virtual JSPolicies
*copyPolicies(Policies
*pol
);
40 virtual void setupPolicyDlg(PushButton trigger
,PolicyDialog
&pDlg
,
45 KJavaScriptOptions
*options
;
48 class KJavaScriptOptions
: public KCModule
52 KJavaScriptOptions( KSharedConfig::Ptr config
, const QString
&group
, const KComponentData
&componentData
, QWidget
* parent
);
56 virtual void defaults();
58 bool _removeJavaScriptDomainAdvice
;
61 void slotChangeJSEnabled();
65 KSharedConfig::Ptr m_pConfig
;
67 JSPolicies js_global_policies
;
68 QCheckBox
*enableJavaScriptGloballyCB
;
69 QCheckBox
*reportErrorsCB
;
70 QCheckBox
*jsDebugWindow
;
71 JSPoliciesFrame
*js_policies_frame
;
72 bool _removeECMADomainSettings
;
74 JSDomainListView
* domainSpecific
;
76 friend class JSDomainListView
;