summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38e42d8)
raw | patch | inline | side by side (parent: 38e42d8)
author | joncruz <joncruz@users.sourceforge.net> | |
Tue, 19 Feb 2008 09:13:22 +0000 (09:13 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Tue, 19 Feb 2008 09:13:22 +0000 (09:13 +0000) |
src/ui/widget/panel.cpp | patch | blob | history |
index 9b9b20530249db5940a12209a7d88014ce889457..e6b24c14a596b8d77a7a95df31f9b08e212dcf79 100644 (file)
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
_non_vertical.push_back(check);
check->signal_toggled().connect(sigc::bind<Gtk::CheckMenuItem*>(sigc::mem_fun(*this, &Panel::_wrapToggled), check));
+ }
+
+ {
+ Glib::ustring type_label(_("Shape"));
+
+ Glib::ustring shape_1_label(_("Tall"));
+ Glib::ustring shape_2_label(_("Square"));
+ Glib::ustring shape_3_label(_("Wide"));
+
+ Gtk::MenuItem *item = manage( new Gtk::MenuItem(type_label));
+ Gtk::Menu *type_menu = manage(new Gtk::Menu());
+ item->set_submenu(*type_menu);
+ _menu->append(*item);
- sep = manage(new Gtk::SeparatorMenuItem());
- _menu->append(*sep);
- _non_vertical.push_back(sep);
+ Gtk::RadioMenuItem::Group shapeGroup;
+
+ Gtk::RadioMenuItem *shape_1 = manage(new Gtk::RadioMenuItem(shapeGroup, shape_1_label));
+ Gtk::RadioMenuItem *shape_2 = manage(new Gtk::RadioMenuItem(shapeGroup, shape_2_label));
+ Gtk::RadioMenuItem *shape_3 = manage(new Gtk::RadioMenuItem(shapeGroup, shape_3_label));
+
+ type_menu->append(*shape_1);
+ type_menu->append(*shape_2);
+ type_menu->append(*shape_3);
+
+ shape_2->set_active(true);
}
+ sep = manage(new Gtk::SeparatorMenuItem());
+ _menu->append(*sep);
+
_menu->show_all_children();
for ( std::vector<Gtk::Widget*>::iterator iter = _non_vertical.begin(); iter != _non_vertical.end(); ++iter ) {
(*iter)->hide();