24 |
#include <cairomm/context.h> |
#include <cairomm/context.h> |
25 |
#include <gdkmm/general.h> |
#include <gdkmm/general.h> |
26 |
#include <gdkmm/cursor.h> |
#include <gdkmm/cursor.h> |
|
#include <gtkmm/stock.h> |
|
27 |
#include <gtkmm/spinbutton.h> |
#include <gtkmm/spinbutton.h> |
28 |
#include <gtkmm/dialog.h> |
#include <gtkmm/dialog.h> |
29 |
|
|
103 |
for (int i = 0 ; i < 128 ; i++) key_pressed[i] = false; |
for (int i = 0 ; i < 128 ; i++) key_pressed[i] = false; |
104 |
|
|
105 |
actionGroup = Gtk::ActionGroup::create(); |
actionGroup = Gtk::ActionGroup::create(); |
106 |
actionGroup->add(Gtk::Action::create("Properties", |
actionGroup->add(Gtk::Action::create("Properties", _("_Properties")), |
|
Gtk::Stock::PROPERTIES), |
|
107 |
sigc::mem_fun(*this, |
sigc::mem_fun(*this, |
108 |
&RegionChooser::show_region_properties)); |
&RegionChooser::show_region_properties)); |
109 |
actionGroup->add(Gtk::Action::create("Remove", Gtk::Stock::REMOVE), |
actionGroup->add(Gtk::Action::create("Remove", _("_Remove")), |
110 |
sigc::mem_fun(*this, &RegionChooser::delete_region)); |
sigc::mem_fun(*this, &RegionChooser::delete_region)); |
111 |
actionGroup->add(Gtk::Action::create("Add", Gtk::Stock::ADD), |
actionGroup->add(Gtk::Action::create("Add", _("_Add")), |
112 |
sigc::mem_fun(*this, &RegionChooser::add_region)); |
sigc::mem_fun(*this, &RegionChooser::add_region)); |
113 |
actionGroup->add(Gtk::Action::create("Dimensions", _("Dimensions...")), |
actionGroup->add(Gtk::Action::create("Dimensions", _("Dimensions...")), |
114 |
sigc::mem_fun(*this, &RegionChooser::manage_dimensions)); |
sigc::mem_fun(*this, &RegionChooser::manage_dimensions)); |
896 |
dialog.get_vbox()->pack_start(spinBox); |
dialog.get_vbox()->pack_start(spinBox); |
897 |
spinBox.show(); |
spinBox.show(); |
898 |
// add OK and CANCEL buttons to the dialog |
// add OK and CANCEL buttons to the dialog |
899 |
dialog.add_button(Gtk::Stock::OK, 0); |
dialog.add_button(_("_OK"), 0); |
900 |
dialog.add_button(Gtk::Stock::CANCEL, 1); |
dialog.add_button(_("_Cancel"), 1); |
901 |
dialog.show_all_children(); |
dialog.show_all_children(); |
902 |
if (!dialog.run()) { // OK selected ... |
if (!dialog.run()) { // OK selected ... |
903 |
region->KeyGroup = |
region->KeyGroup = |