dialog.cpp revision 769a6887551cf7ff7bce4b48d3ac303cbea69507
0N/A#ifdef HAVE_CONFIG_H
0N/A#include "dialog-manager.h"
#include "inkscape.h"
#include "ui/tools/tool-base.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "shortcuts.h"
#include "preferences.h"
#include "ui/interface.h"
#include "verbs.h"
#include "ui/tool/event-utils.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
: _user_hidden(false),
_hiddenF12(false),
retransientize_suppress(false),
_title(),
_is_active_desktop(true),
_behavior(0)
if (verb_num) {
delete _behavior;
_behavior = 0;
_hiddenF12 = true;
if (_user_hidden)
if (_hiddenF12) {
_hiddenF12 = false;
inline void Dialog::set_size_request(int width, int height) { _behavior->set_size_request(width, height); }
inline void Dialog::size_request(Gtk::Requisition &requisition) { _behavior->size_request(requisition); }
inline void Dialog::set_position(Gtk::WindowPosition position) { _behavior->set_position(position); }
_user_hidden = false;
resize(w, h);
if ( (x >= 0) && (y >= 0) && (x < (gdk_screen_width()-MIN_ONSCREEN_DISTANCE)) && (y < (gdk_screen_height()-MIN_ONSCREEN_DISTANCE)) ) {
move(x, y);
get_position(x, y);
get_size(w, h);
if (prefs) {
switch (response_id) {
_close();
_user_hidden = true;
bool ret = false;
case GDK_KEY_PRESS: {
case GDK_KEY_Escape: {
_defocus();
ret = true;
case GDK_KEY_F4:
case GDK_KEY_w:
case GDK_KEY_W: {
_close();
ret = true;
return ret;
unsigned int shortcut;
SP_SHORTCUT_SHIFT_MASK : 0 ) |
SP_SHORTCUT_CONTROL_MASK : 0 ) |
SP_SHORTCUT_ALT_MASK : 0 );
if (desktop) {
if (toplevel_window)