Logo Search packages:      
Sourcecode: qcad version File versions  Download package

QC_GraphicView Class Reference

#include <qc_graphicview.h>

Inheritance diagram for QC_GraphicView:

QG_GraphicView RS_GraphicView RS_LayerListListener RS_BlockListListener

List of all members.


Detailed Description

A view widget for the visualisation of drawings. Very thin wrapper for QCad specific settings.

Author:
Andrew Mustun

Definition at line 46 of file qc_graphicview.h.


Public Member Functions

virtual void adjustOffsetControls ()
virtual void adjustZoomControls ()
void back ()
virtual void blockActivated (RS_Block *)
virtual void blockAdded (RS_Block *)
virtual void blockEdited (RS_Block *)
virtual void blockRemoved (RS_Block *)
virtual void blockToggled (RS_Block *)
void centerOffsetX ()
void centerOffsetY ()
void centerX (double x)
void centerY (double y)
void cleanUp ()
void commandEvent (RS_CommandEvent *e)
virtual RS_PaintercreateDirectPainter ()
virtual RS_PaintercreatePainter ()
virtual void deleteEntity (RS_Entity *e)
virtual void destroyPainter ()
void disableCoordinateInput ()
void disableUpdate ()
virtual void drawAbsoluteZero ()
void drawArcSmooth (const RS_Vector &center, double radius, double a1, double a2, bool rev, const RS_Pen &pen)
virtual void drawEntity (RS_Entity *e, double patternOffset=0.0, bool db=false)
virtual void drawEntityPlain (RS_Entity *e, double patternOffset=0.0)
virtual void drawGrid ()
virtual void drawIt ()
void drawLineSmooth (const RS_Vector &p1, const RS_Vector &p2, const RS_Pen &pen)
virtual void drawMetaGrid ()
virtual void drawPaper ()
virtual void drawRelativeZero ()
virtual void drawWindow (RS_Vector v1, RS_Vector v2)
void enableCoordinateInput ()
void enableUpdate ()
void enter ()
void freezeZoom (bool freeze)
RS_Color getBackground ()
int getBorderBottom ()
int getBorderLeft ()
int getBorderRight ()
int getBorderTop ()
RS_EntityContainergetContainer ()
RS_ActionInterfacegetCurrentAction ()
RS_ActionInterfacegetDefaultAction ()
RS2::SnapMode getDefaultSnapMode ()
bool getDeleteMode ()
RS2::DrawingMode getDrawingMode ()
RS_EventHandlergetEventHandler ()
RS_Vector getFactor ()
RS_Color getForeground ()
RS_GraphicgetGraphic ()
RS_GridgetGrid ()
virtual int getHeight ()
int getOffsetX ()
int getOffsetY ()
virtual RS_LineTypePatterngetPattern (RS2::LineType t)
RS_Vector getRelativeZero ()
bool getSimulationRapid ()
int getSimulationSpeed ()
RS2::SnapRestriction getSnapRestriction ()
virtual int getWidth ()
bool isDraftMode ()
bool isGridOn ()
bool isPrinting ()
bool isPrintPreview ()
bool isRelativeZeroLocked ()
bool isUpdateEnabled ()
bool isZoomFrozen ()
void keyPressEvent (RS_KeyEvent *e)
void keyReleaseEvent (RS_KeyEvent *e)
void killAllActions ()
void killSelectActions ()
virtual void layerActivated (RS_Layer *)
virtual void layerAdded (RS_Layer *)
virtual void layerEdited (RS_Layer *)
virtual void layerRemoved (RS_Layer *)
virtual void layerToggled (RS_Layer *)
void lockRelativeZero (bool lock)
void mouseEnterEvent ()
void mouseLeaveEvent ()
void mouseMoveEvent (RS_MouseEvent *e)
void mousePressEvent (RS_MouseEvent *e)
void mouseReleaseEvent (RS_MouseEvent *e)
void moveRelativeZero (const RS_Vector &pos)
 QC_GraphicView (RS_Document *doc, QWidget *parent=0)
virtual void redraw ()
virtual void restoreView ()
virtual void saveView ()
virtual void setBackground (const RS_Color &bg)
void setBorders (int left, int top, int right, int bottom)
void setContainer (RS_EntityContainer *container)
void setCurrentAction (RS_ActionInterface *action)
void setDefaultAction (RS_ActionInterface *action)
void setDefaultSnapMode (RS2::SnapMode sm)
void setDeleteMode (bool m)
void setDrawingMode (RS2::DrawingMode m)
void setFactor (double f)
void setFactorX (double f)
void setFactorY (double f)
void setGridColor (const RS_Color &c)
void setHighlightedColor (const RS_Color &c)
void setMetaGridColor (const RS_Color &c)
virtual void setMouseCursor (RS2::CursorType c)
void setOffset (int ox, int oy)
void setOffsetX (int ox)
void setOffsetY (int oy)
virtual void setPainter (RS_Painter *p)
virtual void setPenForEntity (RS_Entity *e)
void setPrinting (bool p)
void setPrintPreview (bool pv)
void setRelativeZero (const RS_Vector &pos)
void setSelectedColor (const RS_Color &c)
void setSimulationRapid (bool r)
void setSimulationSmooth (bool s)
void setSimulationSpeed (int s)
void setSnapRestriction (RS2::SnapRestriction sr)
void simulateEntity (RS_Entity *e, const RS_Pen &pen)
void simulateIt ()
void simulationDelay (bool step=false)
RS_Vector toGraph (int x, int y)
RS_Vector toGraph (RS_Vector v)
double toGraphDX (int d)
double toGraphDY (int d)
double toGraphX (int x)
double toGraphY (int y)
RS_Vector toGui (RS_Vector v)
double toGuiDX (double d)
double toGuiDY (double d)
double toGuiX (double x, bool *visible=NULL)
double toGuiY (double y)
virtual void updateGrid ()
virtual void updateGridStatusWidget (const RS_String &text)
virtual void updateView ()
virtual void zoomAuto (bool axis=true, bool keepAspectRatio=true)
virtual void zoomAutoY (bool axis=true)
virtual void zoomIn (double f=1.5, const RS_Vector &center=RS_Vector(false))
virtual void zoomInX (double f=1.5)
virtual void zoomInY (double f=1.5)
virtual void zoomOut (double f=1.5, const RS_Vector &center=RS_Vector(false))
virtual void zoomOutX (double f=1.5)
virtual void zoomOutY (double f=1.5)
virtual void zoomPage ()
virtual void zoomPan (int dx, int dy)
virtual void zoomPrevious ()
virtual void zoomScroll (RS2::Direction direction)
virtual void zoomWindow (RS_Vector v1, RS_Vector v2, bool keepAspectRatio=true)

Protected Member Functions

virtual void emulateMouseMoveEvent ()
virtual void enterEvent (QEvent *)
virtual void focusInEvent (QFocusEvent *)
virtual void focusOutEvent (QFocusEvent *)
virtual void keyPressEvent (QKeyEvent *e)
virtual void keyReleaseEvent (QKeyEvent *e)
virtual void leaveEvent (QEvent *)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *)
void previewUrl (const QUrl &u)
virtual void resizeEvent (QResizeEvent *e)
virtual void wheelEvent (QWheelEvent *e)

Protected Attributes

RS_Color background
RS_EntityContainercontainer
QCursor * curCad
 CAD mouse cursor.
QCursor * curDel
 Delete mouse cursor.
QCursor * curHand
 Hand mouse cursor.
QCursor * curMagnifier
 Magnifying glass mouse cursor.
QCursor * curSelect
 Select mouse cursor.
RS2::SnapMode defaultSnapMode
RS2::SnapRestriction defaultSnapRes
bool deleteMode
RS2::DrawingMode drawingMode
RS_EventHandlereventHandler
RS_Color foreground
RS_Gridgrid
RS_Color gridColor
QLabel * gridStatus
 Label for grid spacing.
RS_Color highlightedColor
QG_ScrollBarhScrollBar
 Horizontal scrollbar.
int lastHeight
int lastWidth
QGridLayout * layout
 Layout used to fit in the view and the scrollbars.
RS_Color metaGridColor
int mx
 Last known mouse cursor position.
int my
 Last known mouse cursor position.
RS_Painterpainter
RS_Color selectedColor
bool simulationRunning
 If true, the simulation is currectly running.
QG_ScrollBarvScrollBar
 Vertical scrollbar.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index