text: #pragma once
  
  #include <string>
  #include <curses.h>
  #include "SelectionBox.h"
  #include "MouseEvent.h"
  
  /*******************************************************************************
  
  List displayed by a ComboBox
  
  *******************************************************************************/
  class ComboBoxList: public SelectionBox {
    
    protected:
  
      virtual void redrawFrame();
      virtual void redrawSingleItem(unsigned int idx);
  
    public:
  
      /* Constructors */
  
      ComboBoxList();
      ComboBoxList(WINDOW *win);
  
      /* Edit list */
  
      void clearList();
  
      /* Accessing properties */
  
      virtual void preferredSize(int & height, int & width) const;
  
      /* Drawing */
  
      void draw(bool force=false);
  
      /* Handles mouse event */
  
      std::string handleMouseEvent(MouseEvent * mevent);
  };
  