3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // Portions copyright (C) 2001-2003 RibbonSoft
7 // Copyright (C) 2010 Underground Software
8 // See the README and GPLv2 files for licensing and warranty information
10 // JLH = James L. Hammons <jlhamm@acm.org>
13 // --- ---------- -----------------------------------------------------------
14 // JLH 09/08/2010 Created this file. :-)
21 * Wrapper for Qt (ick)
23 /*static*/ Qt::PenStyle RS2::rsToQtLineType(RS2::LineType t)
46 return Qt::DashDotLine;
51 return Qt::DashDotDotLine;
56 return Qt::DashDotLine;
61 return Qt::DashDotLine;
73 * Wrapper for Qt. (ick)
75 /*static*/ RS2::LineType RS2::qtToRsPenStyle(Qt::PenStyle s)
93 case Qt::DashDotDotLine:
105 * Wrapper for Qt (ick)
107 /*static*/ RS2::LineWidth RS2::intToLineWidth(int w)
220 * Wrapper for Qt. (ick)
222 /*static*/ Qt::CursorShape RS2::rsToQtCursorType(RS2::CursorType t)
227 return Qt::ArrowCursor;
230 return Qt::UpArrowCursor;
233 return Qt::CrossCursor;
236 return Qt::WaitCursor;
239 return Qt::IBeamCursor;
242 return Qt::SizeVerCursor;
245 return Qt::SizeHorCursor;
247 case SizeBDiagCursor:
248 return Qt::SizeBDiagCursor;
250 case SizeFDiagCursor:
251 return Qt::SizeFDiagCursor;
254 return Qt::SizeAllCursor;
257 return Qt::BlankCursor;
260 return Qt::SplitVCursor;
263 return Qt::SplitHCursor;
265 case PointingHandCursor:
266 return Qt::PointingHandCursor;
268 case ForbiddenCursor:
269 return Qt::ForbiddenCursor;
271 case WhatsThisCursor:
272 return Qt::WhatsThisCursor;
275 return Qt::ArrowCursor;
279 return Qt::ArrowCursor;
283 * Wrapper for Qt. (ick)
285 /*static*/ QPrinter::PageSize RS2::rsToQtPaperFormat(RS2::PaperFormat f)
287 QPrinter::PageSize ret;
292 ret = QPrinter::Custom;
295 ret = QPrinter::Letter;
298 ret = QPrinter::Legal;
301 ret = QPrinter::Executive;
371 ret = QPrinter::Comm10E;
377 ret = QPrinter::Folio;
380 // ret = QPrinter::Ledger;
383 ret = QPrinter::Tabloid;
386 ret = QPrinter::NPageSize;