Thursday, 20 June 2013

Trashcan : Development Phase

                                                           Trashcan (QML)

Recently I developed trashcan which is available at kde-workspace ,branch:heenamahour/gsoc .
(not yet merged yet).

I have implemented a pop up menu having open and empty option .Just like the c++ plasmoid it can also be opened by left click on it .To confirm to empty the trash can on  using Empty Trash from the pop   up  menu  ,I have used a  QueryDialog.


It also displays the total number of items in trash using DirModel(plasma-mobile).It is resizable .Also ,I have added form factor  in it.
On Trash can  settings , config plugin is added using X-Plasma-ConfigPlugins .I have removed the background  by set.background hints(0).

I hope you will check it out ! :) 

12 comments:

  1. Maybe remove the number of items when trash is empty.

    Also it might make sense to only show number of items in trash when you hover mouse over it (at least for some form factors).

    ReplyDelete
  2. Left align looks bad in this example. Also I don't need to know how many elements I've got in the trashcan. It would be way more interesting to have couple states of being full.

    Let say:

    <10MB of junk - icon with only little paper
    10-100MB - more papers in the trashcan, maybe with pencil
    100-1000MB - big pile of papers sticking out from the trashcan
    >1000MB (or close to the trash limit) - "mountain" of papers and papers around trashcan like this: http://timemanagementninja.com/wp-content/uploads/2011/05/Overflowing-Trash-Can.jpg

    And that would be cool and useful.

    ReplyDelete
    Replies
    1. >Left align looks bad in this example.
      Aligned to center ,you can pull it out :-)
      >Also I don't need to know how many elements I've got in the trashcan.
      Well, the number of items in trashcan is required .It is because it saves user's time to open the trashcan and count items(especially when count is large !).So ,its efficient way ;)
      >It would be way more interesting to have couple states of being full.
      I don't find it is required ,as in c++ plasmoid.
      Thank you

      Delete
  3. Hi, thanks for your effort!

    > And that would be cool and useful.
    Anonymous, -usefull- really!?
    It would mean that an icon artist spend time making different states for the trash icon - what a waste of time!

    How about that,
    When trash is empty it should display "Empty", When only one, "One item",n-->,"N items" Just like the C++ trash
    can, can we have it please? Thanks!

    ReplyDelete
    Replies
    1. Yeah, because developer's time to code this and write a blog entry is not waste of time? What's the use of displaying number of items? I don't care how many files is inside of trashcan, I do care about how much space on HDD it's holding.

      And for thousands of icons in oxygen style I think someone would step up and tweak two icons more. Especially it didn't change since 4.0 release. That's one waste of time per 5-6years.

      Delete
    2. Really dude! And this http://timemanagementninja.com/wp-content/uploads/2011/05/Overflowing-Trash-Can.jpg
      will tell you that trash is talking more than say 60% of your hard drive - what a joke!

      Delete
    3. I think the idea with the different icons is pretty good.
      And Ubiman: I don't like your tone!

      Another anonymous

      Delete
    4. @Ubiman : >When trash is empty it should display "Empty", When only one, "One item",n-->,"N items" Just like the C++ trash can, can we have it please? Thanks!

      You can pull it now,I have modified the text and tooltip .Welcome!

      Delete
  4. @ Heena Mahour Thank you're awesome! :)
    @ Anonymous dude I didnt mean to offend you, I was just proposing my idea, ok maybe I was over-expressive, but you seem to be over-reactive..hmmm

    ReplyDelete

Enter your text here .....