[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdewebdev/quanta
From:       Paulo Moura Guedes <moura () kdewebdev ! org>
Date:       2005-03-31 23:56:21
Message-ID: 20050331235621.0CDD13C9 () office ! kde ! org
[Download RAW message or body]

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.:

<action shortcut="Alt+Ctrl+B" icon="tag_bold" type="tag" tooltip="Bold &amp;lt;em>" name="tag_b" \
text="Bold" toggable="true" >

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.:

<tag name="strong" hasCore="1" hasI18n="1" hasScript="1" scope="word">

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic