<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=Providing_online_help_%28KDE3_Architecture%29</id>
	<title>Providing online help (KDE3 Architecture) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=Providing_online_help_%28KDE3_Architecture%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=Providing_online_help_(KDE3_Architecture)&amp;action=history"/>
	<updated>2026-05-24T23:54:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=Providing_online_help_(KDE3_Architecture)&amp;diff=2244&amp;oldid=prev</id>
		<title>Blu256: + KDE3</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=Providing_online_help_(KDE3_Architecture)&amp;diff=2244&amp;oldid=prev"/>
		<updated>2022-04-21T16:27:58Z</updated>

		<summary type="html">&lt;p&gt;+ KDE3&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:27, 21 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;{{KDE3}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;Making a program easy and intuitive to use involves a wide range of&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;Making a program easy and intuitive to use involves a wide range of&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;facilities which are usually called online help. Online help has several,&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;facilities which are usually called online help. Online help has several,&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mwdb:diff:wikidiff2:1.12:old-534:rev-2244:1.13.0 --&gt;
&lt;/table&gt;</summary>
		<author><name>Blu256</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=Providing_online_help_(KDE3_Architecture)&amp;diff=534&amp;oldid=prev</id>
		<title>imported&gt;Eliddell: Created page with &quot;Making a program easy and intuitive to use involves a wide range of facilities which are usually called online help. Online help has several, partially conflicting goals: on t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=Providing_online_help_(KDE3_Architecture)&amp;diff=534&amp;oldid=prev"/>
		<updated>2014-05-30T21:19:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Making a program easy and intuitive to use involves a wide range of facilities which are usually called online help. Online help has several, partially conflicting goals: on t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Making a program easy and intuitive to use involves a wide range of&lt;br /&gt;
facilities which are usually called online help. Online help has several,&lt;br /&gt;
partially conflicting goals: on the one, it should give the user answers&lt;br /&gt;
to the question &amp;quot;How can I do a certain task?&amp;quot;, on the other hand it&lt;br /&gt;
should help the user exploring the application and finding features he&lt;br /&gt;
doesn&amp;#039;t yet know about. It is important to recognize that this can only&lt;br /&gt;
be achieved by offering several levels of help:&lt;br /&gt;
&lt;br /&gt;
*Tooltips are tiny labels that pop up over user interface elements when the mouse remains there longer. They are especially important for tool- bars, where icons are not always sufficient to explain the purpose of a button. &lt;br /&gt;
*&amp;quot;What&amp;#039;s this?&amp;quot; help is usually a longer and richer explanation of a widget or a menu item. It is also more clunky to use: In dialogs, it can be invoked in two ways: either by pressing Shift-F1 or by clicking on the question mark in the title bar (where the support of the latter depends on the window manager). The mouse pointer then turns into an arrow with a question mark, and the help window appears when a user interfact element has been clicked. &amp;quot;What&amp;#039;s this?&amp;quot; help for menu items is usually activated by a button in the toolbar which contains an arrow and a question mark. &amp;lt;br/&amp;gt;The problem with this approach is that the user can&amp;#039;t see whether a widget provides help or not. When the user activates the question mark button and doesn&amp;#039;t get any help window when clicking on a user interface element, he will get frustrated very quickly.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; The advantage of &amp;quot;What&amp;#039;s this?&amp;quot; help windows as provided by Qt and KDE is that they can contain [https://web.archive.org/web/20101117195943/http://doc.trolltech.com/3.3/qstylesheet.html rich text], i.e. the may contain different fonts, bold and italic text and even images and tables.&lt;br /&gt;
[[Image:Qt3-whatsthis.png|frame|center|QWhatsThis screenshot]]&lt;br /&gt;
*Finally, every program should have a manual. A manual is normally viewed in khelpcenter by activating the help menu. That means, a complete additional application pops up and diverts the user from his work. Consequently, consulting the manual should only be necessary if other facilities like tooltips and what&amp;#039;s this help are not sufficient. Of course, a manual has the advantage that it does not explain single, isolated aspects of the user interface. Instead, it can explain aspects of the application in a greater context. Manuals for KDE are written using the [http://i18n.kde.org DocBook] markup language.&lt;br /&gt;
&lt;br /&gt;
From the programmer&amp;#039;s point of view, Qt provides an easy to use API for online&lt;br /&gt;
help. To assign a tooltip to widget, use the &lt;br /&gt;
QToolTip class.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp-qt&amp;quot;&amp;gt;&lt;br /&gt;
QToolTip::add(w, i18n(&amp;quot;This widget does something.&amp;quot;))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the menu bars and tool bars are created using the [[Action Pattern|action pattern]], the string used as tooltip is derived from the first argument&lt;br /&gt;
of the [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKAction.html KAction] constructor:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp-qt&amp;quot;&amp;gt;&lt;br /&gt;
action = new KAction(i18n(&amp;quot;&amp;amp;Delete&amp;quot;), &amp;quot;editdelete&amp;quot;,&lt;br /&gt;
                     SHIFT+Key_Delete, actionCollection(), &amp;quot;del&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here it is also possible to assign a text which is shown in the status bar when the &lt;br /&gt;
respective menu item is highlighted:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp-qt&amp;quot;&amp;gt;&lt;br /&gt;
action-&amp;gt;setStatusText(i18n(&amp;quot;Deletes the marked file&amp;quot;))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The API for &amp;quot;What&amp;#039;s this?&amp;#039; help is very similar. In dialogs, use the following&lt;br /&gt;
code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp-qt&amp;quot;&amp;gt;&lt;br /&gt;
QWhatsThis::add(w, i18n(&amp;quot;&amp;lt;qt&amp;gt;This demonstrates &amp;lt;b&amp;gt;Qt&amp;lt;/b&amp;gt;&amp;#039;s&amp;quot;&lt;br /&gt;
                        &amp;quot; rich text engine.&amp;lt;ul&amp;gt;&amp;quot;&lt;br /&gt;
                        &amp;quot;&amp;lt;li&amp;gt;Foo&amp;lt;/li&amp;gt;&amp;quot;&lt;br /&gt;
                        &amp;quot;&amp;lt;li&amp;gt;Bar&amp;lt;/li&amp;gt;&amp;quot;&lt;br /&gt;
                        &amp;quot;&amp;lt;/ul&amp;gt;&amp;lt;/qt&amp;gt;&amp;quot;))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For menu items, use&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp-qt&amp;quot;&amp;gt;&lt;br /&gt;
action-&amp;gt;setWhatsThis(i18n(&amp;quot;Deletes the marked file&amp;quot;))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The invocation of khelpcenter is encapsulated in the &lt;br /&gt;
[http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKApplication.html KApplication]&lt;br /&gt;
class. In order to show the manual of your application, just use &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp-qt&amp;quot;&amp;gt;&lt;br /&gt;
kapp-&amp;gt;invokeHelp()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This displays the first page with the table of contents. When&lt;br /&gt;
you want to display only a certain section of the manual, you&lt;br /&gt;
can give an additional argument to invokeHelp() determining&lt;br /&gt;
the anchor which the browser jumps to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Initial Author:&amp;#039;&amp;#039; [mailto:bernd@kdevelop.org Bernd Gehrmann]&lt;br /&gt;
&lt;br /&gt;
[[Category:KDE3]]&lt;br /&gt;
[[Category:Architecture]]&lt;br /&gt;
[[Category:Developers]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Eliddell</name></author>
	</entry>
</feed>