From 7758fe52cb9ef78b562bc2587b17b6344d8829fe Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 13 May 2012 20:00:22 +0100 Subject: [PATCH] DropDown UI component --- src/interface/DropDown.cpp | 124 ++++++++++++++++++++++++++---- src/interface/DropDown.h | 19 +++++ src/interface/Window.cpp | 1 + src/options/OptionsController.cpp | 8 ++ src/options/OptionsController.h | 2 + src/options/OptionsModel.cpp | 21 +++++ src/options/OptionsModel.h | 4 + src/options/OptionsView.cpp | 39 +++++++++- src/simulation/SaveLoader.cpp | 7 +- src/simulation/Simulation.h | 2 +- 10 files changed, 205 insertions(+), 22 deletions(-) diff --git a/src/interface/DropDown.cpp b/src/interface/DropDown.cpp index 6944e6f52..ea7d56a5a 100644 --- a/src/interface/DropDown.cpp +++ b/src/interface/DropDown.cpp @@ -5,26 +5,53 @@ * Author: Simon */ +#include +#include "Button.h" #include "DropDown.h" namespace ui { +class ItemSelectedAction; class DropDownWindow: public ui::Window { + friend class ItemSelectedAction; Colour background, activeBackground; Colour border, activeBorder; Colour text, activeText; + DropDown * dropDown; + std::vector