×
Namespaces

Variants
Actions

Redak QML text editor - app showcase

From Nokia Developer Wiki
Jump to: navigation, search

Redak is a simple QML text editor to be used on touchscreen mobile device. This article provides an overview of the project, app functionality and history. Basic features are Load, Save, Save As, Browse and Edit text. It has been tested on maemo/meego harmattan (n950/ n9) and Nokia Belle (E7)

Package: redak

 URL:  http://rzr.online.fr/q/redak
 Contact: Philippe Coval <rzr@gna.org>
 Licence: GPL-3 (OpenSource Free Libre Software)
 OpenSource: https://gitorious.org/redak/redak

Contents

Introduction

History of this project :

I needed a basic text editor to handle files on my handset so I created a Qt texteditor under the name redaktilo as sample to teach Qt on desktop or tablets (n810). The QtGui version was usable with a resistive screen (n810) but not on capacitive screens. This new version was created from scratch using QtQuick.

Today supported platform are symbian and meego harmattan.

Basic features are ready to be tested :

  • Load, Save, Save As, Browse and Edit text (select, cut and paste).

Features are very limited but enough for me ?

I can't promise I will polish it and add more features but it's opensource so I can promise i will make efforts to merge patches ?

The project is mostly based on QmL and uses C++/Qt for io. (load/save)...

ScreenShots

1-redak-edit.png

3-redak-browse.png

Components

IO access is done in C++ , the rest UI logic etc is pure qml Javascript


Used Qt Quick Components (Symbian or MeeGo) :

  • PageStackWindow Page QueryDialog
  • Menu MenuLayout MenuItem ToolBar ToolBarLayout ToolButton
  • Flickable Column ListView FolderListModel Component MouseArea
  • TextArea TextField Text
  • Image Rectangle
  • Connections

Since the project is opensource you can tear out and reuse my components :

Custom ones to be reused :

  • EditPage : the text area
  • BrowserPage : the file browser for loading saving pages

Problem Areas

First I created for harmattan then ported to Symbian, the main issue was a minor bug in C++ that prevent loading files (bad path workaround). I feared that was a security issue but it's not.

Most of the qml code is common between MeeGo and Symbian. But I did not share common parts and I prefer to merge new features ...

I had to find also common images to reuse platform ones ...

  • QueryDialog : Had to workaround this bug (using an extra '\n')

https://bugreports.qt-project.org/browse/QTCOMPONENTS-1090


Future

I wish I had a n900 to port it to maemo5 too or a RasperyPI . To edit text on TV ...

I'll also plan to use it to test Qt lighthouse ports


Download

Just open this link I tested "redak_qt-4_7_4_symbianBelle-0.4.0.sis" on NokiaE7: Redak.zip

I plan to publish to ovi stable version. Feel free to build form sources too...

MORE


Note.pngNote: This is an entry in the Symbian Qt Quick Components Competition 2012Q1

Article Metadata
Tested with
Devices(s): Nokia E7,
Compatibility
Platform(s): Meego Harmattan, Nokia Belle, Qt 4.7.4
Symbian
Nokia Belle
Dependencies: Qt Quick Components 1.1
Article
Keywords: Redak, Text.Editor
Created: www.rzr.online.fr (07 Feb 2012)
Last edited: kiran10182 (24 Oct 2013)
This page was last modified on 24 October 2013, at 12:14.
100 page views in the last 30 days.
×