25 |
#include <cairomm/context.h> |
#include <cairomm/context.h> |
26 |
#include <gdkmm/general.h> |
#include <gdkmm/general.h> |
27 |
#include <gdkmm/cursor.h> |
#include <gdkmm/cursor.h> |
28 |
|
#include <gtkmm/stock.h> |
29 |
#include <gdkmm/pixbuf.h> |
#include <gdkmm/pixbuf.h> |
30 |
#include <gtkmm/spinbutton.h> |
#include <gtkmm/spinbutton.h> |
31 |
#include <gtkmm/dialog.h> |
#include <gtkmm/dialog.h> |
160 |
for (int i = 0 ; i < 128 ; i++) key_pressed[i] = false; |
for (int i = 0 ; i < 128 ; i++) key_pressed[i] = false; |
161 |
|
|
162 |
actionGroup = Gtk::ActionGroup::create(); |
actionGroup = Gtk::ActionGroup::create(); |
163 |
actionGroup->add(Gtk::Action::create("Properties", _("_Properties")), |
actionGroup->add(Gtk::Action::create("Properties", |
164 |
|
Gtk::Stock::PROPERTIES), |
165 |
sigc::mem_fun(*this, |
sigc::mem_fun(*this, |
166 |
&RegionChooser::show_region_properties)); |
&RegionChooser::show_region_properties)); |
167 |
actionGroup->add(Gtk::Action::create("Remove", _("_Remove")), |
actionGroup->add(Gtk::Action::create("Remove", Gtk::Stock::REMOVE), |
168 |
sigc::mem_fun(*this, &RegionChooser::delete_region)); |
sigc::mem_fun(*this, &RegionChooser::delete_region)); |
169 |
actionGroup->add(Gtk::Action::create("Add", _("_Add")), |
actionGroup->add(Gtk::Action::create("Add", Gtk::Stock::ADD), |
170 |
sigc::mem_fun(*this, &RegionChooser::add_region)); |
sigc::mem_fun(*this, &RegionChooser::add_region)); |
171 |
actionGroup->add(Gtk::Action::create("Dimensions", _("Dimensions...")), |
actionGroup->add(Gtk::Action::create("Dimensions", _("Dimensions...")), |
172 |
sigc::mem_fun(*this, &RegionChooser::manage_dimensions)); |
sigc::mem_fun(*this, &RegionChooser::manage_dimensions)); |
1062 |
dialog.get_vbox()->pack_start(spinBox); |
dialog.get_vbox()->pack_start(spinBox); |
1063 |
spinBox.show(); |
spinBox.show(); |
1064 |
// add OK and CANCEL buttons to the dialog |
// add OK and CANCEL buttons to the dialog |
1065 |
dialog.add_button(_("_OK"), 0); |
dialog.add_button(Gtk::Stock::OK, 0); |
1066 |
dialog.add_button(_("_Cancel"), 1); |
dialog.add_button(Gtk::Stock::CANCEL, 1); |
1067 |
dialog.show_all_children(); |
dialog.show_all_children(); |
1068 |
if (!dialog.run()) { // OK selected ... |
if (!dialog.run()) { // OK selected ... |
1069 |
region->KeyGroup = |
region->KeyGroup = |