diff --git a/tools/nitpick/src/ui/BusyWindow.cpp b/tools/nitpick/src/ui/BusyWindow.cpp deleted file mode 100644 index 8066d576f8..0000000000 --- a/tools/nitpick/src/ui/BusyWindow.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// -// BusyWindow.cpp -// -// Created by Nissim Hadar on 26 Jul 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#include "BusyWindow.h" - -BusyWindow::BusyWindow(QWidget *parent) { - setupUi(this); -} diff --git a/tools/nitpick/src/ui/BusyWindow.h b/tools/nitpick/src/ui/BusyWindow.h deleted file mode 100644 index 62f2df7e04..0000000000 --- a/tools/nitpick/src/ui/BusyWindow.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// BusyWindow.h -// -// Created by Nissim Hadar on 29 Jul 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#ifndef hifi_BusyWindow_h -#define hifi_BusyWindow_h - -#include "ui_BusyWindow.h" - -class BusyWindow : public QDialog, public Ui::BusyWindow { - Q_OBJECT - -public: - BusyWindow(QWidget* parent = Q_NULLPTR); -}; - -#endif \ No newline at end of file diff --git a/tools/nitpick/src/ui/BusyWindow.ui b/tools/nitpick/src/ui/BusyWindow.ui deleted file mode 100644 index c237566a5e..0000000000 --- a/tools/nitpick/src/ui/BusyWindow.ui +++ /dev/null @@ -1,75 +0,0 @@ - - - BusyWindow - - - Qt::ApplicationModal - - - - 0 - 0 - 542 - 189 - - - - Updating TestRail - please wait - - - - - 30 - 850 - 500 - 28 - - - - - 12 - - - - similarity - - - - - - 40 - 40 - 481 - 101 - - - - 0 - - - 0 - - - - - - 50 - 60 - 431 - 61 - - - - - 20 - - - - Please wait for this window to close - - - - - - - diff --git a/tools/nitpick/src/ui/MismatchWindow.cpp b/tools/nitpick/src/ui/MismatchWindow.cpp deleted file mode 100644 index 58189b4795..0000000000 --- a/tools/nitpick/src/ui/MismatchWindow.cpp +++ /dev/null @@ -1,101 +0,0 @@ -// -// MismatchWindow.cpp -// -// Created by Nissim Hadar on 9 Nov 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#include "MismatchWindow.h" - -#include - -#include - -MismatchWindow::MismatchWindow(QWidget *parent) : QDialog(parent) { - setupUi(this); - - expectedImage->setScaledContents(true); - resultImage->setScaledContents(true); - diffImage->setScaledContents(true); -} - -QPixmap MismatchWindow::computeDiffPixmap(QImage expectedImage, QImage resultImage) { - // Create an empty difference image if the images differ in size - if (expectedImage.height() != resultImage.height() || expectedImage.width() != resultImage.width()) { - return QPixmap(); - } - - // This is an optimization, as QImage.setPixel() is embarrassingly slow - unsigned char* buffer = new unsigned char[expectedImage.height() * expectedImage.width() * 3]; - - // loop over each pixel - for (int y = 0; y < expectedImage.height(); ++y) { - for (int x = 0; x < expectedImage.width(); ++x) { - QRgb pixelP = expectedImage.pixel(QPoint(x, y)); - QRgb pixelQ = resultImage.pixel(QPoint(x, y)); - - // Convert to luminance - double p = R_Y * qRed(pixelP) + G_Y * qGreen(pixelP) + B_Y * qBlue(pixelP); - double q = R_Y * qRed(pixelQ) + G_Y * qGreen(pixelQ) + B_Y * qBlue(pixelQ); - - // The intensity value is modified to increase the brightness of the displayed image - double absoluteDifference = fabs(p - q) / 255.0; - double modifiedDifference = sqrt(absoluteDifference); - - int difference = (int)(modifiedDifference * 255.0); - - buffer[3 * (x + y * expectedImage.width()) + 0] = difference; - buffer[3 * (x + y * expectedImage.width()) + 1] = difference; - buffer[3 * (x + y * expectedImage.width()) + 2] = difference; - } - } - - QImage diffImage(buffer, expectedImage.width(), expectedImage.height(), QImage::Format_RGB888); - QPixmap resultPixmap = QPixmap::fromImage(diffImage); - - delete[] buffer; - - return resultPixmap; -} - -void MismatchWindow::setTestResult(TestResult testResult) { - errorLabel->setText("Similarity: " + QString::number(testResult._error)); - - imagePath->setText("Path to test: " + testResult._pathname); - - expectedFilename->setText(testResult._expectedImageFilename); - resultFilename->setText(testResult._actualImageFilename); - - QPixmap expectedPixmap = QPixmap(testResult._pathname + testResult._expectedImageFilename); - QPixmap actualPixmap = QPixmap(testResult._pathname + testResult._actualImageFilename); - - _diffPixmap = computeDiffPixmap( - QImage(testResult._pathname + testResult._expectedImageFilename), - QImage(testResult._pathname + testResult._actualImageFilename) - ); - - expectedImage->setPixmap(expectedPixmap); - resultImage->setPixmap(actualPixmap); - diffImage->setPixmap(_diffPixmap); -} - -void MismatchWindow::on_passTestButton_clicked() { - _userResponse = USER_RESPONSE_PASS; - close(); -} - -void MismatchWindow::on_failTestButton_clicked() { - _userResponse = USE_RESPONSE_FAIL; - close(); -} - -void MismatchWindow::on_abortTestsButton_clicked() { - _userResponse = USER_RESPONSE_ABORT; - close(); -} - -QPixmap MismatchWindow::getComparisonImage() { - return _diffPixmap; -} diff --git a/tools/nitpick/src/ui/MismatchWindow.h b/tools/nitpick/src/ui/MismatchWindow.h deleted file mode 100644 index 30c29076b3..0000000000 --- a/tools/nitpick/src/ui/MismatchWindow.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// MismatchWindow.h -// -// Created by Nissim Hadar on 9 Nov 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#ifndef hifi_MismatchWindow_h -#define hifi_MismatchWindow_h - -#include "ui_MismatchWindow.h" - -#include "../common.h" - -class MismatchWindow : public QDialog, public Ui::MismatchWindow { - Q_OBJECT - -public: - MismatchWindow(QWidget *parent = Q_NULLPTR); - - void setTestResult(TestResult testResult); - - UserResponse getUserResponse() { return _userResponse; } - - QPixmap computeDiffPixmap(QImage expectedImage, QImage resultImage); - QPixmap getComparisonImage(); - -private slots: - void on_passTestButton_clicked(); - void on_failTestButton_clicked(); - void on_abortTestsButton_clicked(); - -private: - UserResponse _userResponse{ USER_RESPONSE_INVALID }; - - QPixmap _diffPixmap; -}; - - -#endif // hifi_MismatchWindow_h \ No newline at end of file diff --git a/tools/nitpick/src/ui/MismatchWindow.ui b/tools/nitpick/src/ui/MismatchWindow.ui deleted file mode 100644 index 8a174989d4..0000000000 --- a/tools/nitpick/src/ui/MismatchWindow.ui +++ /dev/null @@ -1,199 +0,0 @@ - - - MismatchWindow - - - Qt::ApplicationModal - - - - 0 - 0 - 1782 - 942 - - - - MismatchWindow - - - - - 10 - 25 - 800 - 450 - - - - expected image - - - - - - 900 - 25 - 800 - 450 - - - - result image - - - - - - 540 - 480 - 800 - 450 - - - - diff image - - - - - - 60 - 660 - 480 - 28 - - - - - 12 - - - - result image filename - - - - - - 60 - 630 - 480 - 28 - - - - - 12 - - - - expected image filename - - - - - - 20 - 600 - 1200 - 28 - - - - - 12 - - - - image path - - - - - - 30 - 790 - 75 - 23 - - - - Pass - - - - - - 120 - 790 - 75 - 23 - - - - Fail - - - - - - 210 - 790 - 121 - 23 - - - - Abort current test - - - - - - 30 - 850 - 500 - 28 - - - - - 12 - - - - similarity - - - - - - 30 - 5 - 151 - 16 - - - - Expected Image - - - - - - 930 - 5 - 151 - 16 - - - - Actual Image - - - - - - - diff --git a/tools/nitpick/src/ui/TestRailResultsSelectorWindow.cpp b/tools/nitpick/src/ui/TestRailResultsSelectorWindow.cpp deleted file mode 100644 index 505e04b33e..0000000000 --- a/tools/nitpick/src/ui/TestRailResultsSelectorWindow.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// -// TestRailResultsSelectorWindow.cpp -// -// Created by Nissim Hadar on 2 Aug 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#include "TestRailResultsSelectorWindow.h" - -#include - -#include - -TestRailResultsSelectorWindow::TestRailResultsSelectorWindow(QWidget *parent) { - setupUi(this); - - projectIDLineEdit->setValidator(new QIntValidator(1, 999, this)); -} - - -void TestRailResultsSelectorWindow::reset() { - urlLineEdit->setDisabled(false); - userLineEdit->setDisabled(false); - passwordLineEdit->setDisabled(false); - projectIDLineEdit->setDisabled(false); - suiteIDLineEdit->setDisabled(false); - - OKButton->setDisabled(true); - - runsLabel->setDisabled(true); - runsComboBox->setDisabled(true); -} - -void TestRailResultsSelectorWindow::on_acceptButton_clicked() { - urlLineEdit->setDisabled(true); - userLineEdit->setDisabled(true); - passwordLineEdit->setDisabled(true); - projectIDLineEdit->setDisabled(true); - suiteIDLineEdit->setDisabled(true); - - OKButton->setDisabled(false); - - runsLabel->setDisabled(false); - runsComboBox->setDisabled(false); - close(); -} - -void TestRailResultsSelectorWindow::on_OKButton_clicked() { - userCancelled = false; - close(); -} - -void TestRailResultsSelectorWindow::on_cancelButton_clicked() { - userCancelled = true; - close(); -} - -bool TestRailResultsSelectorWindow::getUserCancelled() { - return userCancelled; -} - -void TestRailResultsSelectorWindow::setURL(const QString& user) { - urlLineEdit->setText(user); -} - -QString TestRailResultsSelectorWindow::getURL() { - return urlLineEdit->text(); -} - -void TestRailResultsSelectorWindow::setUser(const QString& user) { - userLineEdit->setText(user); -} - -QString TestRailResultsSelectorWindow::getUser() { - return userLineEdit->text(); -} - -QString TestRailResultsSelectorWindow::getPassword() { - return passwordLineEdit->text(); -} - -void TestRailResultsSelectorWindow::setProjectID(const int project) { - projectIDLineEdit->setText(QString::number(project)); -} - -int TestRailResultsSelectorWindow::getProjectID() { - return projectIDLineEdit->text().toInt(); -} - -void TestRailResultsSelectorWindow::setSuiteID(const int project) { - suiteIDLineEdit->setText(QString::number(project)); -} - -int TestRailResultsSelectorWindow::getSuiteID() { - return suiteIDLineEdit->text().toInt(); -} - -void TestRailResultsSelectorWindow::updateRunsComboBoxData(QStringList data) { - runsComboBox->insertItems(0, data); -} - -int TestRailResultsSelectorWindow::getRunID() { - return runsComboBox->currentIndex(); -} \ No newline at end of file diff --git a/tools/nitpick/src/ui/TestRailResultsSelectorWindow.h b/tools/nitpick/src/ui/TestRailResultsSelectorWindow.h deleted file mode 100644 index 51059d6127..0000000000 --- a/tools/nitpick/src/ui/TestRailResultsSelectorWindow.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// TestRailResultsSelectorWindow.h -// -// Created by Nissim Hadar on 2 Aug 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#ifndef hifi_TestRailResultsSelectorWindow_h -#define hifi_TestRailResultsSelectorWindow_h - -#include "ui_TestRailResultsSelectorWindow.h" - -class TestRailResultsSelectorWindow : public QDialog, public Ui::TestRailResultsSelectorWindow { - Q_OBJECT - -public: - TestRailResultsSelectorWindow(QWidget* parent = Q_NULLPTR); - - void reset(); - - bool getUserCancelled(); - - void setURL(const QString& user); - QString getURL(); - - void setUser(const QString& user); - QString getUser(); - - QString getPassword(); - - void setProjectID(const int project); - int getProjectID(); - - void setSuiteID(const int project); - int getSuiteID(); - - bool userCancelled{ false }; - - void updateRunsComboBoxData(QStringList data); - int getRunID(); - -private slots: - void on_acceptButton_clicked(); - void on_OKButton_clicked(); - void on_cancelButton_clicked(); -}; - -#endif \ No newline at end of file diff --git a/tools/nitpick/src/ui/TestRailResultsSelectorWindow.ui b/tools/nitpick/src/ui/TestRailResultsSelectorWindow.ui deleted file mode 100644 index 983b95ee79..0000000000 --- a/tools/nitpick/src/ui/TestRailResultsSelectorWindow.ui +++ /dev/null @@ -1,280 +0,0 @@ - - - TestRailResultsSelectorWindow - - - - 0 - 0 - 533 - 474 - - - - TestRail Test Case Selector Window - - - - - 30 - 850 - 500 - 28 - - - - - 12 - - - - similarity - - - - - - 70 - 125 - 121 - 20 - - - - - 10 - - - - TestRail Password - - - - - - 70 - 25 - 121 - 20 - - - - - 10 - - - - TestRail URL - - - - - false - - - - 120 - 420 - 93 - 28 - - - - OK - - - - - - 280 - 420 - 93 - 28 - - - - Cancel - - - - - - 200 - 120 - 231 - 24 - - - - QLineEdit::Password - - - - - - 70 - 75 - 121 - 20 - - - - - 10 - - - - TestRail User - - - - - - 200 - 170 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 70 - 175 - 121 - 20 - - - - - 10 - - - - TestRail Project ID - - - - - - 200 - 270 - 231 - 28 - - - - Accept - - - - - false - - - - 160 - 350 - 271 - 22 - - - - - - true - - - - 80 - 350 - 71 - 20 - - - - - 10 - - - - TestRail Run - - - - - - 200 - 20 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 200 - 70 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 200 - 215 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 70 - 220 - 121 - 20 - - - - - 10 - - - - TestRail Suite ID - - - - - - urlLineEdit - userLineEdit - passwordLineEdit - projectIDLineEdit - suiteIDLineEdit - acceptButton - runsComboBox - OKButton - cancelButton - - - - diff --git a/tools/nitpick/src/ui/TestRailRunSelectorWindow.cpp b/tools/nitpick/src/ui/TestRailRunSelectorWindow.cpp deleted file mode 100644 index ac3419d46f..0000000000 --- a/tools/nitpick/src/ui/TestRailRunSelectorWindow.cpp +++ /dev/null @@ -1,101 +0,0 @@ -// -// TestRailRunSelectorWindow.cpp -// -// Created by Nissim Hadar on 31 Jul 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#include "TestRailRunSelectorWindow.h" - -#include - -#include - -TestRailRunSelectorWindow::TestRailRunSelectorWindow(QWidget *parent) { - setupUi(this); - - projectIDLineEdit->setValidator(new QIntValidator(1, 999, this)); -} - -void TestRailRunSelectorWindow::reset() { - urlLineEdit->setDisabled(false); - userLineEdit->setDisabled(false); - passwordLineEdit->setDisabled(false); - projectIDLineEdit->setDisabled(false); - suiteIDLineEdit->setDisabled(false); - - OKButton->setDisabled(true); - sectionsComboBox->setDisabled(true); -} - -void TestRailRunSelectorWindow::on_acceptButton_clicked() { - urlLineEdit->setDisabled(true); - userLineEdit->setDisabled(true); - passwordLineEdit->setDisabled(true); - projectIDLineEdit->setDisabled(true); - suiteIDLineEdit->setDisabled(true); - - OKButton->setDisabled(false); - sectionsComboBox->setDisabled(false); - close(); -} - -void TestRailRunSelectorWindow::on_OKButton_clicked() { - userCancelled = false; - close(); -} - -void TestRailRunSelectorWindow::on_cancelButton_clicked() { - userCancelled = true; - close(); -} - -bool TestRailRunSelectorWindow::getUserCancelled() { - return userCancelled; -} - -void TestRailRunSelectorWindow::setURL(const QString& user) { - urlLineEdit->setText(user); -} - -QString TestRailRunSelectorWindow::getURL() { - return urlLineEdit->text(); -} - -void TestRailRunSelectorWindow::setUser(const QString& user) { - userLineEdit->setText(user); -} - -QString TestRailRunSelectorWindow::getUser() { - return userLineEdit->text(); -} - -QString TestRailRunSelectorWindow::getPassword() { - return passwordLineEdit->text(); -} - -void TestRailRunSelectorWindow::setProjectID(const int project) { - projectIDLineEdit->setText(QString::number(project)); -} - -int TestRailRunSelectorWindow::getProjectID() { - return projectIDLineEdit->text().toInt(); -} - -void TestRailRunSelectorWindow::setSuiteID(const int project) { - suiteIDLineEdit->setText(QString::number(project)); -} - -int TestRailRunSelectorWindow::getSuiteID() { - return suiteIDLineEdit->text().toInt(); -} - -void TestRailRunSelectorWindow::updateSectionsComboBoxData(QStringList data) { - sectionsComboBox->insertItems(0, data); -} - -int TestRailRunSelectorWindow::getSectionID() { - return sectionsComboBox->currentIndex(); -} \ No newline at end of file diff --git a/tools/nitpick/src/ui/TestRailRunSelectorWindow.h b/tools/nitpick/src/ui/TestRailRunSelectorWindow.h deleted file mode 100644 index d6428bb476..0000000000 --- a/tools/nitpick/src/ui/TestRailRunSelectorWindow.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// TestRailRunSelectorWindow.h -// -// Created by Nissim Hadar on 31 Jul 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#ifndef hifi_TestRailRunSelectorWindow_h -#define hifi_TestRailRunSelectorWindow_h - -#include "ui_TestRailRunSelectorWindow.h" - -class TestRailRunSelectorWindow : public QDialog, public Ui::TestRailRunSelectorWindow { - Q_OBJECT - -public: - TestRailRunSelectorWindow(QWidget* parent = Q_NULLPTR); - - void reset(); - - bool getUserCancelled(); - - void setURL(const QString& user); - QString getURL(); - - void setUser(const QString& user); - QString getUser(); - - QString getPassword(); - - void setProjectID(const int project); - int getProjectID(); - - void setSuiteID(const int project); - int getSuiteID(); - - bool userCancelled{ false }; - - void updateSectionsComboBoxData(QStringList data); - int getSectionID(); - -private slots: - void on_acceptButton_clicked(); - void on_OKButton_clicked(); - void on_cancelButton_clicked(); -}; - -#endif \ No newline at end of file diff --git a/tools/nitpick/src/ui/TestRailRunSelectorWindow.ui b/tools/nitpick/src/ui/TestRailRunSelectorWindow.ui deleted file mode 100644 index ad39b5cc64..0000000000 --- a/tools/nitpick/src/ui/TestRailRunSelectorWindow.ui +++ /dev/null @@ -1,283 +0,0 @@ - - - TestRailRunSelectorWindow - - - Qt::ApplicationModal - - - - 0 - 0 - 489 - 474 - - - - TestRail Run Selector Window - - - - - 30 - 850 - 500 - 28 - - - - - 12 - - - - similarity - - - - - - 70 - 125 - 121 - 20 - - - - - 10 - - - - TestRail Password - - - - - - 70 - 25 - 121 - 20 - - - - - 10 - - - - TestRail URL - - - - - false - - - - 120 - 420 - 93 - 28 - - - - OK - - - - - - 280 - 420 - 93 - 28 - - - - Cancel - - - - - - 200 - 120 - 231 - 24 - - - - QLineEdit::Password - - - - - - 70 - 75 - 121 - 20 - - - - - 10 - - - - TestRail User - - - - - - 200 - 170 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 70 - 175 - 121 - 20 - - - - - 10 - - - - TestRail Project ID - - - - - - 200 - 270 - 231 - 28 - - - - Accept - - - - - false - - - - 140 - 350 - 311 - 22 - - - - - - true - - - - 20 - 350 - 121 - 20 - - - - - 10 - - - - TestRail Sections - - - - - - 200 - 20 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 200 - 70 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 200 - 215 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 70 - 220 - 121 - 20 - - - - - 10 - - - - TestRail Suite ID - - - - - - urlLineEdit - userLineEdit - passwordLineEdit - projectIDLineEdit - suiteIDLineEdit - acceptButton - sectionsComboBox - OKButton - cancelButton - - - - diff --git a/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.cpp b/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.cpp deleted file mode 100644 index 638fe71819..0000000000 --- a/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.cpp +++ /dev/null @@ -1,106 +0,0 @@ -// -// TestRailTestCasesSelectorWindow.cpp -// -// Created by Nissim Hadar on 26 Jul 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#include "TestRailTestCasesSelectorWindow.h" - -#include - -#include - -TestRailTestCasesSelectorWindow::TestRailTestCasesSelectorWindow(QWidget *parent) { - setupUi(this); - - projectIDLineEdit->setValidator(new QIntValidator(1, 999, this)); -} - - -void TestRailTestCasesSelectorWindow::reset() { - urlLineEdit->setDisabled(false); - userLineEdit->setDisabled(false); - passwordLineEdit->setDisabled(false); - projectIDLineEdit->setDisabled(false); - suiteIDLineEdit->setDisabled(false); - - OKButton->setDisabled(true); - - releasesLabel->setDisabled(true); - releasesComboBox->setDisabled(true); -} - -void TestRailTestCasesSelectorWindow::on_acceptButton_clicked() { - urlLineEdit->setDisabled(true); - userLineEdit->setDisabled(true); - passwordLineEdit->setDisabled(true); - projectIDLineEdit->setDisabled(true); - suiteIDLineEdit->setDisabled(true); - - OKButton->setDisabled(false); - - releasesLabel->setDisabled(false); - releasesComboBox->setDisabled(false); - close(); -} - -void TestRailTestCasesSelectorWindow::on_OKButton_clicked() { - userCancelled = false; - close(); -} - -void TestRailTestCasesSelectorWindow::on_cancelButton_clicked() { - userCancelled = true; - close(); -} - -bool TestRailTestCasesSelectorWindow::getUserCancelled() { - return userCancelled; -} - -void TestRailTestCasesSelectorWindow::setURL(const QString& user) { - urlLineEdit->setText(user); -} - -QString TestRailTestCasesSelectorWindow::getURL() { - return urlLineEdit->text(); -} - -void TestRailTestCasesSelectorWindow::setUser(const QString& user) { - userLineEdit->setText(user); -} - -QString TestRailTestCasesSelectorWindow::getUser() { - return userLineEdit->text(); -} - -QString TestRailTestCasesSelectorWindow::getPassword() { - return passwordLineEdit->text(); -} - -void TestRailTestCasesSelectorWindow::setProjectID(const int project) { - projectIDLineEdit->setText(QString::number(project)); -} - -int TestRailTestCasesSelectorWindow::getProjectID() { - return projectIDLineEdit->text().toInt(); -} - -void TestRailTestCasesSelectorWindow::setSuiteID(const int project) { - suiteIDLineEdit->setText(QString::number(project)); -} - -int TestRailTestCasesSelectorWindow::getSuiteID() { - return suiteIDLineEdit->text().toInt(); -} - -void TestRailTestCasesSelectorWindow::updateReleasesComboBoxData(QStringList data) { - releasesComboBox->insertItems(0, data); -} - -int TestRailTestCasesSelectorWindow::getReleaseID() { - return releasesComboBox->currentIndex(); -} \ No newline at end of file diff --git a/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.h b/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.h deleted file mode 100644 index 9153b003fa..0000000000 --- a/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// TestRailTestCasesSelectorWindow.h -// -// Created by Nissim Hadar on 26 Jul 2017. -// Copyright 2013 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// -#ifndef hifi_TestRailTestCasesSelectorWindow_h -#define hifi_TestRailTestCasesSelectorWindow_h - -#include "ui_TestRailTestCasesSelectorWindow.h" - -class TestRailTestCasesSelectorWindow : public QDialog, public Ui::TestRailTestCasesSelectorWindow { - Q_OBJECT - -public: - TestRailTestCasesSelectorWindow(QWidget* parent = Q_NULLPTR); - - void reset(); - - bool getUserCancelled(); - - void setURL(const QString& user); - QString getURL(); - - void setUser(const QString& user); - QString getUser(); - - QString getPassword(); - - void setProjectID(const int project); - int getProjectID(); - - void setSuiteID(const int project); - int getSuiteID(); - - bool userCancelled{ false }; - - void updateReleasesComboBoxData(QStringList data); - int getReleaseID(); - -private slots: - void on_acceptButton_clicked(); - void on_OKButton_clicked(); - void on_cancelButton_clicked(); -}; - -#endif \ No newline at end of file diff --git a/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.ui b/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.ui deleted file mode 100644 index 41ff2943d5..0000000000 --- a/tools/nitpick/src/ui/TestRailTestCasesSelectorWindow.ui +++ /dev/null @@ -1,280 +0,0 @@ - - - TestRailTestCasesSelectorWindow - - - - 0 - 0 - 489 - 474 - - - - TestRail Test Case Selector Window - - - - - 30 - 850 - 500 - 28 - - - - - 12 - - - - similarity - - - - - - 70 - 125 - 121 - 20 - - - - - 10 - - - - TestRail Password - - - - - - 70 - 25 - 121 - 20 - - - - - 10 - - - - TestRail URL - - - - - false - - - - 120 - 420 - 93 - 28 - - - - OK - - - - - - 280 - 420 - 93 - 28 - - - - Cancel - - - - - - 200 - 120 - 231 - 24 - - - - QLineEdit::Password - - - - - - 70 - 75 - 121 - 20 - - - - - 10 - - - - TestRail User - - - - - - 200 - 170 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 70 - 175 - 121 - 20 - - - - - 10 - - - - TestRail Project ID - - - - - - 200 - 270 - 231 - 28 - - - - Accept - - - - - false - - - - 270 - 350 - 161 - 22 - - - - - - true - - - - 80 - 350 - 181 - 20 - - - - - 10 - - - - TestRail Added for Release - - - - - - 200 - 20 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 200 - 70 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 200 - 215 - 231 - 24 - - - - QLineEdit::Normal - - - - - - 70 - 220 - 121 - 20 - - - - - 10 - - - - TestRail Suite ID - - - - - - urlLineEdit - userLineEdit - passwordLineEdit - projectIDLineEdit - suiteIDLineEdit - acceptButton - releasesComboBox - OKButton - cancelButton - - - -