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

List:       kde-bugs-dist
Subject:    [Bug 82006] KXMLGUI : State : Show / Hide requiered
From:       Sebastien <sebastien.laout () tuxfamily ! org>
Date:       2004-05-27 23:05:53
Message-ID: 20040527230553.29778.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=82006      




------- Additional Comments From sebastien.laout tuxfamily org  2004-05-28 01:05 \
------- Oh ! OK it's what I need :-)
Euh... But what if a user want to put only one of the actions in his toolbar ??
I have one object and it can be two types. In function of its type I have a set of \
actions. But a user could want to keep one action in the toolbar (or the both), that \
will appear or disappear in function of the type of the selected object.

So, I change the request and also want to allow to have *static* ActionList defined \
in the XML file and pluggable in the same way (or better : activable). Because my two \
types of objects have predefined (and then static) set of actions (actually I just \
disable them but I would want to hide them... Hey after all it's my original request \
and not a modified one !)

I haven't yet tested your solution (too late : I should be in bed ;-) I just reply to \
this post and that's all for today). Don't know if the user can put the ActionList in \
a toolbar (that would be a lack if not : I'm switching to KXMLGUI only to allow user \
to assign shortcut and have toolbar icons for *all* actions (consistency)). I \
remember Konqueror can remove a set of buttons but never be able to re-add it :'-( I \
think it was this problem...

In any way KXMLGUI must be enhanced and slicked, such as :
- Another KAction propertie shortText() for toolbar icon texts (and have good \
toolbars not too big) to be different from the text displayed in the menu or the \
                tooltip
- A KAction propertie that is a hint if the text should be shown or not (thinking \
about Evolution (or Internet Explorer :-) ) where some icons have text (because they \
are important) and some other haven't : it help to reduce the toolbar size and have \
                beautiful and usable toolar with texts enabled
- Allow user to add toolbars as he want (important, and simple to code, I think)
- Allow user to customize icons, as it can be done by XML editing... (and because \
some actions haven't icons and add them to toolbar (because often needed) make the \
toolbar uggly) For KDE 4... (perhapse KDE 3.3 if it is possible. Don't think so but \
why not).

I also have a problem with crossed <State>s :
Let see I have <State name="no_selected_item" > & <State name="basket_is_locked"  and \
the two disable <Action name="item_delete" /> but if stateChange(oneOfThem, Reverse) \
the Action is enabled, where it shouldn't (because one of the two set it to disable : \
if the backet is locked OR no item is selected, it isn't possible to delete item). \
Depending on the order I call stateChanged(theFirst) and stateChanged(theSecond, \
Reverse), the good result is obtained or not. Perhapse this could be solved better \
and I'm still wrong...

> And about separators, aren't two following
> separators detected and one suppressed?

Oh yes.
Excuse me.
The problem is another :
- two separators are transformed to only one : OK
- separator at the begin of a menu is removed : OK
- separator at the end of a menu is NOT removed : not good
That was that !


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

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