edit-widget.h revision 0b51e8dca51e424e491522197eb7ca55e45a38b4
/**
* \brief This class implements the functionality of the window layout, menus,
* and signals.
*
* Authors:
* Bryce W. Harrington <bryce@bryceharrington.org>
* Derek P. Moore <derekm@hackunix.org>
* Ralf Stephan <ralf@ark.in-berlin.de>
* John Bintz <jcoswell@coswellproductions.org>
*
* Copyright (C) 2006 John Bintz
* Copyright (C) 2004 Bryce Harrington
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_UI_VIEW_EDIT_WIDGET_H
#define INKSCAPE_UI_VIEW_EDIT_WIDGET_H
#include <gtkmm/scrollbar.h>
#include <gtkmm/actiongroup.h>
#include <gtkmm/uimanager.h>
#include <gtkmm/togglebutton.h>
#include "ui/dialog/dialog-manager.h"
#include "ui/view/edit-widget-interface.h"
#include "ui/widget/layer-selector.h"
#include "ui/widget/selected-style.h"
#include "ui/widget/svg-canvas.h"
#include "ui/widget/zoom-status.h"
struct SPDesktop;
struct SPDocument;
struct SPNamedView;
EditWidget (SPDocument*);
~EditWidget();
// Initialization
void initActions();
void initUIManager();
void initLayout();
void initEdit (SPDocument*);
void destroyEdit();
// Actions
void onActionFileNew();
void onActionFileOpen();
void onActionFilePrint();
void onActionFileQuit();
void onToolbarItem();
void onSelectTool();
void onNodeTool();
// Menus
void onMenuItem();
void onDialogAbout();
void onDialogAlignAndDistribute();
void onDialogSprayOptionClass();
void onDialogInkscapePreferences();
void onDialogDialog();
void onDialogDocumentProperties();
void onDialogExport();
void onDialogExtensionEditor();
void onDialogFillAndStroke();
void onDialogFind();
void onDialogLayerEditor();
void onDialogMessages();
void onDialogObjectProperties();
void onDialogTextProperties();
void onDialogTransform();
void onDialogTransformation();
void onDialogTrace();
void onDialogXmlEditor();
// Whiteboard (Inkboard)
#ifdef WITH_INKBOARD
void onDialogWhiteboardConnect();
void onDialogWhiteboardShareWithUser();
void onDialogWhiteboardShareWithChat();
void onDialogOpenSessionFile();
void onDumpXMLTracker();
#endif
void onUriChanged();
// from EditWidgetInterface
virtual void setTransient (void*, int);
virtual void setIconified();
virtual void setMaximized();
virtual void setFullscreen();
virtual void requestCanvasUpdate();
virtual void requestCanvasUpdateAndWait();
virtual void enableInteraction();
virtual void disableInteraction();
virtual void activateDesktop();
virtual void deactivateDesktop();
virtual void updateRulers();
virtual void toggleRulers();
virtual void toggleScrollbars();
virtual void toggleColorProfAdjust();
virtual void updateZoom();
virtual void letZoomGrabFocus();
// Child widgets:
double _dt2r;
void initMenuActions();
void initToolbarActions();
void initAccelMap();
void initMenuBar();
void initCommandsBar();
void initToolControlsBar();
void initUriBar();
void initToolsBar();
void initBottomScrollbar();
void initRightScrollbar();
void initLeftRuler();
void initTopRuler();
void initStickyZoom();
void initStatusbar();
bool onEntryFocusIn (GdkEventFocus*);
bool onEntryFocusOut (GdkEventFocus*);
void onWindowRealize();
void onAdjValueChanged();
bool _update_s_f, _update_a_f;
unsigned int _interaction_disabled_counter;
};
} // namespace View
} // namespace UI
} // namespace Inkscape
#endif // INKSCAPE_UI_VIEW_EDIT_WIDGET_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:encoding=utf-8:textwidth=99 :