From 2a0b44e768526c349ab799b36646cbd5b20bf3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 2 Feb 2017 17:54:15 +0000 Subject: [PATCH] added forgotte files --- src/scriptfile.hxx | 39 +++++++++++++++++ src/scriptfile.ui | 102 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 src/scriptfile.hxx create mode 100644 src/scriptfile.ui diff --git a/src/scriptfile.hxx b/src/scriptfile.hxx new file mode 100644 index 0000000..9a3a231 --- /dev/null +++ b/src/scriptfile.hxx @@ -0,0 +1,39 @@ +#ifndef __SCRIPTFILE__HXX +#define __SCRIPTFILE__HXX + +#include +#include + +class ScriptFile: public QDockWidget, protected Ui::ScriptFile { + Q_OBJECT; + Q_SIGNALS: + void include(QString); + void close(ScriptFile*); + public: + ScriptFile(QWidget* p=0): QDockWidget(p) { + setupUi(this); + assert(connect(_editor, SIGNAL(include(QString)), SIGNAL(include(QString)))); + _searchBar->hide(); + _replaceBar->hide(); + _pageBar->hide(); + } + CodeEditor* editor() { + return _editor; + } + QString name() { + return _name; + } + void name(QString name) { + _name = name; + setWindowTitle(name+"[*]"); + setWindowModified(false); + } + protected: + void closeEvent (QCloseEvent *event) { + close(this); + } + private: + QString _name; +}; + +#endif diff --git a/src/scriptfile.ui b/src/scriptfile.ui new file mode 100644 index 0000000..f40d278 --- /dev/null +++ b/src/scriptfile.ui @@ -0,0 +1,102 @@ + + + ScriptFile + + + + 0 + 0 + 628 + 378 + + + + DockW&idget + + + + + + + + + + + + + + + + next + + + + + + + previous + + + + + + + all + + + + + + + + + + + + + + + + replace + + + + + + + RegularExpression + + + + + + + + + + + + + + + + page + + + + + + + + + + + + CodeEditor + QPlainTextEdit +
editor.hxx
+
+
+ + +