Misc. typos
This commit is contained in:
parent
1b4dfc7988
commit
c7fc0b8dcb
|
@ -17,9 +17,9 @@
|
||||||
#include "../vmisc/diagnostic.h"
|
#include "../vmisc/diagnostic.h"
|
||||||
|
|
||||||
|
|
||||||
//! Calculate arbitary axis
|
//! Calculate arbitrary axis
|
||||||
/*!
|
/*!
|
||||||
* Calculate arbitary axis for apply extrusions
|
* Calculate arbitrary axis for apply extrusions
|
||||||
* @author Rallaz
|
* @author Rallaz
|
||||||
*/
|
*/
|
||||||
void DRW_Entity::calculateAxis(DRW_Coord extPoint){
|
void DRW_Entity::calculateAxis(DRW_Coord extPoint){
|
||||||
|
@ -50,9 +50,9 @@ void DRW_Entity::calculateAxis(DRW_Coord extPoint){
|
||||||
extAxisY.unitize();
|
extAxisY.unitize();
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Extrude a point using arbitary axis
|
//! Extrude a point using arbitrary axis
|
||||||
/*!
|
/*!
|
||||||
* apply extrusion in a point using arbitary axis (previous calculated)
|
* apply extrusion in a point using arbitrary axis (previous calculated)
|
||||||
* @author Rallaz
|
* @author Rallaz
|
||||||
*/
|
*/
|
||||||
void DRW_Entity::extrudePoint(DRW_Coord extPoint, DRW_Coord *point) const{
|
void DRW_Entity::extrudePoint(DRW_Coord extPoint, DRW_Coord *point) const{
|
||||||
|
|
|
@ -1434,7 +1434,7 @@ public:
|
||||||
|
|
||||||
DRW_Coord getDiameter1Point() const {return getPt5();} /*!< First definition point for diameter, code 15, 25 & 35 */
|
DRW_Coord getDiameter1Point() const {return getPt5();} /*!< First definition point for diameter, code 15, 25 & 35 */
|
||||||
void setDiameter1Point(const DRW_Coord &p){setPt5(p);}
|
void setDiameter1Point(const DRW_Coord &p){setPt5(p);}
|
||||||
DRW_Coord getDiameter2Point() const {return getDefPoint();} /*!< Oposite point for diameter, code 10, 20 & 30 */
|
DRW_Coord getDiameter2Point() const {return getDefPoint();} /*!< Opposite point for diameter, code 10, 20 & 30 */
|
||||||
void setDiameter2Point(const DRW_Coord &p){setDefPoint(p);}
|
void setDiameter2Point(const DRW_Coord &p){setDefPoint(p);}
|
||||||
double getLeaderLength() const {return getRa40();} /*!< Leader length, code 40 */
|
double getLeaderLength() const {return getRa40();} /*!< Leader length, code 40 */
|
||||||
void setLeaderLength(const double d) {setRa40(d);}
|
void setLeaderLength(const double d) {setRa40(d);}
|
||||||
|
|
|
@ -359,7 +359,7 @@ void DRW_LType::parseCode(int code, dxfReader *reader){
|
||||||
|
|
||||||
//! Update line type
|
//! Update line type
|
||||||
/*!
|
/*!
|
||||||
* Update the size and length of line type acording to the path
|
* Update the size and length of line type according to the path
|
||||||
* @author Rallaz
|
* @author Rallaz
|
||||||
*/
|
*/
|
||||||
/*TODO: control max length permited */
|
/*TODO: control max length permited */
|
||||||
|
|
|
@ -541,7 +541,7 @@ public:
|
||||||
* bit 1 (1) show out of limits
|
* bit 1 (1) show out of limits
|
||||||
* bit 2 (2) adaptive grid
|
* bit 2 (2) adaptive grid
|
||||||
* bit 3 (4) allow subdivision
|
* bit 3 (4) allow subdivision
|
||||||
* bit 4 (8) follow dinamic SCP
|
* bit 4 (8) follow dynamic SCP
|
||||||
**/
|
**/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
std::string getCodePage() const { return decoder.getCodePage();}
|
std::string getCodePage() const { return decoder.getCodePage();}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool readCode(int *code) = 0; //return true if sucesful (not EOF)
|
virtual bool readCode(int *code) = 0; //return true if successful (not EOF)
|
||||||
virtual bool readString(std::string *text) = 0;
|
virtual bool readString(std::string *text) = 0;
|
||||||
virtual bool readString() = 0;
|
virtual bool readString() = 0;
|
||||||
virtual bool readInt16() = 0;
|
virtual bool readInt16() = 0;
|
||||||
|
|
|
@ -1488,7 +1488,7 @@ bool dxfRW::writeTables() {
|
||||||
writer->writeInt16(72, 65);
|
writer->writeInt16(72, 65);
|
||||||
writer->writeInt16(73, 0);
|
writer->writeInt16(73, 0);
|
||||||
writer->writeDouble(40, 0.0);
|
writer->writeDouble(40, 0.0);
|
||||||
//Aplication linetypes
|
//Application linetypes
|
||||||
iface->writeLTypes();
|
iface->writeLTypes();
|
||||||
writer->writeString(0, "ENDTAB");
|
writer->writeString(0, "ENDTAB");
|
||||||
/*** LAYER ***/
|
/*** LAYER ***/
|
||||||
|
@ -1639,7 +1639,7 @@ bool dxfRW::writeTables() {
|
||||||
writer->writeInt16(281, 0);
|
writer->writeInt16(281, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* allways call writeBlockRecords to iface for prepare unnamed blocks */
|
/* always call writeBlockRecords to iface for prepare unnamed blocks */
|
||||||
iface->writeBlockRecords();
|
iface->writeBlockRecords();
|
||||||
if (version > DRW::AC1009) {
|
if (version > DRW::AC1009) {
|
||||||
writer->writeString(0, "ENDTAB");
|
writer->writeString(0, "ENDTAB");
|
||||||
|
|
|
@ -769,7 +769,7 @@ QRectF VPrintLayout::SceneTargetRect(QPrinter *printer, const QRectF &source)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Here we try understand difference between printer's dpi and our.
|
// Here we try understand difference between printer's dpi and our.
|
||||||
// Get printer rect acording to our dpi.
|
// Get printer rect according to our dpi.
|
||||||
const QRectF printerPageRect(0, 0, ToPixel(printer->pageRect(QPrinter::Millimeter).width(), Unit::Mm),
|
const QRectF printerPageRect(0, 0, ToPixel(printer->pageRect(QPrinter::Millimeter).width(), Unit::Mm),
|
||||||
ToPixel(printer->pageRect(QPrinter::Millimeter).height(), Unit::Mm));
|
ToPixel(printer->pageRect(QPrinter::Millimeter).height(), Unit::Mm));
|
||||||
const QRect pageRect = printer->pageLayout().paintRectPixels(printer->resolution());
|
const QRect pageRect = printer->pageLayout().paintRectPixels(printer->resolution());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user