Skip to content

Commit

Permalink
Move text/ to example/ and create editor.pri
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Jul 6, 2017
1 parent 156f099 commit 9d0937d
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -6,7 +6,7 @@ FakeVim is library to emulate Vim in QTextEdit, QPlainTextEdit and possibly othe
Build
-----

To build the library and simple example editor (in `test` directory), run following commands.
To build the library and simple example editor (in `example` directory), run following commands.

qmake
make
Expand Down Expand Up @@ -136,7 +136,7 @@ Implementation
--------------

There are appropriate signals emitted for command which has to be processed by the underlying editor widget (folds, windows, tabs, command line, messages etc.).
See example in `test/` directory or implementation of FakeVim plugin in Qt Creator IDE.
See example in `example/` directory or implementation of FakeVim plugin in Qt Creator IDE.

Python Bindings
---------------
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions example/editor.pri
@@ -0,0 +1,7 @@
include($$PWD/../fakevim/fakevim.pri)

INCLUDEPATH += $$PWD

SOURCES += $$PWD/editor.cpp
CONFIG += qt
QT += widgets
5 changes: 5 additions & 0 deletions example/example.pro
@@ -0,0 +1,5 @@
include(editor.pri)

SOURCES += main.cpp
CONFIG += qt
QT += widgets
File renamed without changes.
2 changes: 1 addition & 1 deletion fakevim.pro
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
SUBDIRS += fakevim \
test
example
6 changes: 0 additions & 6 deletions test/test.pro

This file was deleted.

2 changes: 1 addition & 1 deletion tests/fakevim_test.cpp
Expand Up @@ -31,7 +31,7 @@
#include "fakevimplugin.h"
#include "fakevimhandler.h"

#include "../test/editor.h"
#include "../example/editor.h"

#include <QMainWindow>
#include <QtTest>
Expand Down
8 changes: 3 additions & 5 deletions tests/tests.pro
@@ -1,10 +1,8 @@
include(../fakevim/fakevim.pri)

SOURCES += \
fakevim_test.cpp \
../test/editor.cpp
include(../example/editor.pri)

SOURCES += fakevim_test.cpp
HEADERS += fakevimplugin.h

CONFIG += qt
QT += widgets
QT += testlib
2 changes: 1 addition & 1 deletion utils/generate_fakevim_test.sh
@@ -1,6 +1,6 @@
#!/bin/bash
VIM=vim
FAKEVIM=${FAKEVIM:-test/test}
FAKEVIM=${FAKEVIM:-example/example}
diff=meld
cmdfile=fakevim_test_cmd.log
INDENT=${INDENT:-' '}
Expand Down

0 comments on commit 9d0937d

Please sign in to comment.