desktop.h revision 0c1c5e39edddff3a5150a1e8bb027056eb106537
#ifndef __SP_DESKTOP_H__
#define __SP_DESKTOP_H__
/** \file
* SPDesktop: an editable view.
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
* Frank Felfe <innerspace@iname.com>
* bulia byak <buliabyak@users.sf.net>
* Ralf Stephan <ralf@ark.in-berlin.de>
* John Bintz <jcoswell@coswellproductions.org>
* Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
*
* Copyright (C) 2007 Johan Engelen
* Copyright (C) 2006 John Bintz
* Copyright (C) 1999-2005 authors
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gtk/gtktypeutils.h>
#include "libnr/nr-matrix.h"
#include "libnr/nr-matrix-fns.h"
#include "ui/view/edit-widget-interface.h"
struct _GtkWidget;
typedef struct _GtkWidget GtkWidget;
struct SPCanvas;
struct SPCanvasItem;
struct SPCanvasGroup;
struct SPDesktopWidget;
struct SPEventContext;
struct SPItem;
struct SPNamedView;
struct SPObject;
struct SPStyle;
struct SPViewWidget;
typedef int sp_verb_t;
}
}
}
}
/**
* Editable view.
*
* @see \ref desktop-handles.h for desktop macros.
*/
{
/// current selection; will never generally be NULL
unsigned int dkey;
unsigned int number;
bool is_fullscreen;
unsigned int interaction_disabled_counter;
bool waiting_cursor;
/// \todo fixme: This has to be implemented in different way */
// storage for selected dragger used by GrDrag as it's
// created and deleted by tools
bool gr_fill_or_stroke;
{
}
sigc::connection connectEventContextChanged (const sigc::slot<void,SPDesktop*,SPEventContext*> & slot)
{
}
{
}
{
}
// subselection is some sort of selection which is specific to the tool, such as a handle in gradient tool, or a text selection
}
}
// Whiteboard changes
#ifdef WITH_INKBOARD
return _whiteboard_session_manager;
}
#endif
SPDesktop();
~SPDesktop();
void destroy();
return _guides_message_context;
}
void setDisplayModeNormal();
void setDisplayModeOutline();
void displayModeToggle();
int displayMode;
int getMode() const { return displayMode; }
void set_active (bool new_active);
SPObject *currentRoot() const;
SPObject *currentLayer() const;
void activate_guides (bool activate);
{
zoom_relative_keep_point (c[X], c[Y], zoom);
}
void zoom_page();
void zoom_page_width();
void zoom_drawing();
void zoom_selection();
void zoom_grab_focus();
void prev_zoom();
void next_zoom();
{
}
void presentWindow();
void toggleRulers();
void toggleScrollbars();
void layoutWidget();
void destroyWidget();
void updateNow();
void updateCanvasNow();
void enableInteraction();
void disableInteraction();
void setWaitingCursor();
void clearWaitingCursor();
void toggleGrid();
bool gridsEnabled() { return grids_visible; }
void fullscreen();
bool _active;
bool grids_visible;
void push_current_zoom (GList**);
virtual void onPositionSet (double, double);
virtual void onRedrawRequested();
virtual void onDocumentResized (double, double);
};
#endif
/*
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 :