+/* $Id$
+
+This file is part of R²C²
+Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef ZONEBAR_H_
+#define ZONEBAR_H_
+
+#include <msp/gltk/dropdown.h>
+#include "toolbar.h"
+
+class Designer;
+
+class Zonebar: public Toolbar
+{
+private:
+ Designer &designer;
+ Msp::GLtk::Dropdown *drp_groups;
+ Msp::GLtk::Dropdown *drp_numbers;
+
+public:
+ Zonebar(Designer &);
+
+private:
+ void zone_added(R2C2::Zone &);
+ void zone_renamed(const std::string &, const std::string &, unsigned);
+ void group_selected(unsigned, const std::string &);
+ void number_selected(unsigned, const std::string &);
+ void delete_zone_clicked();
+ void update_groups();
+ void update_numbers(const std::string &);
+};
+
+#endif