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

List:       ktexteditor-devel
Subject:    Re: Selective creation of KTextEditor::View actions
From:       Michel Ludwig <michel.ludwig () kdemail ! net>
Date:       2008-01-02 15:41:02
Message-ID: 200801021641.03296.michel.ludwig () kdemail ! net
[Download RAW message or body]

On Wed 02 Jan 2008, Anders Lund wrote:
> On Wednesday 02 January 2008, Michel Ludwig wrote:
> > The problem with that approach is that one doesn't really know what the
> > actions are doing.
>
> But for any action that is not specified in an interface, you would not
> know.

Yes, but that doesn't concern us :-)

Anyway, one would only choose not to have certain actions if there are good 
good reasons for doing so.

What I have in mind is something like an "ExtendedViewCreation" interface 
which has a function

View* createView(QWidget *parent, ActionGroupFlags excludeFlags)

and ActionGroupFlags would contain flags like 'SaveAsAction' 
and 'SpellcheckingActions'. The intention is that if one (or several) of 
these flags is set, the actions corresponding to that category are not 
created for the view.

Michel
_______________________________________________
KTextEditor-Devel mailing list
KTextEditor-Devel@kde.org
https://mail.kde.org/mailman/listinfo/ktexteditor-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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