initial version master
authorAikeremu Tiemuer <taiken@taiken-10307964.research.nokia.com>
Tue, 18 Jan 2011 13:41:53 +0000 (15:41 +0200)
committerAikeremu Tiemuer <taiken@taiken-10307964.research.nokia.com>
Tue, 18 Jan 2011 13:41:53 +0000 (15:41 +0200)
29 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/optify [new file with mode: 0644]
debian/rules [new file with mode: 0755]
images/bkspc.png [new file with mode: 0644]
images/copy.png [new file with mode: 0644]
images/cut.png [new file with mode: 0644]
images/enter.png [new file with mode: 0644]
images/new.png [new file with mode: 0644]
images/open.png [new file with mode: 0644]
images/paste.png [new file with mode: 0644]
images/save.png [new file with mode: 0644]
images/shift.png [new file with mode: 0644]
images/space.png [new file with mode: 0644]
kumushedit.cpp [new file with mode: 0644]
kumushedit.h [new file with mode: 0644]
kumushedit.pro [new file with mode: 0644]
kumushedit.pro.user [new file with mode: 0644]
kumushedit.spec [new file with mode: 0644]
maemofiles/kumushedit.desktop [new file with mode: 0644]
maemofiles/kumushedit_icon.png [new file with mode: 0644]
main.cpp [new file with mode: 0644]
resources.qrc [new file with mode: 0644]
ttf/UyghurEditRiwaj.ttf [new file with mode: 0644]
vkb.cpp [new file with mode: 0644]
vkb.h [new file with mode: 0644]
welcome [deleted file]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..b82fa27
--- /dev/null
@@ -0,0 +1,5 @@
+kumushedit (1.0.0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Ekrem Tomur <ekrem.tomur@gmail.com>  Mon, 17 Jan 2011 14:21:26 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..87d2da1
--- /dev/null
@@ -0,0 +1,150 @@
+Source: kumushedit
+Section: usr/office
+Priority: extra
+Maintainer: Ekrem Tomur <ekrem.tomur@gmail.com>
+Build-Depends: debhelper (>= 5), libqt4-dev
+Standards-Version: 3.7.3
+Homepage: https://garage.maemo.org/projects/kumushedit
+
+Package: kumushedit
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Editor Application with special Uyghur VKB
+XB-Maemo-Icon-26:
+ iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c
+ 6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0
+ SU1FB9sBEgkYFgpD5m8AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJ
+ TVBXgQ4XAAAXHklEQVRo3k2ax48l2ZXef/feMM+btJWuKst2ua6q7i42yWY3
+ SVEYDmQIYaQZLiRgtNBKC+21mEVttNAfIUAjQAIELSSAAAENOUM0RbJJqtm2
+ bGelfWmft/HiRVyjRbzmCMgEMpEvAueec77vnPy+K/7qyb93Bzu7+LmQ7evX
+ eP+D77G3v8Np45j1jU0aBwd8+/3v8uzplzz+9re5dfs2xjjCIMA6h8MhnMSi
+ wSnA4ZzDIQCHxTH/AgcWi3ACiyNNUpIkwVrLZDTg7PwMz/OJZwmvXnxJZWGB
+ 69dvkQvy9Psd8uUyK0ur5HJ5cIZWu4XcP9hnNOozaLdYXl2hP+zy8ulTJuM+
+ 7c4FN+/fo3FwyP0HD2g2W5w2GuzvviaKJmAdwoh5kBKcxTkBToBzOGfBSoQV
+ OCzWOYQDYS1Yi5TZIdM05dNPvqBeXyJXLHL77j084Fvf+oBBv8fh0R7WGKLR
+ BGcNaRJzeLCHQKJWlqpPKrVFLq2v0u5csLe7Q+fighu372OFwKaGlbVVDg4O
+ uH3nDoV8idF4SKFQJAwLCGmxNssuIsu+ROJw2UGy3OMcODuvy7wczsLezg7H
+ x0d0Wi2mccTrnVd4vs/vfvkLltbW2Fzb5PL2VZIkxQs8yqUKzfYFl7e2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hjSU2abQkic/mdACEFWIFnUo2xGqUlwpMgFTJbhPCU
+ yCY02b2HVCfZqLeOMB/iedl/YVan817XWK1BZQufNhosGOY3V4TAzA0Rl6Yg
+ Mq/s62lsjcFa/n7wpQmzJGEWp4SFPIGvsvsRng9kFf1/3n/spwselaoAAAAA
+ SUVORK5CYII=
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..0615201
--- /dev/null
@@ -0,0 +1,37 @@
+This package was debianized by Ekrem Tomur <ekrem.tomur@gmail.com> on
+Mon, 17 Jan 2011 14:21:26 +0200.
+
+
+Upstream Author(s):
+
+    Ekrem Tomur <ekrem.tomur@gmail.com>
+
+Copyright:
+
+    Copyright (C) 2011 Ekrem Tomur
+
+License:
+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2011, Aikeremu Tiemuer <taiken@unknown> and
+is licensed under the GPL, see above.
+
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/debian/optify b/debian/optify
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..1667c5e
--- /dev/null
@@ -0,0 +1,54 @@
+#!/usr/bin/make -f
+APPNAME := kumushedit
+builddir:
+       mkdir -p builddir
+builddir/Makefile: builddir
+       cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
+build: build-stamp
+build-stamp: builddir/Makefile
+       dh_testdir
+       # Add here commands to compile the package.
+       cd builddir && $(MAKE)
+       touch $@
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+       # Add here commands to clean up after the build process.
+       rm -rf builddir
+       dh_clean
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+       # Add here commands to install the package into debian/your_appname
+       cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installdocs
+       dh_installexamples
+       dh_installman
+       dh_link
+#      dh_strip --dbg-package=appname-dbg
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/images/bkspc.png b/images/bkspc.png
new file mode 100644 (file)
index 0000000..6e67c50
Binary files /dev/null and b/images/bkspc.png differ
diff --git a/images/copy.png b/images/copy.png
new file mode 100644 (file)
index 0000000..2aeb282
Binary files /dev/null and b/images/copy.png differ
diff --git a/images/cut.png b/images/cut.png
new file mode 100644 (file)
index 0000000..54638e9
Binary files /dev/null and b/images/cut.png differ
diff --git a/images/enter.png b/images/enter.png
new file mode 100644 (file)
index 0000000..094763d
Binary files /dev/null and b/images/enter.png differ
diff --git a/images/new.png b/images/new.png
new file mode 100644 (file)
index 0000000..12131b0
Binary files /dev/null and b/images/new.png differ
diff --git a/images/open.png b/images/open.png
new file mode 100644 (file)
index 0000000..45fa288
Binary files /dev/null and b/images/open.png differ
diff --git a/images/paste.png b/images/paste.png
new file mode 100644 (file)
index 0000000..c14425c
Binary files /dev/null and b/images/paste.png differ
diff --git a/images/save.png b/images/save.png
new file mode 100644 (file)
index 0000000..daba865
Binary files /dev/null and b/images/save.png differ
diff --git a/images/shift.png b/images/shift.png
new file mode 100644 (file)
index 0000000..210093b
Binary files /dev/null and b/images/shift.png differ
diff --git a/images/space.png b/images/space.png
new file mode 100644 (file)
index 0000000..72bc2d4
Binary files /dev/null and b/images/space.png differ
diff --git a/kumushedit.cpp b/kumushedit.cpp
new file mode 100644 (file)
index 0000000..b1ad91e
--- /dev/null
@@ -0,0 +1,134 @@
+#include <QVBoxLayout>
+#include <QTextEdit>
+#include <QTextCursor>
+#include <QTextCharFormat>
+#include <QFileDialog>
+#include <QTextStream>
+#include <QClipboard>
+#include <QDebug>
+#include <QApplication>
+
+#include "kumushedit.h"
+
+KumushEdit::KumushEdit(QWidget *parent) :
+    QWidget(parent)
+{
+    QVBoxLayout *layout = new QVBoxLayout;
+    createTextEdit();
+    layout->addWidget(mTextEdit);
+    createVKB();
+    layout->addWidget(mVKB);
+    layout->setSizeConstraint(QLayout::SetMaximumSize);
+    layout->setSpacing(0);
+    this->setLayout(layout);
+    connect(mVKB, SIGNAL(VKBButtonClicked(QString)), this, SLOT(VKBButtonClicked(QString)));
+    connect(mVKB, SIGNAL(openButtonClicked()), this, SLOT(openButtonClicked()));
+    connect(mVKB, SIGNAL(saveButtonClicked()), this, SLOT(saveButtonClicked()));
+    connect(mVKB, SIGNAL(copyButtonClicked()), this, SLOT(copyButtonClicked()));
+    connect(mVKB, SIGNAL(pasteButtonClicked()), this, SLOT(pasteButtonClicked()));
+    connect(mVKB, SIGNAL(fwButtonClicked()), this, SLOT(fwButtonClicked()));
+    connect(mVKB, SIGNAL(bwButtonClicked()), this, SLOT(bwButtonClicked()));
+    connect(mVKB, SIGNAL(bspaceButtonClicked()), this, SLOT(bspaceButtonClicked()));
+}
+
+KumushEdit::~KumushEdit()
+{
+}
+
+void KumushEdit::createTextEdit()
+{
+    mTextEdit = new QTextEdit;
+}
+
+void KumushEdit::createVKB()
+{
+    mVKB = new VKB;
+}
+
+void KumushEdit::VKBButtonClicked(QString value)
+{
+    QTextCursor cursor = mTextEdit->textCursor();
+    QTextCharFormat textFormat = cursor.charFormat();
+    textFormat.setFontFamily("UyghurEdit Riwaj");
+    cursor.insertText(value, textFormat);
+    mTextEdit->setFocus();
+    mTextEdit->ensureCursorVisible();
+}
+
+void KumushEdit::openButtonClicked()
+{
+    fileName = QFileDialog::getOpenFileName(this, "Hojjetni Tallang", NULL, "Tekist Hojjetliri (*.txt)");
+    QFile file(fileName, this);
+    if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
+        return;
+    mTextEdit->clear();
+    QTextCursor cursor = mTextEdit->textCursor();
+    QTextCharFormat textFormat = cursor.charFormat();
+    textFormat.setFontFamily("UyghurEdit Riwaj");
+    QTextStream in(&file);
+    while (!in.atEnd()) {
+        QString line = in.readLine() + "\n";
+        cursor.insertText(line, textFormat);
+    }
+    file.close();
+    mTextEdit->setFocus();
+}
+
+void KumushEdit::saveButtonClicked()
+{
+    fileName = QFileDialog::getSaveFileName(this, "Hojjetni Saqlang", fileName, "Tekist Hojjetliri (*.txt)");
+    QFile file(fileName, this);
+    if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
+        return;
+    QTextStream out(&file);
+    qDebug()<<mTextEdit->toPlainText();
+    out<<mTextEdit->toPlainText();
+    file.close();
+    mTextEdit->setFocus();
+}
+
+void KumushEdit::copyButtonClicked()
+{
+    QClipboard *clipboard = QApplication::clipboard();
+    qDebug()<<mTextEdit->toPlainText();
+    clipboard->setText(mTextEdit->toPlainText());
+    qDebug()<<clipboard->text();
+    mTextEdit->setFocus();
+}
+
+void KumushEdit::pasteButtonClicked()
+{
+    QClipboard *clipboard = QApplication::clipboard();
+    QString text = clipboard->text();
+    QTextCursor cursor = mTextEdit->textCursor();
+    QTextCharFormat textFormat = cursor.charFormat();
+    textFormat.setFontFamily("UyghurEdit Riwaj");
+    cursor.insertText(text, textFormat);
+    mTextEdit->setFocus();
+    mTextEdit->ensureCursorVisible();
+}
+
+void KumushEdit::fwButtonClicked()
+{
+    QTextCursor cursor = mTextEdit->textCursor();
+    cursor.setPosition(cursor.position()+1);
+    mTextEdit->setTextCursor(cursor);
+    mTextEdit->setFocus();
+    mTextEdit->ensureCursorVisible();
+}
+
+void KumushEdit::bwButtonClicked()
+{
+    QTextCursor cursor = mTextEdit->textCursor();
+    cursor.setPosition(cursor.position()-1);
+    mTextEdit->setTextCursor(cursor);
+    mTextEdit->setFocus();
+    mTextEdit->ensureCursorVisible();
+}
+
+void KumushEdit::bspaceButtonClicked()
+{
+    mTextEdit->textCursor().deletePreviousChar();
+    mTextEdit->setFocus();
+    mTextEdit->ensureCursorVisible();
+}
diff --git a/kumushedit.h b/kumushedit.h
new file mode 100644 (file)
index 0000000..5e0531a
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef KUMUSHEDIT_H
+#define KUMUSHEDIT_H
+
+#include <QWidget>
+
+#include "vkb.h"
+
+QT_FORWARD_DECLARE_CLASS(QTextEdit)
+
+class KumushEdit : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit KumushEdit(QWidget *parent = 0);
+    ~KumushEdit();
+public slots:
+    void VKBButtonClicked(QString value);
+    void openButtonClicked();
+    void saveButtonClicked();
+    void copyButtonClicked();
+    void pasteButtonClicked();
+    void fwButtonClicked();
+    void bwButtonClicked();
+    void bspaceButtonClicked();
+
+private:
+    void createTextEdit();
+    void createVKB();
+
+private:
+    QTextEdit *mTextEdit;
+    QString fileName;
+    VKB *mVKB;
+};
+
+#endif // KUMUSHEDIT_H
diff --git a/kumushedit.pro b/kumushedit.pro
new file mode 100644 (file)
index 0000000..01f8a70
--- /dev/null
@@ -0,0 +1,37 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2011-01-05T11:16:15
+#
+#-------------------------------------------------
+
+QT       += core gui
+
+TARGET = kumushedit
+TEMPLATE = app
+target.path=/usr/local/bin
+INSTALLS=target
+
+
+SOURCES += main.cpp\
+        kumushedit.cpp \
+    vkb.cpp
+
+HEADERS  += kumushedit.h \
+    vkb.h
+
+FORMS    +=
+
+OTHER_FILES +=
+
+RESOURCES += \
+    resources.qrc
+
+unix {
+    INSTALLS += target desktop icon48
+    target.path = /usr/bin/kumushedit
+    desktop.path = /usr/share/applications/hildon
+    desktop.files += maemofiles/kumushedit.desktop
+    icon48.path = /usr/share/icons/hicolor/48x48/apps
+    icon48.files += maemofiles/kumushedit_icon.png
+}
+
diff --git a/kumushedit.pro.user b/kumushedit.pro.user
new file mode 100644 (file)
index 0000000..6e33045
--- /dev/null
@@ -0,0 +1,231 @@
+<!DOCTYPE QtCreatorProject>
+<qtcreator>
+ <data>
+  <variable>ProjectExplorer.Project.ActiveTarget</variable>
+  <value type="int">0</value>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.EditorSettings</variable>
+  <valuemap type="QVariantMap">
+   <value key="EditorConfiguration.Codec" type="QByteArray">System</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.Target.0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Maemo</value>
+   <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.MaemoDeviceTarget</value>
+   <value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value>
+   <value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value>
+   <valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap">
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
+     <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.2" type="QVariantMap">
+     <value key="Packaging Enabled" type="bool">true</value>
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MaemoPackageCreationStep</value>
+     <valuelist key="Qt4ProjectManager.BuildStep.MaemoPackage.LocalFiles" type="QVariantList"/>
+     <value key="Qt4ProjectManager.BuildStep.MaemoPackage.Modified" type="bool">false</value>
+     <value key="Qt4ProjectManager.BuildStep.MaemoPackage.RemoteExe" type="QString"></value>
+     <valuelist key="Qt4ProjectManager.BuildStep.MaemoPackage.RemoteFiles" type="QVariantList"/>
+     <value key="Version Number" type="QString">0.0.1</value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">3</value>
+    <valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
+      <value type="QString">clean</value>
+     </valuelist>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
+    <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
+    <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Debug</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/taiken/kumushedit-build-maemo</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">8</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">9</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
+   </valuemap>
+   <valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap">
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
+     <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.2" type="QVariantMap">
+     <value key="Packaging Enabled" type="bool">true</value>
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MaemoPackageCreationStep</value>
+     <valuelist key="Qt4ProjectManager.BuildStep.MaemoPackage.LocalFiles" type="QVariantList"/>
+     <value key="Qt4ProjectManager.BuildStep.MaemoPackage.Modified" type="bool">true</value>
+     <value key="Qt4ProjectManager.BuildStep.MaemoPackage.RemoteExe" type="QString"></value>
+     <valuelist key="Qt4ProjectManager.BuildStep.MaemoPackage.RemoteFiles" type="QVariantList"/>
+     <value key="Version Number" type="QString">0.0.1</value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">3</value>
+    <valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
+      <value type="QString">clean</value>
+     </valuelist>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
+    <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
+    <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Release</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/taiken/kumushedit-build-maemo</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">8</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">9</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
+   </valuemap>
+   <value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value>
+   <valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap">
+    <value key=".ProFile" type="QString">kumushedit.pro</value>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">New Maemo Run Configuration</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MaemoRunConfiguration</value>
+    <valuelist key="Qt4ProjectManager.MaemoRunConfiguration.Arguments" type="QVariantList"/>
+    <value key="Qt4ProjectManager.MaemoRunConfiguration.DeviceId" type="qulonglong">3</value>
+    <valuelist key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedFiles" type="QVariantList">
+     <value type="QString">192.168.2.15</value>
+    </valuelist>
+    <valuelist key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedHosts" type="QVariantList">
+     <value type="QString">/home/taiken/kumushedit-build-maemo/kumushedit_0.0.1_armel.deb</value>
+    </valuelist>
+    <valuelist key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedRemotePaths" type="QVariantList">
+     <value type="QString">/root/kumushedit_0.0.1_armel.deb</value>
+    </valuelist>
+    <valuelist key="Qt4ProjectManager.MaemoRunConfiguration.LastDeployedTimes" type="QVariantList">
+     <value type="QDateTime">2011-01-18T15:13:38</value>
+    </valuelist>
+   </valuemap>
+   <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.Target.1</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Qt Simulator</value>
+   <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.QtSimulatorTarget</value>
+   <value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value>
+   <value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value>
+   <valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap">
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
+     <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
+    <valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
+      <value type="QString">clean</value>
+     </valuelist>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
+    <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
+    <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Debug</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/taiken/kumushedit-build-simulator</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">7</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
+   </valuemap>
+   <valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap">
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
+     <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
+    <valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
+      <value type="QString">clean</value>
+     </valuelist>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
+    <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
+    <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Release</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/taiken/kumushedit-build-simulator</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">7</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
+   </valuemap>
+   <value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value>
+   <valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap">
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">kumushedit</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase" type="int">2</value>
+    <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments" type="QVariantList"/>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.ProFile" type="QString">kumushedit.pro</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix" type="bool">false</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal" type="bool">false</value>
+    <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetName" type="bool">false</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetWorkingDirectory" type="bool">false</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory" type="QString"></value>
+   </valuemap>
+   <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.TargetCount</variable>
+  <value type="int">2</value>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
+  <value type="int">4</value>
+ </data>
+</qtcreator>
diff --git a/kumushedit.spec b/kumushedit.spec
new file mode 100644 (file)
index 0000000..3ac8a4f
--- /dev/null
@@ -0,0 +1,44 @@
+# no post install
+#%define __os_install_post %{nil}
+# no strip
+#%define __strip /bin/true
+# no debug package
+#%define debug_package %{nil}
+# disable automatic dependency processing
+#AutoReqProv: no
+
+Name:           kumushedit
+Version:        0.0.1
+Release:        1
+License:        <insert license tag>
+Summary:        <insert summary tag>
+Url:            <insert url tag>
+Group:          <insert group tag>
+Source0:        %{name}-%{version}.tar.gz
+#BuildRequires:  pkgconfig(QtCore)
+BuildRequires:  libqt-devel
+
+%description
+# Add here description of the package.
+
+%prep
+%setup -q
+
+%build
+# Add here commands to configure the package.
+#%qmake
+#qmake -makefile -nocache QMAKE_STRIP=: PREFIX=%{_prefix}
+
+# Add here commands to compile the package.
+#make %{?jobs:-j%jobs}
+#make %{?_smp_mflags}
+make
+
+%install
+# Add here commands to install the package.
+#%qmake_install
+make install INSTALL_ROOT=%{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{_prefix}/*
diff --git a/maemofiles/kumushedit.desktop b/maemofiles/kumushedit.desktop
new file mode 100644 (file)
index 0000000..1937c9d
--- /dev/null
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Name=kumushedit
+Exec=/usr/bin/kumushedit/kumushedit
+Icon=kumushedit_icon
+StartupWMClass=KumushEdit
+X-Window-Icon=kumushedit_icon
+X-HildonDesk-ShowInToolbar=true
+X-Osso-Type=application/x-executable
+Terminal=false
+
diff --git a/maemofiles/kumushedit_icon.png b/maemofiles/kumushedit_icon.png
new file mode 100644 (file)
index 0000000..8cf78f0
Binary files /dev/null and b/maemofiles/kumushedit_icon.png differ
diff --git a/main.cpp b/main.cpp
new file mode 100644 (file)
index 0000000..cf7c964
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,31 @@
+#include <QtGui/QApplication>
+#include <QFontDatabase>
+#include <QFile>
+#include <QByteArray>
+#include <QFont>
+#include <QDebug>
+#include "kumushedit.h"
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+    QFile fontFile(":/ttf/UyghurEditRiwaj.ttf");
+    fontFile.open(QIODevice::ReadOnly);
+    QByteArray fontData = fontFile.QIODevice::readAll();
+    int rv = QFontDatabase::addApplicationFontFromData(fontData);
+    if (rv == -1) {
+        qDebug()<<"Failed to load font file!\n";
+    } else {
+        QFont ugFont("UyghurEdit Riwaj");
+        QApplication::setFont(ugFont, "QPushButton");
+        qDebug()<<QFontDatabase::applicationFontFamilies(rv);
+    }
+
+    KumushEdit w;
+#if defined(Q_OS_SYMBIAN)
+    w.showMaximized();
+#else
+    w.show();
+#endif
+    return a.exec();
+}
diff --git a/resources.qrc b/resources.qrc
new file mode 100644 (file)
index 0000000..4a36794
--- /dev/null
@@ -0,0 +1,15 @@
+<RCC>
+    <qresource prefix="/">
+        <file>ttf/UyghurEditRiwaj.ttf</file>
+        <file>images/copy.png</file>
+        <file>images/cut.png</file>
+        <file>images/new.png</file>
+        <file>images/open.png</file>
+        <file>images/paste.png</file>
+        <file>images/save.png</file>
+        <file>images/bkspc.png</file>
+        <file>images/enter.png</file>
+        <file>images/shift.png</file>
+        <file>images/space.png</file>
+    </qresource>
+</RCC>
diff --git a/ttf/UyghurEditRiwaj.ttf b/ttf/UyghurEditRiwaj.ttf
new file mode 100644 (file)
index 0000000..402de3b
Binary files /dev/null and b/ttf/UyghurEditRiwaj.ttf differ
diff --git a/vkb.cpp b/vkb.cpp
new file mode 100644 (file)
index 0000000..900af17
--- /dev/null
+++ b/vkb.cpp
@@ -0,0 +1,155 @@
+#include <QGridLayout>
+#include <QVBoxLayout>
+#include <QPushButton>
+#include <QString>
+#include <QDebug>
+#include <QStyle>
+#include <QFont>
+#include <QIcon>
+#include "vkb.h"
+
+static unsigned short keys[3][10]={
+    { 0x0686, 0x06cb, 0x06d0, 0x0631, 0x062a, 0x064a, 0x06c7, 0x06ad, 0x0648, 0x067e },  //ch, w, e, r, t, y, u, ng, o, p
+    { 0x06be, 0x0633, 0x062f, 0x0627, 0x06d5, 0x0649, 0x0642, 0x0643, 0x0644, 0x061B },  //h,  s, d, a, e, i, q, k,  l, ؛
+    { 0x0632, 0x0634, 0x063a, 0x06c8, 0x0628, 0x0646, 0x0645, 0x060C, 0x002E, 0x0626 }   //z, sh, gh,ü, b, n, m, ،,  ., hemze
+};
+
+static unsigned short skeys[3][10]={
+    { 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039 },  //0, 1, 2, 3, 4, 5, 6, 7, 8, 9
+    { 0x00BB, 0x00AB, 0x0698, 0x0641, 0x06af, 0x062e, 0x062c, 0x06c6, 0x002B, 0x003A },  //», «, dr, f, g, x, j, ö, +, :
+    { 0x0021, 0x066A, 0x066D, 0x002f, 0x002d, 0x2014, 0x003D, 0x203a, 0x2039, 0x061F }   //!, %, *, /, -, —, =, ›, ‹, ؟
+};
+
+static int BUTTON_MAXIMUM_HEIGHT = 50;
+
+VKB::VKB(QWidget *parent) :
+    QWidget(parent),
+    mShift(false)
+{
+    mUGFont = new QFont("UyghurEdit Riwaj");
+    QVBoxLayout *layout = new QVBoxLayout;
+    mvkb = createVKB(keys);
+    layout->addWidget(mvkb);
+    msvkb = createVKB(skeys);
+    layout->addWidget(msvkb);
+    msvkb->hide();
+    createToolBar();
+    layout->addWidget(mtbar);
+    layout->setSpacing(0);
+    setLayout(layout);
+}
+
+VKB::~VKB()
+{
+    delete mUGFont;
+}
+
+void VKB::keyClicked()
+{
+    QPushButton *clickedButton = qobject_cast<QPushButton *>(sender());
+    emit VKBButtonClicked(clickedButton->text());
+}
+
+void VKB::shiftButtonClicked()
+{
+    if (mShiftToggled) {
+        msvkb->hide();
+        mvkb->show();
+        mShift->setText("");
+        mShiftToggled=false;
+    } else {
+        mvkb->hide();
+        msvkb->show();
+        mShift->setText("*");
+        mShiftToggled=true;
+    }
+}
+
+void VKB::spaceButtonClicked()
+{
+    emit VKBButtonClicked(QString(" "));
+}
+
+void VKB::enterButtonClicked()
+{
+    emit VKBButtonClicked(QString("\n"));
+}
+
+QWidget* VKB::createVKB(const unsigned short  keys[3][10])
+{
+    QWidget *vkb = new QWidget();
+    QGridLayout *layout = new QGridLayout;
+    for (int i=0; i<3; i++) {
+        for (int j=0; j<10; j++) {
+            QPushButton *key = new QPushButton(QString(keys[i][j]));
+            qDebug()<<key->fontInfo().family();
+            key->setFont(*mUGFont);
+            key->setMaximumHeight(BUTTON_MAXIMUM_HEIGHT);
+            qDebug()<<key->fontInfo().family();
+            connect(key, SIGNAL(clicked()), this, SLOT(keyClicked()));
+            layout->addWidget(key, i, j);
+        }
+    }
+    layout->setSpacing(0);
+    vkb->setLayout(layout);
+    return vkb;
+}
+
+/**
+ * toolbar always visible and it contains following buttons
+ * Open: open a file
+ * Save: save Text to a file
+ * Copy: copy the content to clipboard
+ * Shift: controls to switch between two VKB
+ * forward: move the cursor to the forward
+ * Space: input blank space
+ * backward: move the cursor to the backward
+ * Enter: input line break
+ * Backspace: delete the character before the cursor
+ */
+void VKB::createToolBar()
+{
+    mtbar = new QWidget();
+    QHBoxLayout *layout = new QHBoxLayout;
+    mOpen = new QPushButton(QIcon(":/images/open.png"), QString());
+    connect(mOpen, SIGNAL(clicked()), this, SIGNAL(openButtonClicked()));
+    layout->addWidget(mOpen);
+
+    mSave = new QPushButton(QIcon(":/images/save.png"), QString());
+    connect(mSave, SIGNAL(clicked()), this, SIGNAL(saveButtonClicked()));
+    layout->addWidget(mSave);
+
+    mCopy = new QPushButton(QIcon(":/images/copy.png"), QString());
+    connect(mCopy, SIGNAL(clicked()), this, SIGNAL(copyButtonClicked()));
+    layout->addWidget(mCopy);
+
+    mPaste = new QPushButton(QIcon(":/images/paste.png"), QString());
+    connect(mPaste, SIGNAL(clicked()), this, SIGNAL(pasteButtonClicked()));
+    layout->addWidget(mPaste);
+
+    mShift = new QPushButton(QIcon(":/images/shift.png"), QString());
+    connect(mShift, SIGNAL(clicked()), this, SLOT(shiftButtonClicked()));
+    layout->addWidget(mShift);
+
+    mFW = new QPushButton(style()->standardIcon(QStyle::SP_ArrowLeft), QString());
+    connect(mFW, SIGNAL(clicked()), this, SIGNAL(fwButtonClicked()));
+    layout->addWidget(mFW);
+
+    mSpace = new QPushButton(QIcon(":/images/space.png"), QString());
+    connect(mSpace, SIGNAL(clicked()), this, SLOT(spaceButtonClicked()));
+    layout->addWidget(mSpace);
+
+    mBW = new QPushButton(style()->standardIcon(QStyle::SP_ArrowRight), QString());
+    connect(mBW, SIGNAL(clicked()), this, SIGNAL(bwButtonClicked()));
+    layout->addWidget(mBW);
+
+    mEnter = new QPushButton(QIcon(":/images/enter.png"), QString());
+    connect(mEnter, SIGNAL(clicked()), this, SLOT(enterButtonClicked()));
+    layout->addWidget(mEnter);
+
+    mBSpace = new QPushButton(QIcon(":/images/bkspc.png"), QString());
+    connect(mBSpace, SIGNAL(clicked()), this, SIGNAL(bspaceButtonClicked()));
+    layout->addWidget(mBSpace);
+    layout->setSpacing(0);
+    mtbar->setLayout(layout);
+}
diff --git a/vkb.h b/vkb.h
new file mode 100644 (file)
index 0000000..88ad229
--- /dev/null
+++ b/vkb.h
@@ -0,0 +1,53 @@
+#ifndef VKB_H
+#define VKB_H
+
+#include <QWidget>
+QT_FORWARD_DECLARE_CLASS(QPushButton)
+
+class VKB : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit VKB(QWidget *parent = 0);
+    ~VKB();
+signals:
+    void VKBButtonClicked(QString value);
+    void openButtonClicked();
+    void saveButtonClicked();
+    void copyButtonClicked();
+    void pasteButtonClicked();
+    void fwButtonClicked();
+    void bwButtonClicked();
+    void bspaceButtonClicked();
+
+public slots:
+
+private:
+    QWidget* createVKB(const unsigned short  keys[3][10]);
+    void createToolBar();
+
+    QWidget *mvkb;  //vkb first page
+    QWidget *msvkb;  //vkb after shift button
+    QWidget *mtbar;  //toolbar
+    QFont *mUGFont;  //font
+
+    QPushButton *mOpen;
+    QPushButton *mSave;
+    QPushButton *mCopy;
+    QPushButton *mPaste;
+    QPushButton *mShift;
+    QPushButton *mFW;
+    QPushButton *mSpace;
+    QPushButton *mBW;
+    QPushButton *mEnter;
+    QPushButton *mBSpace;
+
+    bool mShiftToggled;
+private slots:
+    void keyClicked();
+    void shiftButtonClicked();
+    void spaceButtonClicked();
+    void enterButtonClicked();
+};
+
+#endif // VKB_H
diff --git a/welcome b/welcome
deleted file mode 100644 (file)
index e69de29..0000000