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

List:       quanta-devel
Subject:    Re: [quanta-devel] VPL toolbars
From:       Paulo Moura Guedes <moura () kdewebdev ! org>
Date:       2005-03-11 16:36:40
Message-ID: 200503111636.40817.moura () kdewebdev ! org
[Download RAW message or body]

On Thursday 10 March 2005 17:19, Andras Mantia wrote:
> On Thursday 10 March 2005 19:10, Paulo Moura Guedes wrote:
> > I managed to add support for toggle actions with almost no changes
> > and 100% compatible with previous code.
> > I also managed to toggle in and off succeffuly but only in VPL. In
> > VPL I have KafkaWidget::getCurrentNode but that doesn't work in
> > source mode, obviously. How can I know the current node in source
> > mode?
>
> Parser::nodeAt, altough it has some code to not return empty nodes in
> some cases. It's a little complicated and I don't know anymore what if
> was added for what reason. :-(

It's not possible to implement the desired behavior of toolbar actions, in 
source mode. For example, if bold is toggled, no tag should be inserted in 
the document. Only after the user presses a key, the strong tag should be 
inserted along with a text node. Instead, if the user places the cursor 
somewhere after toggling bold, the bold action should reflect the context the 
cursor are in, and no strong tag should be inserted at all.
-- 
Paulo Moura Guedes

Linux Caixa Mágica  - http://caixamagica.org
KDE Web Development - http://kdewebdev.org
_______________________________________________
quanta-devel mailing list
quanta-devel@kde.org
https://mail.kde.org/mailman/listinfo/quanta-devel

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

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