void clip_lp_menu() { cleardevice(); clearmouseclick(WM_RBUTTONDOWN); outtext((char*)"Left click mouse to add points to polygon and right click to finish adding points"); std::vector<Point2D> poly; std::cout<<"\n\nPolygon"; poly = mk_poly(); std::cout<<"\n\nLine"; cleardevice(); outtext((char*)"Click and drag to define line"); mypoly(poly); Point2D a(100, 100), b(700, 700); outP(a);outP(b); setcolor(RED); myline(a, b); getch(); setcolor(WHITE); clip_line_poly(poly, a, b, NULL); getch(); }
//Write version info void FClientUpdater::writeVersion(QString version, QString currentPath) { QFile file(LibFusion::getWorkingDir().absolutePath() + "/FVersion.txt"); if (!file.open(QIODevice::WriteOnly|QIODevice::Text|QIODevice::Truncate)) return; QDataStream out(&file); out << version.toLatin1(); file.close(); QFile filePath(LibFusion::getWorkingDir().absolutePath() + "/FPath.txt"); if (!filePath.open(QIODevice::WriteOnly|QIODevice::Text|QIODevice::Truncate)) return; QDataStream outP(&filePath); outP << currentPath.toLatin1(); filePath.close(); }