Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
OpenWalnut Core OpenWalnut Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 82
    • Issues 82
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenWalnut
  • OpenWalnut CoreOpenWalnut Core
  • Issues
  • #249

Closed
Open
Created May 15, 2012 by Sebastian Volke@volkeOwner

-RM-174-MR-WItemSelectionItemTyped can stored a value which is associated with an item

@WItemSelectionItemTyped@ extends @WItemSelectionItem@ to store a value of any type. So a user can associate an enum or any object with an @WItemSelectionItem@. The user do not have to code his own mapper to associate the @string@ of @WItemSelectionItem.getName()@ with his desired action. @WItemSelectionItem@ is extended to @getAs()@ to cast the object from @WItemSelector.at()@ to @WItemSelectionItemTyped@. @WItemSelection@ is extended to @addItem(boost::shared_ptr)@ to add @WItemSelectionItemTyped@.

Appendix:

  • diff
  • example use case

(from redmine: created on 2012-05-15, closed on 2012-05-16)

Assignee
Assign to
OpenWalnut 1.3
Milestone
OpenWalnut 1.3
Assign milestone
Time tracking