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

List:       kde-panel-devel
Subject:    Re: [PATCH] BUG 203716 give user a hint when adding same application
From:       "潘 <wppan () redflag-linux ! com>
Date:       2009-08-19 12:25:09
Message-ID: 4A8BEF25.3090700 () redflag-linux ! com
[Download RAW message or body]

Lukas Appelhans 写道:
> Am Mittwoch 19 August 2009 05:50:08 schrieb 潘卫平(Peter Pan):
>> 潘卫平(Peter Pan) 写道:
>>> Aaron J. Seigo 写道:
>>>> On Friday 14 August 2009, 潘卫平(Peter Pan) wrote:
>>>>> svn r 1011382
>>>> there are a couple issues with this patch, unfortunately. first, it
>>>> introduces a modal dialog. that will block the rest of plasma. not good.
>>>> :/
>>> That's really not good.
>>>
>>>> second, the button names are just "Ok" and "Cancel", they should be
>>>> changed to having meaningful labels that say _what_ will happen if "Ok"
>>>> or "Cancel" is pressed. but that's a moot point, because we really can't
>>>> have a modal dialog here.
>>>>
>>>> is there any use case where it makes sense to have more than one icon
>>>> for the _same_ application or file? i can't think of one. so i'd suggest
>>>> just silently dropping duplicates.
>>> I prefer to show user a warning message rather than drop it silently.
>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Plasma-devel mailing list
>>>> Plasma-devel@kde.org
>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>> Every time you want to add an application, call checkDuplicateUrls()
>> first.In this function, I give user a hint when we find duplicate URLs,
>> then ignore them.
>>
>> And setModal(false) for KMessageBox.
>>
>> Regards
> Mmh, I don't like that we iterate through the list 2 times, we should just 
> remove the iteration for checkin duplicates in the addProgram() method imo...
> 
I prefer to make the applications in quicklaunch unique, not allow 
duplicating. Because I don't like that quicklaunch is too wide.

> Also the KDialog way seems a bit too  much to me, isn't there a way to just 
> get a KMessageBox like the command we got before?
KMessageBox needs a KDialog parameter.
I can't find another way if we use KMessageBox.

> Lukas
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel

Regards
-- 
潘卫平(Peter Pan)
Red Flag Software Co., Ltd
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

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

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