History

Initial script editor widget / icons made by MaximillianMerlin ty

Thijs Wenker committed 12 years ago

Commit af475101 parent e3eddad14 files · +1537 −0Browse files

Showing the changes to interface/src/ui/ScriptEditorWidget.cpp (1 of 14 files). Show all

Unified · Split

interface/src/ui/ScriptEditorWidget.cpp+39−0
@@ -0,0 +1,39 @@
1+//
2+// ScriptEditorWidget.cpp
3+// interface/src/ui
4+//
5+// Created by Thijs Wenker on 4/14/14.
6+// Copyright 2014 High Fidelity, Inc.
7+//
8+// Distributed under the Apache License, Version 2.0.
9+// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10+//
11+
12+#include <QGridLayout>
13+#include <QFrame>
14+#include <QLayoutItem>
15+#include <QMainWindow>
16+#include <QPalette>
17+#include <QScrollBar>
18+#include <QSizePolicy>
19+#include <QTimer>
20+#include <QWidget>
21+
22+#include "Application.h"
23+#include "ui_scriptEditorWidget.h"
24+
25+#include "ScriptEditorWidget.h"
26+
27+ScriptEditorWidget::ScriptEditorWidget() :
28+ ui(new Ui::ScriptEditorWidget)
29+{
30+ ui->setupUi(this);
31+
32+ // remove the title bar (see the Qt docs on setTitleBarWidget)
33+ setTitleBarWidget(new QWidget());
34+ //QSyntaxHighlighter* highlighter = new QSyntaxHighlighter();
35+}
36+
37+ScriptEditorWidget::~ScriptEditorWidget() {
38+ delete ui;
39+}