]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/zonebar.h
Add support for named zones
[r2c2.git] / source / designer / zonebar.h
diff --git a/source/designer/zonebar.h b/source/designer/zonebar.h
new file mode 100644 (file)
index 0000000..ded63ad
--- /dev/null
@@ -0,0 +1,36 @@
+/* $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