[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, &quot;Albert Astals Cid&quot; \
&lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt; 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&#39;abril de \
2012, a les 21:20:47, Yogesh Marwaha va escriure:<br> &gt; Kxmlgui might suffice but \
i have a working implementation on kmainwindow,<br> &gt; minus the feature i \
mentioned. Basically, I have 4 dock widgets in main<br> &gt; window, visibility of \
which is governed by 3 view profiles. And the main<br> &gt; window is a plugin. I \
cannot explain it, but if you really want i can share<br> &gt; 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 &quot;advanced&quot; features of \
kdeui<br> like the toggling of text, etc without using xmlgui puts you in a &quot;you \
are on<br> your own&quot; 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>
&gt;<br>
&gt; On Apr 29, 2012 8:44 PM, &quot;Albert Astals Cid&quot; &lt;<a \
href="mailto:aacid@kde.org">aacid@kde.org</a>&gt; wrote:<br> &gt; &gt; El Diumenge, \
29 d&#39;abril de 2012, a les 20:33:42, Yogesh Marwaha va<br> &gt; &gt;<br>
&gt; &gt; escriure:<br>
&gt; &gt; &gt; On 29 April 2012 19:20, Albert Astals Cid &lt;<a \
href="mailto:aacid@kde.org">aacid@kde.org</a>&gt; wrote:<br> &gt; &gt; &gt; &gt; El \
Diumenge, 29 d&#39;abril de 2012, a les 19:07:57, Yogesh Marwaha va<br> &gt; &gt;<br>
&gt; &gt; escriure:<br>
&gt; &gt; &gt; &gt;&gt; Hi,<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; I&#39;m using KToolBar inside KMainWindow. Text of \
KToolBar&#39;s buttons can<br> &gt; &gt; &gt; &gt;&gt; be changed individually. I \
have managed to restore toolbar&#39;s state<br> &gt; &gt; &gt; &gt;&gt; accross \
executions, but i&#39;m finding no way to restore the state of<br> &gt; &gt; &gt; \
&gt;&gt; hidden/shown text of buttons. Do anyone has an idea about how can it<br> \
&gt; &gt; &gt; &gt;&gt; be done?<br> &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I&#39;m not sure if you mean when the users does Right click on \
toolbar -&gt;<br> &gt; &gt; &gt; &gt; Text<br>
&gt; &gt; &gt; &gt; Position -&gt; something<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; If you mean that, kxmlgui does that for you for free and you \
should<br> &gt; &gt; &gt; &gt; not<br>
&gt; &gt; &gt; &gt; add<br>
&gt; &gt; &gt; &gt; any extra code for it.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; If you don&#39;t mean that, please explain better what you \
mean.<br> &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Cheers,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;   Albert<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; Regards,<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Yogesh<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; If &quot;Rigth click on toolbar -&gt; Text Position -&gt; Text \
Alongside Icons&quot;,<br> &gt; &gt; &gt; then one can disable the text of a \
particular button from being shown<br> &gt; &gt; &gt; (by right-clicking on it). I \
want to preserve this setting without<br> &gt; &gt; &gt; using kxmlgui (because, \
presumably, it wont offer me fine control over<br> &gt; &gt; &gt; my main window \
(which i&#39;m having atm)).<br> &gt; &gt;<br>
&gt; &gt; I&#39;m curious as to which fine control over your main window kxmlgui \
doesn&#39;t<br> &gt; &gt; provide.<br>
&gt; &gt;<br>
&gt; &gt; Albert<br>
&gt; &gt;<br>
&gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; 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> &gt; \
&gt;<br> &gt; &gt; unsubscribe<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; &lt;&lt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; 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> &gt; \
&gt;<br> &gt; &gt; unsubscribe &lt;&lt;<br>
<br>
&gt;&gt; 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 &lt;&lt;<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