2002-08-30 09:14:01 +00:00
|
|
|
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
2007-01-19 21:43:53 +00:00
|
|
|
<kpartgui name="okular_part" version="22">
|
2002-08-30 09:14:01 +00:00
|
|
|
<MenuBar>
|
2004-01-02 17:46:06 +00:00
|
|
|
<Menu name="file"><text>&File</text>
|
2005-06-19 21:01:28 +00:00
|
|
|
<Action name="get_new_stuff" group="file_open"/>
|
2005-07-15 18:20:57 +00:00
|
|
|
<Action name="import_ps" group="file_open"/>
|
2004-08-28 17:59:17 +00:00
|
|
|
<Action name="save" group="file_save"/>
|
2007-05-06 11:23:26 +00:00
|
|
|
<Action name="file_reload" group="file_save"/>
|
2004-01-03 10:38:06 +00:00
|
|
|
<Action name="file_print" group="file_print"/>
|
|
|
|
<Action name="file_print_preview" group="file_print"/>
|
2004-12-05 22:47:32 +00:00
|
|
|
<Action name="properties" group="file_print"/>
|
2006-10-22 18:19:17 +00:00
|
|
|
<Action name="embedded_files" group="file_print"/>
|
2006-07-01 22:17:53 +00:00
|
|
|
<Action name="file_export_as" group="file_print"/>
|
2004-01-02 17:46:06 +00:00
|
|
|
</Menu>
|
2002-09-13 13:56:35 +00:00
|
|
|
<Menu name="edit"><text>&Edit</text>
|
2006-11-24 21:02:38 +00:00
|
|
|
<Action name="edit_copy"/>
|
|
|
|
<Separator/>
|
2007-09-03 21:35:05 +00:00
|
|
|
<Action name="edit_select_all"/>
|
|
|
|
<Separator/>
|
2002-09-13 13:56:35 +00:00
|
|
|
<Action name="find"/>
|
|
|
|
<Action name="find_next"/>
|
|
|
|
</Menu>
|
2002-09-02 21:56:00 +00:00
|
|
|
<Menu name="view"><text>&View</text>
|
2004-12-17 17:14:46 +00:00
|
|
|
<Action name="presentation"/>
|
2002-09-14 14:45:53 +00:00
|
|
|
<Separator/>
|
2004-11-03 17:35:48 +00:00
|
|
|
<Action name="zoom_in"/>
|
2005-06-13 18:06:32 +00:00
|
|
|
<Action name="zoom_out"/>
|
2004-09-13 17:30:00 +00:00
|
|
|
<Action name="zoom_fit_width"/>
|
|
|
|
<Action name="zoom_fit_page"/>
|
2004-10-20 16:41:13 +00:00
|
|
|
<Action name="zoom_fit_rect"/>
|
2004-09-28 13:53:47 +00:00
|
|
|
<Separator/>
|
2005-03-05 15:59:15 +00:00
|
|
|
<Action name="view_continuous"/>
|
- GIGANTIC 2700 line diff with LOTS OF FEATURES!
- 1. editor-like text selection, and I do mean it, its not pseudo-editor
(like the ones acroread and kviewshell have) it doesnt intersect the
selection area with words under it, no, it does a lot more, including
work on cursors and searching for the text area closest to the given
cursor
- 2. rotation support, change the orientation of the documents if
you need too :)
- 3. the kfaxview backend works beautifully, porting kviewshell backends
is damn easy ! djvu and dvi will be next!
- 4. Hardware Blending of selection rectangles! We now use XRender
instead of KImageEffect, makes a damn faster blend!
- 5. Overview mode - as seen in Kviewshell, but quite a bit extended,
the kviewshell is only one state, while we support it in both
continous and non-continous form
- BTW. I coded all those features myself, (apart from kfaxview backend library)
it is an impressive bit right? but oKular cant be run by only one person,
join in on the fun! i can introduce you into the code just mail niedakh@gmail.com
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=509871
2006-02-15 18:54:49 +00:00
|
|
|
<Action name="view_render_mode"/>
|
|
|
|
<Separator/>
|
2007-01-19 21:43:53 +00:00
|
|
|
<Menu name="view_orientation"><text>&Orientation</text>
|
|
|
|
<Action name="view_orientation_rotate_ccw"/>
|
2007-01-19 21:51:54 +00:00
|
|
|
<Action name="view_orientation_rotate_cw"/>
|
2007-01-19 21:43:53 +00:00
|
|
|
<Action name="view_orientation_original"/>
|
|
|
|
</Menu>
|
2007-01-05 23:12:06 +00:00
|
|
|
<Action name="view_pagesizes"/>
|
2007-02-25 00:07:59 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="view_toggle_forms"/>
|
2002-08-30 09:14:01 +00:00
|
|
|
</Menu>
|
2002-09-13 13:56:35 +00:00
|
|
|
<Menu name="go"><text>&Go</text>
|
|
|
|
<Action name="previous_page"/>
|
|
|
|
<Action name="next_page"/>
|
2005-06-13 18:06:32 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="first_page"/>
|
2004-09-13 17:30:00 +00:00
|
|
|
<Action name="last_page"/>
|
2003-09-15 21:09:49 +00:00
|
|
|
<Separator/>
|
2005-01-27 17:31:07 +00:00
|
|
|
<Action name="history_back"/>
|
|
|
|
<Action name="history_forward" />
|
|
|
|
<Separator/>
|
2004-09-13 17:30:00 +00:00
|
|
|
<Action name="goto_page"/>
|
2002-09-13 13:56:35 +00:00
|
|
|
</Menu>
|
2007-01-13 17:28:54 +00:00
|
|
|
<Menu name="okular_bookmarks"><text>&Bookmarks</text>
|
2007-05-01 14:43:30 +00:00
|
|
|
<Action name="bookmark_add"/>
|
2007-01-28 00:15:13 +00:00
|
|
|
<Action name="previous_bookmark"/>
|
|
|
|
<Action name="next_bookmark" />
|
|
|
|
<Separator/>
|
2007-01-13 17:28:54 +00:00
|
|
|
<ActionList name="bookmarks_currentdocument" />
|
|
|
|
</Menu>
|
2005-06-13 18:06:32 +00:00
|
|
|
<Menu name="mouseMode"><text>&Tools</text>
|
2005-01-31 19:57:46 +00:00
|
|
|
<Action name="mouse_drag"/>
|
|
|
|
<Action name="mouse_zoom"/>
|
|
|
|
<Action name="mouse_select"/>
|
2006-09-26 22:22:01 +00:00
|
|
|
<Action name="mouse_textselect"/>
|
2005-02-18 18:24:45 +00:00
|
|
|
<Separator/>
|
|
|
|
<Action name="mouse_toggle_annotate"/>
|
2005-01-31 19:57:46 +00:00
|
|
|
</Menu>
|
2003-09-14 20:23:01 +00:00
|
|
|
<Menu name="settings"><text>&Settings</text>
|
2005-03-12 15:39:04 +00:00
|
|
|
<Action name="show_leftpanel" group="show_merge"/>
|
2004-10-29 10:32:25 +00:00
|
|
|
<Action name="preferences"/>
|
- Page/Link: tooltips for links backported
- Page: rotation does not switch height and width
- Document/Part/Generator:
1. Add API for attaching stuff to the interface: ActionCollection and the Navigation Panel
also add possibility to merge an XML .rc file with menu layout. Relevant functions are:
QString Generator::getXMLFile(), returns a QString with your .rc file name.
void Generator::setupGUI (KActionCollection* , QToolbox* ), add your components to the user interface
2. Supporting backend settings:
If during startup, backends which provide a configuration ([X-KDE-oKularHasInternalSettings]
set to true) are found, a menu item: configure backends is created, clicking on it results in
loading all the generators that have settings, but not those that dont. the Generator::addPages(KConfigDialog *dlg)
function should be overloaded by a generator and dlg->addPage should be used to add pages.
If a user opens a file that needs an already loaded generator, the already loaded one is used instead of loading another.
3. Error/Warning/Notice sending support, to send a notice/error/warning, add a relevant notice/error/warning(QString& txt ,int duration)
to the generator class, and sending a message to the user is as simple as emitting a signal!
4. Intercepting of events generated by the PageView is done by Generator::handleEvent(QEvent*), subclass it, do a switch on QEvent::type(), handle your
event and return true if pageview is to proceed with its handling or false if not.
5. Support configuring the KPrinter on the generator side, use Generator::canConfigurePrinter(), return true there, and you get a nonconfigured KPrinter in your
Generator::print()
6. PixmapRequest handling update:
a.) Generator::canGeneratePixmap is now Generator::canGeneratePixmap(bool async)
b.) Document::sendGeneratorRequests is a slot now
c.) Old way of sending pixmaps (Document::requestPixmaps(QValueList<PixmapRequest*> checking if we can generate pixmap if not, waiting for receiving)
is replaced with: requestPixmaps only queues the pixmap all checking if w can generate is done in sendGeneratorReqest, the sendGeneratorRequest is
run in three places:
1. in requestPixmaps when we receive a request
2. in requestDone if pixmapStack is not empty
3. sendGeneratorRequest, apart from removing invalid requests, takes the current request and if generator canGeratePixmap(request->async)
it removes the pixmap from stack and sends to generator if not, QTimer::singleshots to itself after 20ms, it ends when stack has no valid pixmap request
7. Added a commented out zoom field to PixmapGenerator, mightcome in handy sometime
- TextPage: add instructions that handle simplyfing the RegularAreaRect, no more double painted borders in selection rectangles, this rocks.
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445196
2005-08-10 16:14:39 +00:00
|
|
|
<Action name="generator_prefs"/>
|
2003-09-14 20:23:01 +00:00
|
|
|
</Menu>
|
2007-03-07 18:15:00 +00:00
|
|
|
<Menu name="help"><text>&Help</text>
|
|
|
|
<Action name="help_about_backend" group="about_merge"/>
|
|
|
|
</Menu>
|
2002-08-30 09:14:01 +00:00
|
|
|
</MenuBar>
|
2004-09-13 17:30:00 +00:00
|
|
|
<ToolBar name="mainToolBar"><text>Main Toolbar</text>
|
2007-08-20 20:25:22 +00:00
|
|
|
<Action name="previous_page"/>
|
|
|
|
<Action name="next_page"/>
|
2004-09-13 08:51:36 +00:00
|
|
|
<Separator/>
|
2005-01-04 14:22:46 +00:00
|
|
|
<Action name="zoom_to" />
|
|
|
|
<Action name="zoom_out"/>
|
2006-11-06 23:18:58 +00:00
|
|
|
<Action name="zoom_in"/>
|
2003-09-15 08:58:18 +00:00
|
|
|
<Separator/>
|
2004-09-13 17:30:00 +00:00
|
|
|
<Action name="mouse_drag"/>
|
2004-11-03 17:35:48 +00:00
|
|
|
<Action name="mouse_zoom"/>
|
2007-09-14 10:02:33 +00:00
|
|
|
<Action name="mouse_selecttools"/>
|
2002-08-30 09:14:01 +00:00
|
|
|
</ToolBar>
|
|
|
|
</kpartgui>
|