Port of revision 470668

This simplifies the recently introduced toolsystem, and allows to easily add new tools.
The active tool is now also stored between sessions.

This also adds a measuring tool, which allows to measure position, distance and angle
in screen coordinates, as well as a variety of physical units like cm, inch, TeXPoints, ...

svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=470681
This commit is contained in:
Wilfried Huss 2005-10-14 18:03:27 +00:00
parent 61450e7ab8
commit 0bfec5173d

View file

@ -442,7 +442,7 @@ DocumentWidget* KDVIMultiPage::createDocumentWidget()
// Lets not forget the connections we make in the KMultiPage
connect(documentWidget, SIGNAL(clearSelection()), this, SLOT(clearSelection()));
connect(this, SIGNAL(enableMoveTool(bool)), documentWidget, SLOT(slotEnableMoveTool(bool)));
connect(this, SIGNAL(switchTool()), documentWidget, SLOT(slotSwitchTool()));
// Handle source links
connect(documentWidget, SIGNAL(SRCLink(const QString&, QMouseEvent*, DocumentWidget*)), getRenderer(),