[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml
From: David Faure <faure () kde ! org>
Date: 2003-04-04 8:25:31
[Download RAW message or body]
CVS commit by faure:
Applying patch by Christian Müller <cmueller<at>gmx.de> which implements
Wishlist entry 34037: I would like to Assign A Shortkey To "Stop Animations"
CCMAIL: 34037-done@bugs.kde.org
M +5 -0 khtml_iface.cc 1.6
M +5 -0 khtml_iface.h 1.7
M +6 -0 khtml_part.cpp 1.836
M +4 -0 khtml_part.h 1.215
M +1 -0 khtmlpart_p.h 1.37
--- kdelibs/khtml/khtml_iface.cc #1.5:1.6
@@ -149,4 +149,9 @@ void KHTMLPartIface::debugRenderTree()
}
+void KHTMLPartIface::stopAnimations()
+{
+ part->slotStopAnimations();
+}
+
void KHTMLPartIface::viewDocumentSource()
{
--- kdelibs/khtml/khtml_iface.h #1.6:1.7
@@ -220,4 +220,9 @@ k_dcop:
QString evalJS(const QString &script);
+ /**
+ * Stops display of animated images
+ */
+ void stopAnimations();
+
private:
KHTMLPart *part;
--- kdelibs/khtml/khtml_part.cpp #1.835:1.836
@@ -200,4 +200,5 @@ void KHTMLPart::init( KHTMLView *view, G
d->m_paDebugRenderTree = new KAction( i18n( "Print Rendering Tree to STDOUT" ), 0, \
this, SLOT( slotDebugRenderTree() ), actionCollection(), "debugRenderTree" ); \
d->m_paDebugDOMTree = new KAction( i18n( "Print DOM Tree to STDOUT" ), 0, this, SLOT( \
slotDebugDOMTree() ), actionCollection(), "debugDOMTree" ); + d->m_paStopAnimations \
= new KAction( i18n( "Stop Animated Images" ), 0, this, SLOT( slotStopAnimations() ), \
actionCollection(), "stopAnimations" );
QString foo1 = i18n("Show Images");
@@ -979,4 +980,9 @@ void KHTMLPart::slotDebugRenderTree()
d->m_doc->renderer()->printTree();
#endif
+}
+
+void KHTMLPart::slotStopAnimations()
+{
+ stopAnimations();
}
--- kdelibs/khtml/khtml_part.h #1.214:1.215
@@ -932,4 +932,8 @@ private slots:
* @internal
*/
+ void slotStopAnimations();
+ /**
+ * @internal
+ */
virtual void slotViewDocumentSource();
/**
--- kdelibs/khtml/khtmlpart_p.h #1.36:1.37
@@ -304,4 +304,5 @@ public:
KAction *m_paDebugDOMTree;
KAction *m_paDebugRenderTree;
+ KAction *m_paStopAnimations;
KParts::PartManager *m_manager;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic