From quanta-devel Thu Mar 31 23:56:21 2005 From: Paulo Moura Guedes Date: Thu, 31 Mar 2005 23:56:21 +0000 To: quanta-devel Subject: [quanta-devel] kdewebdev/quanta Message-Id: <20050331235621.0CDD13C9 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=quanta-devel&m=111231339126966 CVS commit by mojo: New toolbar behavior in VPL - toggable actions. It's only available with KDE >= 3.4.0 as it needs "KAction::activated(KAction::ActivationReason reason, Qt::ButtonState state)". Some actions, e.g. "bold", should be toggable, like in any modern editor. The actions are defined to be toggable in the file "standard.actions", located inside the tarball "quanta/data/toolbars/html/standard.toolbar.tgz", by setting the attribute "toggable" to "true, e.g.: An action has a scope. For example, if one presses the bold action in the middle of a word, the action should applied in that word, i.e., the scope is "word" in this situation. If the action would be an horizontal alignment change, the scope would be an entire paragraph. The scope of the tag is defined in the "*.tag" files inside "quanta/dtep/", e.g.: Only "bold" action was changed to behave like this, yet ("standard.actions" and "strong.tag" files). Also, actions with different scope than "word" are not yet implemented. CCBUG: 99340 CCMAIL: quanta@mail.kde.org, quanta-devel@kde.org M +1 -1 data/dtep/xhtml/strong.tag 1.3 M +1 -1 data/dtep/xhtml-frameset/strong.tag 1.3 M +1 -1 data/dtep/xhtml-strict/strong.tag 1.3 M +1 -1 data/dtep/xhtml11/strong.tag 1.4 M +5 -10 data/toolbars/html/standard.toolbar.tgz 1.10 M data/toolbars/html/style.toolbar.tgz 1.4 M +11 -0 parsers/qtag.h 1.67 M +311 -21 parts/kafka/kafkacommon.cpp 1.78 M +27 -3 parts/kafka/kafkacommon.h 1.41 M +84 -0 parts/kafka/kafkahtmlpart.cpp 1.76 M +18 -0 parts/kafka/kafkahtmlpart.h 1.36 M +8 -1 parts/kafka/wkafkapart.cpp 1.97 M +3 -0 src/dtds.cpp 1.44 M +24 -1 src/quanta.cpp 1.718 M +17 -0 src/quanta.h 1.305 M +663 -2 utility/tagaction.cpp 1.125 M +36 -2 utility/tagaction.h 1.34 _______________________________________________ quanta-devel mailing list quanta-devel@kde.org https://mail.kde.org/mailman/listinfo/quanta-devel