Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
Commit message (Collapse)AuthorAgeFilesLines
* The BookmarkView should be hidden by defaultGonzalo Odiard2012-08-311-1/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Show the table of contents in a panelGonzalo Odiard2012-08-311-48/+77
| | | | | | | | | | | | The table of contents, actually implemented in epub backend, is displayed in a later panel, instead of in a combo, to do easier the interaction with touch, and provide context. The code is now more general to allow the implementation in the pdf backend too. The button used to display the table of contents, was moved from the main toolbar to the view subtoolbar. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Rename Sidebar to BookmarkViewGonzalo Odiard2012-08-311-14/+15
| | | | | | | | Is not a sidebar anymore, and we will add a sidebar to show the index, the to avoid problems in the future, renamed the object and variables to have more consistent nomenclature. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Changes in the toolbar to show the StopButton with screen vertical (epub)Gonzalo Odiard2012-08-311-10/+6
| | | | | | | | | * Remove style in the number of pages label: is done in the theme now, and the font is smaller. * Set request_size in separators. * remove unneded toolitem around highlight toogle button Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Align the bookmark panel to the scrollbar.Gonzalo Odiard2012-08-161-1/+8
| | | | | | Is using a hack. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* New design to bookmark visualizationGonzalo Odiard2012-08-151-3/+11
| | | | | | | | | | | | | The sidebar where we displayed the bookmark was a thin area at the left of the screen, was not very intuitive, and was dificult to access with a finger. With Gtk3 we can use overlays, then this patch move the sidebar to the top/right of the screen, and display it with a shape similar to other book readers, using the user colors. I have tried to do the botom triangle transparent, but without success, we can try it later. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix Ctrl-c accelerator codeGonzalo Odiard2012-06-061-1/+1
| | | | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Manuel QuiƱones <manuq@laptop.org> Signed-off-by: Simon Schampijer <erikos@laptop.org>
* Show bookmark in the first page SL #3662Manuel Kaufmann2012-06-011-0/+5
| | | | | | | | | Show the bookmark for the first page (if any) in the sidebar when the file is resumed from the Journal. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org> Tested-by: Simon Schampijer <simon@laptop.org>
* Alert the user when he removes a bookmark SL #1274Manuel Kaufmann2012-06-011-0/+18
| | | | | | | | Alert the user with a Confirmation Alert when he / she removes a bookmark informing that the bookmark information will be lost. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Initialize current page and number of pages in the toolbar - SL #3434Gonzalo Odiard2012-04-161-1/+1
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix to previous: Enable use of arrow keys in the title entry - SL #3001Gonzalo Odiard2012-04-101-1/+1
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Init page number inputGonzalo Odiard2012-04-101-0/+1
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@latop.org>
* Enable use of arrow keys in the title entry - SL #3001Gonzalo Odiard2012-04-101-3/+5
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Improve bookmarks add/remove - SL #3405Gonzalo Odiard2012-04-101-13/+13
| | | | | | | | | | | | | | | | | The bug have two sources. First, the button used to add/remove the bookmark is a toggle, and the gtk3 theme is not setting the right grey color, then is not obvious to the user if the button is pressed or not. (this problem will be addressed in sugar-artwork) The second problem is, if the user cancel the dialog creating the bookmark, the bookmark is not created but the button continue pressed until the page is changed. This was solved sending a signal to uptade the button state. Two other problems were found and solved: * The page number in the bookmark description was wrong by one. * If the page had more than one bookmark, the clear method only removed the last then the sidebar accumulated bookmark icons. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Save and restore the page with epub files - SL #3413Gonzalo Odiard2012-04-091-7/+4
| | | | | | | | | | | | | | | | | When the user closed and reopened the activity, reading a epub file, the page was lost. The problem had two sources: The invisible webkit widget used to measure the document height, can add a scrollbar (randomly) then the inner width change, the text folw differently and the inner height change. This problem is solved setting document.documentElement.style.overflow = hidden in the widget when is used to measure. The second problem was, after the document was loaded and positioned the epubview tried to change the scroll position again. This patch include a minor change in readactivity.py, only to avoid call many times view.get_current_page. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Separate the speech toolbar in another file to load only if neededGonzalo Odiard2012-03-061-5/+4
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Only init the speech service if the backend support text to speechGonzalo Odiard2012-03-061-4/+5
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Remove unused importGonzalo Odiard2012-03-061-1/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Import only the needed backendGonzalo Odiard2012-03-061-3/+6
| | | | | | | | The activity only open one tipe of file at time, but was importing all the backends. Now import the needed backend after having the mimetype, to have better startup times and lower memory use. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Remove unneded separatorGonzalo Odiard2012-03-021-5/+0
| | | | | | Suggested by design team toolbars review. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use paired next/previous buttons as in browseGonzalo Odiard2012-03-021-2/+2
| | | | | | Pointed in toolbars review by design team Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use SugarMenuItem in the back/forward palettes.Gonzalo Odiard2012-03-011-16/+29
| | | | | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> The class SugarMenuItem is in the activity until we can add it to sugar-toolkit-gtk3.
* Update for change in the api of ObjectChooserGonzalo Odiard2012-02-011-4/+1
| | | | | | ObjectChooser has removed deprecated parameters. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Initial port to Gtk3Gonzalo Odiard2011-12-081-74/+68
|
* Revert commit 5c191dd35a8f330c3e5c19482a820ce55ddd7b60Gonzalo Odiard2011-07-051-2/+1
| | | | network.ChunkedGlibHTTPRequestHandler problem was resolved
* Read should setup dpad left/right to move document left/right - OLPC #10501Gonzalo Odiard2011-06-281-0/+7
| | | | | Signed-off-by: Manuel QuiƱones <manuq@laptop.org> Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
*