]> git.tdb.fi Git - r2c2.git/blob - source/designer/zonebar.h
c9a7580c3921650246cd6f782918518de8efe926
[r2c2.git] / source / designer / zonebar.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef ZONEBAR_H_
9 #define ZONEBAR_H_
10
11 #include <msp/gltk/dropdown.h>
12 #include "toolbar.h"
13
14 class Designer;
15
16 class Zonebar: public Toolbar, public sigc::trackable
17 {
18 private:
19         Designer &designer;
20         Msp::GLtk::Dropdown *drp_groups;
21         Msp::GLtk::Dropdown *drp_numbers;
22
23 public:
24         Zonebar(Designer &);
25
26 private:
27         void zone_added(R2C2::Zone &);
28         void zone_renamed(const std::string &, const std::string &, unsigned);
29         void group_selected(unsigned, const std::string &);
30         void number_selected(unsigned, const std::string &);
31         void delete_zone_clicked();
32         void update_groups();
33         void update_numbers(const std::string &);
34 };
35
36 #endif