mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 22:40:27 +02:00
WIP - working on Help.
This commit is contained in:
parent
b8c7971ebe
commit
76e0e8d3fa
4 changed files with 142 additions and 2 deletions
|
@ -10,6 +10,8 @@
|
||||||
//
|
//
|
||||||
#include "AutoTester.h"
|
#include "AutoTester.h"
|
||||||
|
|
||||||
|
#include "HelpWindow.h"
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
@ -186,8 +188,8 @@ void AutoTester::about() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoTester::content() {
|
void AutoTester::content() {
|
||||||
// BrowserWindow browserWindow;
|
HelpWindow helpWindow;
|
||||||
// browserWindow.show();
|
helpWindow.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoTester::setUserText(const QString& user) {
|
void AutoTester::setUserText(const QString& user) {
|
||||||
|
|
14
tools/auto-tester/src/ui/HelpWindow.cpp
Normal file
14
tools/auto-tester/src/ui/HelpWindow.cpp
Normal file
|
@ -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);
|
||||||
|
}
|
22
tools/auto-tester/src/ui/HelpWindow.h
Normal file
22
tools/auto-tester/src/ui/HelpWindow.h
Normal file
|
@ -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
|
102
tools/auto-tester/src/ui/HelpWindow.ui
Normal file
102
tools/auto-tester/src/ui/HelpWindow.ui
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
<?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>800</width>
|
||||||
|
<height>600</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>MarkDown Editor</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QStatusBar" name="statusbar">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>3</width>
|
||||||
|
<height>18</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWebEngineView" name="preview_2" native="true">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>15</x>
|
||||||
|
<y>11</y>
|
||||||
|
<width>771</width>
|
||||||
|
<height>581</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<action name="actionOpen">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Open...</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Open document</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+O</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionSave">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Save</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Save current document</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+S</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionExit">
|
||||||
|
<property name="text">
|
||||||
|
<string>E&xit</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Exit editor</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+Q</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionSaveAs">
|
||||||
|
<property name="text">
|
||||||
|
<string>Save &As...</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Save document under different name</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionNew">
|
||||||
|
<property name="text">
|
||||||
|
<string>&New</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Create new document</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+N</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QWebEngineView</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>qwebengineview.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
Reference in a new issue