12-05-2011, 06:22 AM | #16 | |
Zealot
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
|
Code Samples
Quote:
Longer complex samples outside inkview.h - they would make inkview.h unreadable. btw. What about adding "inkinternal.h" ? |
|
12-05-2011, 06:39 AM | #17 | ||
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Quote:
Quote:
PocketBook is still silent NetSpider, the former PocketBook developer, sometimes helps me. I've added a link in the project main page. |
||
02-22-2012, 04:07 AM | #18 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Hi
PocketBook at last released it's own documentation! https://github.com/pocketbook-free/I...K.pdf?raw=true |
02-22-2012, 01:04 PM | #19 | |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
|
|
02-22-2012, 11:50 PM | #20 |
Addict
Posts: 224
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
Totally in agreement, good documentation and tools are essential for a reader platform to succeed (that and backwards compatibility, you're hardly likely to attract a good development community if you switch the environment every couple of years).
|
05-24-2012, 06:05 PM | #21 |
Zealot
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
|
OpenConfigEditor(...) Font Size?
Hi,
if i open a custom config editor with "OpenConfigEditor" a dialog is shown. But i would like to have bigger fonts, because the dialog is shown with very small fonts for the settings and values. I can hardly read it. Does anyone know, how to select the font sizes for OpenConfigEditor()? |
05-24-2012, 08:00 PM | #22 | |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
|
|
05-25-2012, 07:40 AM | #23 | |
Zealot
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
|
Quote:
I already tried SetFont( ... ) with a font opened by "OpenFont(...)" But with no success. There also is a font called "current_font" as a member of struct "ivstate" in "inkinternal.h". And I can find Code:
extern ifont *title_font, *window_font, *header_font, *menu_s_font, *menu_n_font; extern ifont *butt_n_font, *butt_s_font; I changed any of them - with no success. |
|
05-26-2012, 06:12 PM | #24 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I've been looking at the source code for fbreader to see how they make their configuration editor look so good. I haven't seen anything that looks obviously different, but I see that they provide an icon for each entry, something that I never tried. Perhaps the size of the icon determines the size of each line, which determines the size of the font used. I'll play with this later to see if it works.
I got the fbreader source code from here: http://sourceforge.net/projects/pocketbook-free/. Edit: It worked like a charm! I copied over the images.c file from the fbreader source code, referenced one of the icons in each line of my iconfigedit array, and compiled and linked in the icons into the program. The configuration editor screen now looks as good as the one in fbreader. I'll need to use an appropriate icon for each line, but now I know how to make it look good. Last edited by rkomar; 05-27-2012 at 12:27 AM. |
05-27-2012, 05:03 AM | #25 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Sorry! I had vacation. The font size depends on icon size. It will be very small if you don't have icons in configuration dialog.
|
05-27-2012, 05:14 AM | #26 | ||
Zealot
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
|
Re: FontSize in OpenConfigEditor
Quote:
Quote:
But at least that thing was not really too obvious... Thanks a lot. So i get on with PBChord now. I'll add that and other to our libinkviewdoc By the way - could you update the doxy some time? |
||
05-31-2012, 03:29 PM | #27 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
|
06-03-2012, 07:24 AM | #28 | |
Zealot
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
|
Quote:
Perhaps you have got a hint for me about the following console message after my PBChord is finished with "CloseApp()". Code:
** Message: Command 602 selected ** Message: Command 502 selected hw_close (pbchord:2967): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (pbchord:2967): Gtk-WARNING **: A floating object was finalized. This means that someone called g_object_unref() on an object that had only a floating reference; the initial floating reference is not owned by anyone and must be removed with g_object_ref_sink(). It seems to have to to with gtk+ ? I guess some buffer is closed the wrong way. But i can't find something i did wrong. -I close fonts with "CloseFont()" -I remove bitmaps (created with LoadBitmap or BitmapFromScreen) with "free" etc. Where could the reason be found? |
|
06-03-2012, 09:15 AM | #29 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
I don't use PBTK. But the same message appears in emulator for any pocketbook program for me:
serg@HOME:~/workspace/calc/obj_emu$ ./calc ** Message: Command 501 selected hw_close (<unknown>:3059): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (<unknown>:3059): Gtk-WARNING **: A floating object was finalized. This means that someone called g_object_unref() on an object that had only a floating reference; the initial floating reference is not owned by anyone and must be removed with g_object_ref_sink(). Did you mear "run with emulator" or "run with device". If first, this is a "normal" behavior. The problem is somewhere in emulator. Last edited by sergeyvl12; 06-03-2012 at 09:17 AM. |
06-03-2012, 09:48 AM | #30 | |
Zealot
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
|
Re: Emulator error
Quote:
For probe i started other apps before to proof, if only my app is affected. In fact the message does not occure always and even not always with the same app. Perhaps it really is the emulator itself. Perhaps it has to do with - bitmaps, that are defined inside the code (and not with "LoadBitmap" or so) - CloseFont(). It seems, if you do not call "CloseFont()" at all, problem does not come up. But that is not really proofed. But as long, as my app works, I decide now not to care too much about this message. Thanks for answer. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Documentation | Shikhin | Kindle Developer's Corner | 2 | 08-07-2011 10:04 PM |
Database Documentation | mfaine | Calibre | 4 | 01-07-2011 02:01 PM |
Documentation for Sigil | Valloric | Sigil | 15 | 11-12-2010 06:37 PM |
Server Documentation? | Joe McPlumber | Calibre | 4 | 07-05-2010 11:34 PM |
Wiki documentation | mrdini | OpenInkpot | 1 | 10-14-2008 09:50 AM |