File: ch05lev1sec5.html

package info (click to toggle)
ebook-dev-kde20 200010-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k, sarge
  • size: 11,428 kB
  • ctags: 2,726
  • sloc: sh: 96; makefile: 35
file content (198 lines) | stat: -rw-r--r-- 3,578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Exercises</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.54"/><LINK
REL="HOME"
TITLE="KDE 2.0 Development"
HREF="index.html"/><LINK
REL="UP"
TITLE="KDE User Interface Compliance"
HREF="ch05.html"/><LINK
REL="PREVIOUS"
TITLE="Summary"
HREF="ch05lev1sec4.html"/><LINK
REL="NEXT"
TITLE="KDE Style Reference"
HREF="ch06.html"/><META
HTTP-EQUIV="Content-Style-Type"
CONTENT="text/css"/><LINK
REL="stylesheet"
HREF="kde-common.css"
TYPE="text/css"/><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=iso-8859-1"/><META
HTTP-EQUIV="Content-Language"
CONTENT="en"/><LINK
REL="stylesheet"
HREF="kde-localised.css"
TYPE="text/css"
TITLE="KDE-English"/><LINK
REL="stylesheet"
HREF="kde-default.css"
TYPE="text/css"
TITLE="KDE-Default"/></HEAD
><BODY
CLASS="section"
LINK="#336699"
VLINK="#336699"
ALINK="#336699"
BGCOLOR="#FFFFFF"
><DIV
ALIGN="RIGHT"
CLASS="NAVBAR"
><P
><A
HREF="ch05lev1sec4.html"
>Prev</A
> <A
HREF="ch06.html"
>Next</A
> <A
HREF="index.html"
>Table of Contents</A
></P
></DIV
><DIV
CLASS="section"
><TABLE
WIDTH="100%"
CELLPADDING="0"
CELLSPACING="0"
BORDER="0"
ALIGN="CENTER"
><TR
><TD
WIDTH="90%"
><H1
CLASS="section"
><A
NAME="ch05lev1sec5"
>5.5. Exercises</A
></H1
><DIV
CLASS="qandaset"
><DL
><DT
>5.5.1. <A
HREF="ch05lev1sec5.html#ch05que01"
><A
HREF="appc7.html#ch05ans01"
>Use <TT
CLASS="literal"
>KStatusBar::insertWidget()</TT
> to insert the KDE widget of your choice into the statusbar. Is the widget appropriate for the statusbar? What information does it convey to the user?</A
></A
></DT
><DT
>5.5.2. <A
HREF="ch05lev1sec5.html#ch05que02"
><A
HREF="appc7.html#ch05ans02"
>Create a document-centric application that has <TT
CLASS="literal"
>QMultiLineEdit</TT
> as its client area. Be sure to use <TT
CLASS="literal"
>KMenuBar</TT
>, <TT
CLASS="literal"
>KToolBar</TT
>, and <TT
CLASS="literal"
>KStatusBar</TT
>. Include New and Quit on the File menu and New on the toolbar. Put the line number into the statusbar. (You will need to refer to the Qt documentation for <TT
CLASS="literal"
>QMultiLineEdit</TT
> for this exercise.)</A
></A
></DT
></DL
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="ch05que01"
></A
><B
>5.5.1. </B
><A
HREF="appc7.html#ch05ans01"
>Use <TT
CLASS="literal"
>KStatusBar::insertWidget()</TT
> to insert the KDE widget of your choice into the statusbar. Is the widget appropriate for the statusbar? What information does it convey to the user?</A
></P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="ch05que02"
></A
><B
>5.5.2. </B
><A
HREF="appc7.html#ch05ans02"
>Create a document-centric application that has <TT
CLASS="literal"
>QMultiLineEdit</TT
> as its client area. Be sure to use <TT
CLASS="literal"
>KMenuBar</TT
>, <TT
CLASS="literal"
>KToolBar</TT
>, and <TT
CLASS="literal"
>KStatusBar</TT
>. Include New and Quit on the File menu and New on the toolbar. Put the line number into the statusbar. (You will need to refer to the Qt documentation for <TT
CLASS="literal"
>QMultiLineEdit</TT
> for this exercise.)</A
></P
></DIV
></DIV
></DIV
></TD
><TD
WIDTH="10%"
VALIGN="BOTTOM"
ALIGN="CENTER"
><ANNMARK
NAME="ch05lev1sec5"/></TD
></TR
><ANNOTATION
NAME="ch05lev1sec5"
TITLE="Exercises"/></TABLE
></DIV
><DIV
ALIGN="RIGHT"
CLASS="NAVBAR"
><P
><A
HREF="ch05lev1sec4.html"
>Prev</A
> <A
HREF="ch06.html"
>Next</A
> <A
HREF="index.html"
>Table of Contents</A
></P
></DIV
><HR
WIDTH="100%"
SIZE="2"
ALIGN="CENTER"
NOSHADE="NOSHADE"/></BODY
></HTML
>