Ignore:
Timestamp:
Dec 16, 2009, 12:30:16 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
057b77
Parents:
7cb300
git-author:
Tillmann Crueger <crueger@…> (12/14/09 14:24:49)
git-committer:
Frederik Heber <heber@…> (12/16/09 12:30:16)
Message:

Added basic View functionality. - Added DisplayMenuItem to show certain types of Views - Added Views to make StringViews from methods producing strings and from methods taking streams Signed-off-by: Tillmann Crueger <crueger@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/menu.cpp

    r7cb300 rdf55a0  
    2828#include "Menu/ActionMenuItem.hpp"
    2929#include "Menu/SeperatorItem.hpp"
     30#include "Menu/DisplayMenuItem.hpp"
    3031#include "Actions/MethodAction.hpp"
     32#include "Views/StreamStringView.hpp"
     33#include "Views/MethodStringView.hpp"
    3134
    3235
     
    12251228  TextMenu *main_menu = new TextMenu(Log() << Verbose(0), "Main Menu");
    12261229
     1230  StringView *moleculeView = new StreamStringView(boost::bind(&MoleculeListClass::Enumerate,molecules,_1));
     1231  new DisplayMenuItem(main_menu,moleculeView);
     1232
     1233  new SeperatorItem(main_menu);
     1234
    12271235  MethodAction *setMoleculeAction = new MethodAction(boost::bind(&oldmenu::notImplementedYet,this));
    12281236  new ActionMenuItem('a',"set molecule (in)active",main_menu,setMoleculeAction);
Note: See TracChangeset for help on using the changeset viewer.