m (translate to spanish) |
(translate to spanish) |
||
| Line 11: | Line 11: | ||
[[Image:Kde4-queEsEsto.png|frame|center|Captura de pantalla ¿Qué es esto?]] | [[Image:Kde4-queEsEsto.png|frame|center|Captura de pantalla ¿Qué es esto?]] | ||
| − | * | + | *Finalmente, cada programa debería tener un manual. Normalmente se consulta un manual en khelpcenter,activando el menu de ayuda. Esto significa cargar una nueva aplicacion y desviar la atencion del usuario. Por tanto, la consulta del manual solo deberia ser necesaria si las otras faclidades como los tooltips o la ayuda "¿Qué es esto?" no son suficientes. Por supuesto, un manual tiene la ventaja de que no explica un aspecto aislado de la interfaz de usuario, en cambio, puede explicar aspectos de la aplicacion en un contexto mas amplio. Los manuales de KDE están escritos usando el lenguaje de etiquetado [http://i18n.kde.org DocBook]. |
From the programmer's point of view, Qt provides an easy to use API for online | From the programmer's point of view, Qt provides an easy to use API for online | ||
Arquitectura de KDE - Suministro de ayuda online
La construcción de un programa facil e intuitivo de usar implica un amplio rango de facilidades que por lo general se llama ayuda online. La ayuda online persigue varios objetivos parcialmente contradictorios: por un lado, debería dar respuesta a la pregunta del usuario "¿Como puedo realizar una cierta tarea?", pero por el otro lado debería ayudar al usuario que explora la aplicación y se encuentra con caracteristicas que aun desconoce. Es importante reconocer que esta situacion sólo puede ser tratada ofreciendo varios niveles de ayuda:
From the programmer's point of view, Qt provides an easy to use API for online
help. To assign a tooltip to widget, simply use its setToolTip() method.
widget->setToolTip(i18n("This widget does something."))
If the menu bars and tool bars are created using the action pattern, the string used as tooltip is derived from the first argument of the KAction constructor:
action = new KAction(i18n("&Delete"), "editdelete",
SHIFT+Key_Delete, actionCollection(), "del")
Here it is also possible to assign a text which is shown in the status bar when the respective menu item is highlighted:
action->setStatusText(i18n("Deletes the marked file"))
The API for "What's this?' help is very similar. In dialogs, use the following code:
widget->setWhatsThis(i18n("<qt>This demonstrates Qt's"
For menu items, use
action->setWhatsThis(i18n("Deletes the marked file"))
The invocation of khelpcenter is encapsulated in the KToolInvocation class. In order to show the manual of your application, just use the static method:
KToolInvocation::invokeHelp()
This displays the first page with the table of contents. When you want to display only a certain section of the manual, you can give an additional argument to invokeHelp() determining the anchor which the browser jumps to.
Initial Author: Bernd Gehrmann