The Following 6 Users Say Thank You to benlau For This Useful Post: | ||
|
2010-07-28
, 14:33
|
Posts: 999 |
Thanked: 1,117 times |
Joined on Dec 2009
@ earth?
|
#2
|
The Following User Says Thank You to johnel For This Useful Post: | ||
|
2010-07-28
, 14:47
|
|
Posts: 128 |
Thanked: 46 times |
Joined on Mar 2010
@ Switzerland
|
#3
|
The Following User Says Thank You to manvik60 For This Useful Post: | ||
|
2010-07-28
, 19:05
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#4
|
|
2010-07-29
, 02:36
|
|
Posts: 135 |
Thanked: 375 times |
Joined on Mar 2010
@ Hong Kong
|
#5
|
For color dialog, you could use the SimpleColorDialog found in Hildon-Extras. http://wiki.maemo.org/Hildon-Extras
I actually wrote a Qt wrapper for the Gtk-based parts, so it is dead easy to use it from your lib. (We are currently working on a library release for it, but currently the leader is on vacation... for the moment, we just include its stuff in our projects.)
The Following User Says Thank You to benlau For This Useful Post: | ||
|
2010-07-29
, 09:03
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#6
|
Great! Then I can save a lot of time in developing widget on Qt for Maemo!
yes . The doc is available (not completed) at : http://dl.dropbox.com/u/2152786/penp...tml/index.html
The Following User Says Thank You to Venemo For This Useful Post: | ||
|
2010-07-29
, 10:07
|
|
Posts: 135 |
Thanked: 375 times |
Joined on Mar 2010
@ Hong Kong
|
#7
|
Indeed.
A picture of the dialog is here:
Link
It also has an "Advanced" button for advanced color selection, and you can set an arbitrary title and default color for the dialog.
It returns a QColor instance which holds the selected color data.
Thanks!
If I see it correctly, all I need is a PPPaper instance, and do stuff with that?
The Following User Says Thank You to benlau For This Useful Post: | ||
|
2010-07-29
, 17:34
|
|
Posts: 135 |
Thanked: 375 times |
Joined on Mar 2010
@ Hong Kong
|
#8
|
|
2010-08-03
, 11:46
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#9
|
PenPen use the second one , which is more flexible , but the code to get started is a little bit complex than using widget. I am thinking about to pack a QWidget class so that it is more easy to get started.
The concept should be much clear when the demo code is ready.
|
2010-08-03
, 13:07
|
|
Posts: 135 |
Thanked: 375 times |
Joined on Mar 2010
@ Hong Kong
|
#10
|
A QWidget-based approach would be a good thing for me.
As I see, there is already such an approach in the demo code, isn't there?
The Following User Says Thank You to benlau For This Useful Post: | ||
I am the author of PenPen SketchBook , it is a handwriting memo/sketch book for quick note taking . I wish you already know what is it.
The core of the software is a vector-based drawing engine. It could save pen stroke in a vector based format. And, unlike bitmap graphics , the eraser removes the whole stroke instead of a small region. It is optimized for handwriting memo , so you could remove the entired word easily.
I am planning to release PenPen's vector drawing engine into a library called as libpenpen (Based on Qt). So that other developer may embed a handwriting area in their application easily. Before release it , I would like to seek for more comment / suggestion from you.
The current module / feature in PenPen
-QGraphicsItem based objects
-- Handwriting with different type of color and width size (QGraphicsView based)
-- Stroke eraser
-XML serializer
-A editor interface module (Drawpad)
-Custom Color dialog (Qt's QColorDialog is buggy on Maemo)
-Derived class of QAbstractItemModel for multiple drawing reviewer.
Pending features:
- Undo
- Set background from image
- zooming
The expected feature of libpenpen:
- QGraphicsItem based objects
-- Handwriting with different type of color and width size (QGraphicsView based)
-- Stroke eraser
- XML serializer
Expected License : BSD (Not decided yet)
Source code : http://bazaar.launchpad.net/~benlau/...src/libpenpen/
Classes Document : http://dl.dropbox.com/u/2152786/penp...tml/index.html
Several questions:
1) Will you be interested to develop application with handwriting function? (e.g Annonation on image/pdf , signature , ...)
2) Do you think that the feature of libpenpen enough for you?
3) Could you suggest more feature should be provided by libpenpen?
By the way, few more questions not related to libpenpen. Do you use sqlite in your application? What do you think about Qt's database module? Do it suitable for your need?
Thanks.
Qt Ambassador | Nokia Certified Qt Specialist
PenPen SketchBook |
FrontView - 0.2 is released! | DQuest
Status: Now working on GTD software
Last edited by benlau; 2010-07-29 at 09:28.