desktop.h revision ef610fdbfb424e7ad204ac9de142c05bb986e1dc
#ifndef SEEN_SP_DESKTOP_H
#define SEEN_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 <gdk/gdkevents.h>
#include <gtk/gtktypeutils.h>
#include "ui/view/edit-widget-interface.h"
#include "display/rendermode.h"
#include "display/snap-indicator.h"
struct SPCanvas;
struct SPCanvasItem;
struct SPCanvasGroup;
struct SPEventContext;
struct SPItem;
struct SPNamedView;
struct SPObject;
struct SPStyle;
{
}
typedef int sp_verb_t;
}
}
}
//class SnapIndicator;
}
}
/**
* Editable view.
*
* @see \ref desktop-handles.h for desktop macros.
*/
{
/// current selection; will never generally be NULL
bool _focusMode; ///< Whether we're focused working or general working
bool _quick_zoom_enabled; ///< Signifies that currently we're in quick zoom mode
unsigned int dkey;
unsigned int number;
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;
/// Emitted when the zoom factor changes (not emitted when scrolling).
/// The parameter is the new zoom factor
{
}
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();
void destroy();
return _guides_message_context;
}
Inkscape::Display::TemporaryItem * add_temporary_canvasitem (SPCanvasItem *item, guint lifetime, bool move_to_bottom = true);
void setDisplayModeNormal() {
}
void setDisplayModeNoFilters() {
}
void setDisplayModeOutline() {
}
void setDisplayModePrintColorsPreview() {
}
void displayModeToggle();
void set_active (bool new_active);
SPObject *currentRoot() const;
SPObject *currentLayer() const;
void activate_guides (bool activate);
{
}
void zoom_page();
void zoom_page_width();
void zoom_drawing();
void zoom_selection();
void zoom_grab_focus();
void prev_zoom();
void next_zoom();
void zoom_quick(bool enable = true);
/** \brief Returns whether the desktop is in quick zoom mode or not */
bool quick_zoomed(void) { return _quick_zoom_enabled; }
{
}
void presentWindow();
void toggleRulers();
void toggleScrollbars();
void layoutWidget();
void destroyWidget();
void updateNow();
void updateCanvasNow();
void enableInteraction();
void disableInteraction();
void setWaitingCursor();
void clearWaitingCursor();
bool isWaitingCursor() const { return waiting_cursor; };
void toggleColorProfAdjust();
void toggleGrids();
void toggleSnapGlobal();
bool gridsEnabled() const { return grids_visible; };
bool is_iconified();
bool is_maximized();
bool is_fullscreen();
bool is_focusMode();
void iconify();
void maximize();
void fullscreen();
bool _active;
bool grids_visible; /* don't set this variable directly, use the method below */
void set_grids_visible(bool visible);
void push_current_zoom (GList**);
virtual void onPositionSet (double, double);
virtual void onRedrawRequested();
virtual void onDocumentResized (double, double);
};
#endif // SEEN_SP_DESKTOP_H
/*
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 :