Horizon
Loading...
Searching...
No Matches
layer_combo_box.hpp
1#pragma once
2#include <gtkmm.h>
3
4namespace horizon {
5class LayerComboBox : public Gtk::ComboBox {
6public:
8
9 void set_active_layer(int l);
10 int get_active_layer() const;
11
12 void remove_all();
13 void prepend(const class Layer &l);
14 void set_layer_insensitive(int layer);
15
16private:
17 class ListColumns : public Gtk::TreeModelColumnRecord {
18 public:
19 ListColumns()
20 {
21 Gtk::TreeModelColumnRecord::add(layer);
22 Gtk::TreeModelColumnRecord::add(name);
23 Gtk::TreeModelColumnRecord::add(color);
24 Gtk::TreeModelColumnRecord::add(sensitive);
25 }
26 Gtk::TreeModelColumn<int> layer;
27 Gtk::TreeModelColumn<Glib::ustring> name;
28 Gtk::TreeModelColumn<Gdk::RGBA> color;
29 Gtk::TreeModelColumn<bool> sensitive;
30 };
31 ListColumns list_columns;
32
33 Glib::RefPtr<Gtk::ListStore> store;
34};
35} // namespace horizon
Definition layer_combo_box.hpp:5
Definition layer.hpp:5