From 76e0e8d3fa5ba083cfbb90eccfaf3424211c9e67 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Tue, 7 Aug 2018 17:13:34 -0700 Subject: [PATCH] WIP - working on Help. --- tools/auto-tester/src/ui/AutoTester.cpp | 6 +- tools/auto-tester/src/ui/HelpWindow.cpp | 14 ++++ tools/auto-tester/src/ui/HelpWindow.h | 22 +++++ tools/auto-tester/src/ui/HelpWindow.ui | 102 ++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 2 deletions(-) create mode 100644 tools/auto-tester/src/ui/HelpWindow.cpp create mode 100644 tools/auto-tester/src/ui/HelpWindow.h create mode 100644 tools/auto-tester/src/ui/HelpWindow.ui diff --git a/tools/auto-tester/src/ui/AutoTester.cpp b/tools/auto-tester/src/ui/AutoTester.cpp index 60fb28583e..36ba36e55e 100644 --- a/tools/auto-tester/src/ui/AutoTester.cpp +++ b/tools/auto-tester/src/ui/AutoTester.cpp @@ -10,6 +10,8 @@ // #include "AutoTester.h" +#include "HelpWindow.h" + #ifdef Q_OS_WIN #include #include @@ -186,8 +188,8 @@ void AutoTester::about() { } void AutoTester::content() { - // BrowserWindow browserWindow; - // browserWindow.show(); + HelpWindow helpWindow; + helpWindow.show(); } void AutoTester::setUserText(const QString& user) { diff --git a/tools/auto-tester/src/ui/HelpWindow.cpp b/tools/auto-tester/src/ui/HelpWindow.cpp new file mode 100644 index 0000000000..00dcf5de01 --- /dev/null +++ b/tools/auto-tester/src/ui/HelpWindow.cpp @@ -0,0 +1,14 @@ +// +// HelpWindow.cpp +// +// Created by Nissim Hadar on 7 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 "HelpWindow.h" + +HelpWindow::HelpWindow(QWidget *parent) { + setupUi(this); +} diff --git a/tools/auto-tester/src/ui/HelpWindow.h b/tools/auto-tester/src/ui/HelpWindow.h new file mode 100644 index 0000000000..5cda62f116 --- /dev/null +++ b/tools/auto-tester/src/ui/HelpWindow.h @@ -0,0 +1,22 @@ +// +// BusyWindow.h +// +// Created by Nissim Hadar on 7 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_HelpWindow_h +#define hifi_HelpWindow_h + +#include "ui_HelpWindow.h" + +class HelpWindow : public QDialog, public Ui::HelpWindow { + Q_OBJECT + +public: + HelpWindow(QWidget* parent = Q_NULLPTR); +}; + +#endif \ No newline at end of file diff --git a/tools/auto-tester/src/ui/HelpWindow.ui b/tools/auto-tester/src/ui/HelpWindow.ui new file mode 100644 index 0000000000..203017b508 --- /dev/null +++ b/tools/auto-tester/src/ui/HelpWindow.ui @@ -0,0 +1,102 @@ + + + HelpWindow + + + Qt::ApplicationModal + + + + 0 + 0 + 800 + 600 + + + + MarkDown Editor + + + + + 0 + 0 + 3 + 18 + + + + + + + 15 + 11 + 771 + 581 + + + + + + &Open... + + + Open document + + + Ctrl+O + + + + + &Save + + + Save current document + + + Ctrl+S + + + + + E&xit + + + Exit editor + + + Ctrl+Q + + + + + Save &As... + + + Save document under different name + + + + + &New + + + Create new document + + + Ctrl+N + + + + + + QWebEngineView + QWidget +
qwebengineview.h
+ 1 +
+
+ + +