// Auto generated by Testing Dashboard
// File        : scripts/Draw/Polyline/DrawPolyline/Tests/DrawPolylineTest03.js
// Timestamp   : Tue May 20 09:56:38 2025
// Description : 

include('scripts/Developer/TestingDashboard/TdbTest.js');

function DrawPolylineTest03() {
    TdbTest.call(this, 'scripts/Draw/Polyline/DrawPolyline/Tests/DrawPolylineTest03.js');
}

DrawPolylineTest03.prototype = new TdbTest();

DrawPolylineTest03.prototype.test00 = function() {
    qDebug('running DrawPolylineTest03.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::PolylineToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::PolylineToolsPanel::DrawPolylineProButton');
    this.setZoom(10, new RVector(5,5));
    var p = new RVector(10, 19.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolylinePro/ArcMode', 'false');
    this.setToolOption('DrawPolylinePro/UseRadius', 'false');
    this.setToolOption('DrawPolylinePro/Radius', '8');
    this.setToolOption('DrawPolylinePro/UseSweep', 'false');
    this.setToolOption('DrawPolylinePro/Sweep', '0.0');
    this.setToolOption('DrawPolylinePro/Restrict', 'false');
    this.updateToolOptions();
    var p = new RVector(30, 19.8);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolylinePro/ArcMode', 'true');
    this.setToolOption('DrawPolylinePro/UseRadius', 'false');
    this.setToolOption('DrawPolylinePro/Radius', '8');
    this.setToolOption('DrawPolylinePro/UseSweep', 'false');
    this.setToolOption('DrawPolylinePro/Sweep', '0.0');
    this.setToolOption('DrawPolylinePro/Restrict', 'false');
    this.updateToolOptions();
    var p = new RVector(40, 39.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolylinePro/ArcMode', 'true');
    this.setToolOption('DrawPolylinePro/UseRadius', 'false');
    this.setToolOption('DrawPolylinePro/Radius', '4');
    this.setToolOption('DrawPolylinePro/UseSweep', 'true');
    this.setToolOption('DrawPolylinePro/Sweep', '90');
    this.setToolOption('DrawPolylinePro/Restrict', 'false');
    this.updateToolOptions();
    var p = new RVector(60.1, 59.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolylinePro/ArcMode', 'true');
    this.setToolOption('DrawPolylinePro/UseRadius', 'true');
    this.setToolOption('DrawPolylinePro/Radius', '10');
    this.setToolOption('DrawPolylinePro/UseSweep', 'false');
    this.setToolOption('DrawPolylinePro/Sweep', '90');
    this.setToolOption('DrawPolylinePro/Restrict', 'false');
    this.updateToolOptions();
    var p = new RVector(70, 39.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(65.5, 41.2);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(65.3, 41.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('DrawPolylineTest03_000.dxf');
    this.tearDown();
    qDebug('finished DrawPolylineTest03.test00()');
};

