input.cpp revision e9b6af083e34e2397a8ddbe9781920733d09d151
#define __SP_INPUT_C__
/** @file
* @brief Extended input devices dialog
*/
/* Authors:
* Nicklas Lindgren <nili@lysator.liu.se>
* Johan Engelen <goejendaagh@zonnet.nl>
*
* Copyright (C) 2005-2006 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <gtk/gtksignal.h>
#include <gtk/gtkinputdialog.h>
#include "macros.h"
#include "verbs.h"
#include "inkscape.h"
#include "interface.h"
#include "dialogs/dialog-events.h"
#include "preferences.h"
#define MIN_ONSCREEN_DISTANCE 50
// impossible original values to make sure they are read from prefs
static void
{
}
static gboolean
{
if (x<0) x=0;
if (y<0) y=0;
return FALSE; // which means, go ahead and destroy it
}
"ignore", "x", "y", "pressure", "xtilt", "ytilt", "wheel"
};
void
{
//repr = sp_repr_lookup_child(devices, "id", device->name);
if (/*repr != NULL*/ 1) {
if (device_mode.empty())
else if (device_mode == "screen")
else if (device_mode == "window")
else
}
//temp_ptr = repr->attribute("axes");
break; // Too few axis specifications
for (gint j=0; j < GDK_AXIS_LAST; j++)
axis_use = static_cast<GdkAxisUse>(j);
break;
}
}
break; // Too few key specifications
}
}
}
}
void
sp_input_save_to_preferences (void)
{
//repr = sp_repr_lookup_child(devices, "id", device->name);
default:
case GDK_MODE_DISABLED: {
break;
}
case GDK_MODE_SCREEN: {
break;
}
case GDK_MODE_WINDOW: {
break;
}
}
temp_attribute += ";";
}
temp_attribute = "";
temp_attribute += ";";
}
}
}
static void
{
}
void
sp_input_dialog (void)
{
dlg = gtk_input_dialog_new();
if (x == -1000 || y == -1000) {
}
if (w ==0 || h == 0) {
}
// if (x<0) x=0;
// if (y<0) y=0;
if (w && h) {
}
if (x >= 0 && y >= 0 && (x < (gdk_screen_width()-MIN_ONSCREEN_DISTANCE)) && (y < (gdk_screen_height()-MIN_ONSCREEN_DISTANCE))) {
} else {
}
g_signal_connect ( G_OBJECT (INKSCAPE), "activate_desktop", G_CALLBACK (sp_transientize_callback), &wd);
// Dialog-specific stuff
"clicked",
GTK_OBJECT(dlg));
"clicked",
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :