Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

desktop-properties.cpp File Reference

Detailed Description

Desktop configuration dialog.

Authors: Lauris Kaplinski <lauris@kaplinski.com> Jon Phillips <jon@rejon.org> bulia byak <buliabyak@users.sf.net>

Copyright (C) Jon Phillips 2005 Copyright (C) Lauris Kaplinski 2000-2002

Released under GNU GPL, read the file 'COPYING' for more information

Definition in file desktop-properties.cpp.

#include <locale>
#include <sstream>
#include <utility>
#include <algorithm>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "macros.h"
#include <glibmm/i18n.h>
#include "helper/unit-menu.h"
#include "helper/units.h"
#include "helper/window.h"
#include "svg/svg.h"
#include "color-picker.h"
#include "../inkscape.h"
#include "../document.h"
#include "../desktop-handles.h"
#include "../sp-namedview.h"
#include "widgets/spw-utilities.h"
#include "dialog-events.h"
#include "../prefs-utils.h"
#include "../verbs.h"
#include "../interface.h"
#include "../xml/repr.h"
#include "../xml/node-event-vector.h"
#include "desktop-properties.h"
#include "svg/stringstream.h"
#include "rdf.h"

Go to the source code of this file.


struct  PaperSize


static void docoptions_event_attr_changed (Inkscape::XML::Node *, gchar const *, gchar const *, gchar const *, bool, gpointer)
static int find_paper_size (double const w_px, double const h_px)
static pair< double, double > get_paper_size (PaperSize const &paper, bool const landscape, SPUnit const *const dest_unit)
static gboolean set_doc_units (SPUnitSelector *, SPUnit const *old, SPUnit const *new_units, GObject *dlg)
void sp_desktop_dialog (void)
 Desktop configuration dialog.
static GtkWidget * sp_doc_dialog_add_work_entity (struct rdf_work_entity_t *entity, GtkWidget *t, GtkTooltips *tt, int row)
 Creates a data entry widget in a table for a given RDF entity.
static void sp_doc_dialog_license_selected (GtkWidget *widget, gpointer data)
 Notices changed license pulldown and changes RDF entries.
static void sp_doc_dialog_paper_orientation_selected (GtkWidget *widget, gpointer data)
static void sp_doc_dialog_paper_selected (GtkWidget *widget, gpointer data)
static void sp_doc_dialog_update_license (struct rdf_work_entity_t *entity, gchar const *text, bool editable)
 Makes changes to the GUI for a given license entity.
static void sp_doc_dialog_update_work_entity (struct rdf_work_entity_t *entity)
static void sp_doc_dialog_whatever_changed (GtkAdjustment *adjustment, GtkWidget *dialog)
 Writes the change into the corresponding attribute of the document root (svg element); moved here from the former document settings dialog.
static void sp_doc_dialog_work_entity_changed (GtkWidget *widget, gpointer data)
 Exists to stop tabs from working until we just GTK 2.4+.
static void sp_dtw_activate_desktop (Inkscape::Application *inkscape, SPDesktop *desktop, GtkWidget *dialog)
static void sp_dtw_border_layer_toggled (GtkToggleButton *tb, GtkWidget *dialog)
static void sp_dtw_deactivate_desktop (Inkscape::Application *inkscape, SPDesktop *desktop, GtkWidget *dialog)
static bool sp_dtw_dialog_delete (GtkObject *object, GdkEvent *event, gpointer data)
static void sp_dtw_dialog_destroy (GtkObject *object, gpointer data)
static void sp_dtw_grid_emp_spacing_changed (GtkAdjustment *adjustment, GtkWidget *dialog)
static void sp_dtw_grid_snap_distance_changed (GtkAdjustment *adjustment, GtkWidget *dialog)
static void sp_dtw_guides_snap_distance_changed (GtkAdjustment *adjustment, GtkWidget *dialog)
static void sp_dtw_update (GtkWidget *dialog, SPDesktop *desktop)
static void sp_dtw_whatever_changed (GtkAdjustment *adjustment, GtkWidget *dialog)
static void sp_dtw_whatever_toggled (GtkToggleButton *tb, GtkWidget *dialog)
 Callback that writes the change into the corresponding attribute of the sodipodi:namedview element.


static GtkWidget * dlg = NULL
static gint h = 0
static PaperSize const inkscape_papers []
static gchar * prefs_path = "dialogs.documentoptions"
static GtkTooltips * tooltips = NULL
static gint w = 0
static win_data wd
static gint x = -1000
static gint y = -1000

Generated by  Doxygen 1.6.0   Back to index