1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
/***************************************************************************
raction.cpp - description
-------------------
begin : Mon Sep 27 1999
copyright : (C) 1999 by Andreas Mustun
email : andrew@ribbonsoft.com
***************************************************************************/
#include <qapplication.h>
#include <qevent.h>
#include "rappwin.h"
#include "raction.h"
#include "rgraphic.h"
/*! \class RAction
\brief Basis class for actions (RActDraw, RActEdit, RActTag, RActZoom)
\author Andrew Mustun
*/
/*! Constructor
*/
RAction::RAction()
{
}
/*! Destructor
*/
RAction::~RAction()
{
}
/*! Gets the current document object (graphic)
\return pointer to current loaded document or 0 if no doc is open
*/
RGraphic*
RAction::currentDoc()
{
return RAppWin::getRAppWin()->currentDoc();
}
/*! Gets the current output document (graphic)
\return Pointer to current output document (graphic)
*/
RGraphic*
RAction::currentOut()
{
return RAppWin::getRAppWin()->currentOut();
}
/*! Gets the snapper object
\return Pointer to snapper class
*/
RSnap*
RAction::snapper()
{
return RAppWin::getRAppWin()->currentDoc()->snapper();
}
/*! Gets the status panel object
\return Pointer to status panel
*/
RStatusPanel*
RAction::statusPanel()
{
return RAppWin::getRAppWin()->getStatusPanel();
}
/*! Gets the input panel object
\return Pointer to input panel
*/
RInputPanel*
RAction::inputPanel()
{
return RAppWin::getRAppWin()->getInputPanel();
}
// EOF
|