DJView4

Discussion in 'Asus (Android)' started by d.goryachev, Oct 19, 2011.

Thread Status:
Not open for further replies.
  1. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    I guess I did not exactly put it - I wish to utilize hardware arrows, which already presents on Eee Note sensor panel :)
     
  2. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    Well, it's looks like I've got first usable version on djview4

    Here http://benedict.departament.com/eee.note/djview4-1.0.zip is installable package, like QtPacker's one. With djview4 itself, it's installs libdjvulibre into /usr/local/eTablet/lib

    Install package SHOULD work, but i wish to ask everyone who feels themself compitent enough, to check install scripts. In my case all works correctly, but who knows ..

    Here http://benedict.departament.com/eee.note/djview4-1.0.src.zip is sources of modified djview4.

    libdjvulibre was compiled "as is" so no separate sources needed, compiled libs included into installation package.
     
  3. pbarrette

    pbarrette Scribbler - Standard Member

    Messages:
    196
    Likes Received:
    2
    Trophy Points:
    31
    Hi d.goryachev,

    The hardware arrow keys are treated as key-press events:
    PHP:
    //MainWindow.h
    private:
        
    void keyPressEvent (QKeyEvent *e);

    //MainWindow.cpp
    void Main::keyPressEvent (QKeyEvent *e)
    {
        switch (
    e->key())
        {
        case 
    Qt::Key_F6//Left-Keypad
            //Left arrow pressed;
            
    break;
        case 
    Qt::Key_F12//Right-Keypad
            //Right arrow pressed;
            
    break;
        default:
            
    QWidget::keyPressEvent(e);
        }
    }
    pb
     
  4. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    Thank you! It's works!! :)
    I've noted, that sensor keys somehow related with QKeySequences but didn't know exactly key values for arrows.

    Thank again! :)
     
  5. lroncero

    lroncero Pen Pal - Newbie

    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    15
    I just tested it in my device and it works great. Thanks a million to d.goryachev for the effort. Djvu files are much better than PDFs: same quality and much smaller. You cannot annotate on them though.

    The only thing that does not work are the "next/previous page" arrows in the touch panel. So, when it is used in fullscreen mode, there is no way to pass page.

    Any way to solve that?
     
  6. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    I've fixed this issue few minutes ago. Now updated package can be found in same location, but i don't know how to update already installed package easily.

    If you have installed ConsoleQ application, you can do this:

    extract djview.bin file from arcive, place it indo sdcard (assume, into root of sd card), launch console and type

    PHP:
    mount -o remount,rw /dev/mss/blk0p5 /usr

    cp 
    -/mnt/extsdcard/djview.bin /usr/local/eTablet/bin/djview4/djview4

    mount 
    -o remount,ro /dev/mss/blk0p5 /usr
    that's all :)
     
  7. lroncero

    lroncero Pen Pal - Newbie

    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    15
    Hi d.goryachev,

    It works great. Thanks a million. This has been my first time using the Console :D

    I love this program. Thanks for porting.

    Luis
     
  8. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    Glad to know, that someone finds my work useful :) Thank you :)
     
  9. eddy

    eddy Pen Pal - Newbie

    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    15
    Hi, just wanted to say that the program is working great ;D nice work! Just wanted to ask, if you could implement a nice feature which would save the last viewed page in an opened file (pc version of djview has it, so it must be somewhere in the source, just trying to write to unwritebale directory?)

    Oh btw, it seems like if you install your djviewer, it breaks the asus one. Nothing to cry about, but it did had the save last viewed page in a file feature.

    so yeah... Ok, thank's again for doing such a great port!
     
  10. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    Yes, i noticed some flaws in DJView4 and very interested in fixing them (as user) :) One of main things to fix is remembering of last viewed position in file.

    It's sad to hear about broken asus viewer. I've forgot to check it, was so angry because it corrupted my djvu files :(
     
Thread Status:
Not open for further replies.

Share This Page