edit-widget-interface.h revision a4030d5ca449e7e384bc699cd249ee704faaeab0
/**
* \file
*
* Abstract base class for all EditWidget implementations.
*
* Authors:
* Ralf Stephan <ralf@ark.in-berlin.de>
* John Bintz <jcoswell@coswellproductions.org>
*
* Copyright (C) 2006 John Bintz
* Copyright (C) 2005 Ralf Stephan
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include "libnr/nr-point.h"
#include "message.h"
struct EditWidgetInterface
{
EditWidgetInterface() {}
virtual ~EditWidgetInterface() {}
/// Returns pointer to window UI object as void*
/// Set the widget's title
/// Show all parts of widget the user wants to see.
/// Present widget to user
/// Returns geometry of widget
/// Change the widget's size
/// Move widget to specified position
/// Transientize widget
virtual void setTransient (void*, int) = 0;
/// Return mouse position in widget
/// Make widget iconified
virtual void setIconified() = 0;
/// Make widget maximized on screen
virtual void setMaximized() = 0;
/// Make widget fill screen and show it if possible.
virtual void setFullscreen() = 0;
/// Shuts down the desktop object for the view being closed. It checks
/// to see if the document has been edited, and if so prompts the user
/// to save, discard, or cancel. Returns TRUE if the shutdown operation
/// is cancelled or if the save is cancelled or fails, FALSE otherwise.
/// Destroy and delete widget.
/// Queue a redraw request with the canvas
virtual void requestCanvasUpdate() = 0;
/// Force a redraw of the canvas
virtual void requestCanvasUpdateAndWait() = 0;
/// Enable interaction on this desktop
virtual void enableInteraction() = 0;
/// Disable interaction on this desktop
virtual void disableInteraction() = 0;
/// Update the "active desktop" indicator
virtual void activateDesktop() = 0;
/// Update the "inactive desktop" indicator
virtual void deactivateDesktop() = 0;
/// Set rulers to position
/// Update rulers from current values
virtual void updateRulers() = 0;
/// Update scrollbars from current values
virtual void toggleRulers() = 0;
virtual void toggleScrollbars() = 0;
virtual void toggleColorProfAdjust() = 0;
/// Temporarily block signals and update zoom display
virtual void updateZoom() = 0;
/// The zoom display will get the keyboard focus.
virtual void letZoomGrabFocus() = 0;
/// In auxiliary toolbox, set focus to widget having specific id
/// In auxiliary toolbox, set value of adjustment with specific id
/// In auxiliary toolbox, select one of the "select one" options (usually radio toggles)
/// In auxiliary toolbox, return true if specific togglebutton is active
/// Set the coordinate display
/// Message widget will get no content
};
} // namespace View
} // namespace UI
} // namespace Inkscape
#endif // INKSCAPE_UI_VIEW_EDIT_WIDGET_IFACE_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:fileencoding=utf-8:textwidth=99 :