mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Implemented online help.
This commit is contained in:
parent
a9f59fae71
commit
577b3cbc90
6 changed files with 6 additions and 92 deletions
|
@ -1,14 +0,0 @@
|
|||
//
|
||||
// HelpWindow.cpp
|
||||
//
|
||||
// Created by Nissim Hadar on 8 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);
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
//
|
||||
// HelpWindow.h
|
||||
//
|
||||
// Created by Nissim Hadar on 8 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
|
|
@ -1,46 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>HelpWindow</class>
|
||||
<widget class="QDialog" name="HelpWindow">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::ApplicationModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>696</width>
|
||||
<height>546</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Nitpick Help</string>
|
||||
</property>
|
||||
<widget class="QTextEdit" name="textEdit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>50</x>
|
||||
<y>50</y>
|
||||
<width>581</width>
|
||||
<height>381</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>300</x>
|
||||
<y>460</y>
|
||||
<width>93</width>
|
||||
<height>28</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Close</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
|
@ -15,6 +15,8 @@
|
|||
#include <shellapi.h>
|
||||
#endif
|
||||
|
||||
#include <QDesktopServices>
|
||||
|
||||
Nitpick::Nitpick(QWidget* parent) : QMainWindow(parent) {
|
||||
_ui.setupUi(this);
|
||||
|
||||
|
@ -36,10 +38,7 @@ Nitpick::Nitpick(QWidget* parent) : QMainWindow(parent) {
|
|||
_ui.statusLabel->setText("");
|
||||
_ui.plainTextEdit->setReadOnly(true);
|
||||
|
||||
setWindowTitle("Nitpick - v1.2");
|
||||
|
||||
// Coming soon to a nitpick near you...
|
||||
//// _helpWindow.textBrowser->setText()
|
||||
setWindowTitle("Nitpick - v1.3");
|
||||
}
|
||||
|
||||
Nitpick::~Nitpick() {
|
||||
|
@ -287,7 +286,7 @@ void Nitpick::about() {
|
|||
}
|
||||
|
||||
void Nitpick::content() {
|
||||
_helpWindow.show();
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/highfidelity/hifi/blob/master/tools/nitpick/README.md"));
|
||||
}
|
||||
|
||||
void Nitpick::setUserText(const QString& user) {
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include "../Downloader.h"
|
||||
#include "../Test.h"
|
||||
|
||||
#include "HelpWindow.h"
|
||||
#include "../TestRunner.h"
|
||||
#include "../AWSInterface.h"
|
||||
|
||||
|
@ -116,8 +115,6 @@ private:
|
|||
|
||||
bool _isRunningFromCommandline{ false };
|
||||
|
||||
HelpWindow _helpWindow;
|
||||
|
||||
void* _caller;
|
||||
};
|
||||
|
||||
|
|
|
@ -803,7 +803,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>720</width>
|
||||
<height>22</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
@ -843,7 +843,7 @@
|
|||
</action>
|
||||
<action name="actionContent">
|
||||
<property name="text">
|
||||
<string>Content</string>
|
||||
<string>Online readme</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in a new issue