[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Restore the state of hidden/shown text of buttons inside KToolBar
From: Yogesh Marwaha <yogeshm.007 () gmail ! com>
Date: 2012-04-29 16:56:51
Message-ID: CA+r9wRFhWqLhcSouYrBUnGSN0tYhFZMOdqye1wNMDgAQB=AaPA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hmmm, thanks.
On Apr 29, 2012 9:36 PM, "Albert Astals Cid" <aacid@kde.org> wrote:
> El Diumenge, 29 d'abril de 2012, a les 21:20:47, Yogesh Marwaha va
> escriure:
> > Kxmlgui might suffice but i have a working implementation on kmainwindow,
> > minus the feature i mentioned. Basically, I have 4 dock widgets in main
> > window, visibility of which is governed by 3 view profiles. And the main
> > window is a plugin. I cannot explain it, but if you really want i can
> share
> > source - it is a fairly working media player.
>
> No thanks.
>
> In my opinion the fact that you are trying to use "advanced" features of
> kdeui
> like the toggling of text, etc without using xmlgui puts you in a "you are
> on
> your own" position. Your best bet is having a look at kdelibs code and see
> what it does and then do the same yourself.
>
> Albert
>
> >
> > On Apr 29, 2012 8:44 PM, "Albert Astals Cid" <aacid@kde.org> wrote:
> > > El Diumenge, 29 d'abril de 2012, a les 20:33:42, Yogesh Marwaha va
> > >
> > > escriure:
> > > > On 29 April 2012 19:20, Albert Astals Cid <aacid@kde.org> wrote:
> > > > > El Diumenge, 29 d'abril de 2012, a les 19:07:57, Yogesh Marwaha va
> > >
> > > escriure:
> > > > >> Hi,
> > > > >>
> > > > >> I'm using KToolBar inside KMainWindow. Text of KToolBar's buttons
> can
> > > > >> be changed individually. I have managed to restore toolbar's state
> > > > >> accross executions, but i'm finding no way to restore the state of
> > > > >> hidden/shown text of buttons. Do anyone has an idea about how can
> it
> > > > >> be done?
> > > > >
> > > > > I'm not sure if you mean when the users does Right click on
> toolbar ->
> > > > > Text
> > > > > Position -> something
> > > > >
> > > > > If you mean that, kxmlgui does that for you for free and you should
> > > > > not
> > > > > add
> > > > > any extra code for it.
> > > > >
> > > > > If you don't mean that, please explain better what you mean.
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Albert
> > > > >
> > > > >> Regards,
> > > > >>
> > > > >> Yogesh
> > > >
> > > > If "Rigth click on toolbar -> Text Position -> Text Alongside Icons",
> > > > then one can disable the text of a particular button from being shown
> > > > (by right-clicking on it). I want to preserve this setting without
> > > > using kxmlgui (because, presumably, it wont offer me fine control
> over
> > > > my main window (which i'm having atm)).
> > >
> > > I'm curious as to which fine control over your main window kxmlgui
> doesn't
> > > provide.
> > >
> > > Albert
> > >
> > > > Regards,
> > > >
> > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >
> > > unsubscribe
> > >
> > > > >> <<
> > > >>
> > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >
> > > unsubscribe <<
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
[Attachment #5 (text/html)]
<p>Hmmm, thanks.</p>
<div class="gmail_quote">On Apr 29, 2012 9:36 PM, "Albert Astals Cid" \
<<a href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> El Diumenge, 29 d'abril de \
2012, a les 21:20:47, Yogesh Marwaha va escriure:<br> > Kxmlgui might suffice but \
i have a working implementation on kmainwindow,<br> > minus the feature i \
mentioned. Basically, I have 4 dock widgets in main<br> > window, visibility of \
which is governed by 3 view profiles. And the main<br> > window is a plugin. I \
cannot explain it, but if you really want i can share<br> > source - it is a \
fairly working media player.<br> <br>
No thanks.<br>
<br>
In my opinion the fact that you are trying to use "advanced" features of \
kdeui<br> like the toggling of text, etc without using xmlgui puts you in a "you \
are on<br> your own" position. Your best bet is having a look at kdelibs code \
and see<br> what it does and then do the same yourself.<br>
<br>
Albert<br>
<br>
><br>
> On Apr 29, 2012 8:44 PM, "Albert Astals Cid" <<a \
href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br> > > El Diumenge, \
29 d'abril de 2012, a les 20:33:42, Yogesh Marwaha va<br> > ><br>
> > escriure:<br>
> > > On 29 April 2012 19:20, Albert Astals Cid <<a \
href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br> > > > > El \
Diumenge, 29 d'abril de 2012, a les 19:07:57, Yogesh Marwaha va<br> > ><br>
> > escriure:<br>
> > > >> Hi,<br>
> > > >><br>
> > > >> I'm using KToolBar inside KMainWindow. Text of \
KToolBar's buttons can<br> > > > >> be changed individually. I \
have managed to restore toolbar's state<br> > > > >> accross \
executions, but i'm finding no way to restore the state of<br> > > > \
>> hidden/shown text of buttons. Do anyone has an idea about how can it<br> \
> > > >> be done?<br> > > > ><br>
> > > > I'm not sure if you mean when the users does Right click on \
toolbar -><br> > > > > Text<br>
> > > > Position -> something<br>
> > > ><br>
> > > > If you mean that, kxmlgui does that for you for free and you \
should<br> > > > > not<br>
> > > > add<br>
> > > > any extra code for it.<br>
> > > ><br>
> > > > If you don't mean that, please explain better what you \
mean.<br> > > > ><br>
> > > > Cheers,<br>
> > > ><br>
> > > > Albert<br>
> > > ><br>
> > > >> Regards,<br>
> > > >><br>
> > > >> Yogesh<br>
> > ><br>
> > > If "Rigth click on toolbar -> Text Position -> Text \
Alongside Icons",<br> > > > then one can disable the text of a \
particular button from being shown<br> > > > (by right-clicking on it). I \
want to preserve this setting without<br> > > > using kxmlgui (because, \
presumably, it wont offer me fine control over<br> > > > my main window \
(which i'm having atm)).<br> > ><br>
> > I'm curious as to which fine control over your main window kxmlgui \
doesn't<br> > > provide.<br>
> ><br>
> > Albert<br>
> ><br>
> > > Regards,<br>
> > ><br>
> > > >> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to<br> > \
><br> > > unsubscribe<br>
> ><br>
> > > >> <<<br>
> > >><br>
> > >> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to<br> > \
><br> > > unsubscribe <<<br>
<br>
>> Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe <<<br> </blockquote></div>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic