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

RS2 Class Reference

#include <rs.h>

List of all members.


Detailed Description

Class namespace for various enums along with some simple wrapper methods for converting the enums to the Qt counterparts.

Author:
Andrew Mustun

Definition at line 51 of file rs.h.


Public Types

enum  ActionType {
  ActionNone, ActionDefault, ActionFileNew, ActionFileOpen,
  ActionFileSave, ActionFileSaveAs, ActionFileExport, ActionFileClose,
  ActionFilePrint, ActionFilePrintPreview, ActionFileQuit, ActionPrintPreview,
  ActionEditUndo, ActionEditRedo, ActionEditCut, ActionEditCutNoSelect,
  ActionEditCopy, ActionEditCopyNoSelect, ActionEditPaste, ActionViewStatusBar,
  ActionViewLayerList, ActionViewBlockList, ActionViewCommandLine, ActionViewOptionToolbar,
  ActionViewGrid, ActionViewDraft, ActionZoomIn, ActionZoomOut,
  ActionZoomAuto, ActionZoomWindow, ActionZoomPan, ActionZoomRedraw,
  ActionZoomPrevious, ActionSelectSingle, ActionSelectContour, ActionSelectWindow,
  ActionDeselectWindow, ActionSelectAll, ActionDeselectAll, ActionSelectIntersected,
  ActionDeselectIntersected, ActionSelectInvert, ActionSelectLayer, ActionSelectDouble,
  ActionDrawArc, ActionDrawArc3P, ActionDrawArcParallel, ActionDrawCircle,
  ActionDrawCircle2P, ActionDrawCircle3P, ActionDrawCircleCR, ActionDrawCircleParallel,
  ActionDrawEllipseArcAxis, ActionDrawEllipseAxis, ActionDrawHatch, ActionDrawHatchNoSelect,
  ActionDrawImage, ActionDrawLine, ActionDrawLineAngle, ActionDrawLineBisector,
  ActionDrawLineFree, ActionDrawLineHorVert, ActionDrawLineHorizontal, ActionDrawLineOrthogonal,
  ActionDrawLineParallel, ActionDrawLineParallelThrough, ActionDrawLinePolygon, ActionDrawLinePolygon2,
  ActionDrawLinePolyline, ActionDrawLineRectangle, ActionDrawLineRelAngle, ActionDrawLineTangent1,
  ActionDrawLineTangent2, ActionDrawLineVertical, ActionDrawPoint, ActionDrawSpline,
  ActionDrawText, ActionDimAligned, ActionDimLinear, ActionDimLinearVer,
  ActionDimLinearHor, ActionDimRadial, ActionDimDiametric, ActionDimAngular,
  ActionDimLeader, ActionModifyAttributes, ActionModifyAttributesNoSelect, ActionModifyDelete,
  ActionModifyDeleteNoSelect, ActionModifyDeleteQuick, ActionModifyDeleteFree, ActionModifyMove,
  ActionModifyMoveNoSelect, ActionModifyRotate, ActionModifyRotateNoSelect, ActionModifyScale,
  ActionModifyScaleNoSelect, ActionModifyMirror, ActionModifyMirrorNoSelect, ActionModifyMoveRotate,
  ActionModifyMoveRotateNoSelect, ActionModifyRotate2, ActionModifyRotate2NoSelect, ActionModifyEntity,
  ActionModifyTrim, ActionModifyTrim2, ActionModifyTrimAmount, ActionModifyCut,
  ActionModifyStretch, ActionModifyBevel, ActionModifyRound, ActionSnapFree,
  ActionSnapGrid, ActionSnapEndpoint, ActionSnapOnEntity, ActionSnapCenter,
  ActionSnapMiddle, ActionSnapDist, ActionSnapIntersection, ActionSnapIntersectionManual,
  ActionRestrictNothing, ActionRestrictOrthogonal, ActionRestrictHorizontal, ActionRestrictVertical,
  ActionSetRelativeZero, ActionLockRelativeZero, ActionUnlockRelativeZero, ActionInfoInside,
  ActionInfoDist, ActionInfoDist2, ActionInfoAngle, ActionInfoTotalLength,
  ActionInfoTotalLengthNoSelect, ActionInfoArea, ActionLayersDefreezeAll, ActionLayersFreezeAll,
  ActionLayersAdd, ActionLayersRemove, ActionLayersEdit, ActionLayersToggleView,
  ActionLayersToggleLock, ActionBlocksDefreezeAll, ActionBlocksFreezeAll, ActionBlocksAdd,
  ActionBlocksRemove, ActionBlocksAttributes, ActionBlocksEdit, ActionBlocksInsert,
  ActionBlocksToggleView, ActionBlocksCreate, ActionBlocksCreateNoSelect, ActionBlocksExplode,
  ActionBlocksExplodeNoSelect, ActionModifyExplodeText, ActionModifyExplodeTextNoSelect, ActionLibraryInsert,
  ActionOptionsGeneral, ActionOptionsDrawing, ActionToolRegenerateDimensions, ActionScriptOpenIDE,
  ActionScriptRun, ActionPARISDebugCreateContainer, ActionLast
}
enum  AngleFormat {
  DegreesDecimal, DegreesMinutesSeconds, Gradians, Radians,
  Surveyors
}
enum  AngleUnit { Deg, Rad, Gra }
enum  Axis { OnlyX, OnlyY, Both }
enum  ButtonState {
  NoButton = Qt::NoButton, LeftButton = Qt::LeftButton, RightButton = Qt::RightButton, MidButton = Qt::MidButton,
  MouseButtonMask = Qt::MouseButtonMask, ShiftButton = Qt::ShiftButton, ControlButton = Qt::ControlButton, AltButton = Qt::AltButton,
  KeyButtonMask = Qt::KeyButtonMask, Keypad = Qt::Keypad
}
enum  CursorType {
  ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor,
  IbeamCursor, SizeVerCursor, SizeHorCursor, SizeBDiagCursor,
  SizeFDiagCursor, SizeAllCursor, BlankCursor, SplitVCursor,
  SplitHCursor, PointingHandCursor, ForbiddenCursor, WhatsThisCursor,
  CadCursor, DelCursor, SelectCursor, MagnifierCursor,
  MovingHandCursor
}
enum  Direction { Up, Left, Right, Down }
enum  DrawingMode {
  ModeFull, ModeAuto, ModePreview, ModeXOR,
  ModeBW
}
enum  Ending { EndingStart, EndingEnd, EndingNone }
enum  EntityType {
  EntityUnknown, EntityContainer, EntityBlock, EntityFontChar,
  EntityInsert, EntityGraphic, EntityPoint, EntityLine,
  EntityPolyline, EntityVertex, EntityArc, EntityCircle,
  EntityEllipse, EntitySolid, EntityConstructionLine, EntityText,
  EntityDimAligned, EntityDimLinear, EntityDimRadial, EntityDimDiametric,
  EntityDimAngular, EntityDimLeader, EntityHatch, EntityImage,
  EntitySpline
}
enum  Flags {
  FlagUndone = 1<<0, FlagVisible = 1<<1, FlagByLayer = 1<<2, FlagByBlock = 1<<3,
  FlagFrozen = 1<<4, FlagDefFrozen = 1<<5, FlagLocked = 1<<6, FlagInvalid = 1<<7,
  FlagSelected = 1<<8, FlagClosed = 1<<9, FlagTemp = 1<<10, FlagProcessed = 1<<11,
  FlagSelected1 = 1<<12, FlagSelected2 = 1<<13, FlagHighlighted = 1<<14
}
enum  FormatType {
  FormatUnknown, FormatDXF1, FormatDXF, FormatDXF12,
  FormatCXF, FormatCAM
}
enum  HAlign { HAlignLeft, HAlignCenter, HAlignRight }
enum  LeaderPathType { Straight, Spline }
enum  LinearFormat {
  Scientific, Decimal, Engineering, Architectural,
  Fractional
}
enum  LineType {
  NoPen = 0, SolidLine = 1, DotLine = 2, DotLine2 = 3,
  DotLineX2 = 4, DashLine = 5, DashLine2 = 6, DashLineX2 = 7,
  DashDotLine = 8, DashDotLine2 = 9, DashDotLineX2 = 10, DivideLine = 11,
  DivideLine2 = 12, DivideLineX2 = 13, CenterLine = 14, CenterLine2 = 15,
  CenterLineX2 = 16, BorderLine = 17, BorderLine2 = 18, BorderLineX2 = 19,
  LineByLayer = -1, LineByBlock = -2
}
enum  LineWidth {
  Width00 = 0, Width01 = 5, Width02 = 9, Width03 = 13,
  Width04 = 15, Width05 = 18, Width06 = 20, Width07 = 25,
  Width08 = 30, Width09 = 35, Width10 = 40, Width11 = 50,
  Width12 = 53, Width13 = 60, Width14 = 70, Width15 = 80,
  Width16 = 90, Width17 = 100, Width18 = 106, Width19 = 120,
  Width20 = 140, Width21 = 158, Width22 = 200, Width23 = 211,
  WidthByLayer = -1, WidthByBlock = -2, WidthDefault = -3
}
enum  PaperFormat {
  Custom, Letter, Legal, Executive,
  A0, A1, A2, A3,
  A4, A5, A6, A7,
  A8, A9, B0, B1,
  B2, B3, B4, B5,
  B6, B7, B8, B9,
  B10, C5E, Comm10E, DLE,
  Folio, Tabloid, NPageSize
}
enum  ResolveLevel { ResolveNone, ResolveGroups, ResolveAll }
enum  SnapMode {
  SnapFree, SnapGrid, SnapEndpoint, SnapMiddle,
  SnapCenter, SnapOnEntity, SnapDist, SnapIntersection,
  SnapIntersectionManual
}
enum  SnapRestriction { RestrictNothing, RestrictOrthogonal, RestrictHorizontal, RestrictVertical }
enum  TextDrawingDirection { LeftToRight, TopToBottom, ByStyle }
enum  TextLineSpacingStyle { AtLeast, Exact }
enum  ToolBarId {
  ToolBarMain, ToolBarPoints, ToolBarLines, ToolBarArcs,
  ToolBarCircles, ToolBarEllipses, ToolBarSplines, ToolBarText,
  ToolBarDim, ToolBarSnap, ToolBarModify, ToolBarSelect,
  ToolBarInfo
}
enum  UndoableType { UndoableUnknown, UndoableEntity, UndoableLayer }
enum  Unit {
  None = 0, Inch = 1, Foot = 2, Mile = 3,
  Millimeter = 4, Centimeter = 5, Meter = 6, Kilometer = 7,
  Microinch = 8, Mil = 9, Yard = 10, Angstrom = 11,
  Nanometer = 12, Micron = 13, Decimeter = 14, Decameter = 15,
  Hectometer = 16, Gigameter = 17, Astro = 18, Lightyear = 19,
  Parsec = 20, LastUnit = 21
}
enum  UpdateMode { NoUpdate, Update, PreviewUpdate }
enum  VAlign { VAlignTop, VAlignMiddle, VAlignBottom }
enum  VariableType {
  VariableString, VariableInt, VariableDouble, VariableVector,
  VariableVoid
}
enum  ZoomDirection { In, Out }

Static Public Member Functions

static LineWidth intToLineWidth (int w)
static RS2::ButtonState qtToRsButtonState (Qt::ButtonState t)
static RS2::LineType qtToRsPenStyle (Qt::PenStyle s)
static Qt::ButtonState rsToQtButtonState (RS2::ButtonState t)
static Qt::PenStyle rsToQtLineType (RS2::LineType t)

Public Attributes

struct RS2::LineTypePatternStruct LineTypePattern
 Struct that stores a line type pattern (e.g. dash dot dot).

Classes

struct  LineTypePatternStruct
 Struct that stores a line type pattern (e.g. dash dot dot). More...

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

Generated by  Doxygen 1.6.0   Back to index