19 |
|
|
20 |
#include "global.h" |
#include "global.h" |
21 |
#include "compat.h" |
#include "compat.h" |
22 |
|
#include "Settings.h" |
23 |
#include <gtkmm/box.h> |
#include <gtkmm/box.h> |
24 |
#include "dimregionchooser.h" |
#include "dimregionchooser.h" |
25 |
#include <cairomm/context.h> |
#include <cairomm/context.h> |
303 |
"Right click here for options on altering dimension zones. Press and " |
"Right click here for options on altering dimension zones. Press and " |
304 |
"hold CTRL key for selecting multiple dimension zones simultaniously." |
"hold CTRL key for selecting multiple dimension zones simultaniously." |
305 |
)); |
)); |
306 |
|
|
307 |
|
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
308 |
|
sigc::mem_fun(*this, &DimRegionChooser::on_show_tooltips_changed) |
309 |
|
); |
310 |
|
on_show_tooltips_changed(); |
311 |
|
|
312 |
window.signal_key_press_event().connect( |
window.signal_key_press_event().connect( |
313 |
sigc::mem_fun(*this, &DimRegionChooser::onKeyPressed) |
sigc::mem_fun(*this, &DimRegionChooser::onKeyPressed) |
321 |
{ |
{ |
322 |
} |
} |
323 |
|
|
324 |
|
void DimRegionChooser::on_show_tooltips_changed() { |
325 |
|
const bool b = Settings::singleton()->showTooltips; |
326 |
|
|
327 |
|
set_has_tooltip(b); |
328 |
|
} |
329 |
|
|
330 |
void DimRegionChooser::setModifyBothChannels(bool b) { |
void DimRegionChooser::setModifyBothChannels(bool b) { |
331 |
modifybothchannels = b; |
modifybothchannels = b; |
332 |
// redraw required parts |
// redraw required parts |