Shopping List Pluggin (1 Viewer)

Quarter

MP Donator
  • Premium Supporter
  • June 21, 2010
    722
    138
    Queenstown
    Home Country
    New Zealand New Zealand
    Hi

    Been working on this plugin for the Mrs, But I have got lost on the coding Can someone have a look and see if they can help.
    I have skin files for Blue3wide and Fidelity 1.0 and some code I got from the beginners guide.

    This is my first attempt so don't be too hard on me. I will try some cool stuff when I get the hang of it

    PLEASE HELP :D
     

    Attachments

    • Shopping list.zip
      1.8 MB

    Quarter

    MP Donator
  • Premium Supporter
  • June 21, 2010
    722
    138
    Queenstown
    Home Country
    New Zealand New Zealand
    Not sure what you need to do to get some sort of interest or even a comment, But I will just bump this thread to see if that helps. All I need is an example or pointed in the right direction, I'm a quick learner and would like to be able to help out later on.

    :confused:
     

    Anthrax

    Portal Pro
    February 15, 2007
    157
    48
    pretty much in the center
    Home Country
    Germany Germany
    AW: Shopping List Pluggin

    Hi Quarter,

    the question is what you are trying to achieve with this plugin...

    So for a start please tell us something about the purpose and features.

    I get the general idea of a schopping list - but i'm picturing me taking my htpc to the supermarket at the moment ;-)

    So what should the plugin do?
    What kind of controls do you need?
    Is this supposed to be a web service of some kind, a client for an external shopping list service, or a local only list?


    regards,
    Anthrax

    PS: stick to it, it's not as hard as it seems at first ;)
     

    Quarter

    MP Donator
  • Premium Supporter
  • June 21, 2010
    722
    138
    Queenstown
    Home Country
    New Zealand New Zealand
    Hi

    I just have the 25 listed items, then some sub Items which will have check boxes (variable amount of check-boxes) so you can just fly though the list clicking check boxes. When finished you click print and have a shopping list. At this stage I think that's enough features for me tackle.

    Later on I will try and link it to supermarkets and have images and prices.

    Any Ideas how to tackle this would be much appreciated
     

    Anthrax

    Portal Pro
    February 15, 2007
    157
    48
    pretty much in the center
    Home Country
    Germany Germany
    AW: Re: Shopping List Pluggin

    Alright,

    maybe a few things to get you started...

    - have a look here: MediaPortal1_Development/SkinArchitecture/checklistcontrol - MediaPortal Manual Documentation
    - you should try to seperate data from presentation (your approach to put the shopping list items right into the skin files might be suboptimal)
    - try an internal List<string> for instance to store your list items (can be easily read/written to xml as well) (or dictionary or any linear collection really)
    - put a GUICheckListControl in your skin/plugin
    and fill it with (checkbox)items created from the internal list items (GUIControlsDemo)
    - add a button
    - inside the button handler iterate over the checklistcontrol and remember all selected
    - find a way to print these!
    - or even better send an email with the shopping list ;-)

    non optional: see other plugin sources for reference! this one might get you started ;-)

    EDIT: https://sources.team-mediaportal.co.../TVLibrary/TvPlugin/TvPlugin/TvEpgSettings.cs (look for the use of the checklist control "listChannels" there)

    Feature suggestions:

    1. Do it right for EVERYBODY: http://www.grocerylists.org/wp-content/uploads/2009/09/GrocerylistsDOTorg_Deluxe_v3_0.pdf
    2. Add category list -> item list navigation to choose items even faster
    3. Add custom item support (virtual keyboard isn't hard either!)
    4. Add email funtionality!
    5. Print with templates (checkboxes or the like, categories, whatever...)

    thx in advance
    Anthrax
     

    Quarter

    MP Donator
  • Premium Supporter
  • June 21, 2010
    722
    138
    Queenstown
    Home Country
    New Zealand New Zealand
    Ok thanks for your help looks like a good amount of reading, I should be able to come up with something from all that.

    Will have to install mychitchat to see how it works

    :D
     

    alexchini

    MP Donator
  • Premium Supporter
  • May 30, 2006
    154
    20
    Venice
    Home Country
    Italy Italy
    Ok thanks for your help looks like a good amount of reading, I should be able to come up with something from all that.

    Will have to install mychitchat to see how it works

    :D

    I like this idea, this plugin should be useful to me
     

    Users who are viewing this thread

    Top Bottom