summaryrefslogtreecommitdiffstats
path: root/doc/html/optiondialog_8cpp-source.html
blob: 0137a7ff13b9e6379a1683198b98578372dcec79 (plain)
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>kshowmail: kshowmail/optiondialog.cpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_656923b733374505e0e2f68ecb68d952.html">kshowmail</a></div>
<h1>optiondialog.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">                          optiondialog.cpp  -  description</span>
<a name="l00003"></a>00003 <span class="comment">                             -------------------</span>
<a name="l00004"></a>00004 <span class="comment">    begin                : Fri Oct 26 2001</span>
<a name="l00005"></a>00005 <span class="comment">    copyright            : (C) 2001 by Eggert Ehmke</span>
<a name="l00006"></a>00006 <span class="comment">    email                : [email protected]</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">    26 Sep 2002 - Allow for columns to be hidden. Allistar Melville</span>
<a name="l00009"></a>00009 <span class="comment"> ***************************************************************************/</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="comment">/***************************************************************************</span>
<a name="l00012"></a>00012 <span class="comment"> *                                                                         *</span>
<a name="l00013"></a>00013 <span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span>
<a name="l00014"></a>00014 <span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span>
<a name="l00015"></a>00015 <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span>
<a name="l00016"></a>00016 <span class="comment"> *   (at your option) any later version.                                   *</span>
<a name="l00017"></a>00017 <span class="comment"> *                                                                         *</span>
<a name="l00018"></a>00018 <span class="comment"> ***************************************************************************/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;ntqcheckbox.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;ntqspinbox.h&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;ntqlabel.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;ntqfileinfo.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;ntqfiledialog.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;ntqpushbutton.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;tdemessagebox.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;tdelocale.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;knuminput.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;kdebug.h&gt;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#include "optiondialog.h"</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "serverdialog.h"</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "configlist.h"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "configelem.h"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "commandlist.h"</span>
<a name="l00037"></a>00037 
<a name="l00038"></a><a class="code" href="classOptionDialog.html#798615cd9184797821f151a4465c1e2f">00038</a> <a class="code" href="classOptionDialog.html#798615cd9184797821f151a4465c1e2f">OptionDialog::OptionDialog</a>(TQWidget *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="classConfigList.html">ConfigList</a>* config, <a class="code" href="classCommandList.html">CommandList</a>* cmd):
<a name="l00039"></a>00039        <a class="code" href="classOptionDlg.html">OptionDlg</a> (parent,name,true),
<a name="l00040"></a>00040        m_ConfigList (*config),
<a name="l00041"></a>00041        m_pConfigList (config),
<a name="l00042"></a>00042        m_pCmdList (cmd)
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044        <a class="code" href="classOptionDlg.html#893feee616d6ae1eb502abf350b7335c">m_CheckSavePassword</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#9d1ac3dbd228d057f3894d761c493046">m_bSavePassword</a>);
<a name="l00045"></a>00045        <a class="code" href="classOptionDlg.html#b87c903f5579c7731282344dc5377eab">m_CheckConfirmDelete</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#a466577c54fec821ff484a378ce32e98">confirmDeletion</a>() );
<a name="l00046"></a>00046        <a class="code" href="classOptionDlg.html#32bf82b48c612df1755a61fd96171b9c">m_SpinInitTimer</a>-&gt;setValue( <a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#3b74518a8dc0aff55be667276bc4597b">getInitTime</a>() );
<a name="l00047"></a>00047        <a class="code" href="classOptionDlg.html#073728fdc69ab0cf6f7755e38c28a13b">m_SpinIntervalTimer</a>-&gt;setValue (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#3e41f463a87fbc8523bbd731cf36b473">getRefreshTimeInterval</a>());
<a name="l00048"></a>00048     <a class="code" href="classOptionDlg.html#fec35e84e60d7114d8dc21d3accf5c26">m_SpinPop3Timer</a>-&gt;setValue (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#80a368db22ca3a29c668a544611d16f4">getTimeoutTime</a>() );
<a name="l00049"></a>00049     <a class="code" href="classOptionDlg.html#a7a81fcbeb3e6d9a97ea8e84ff82248e">m_CheckBeep</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#a866f2fd4fb32d49ab99306150d79c50">m_bBeep</a>);
<a name="l00050"></a>00050     <a class="code" href="classOptionDlg.html#1b2f26bc2ecf8563c40623ebf5d9e817">m_CheckSound</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#a50d4f3ca2c1f7814aec63df25de1811">m_bSound</a>);
<a name="l00051"></a>00051        <a class="code" href="classOptionDlg.html#15c1be3d6561f4a0bbfdacba6830ef51">m_ButtonSelectSoundFile</a>-&gt;setEnabled (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#a50d4f3ca2c1f7814aec63df25de1811">m_bSound</a>);
<a name="l00052"></a>00052        <a class="code" href="classOptionDlg.html#9254f6d43feea0d85b590d0feb394cb3">m_EditSoundFile</a>-&gt;setEnabled (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#a50d4f3ca2c1f7814aec63df25de1811">m_bSound</a>);
<a name="l00053"></a>00053        <a class="code" href="classOptionDlg.html#01a59a3d9e52b6e2ccf55d9c910ebb85">m_ButtonSoundTest</a>-&gt;setEnabled (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#a50d4f3ca2c1f7814aec63df25de1811">m_bSound</a>);
<a name="l00054"></a>00054     <a class="code" href="classOptionDlg.html#9254f6d43feea0d85b590d0feb394cb3">m_EditSoundFile</a>-&gt;setText (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#be34e6084394fa6fa99422a7cc50d8f0">m_strSoundFile</a>);
<a name="l00055"></a>00055     <a class="code" href="classOptionDlg.html#423a46c1515c3cc3d84a9c80b770119c">m_CheckStartMinimized</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#fb4f1f200303a7e94114a8c4c85eb47e">m_bStartMinimized</a>);
<a name="l00056"></a>00056     <a class="code" href="classOptionDlg.html#d630c0373296051e08a03ba0385137b2">m_CheckTerminateNoMail</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#cdf78356d632253ac463907e526eb26a">m_bTerminate</a>);
<a name="l00057"></a>00057     <a class="code" href="classOptionDlg.html#15e7929ac669b9e82939047d06497488">m_CheckMinimizeNoMail</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#f22fd0f8854795662a444bc2b4f8a9b9">m_bMinimize</a>);
<a name="l00058"></a>00058     <a class="code" href="classOptionDlg.html#ed09462ee6cdb999c42c142cfb023db6">m_CheckKeepNewMail</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#54c7671d25847b7b16cf71ec61c640d0">m_bKeepNew</a>);
<a name="l00059"></a>00059     <a class="code" href="classOptionDlg.html#86990595eb7bb5191dee0dca630e5041">m_CheckShowMessagebox</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#35d80df8b80f34868140a2163d207490">m_bShowMessage</a>);
<a name="l00060"></a>00060     <a class="code" href="classOptionDlg.html#755cd3fc655abf4e5835bccd03cf9c39">m_CheckShowMainWindow</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#b9613ab5f07edb0ef04383867674a5ce">m_bShowMainWindow</a>);
<a name="l00061"></a>00061     <a class="code" href="classOptionDlg.html#613b7eb6be9c441040100dd69c4314db">m_CheckExternalProg</a>-&gt;setChecked (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#e53957ef0d235a05cffaf699d0572bdc">m_bExternalProg</a>);
<a name="l00062"></a>00062        <a class="code" href="classOptionDlg.html#6044d14d1929890f3dd9e309f9cac091">m_ButtonExternalProgTest</a>-&gt;setEnabled (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#e53957ef0d235a05cffaf699d0572bdc">m_bExternalProg</a>);
<a name="l00063"></a>00063        <a class="code" href="classOptionDlg.html#464fd65b203b450828c95e273c17ecc0">m_ComboExternalProg</a>-&gt;setEnabled (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#e53957ef0d235a05cffaf699d0572bdc">m_bExternalProg</a>);
<a name="l00064"></a>00064        <a class="code" href="classOptionDlg.html#5adabd2b563e6c382e0f578ca2cfd113">TQLabel_5</a>-&gt;setEnabled (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#e53957ef0d235a05cffaf699d0572bdc">m_bExternalProg</a>);
<a name="l00065"></a>00065     <a class="code" href="classOptionDlg.html#22d76af0ad75e30b878c1412da3f84a0">m_SpinMaxSize</a>-&gt;setValue (<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#e0f8dd2ed0939ddeec29b9da31228cb0">m_nMaxMailSize</a>);
<a name="l00066"></a>00066        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#59803bd5eef942d62ab06bee12dd9b1f">setCombo</a> (<a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>);
<a name="l00067"></a>00067        <a class="code" href="classOptionDialog.html#88bc7fc86cc13a701d216bd8b9bf3f5b">m_pCmdList</a>-&gt;<a class="code" href="classCommandList.html#e5a8632fb53943a8ec5b8edfa268e668">setCombo</a> (<a class="code" href="classOptionDlg.html#464fd65b203b450828c95e273c17ecc0">m_ComboExternalProg</a>, <a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#44ce4ad71c954f0df6043740a7bcd80c">m_nExternalProg</a>);
<a name="l00068"></a>00068        <span class="comment">//Modifications made by AM (account columns)</span>
<a name="l00069"></a>00069        <a class="code" href="classOptionDlg.html#6379a589358b6110cfa48798a30951ab">m_CheckActive</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[0]);
<a name="l00070"></a>00070        <a class="code" href="classOptionDlg.html#1fdb0d9cfac85bbef22d749e40dd9376">m_CheckAccount1</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[1]);
<a name="l00071"></a>00071        <a class="code" href="classOptionDlg.html#b1e0581d2cf52c0337d42bbc898a2fc2">m_CheckServer</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[2]);
<a name="l00072"></a>00072        <a class="code" href="classOptionDlg.html#e7595a79588cccd851e00714b0b47d94">m_CheckUser</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[3]);
<a name="l00073"></a>00073        <a class="code" href="classOptionDlg.html#d20b2cce97a72b706dfb29ddc93f1766">m_CheckMessages</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[4]);
<a name="l00074"></a>00074        <a class="code" href="classOptionDlg.html#bbd14d7cfd0662a8089e83be0809d46f">m_CheckSize1</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[5]);
<a name="l00075"></a>00075        <span class="comment">//Modifications made by AM (email columns)</span>
<a name="l00076"></a>00076        <a class="code" href="classOptionDlg.html#c24185842afb01977653ac479eb88b1a">m_CheckNumber</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[0]);
<a name="l00077"></a>00077        <a class="code" href="classOptionDlg.html#445e189070032f170afbdfc945e304d2">m_CheckAccount2</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[1]);
<a name="l00078"></a>00078        <a class="code" href="classOptionDlg.html#5f20a2cdfc1bb8be22fb4c8480ffd727">m_CheckFrom</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[2]);
<a name="l00079"></a>00079        <a class="code" href="classOptionDlg.html#3a9edd5103bdf56db01a979aa930d30a">m_CheckTo</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[3]);
<a name="l00080"></a>00080        <a class="code" href="classOptionDlg.html#f92fbbd7d979799bd4c6b61a733c99cf">m_CheckSubject</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[4]);
<a name="l00081"></a>00081        <a class="code" href="classOptionDlg.html#428705f2ded0cf3981eea054903729e3">m_CheckDate</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[5]);
<a name="l00082"></a>00082        <a class="code" href="classOptionDlg.html#ffcca9b555e6fd49b0b98df4f1e95390">m_CheckSize2</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[6]);
<a name="l00083"></a>00083        <a class="code" href="classOptionDlg.html#29a9e036f6fec07d149814c96a5c5d6d">m_CheckContent</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[7]);
<a name="l00084"></a>00084        <a class="code" href="classOptionDlg.html#882382906f749f464e23b7d68e354060">m_CheckState</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[8]);
<a name="l00085"></a>00085     <span class="comment">// add HTML formatting</span>
<a name="l00086"></a>00086     <a class="code" href="classOptionDlg.html#822eac789cfdbe481591d6a14b250571">m_checkHTML</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#4cd09107151c848fafe17db0c8e9a4a6">allowHTML</a>() );
<a name="l00087"></a>00087     <a class="code" href="classOptionDlg.html#8fc4bdd8d230a0f5d6ed01cde33e9278">_checkConfirmClose</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#80b1f5a036cdaf9054ba57831a0c013e">m_bConfirmClose</a>);
<a name="l00088"></a>00088     <span class="comment">// added by morhekil</span>
<a name="l00089"></a>00089     <span class="comment">// minimize on close</span>
<a name="l00090"></a>00090     <a class="code" href="classOptionDlg.html#5553bc799edbadb53b00f8c26342cc0e">m_CheckCloseMinimizes</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#da6c14776958a3b28f68797c7feb6c5b">m_bCloseMinimizes</a>);
<a name="l00091"></a>00091     <a class="code" href="classOptionDlg.html#ae8aaaee5cd4a83d5f7f09d16cb4cdcd">m_CheckMinimizeToTray</a>-&gt;setChecked(<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#af4cc3801f229ae974131ef1e000a8cf">m_bMinimizeToTray</a>);
<a name="l00092"></a>00092 }
<a name="l00093"></a>00093 
<a name="l00094"></a><a class="code" href="classOptionDialog.html#640a1faddda44f2567cf386de0085ec7">00094</a> <a class="code" href="classOptionDialog.html#640a1faddda44f2567cf386de0085ec7">OptionDialog::~OptionDialog</a>(){
<a name="l00095"></a>00095 }
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="classOptionDialog.html#2a8b4de35b26856ddc9211d5cf56eeb7">00097</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#2a8b4de35b26856ddc9211d5cf56eeb7">OptionDialog::slotButtonAddClicked</a>()
<a name="l00098"></a>00098 {
<a name="l00099"></a>00099        <a class="code" href="classConfigElem.html">ConfigElem</a>* pElem = <span class="keyword">new</span> <a class="code" href="classConfigElem.html">ConfigElem</a> ( &amp;<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a> );
<a name="l00100"></a>00100        <a class="code" href="classServerDialog.html">ServerDialog</a> dlg (<span class="keyword">this</span>, <span class="stringliteral">"Server Options"</span>, pElem, &amp;<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>);
<a name="l00101"></a>00101        <span class="keywordflow">if</span> (dlg.exec () == Accepted)
<a name="l00102"></a>00102        {
<a name="l00103"></a>00103               <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.inSort (pElem);
<a name="l00104"></a>00104         <span class="comment">//connect the signals of the new account</span>
<a name="l00105"></a>00105         <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#ea02d4502c51afab1e50f9fabd36a722">connectAccounts</a>();
<a name="l00106"></a>00106 
<a name="l00107"></a>00107               <a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>-&gt;insertItem (pElem-&gt;<a class="code" href="classConfigElem.html#760e18ad688d55cd76bfeeb4958df769">getAccountName</a>(), <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at ());
<a name="l00108"></a>00108               <a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>-&gt;setCurrentItem (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at ());
<a name="l00109"></a>00109        }
<a name="l00110"></a>00110        <span class="keywordflow">else</span>
<a name="l00111"></a>00111               <span class="keyword">delete</span> pElem;
<a name="l00112"></a>00112 }
<a name="l00113"></a>00113 
<a name="l00114"></a><a class="code" href="classOptionDialog.html#7dfcbdf6d27c3069abb292e205d2edbb">00114</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#7dfcbdf6d27c3069abb292e205d2edbb">OptionDialog::slotButtonEditClicked</a>()
<a name="l00115"></a>00115 {
<a name="l00116"></a>00116        <a class="code" href="classConfigElem.html">ConfigElem</a>* pElem = <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.current ();
<a name="l00117"></a>00117        <span class="keywordflow">if</span> (pElem)
<a name="l00118"></a>00118        {
<a name="l00119"></a>00119               <a class="code" href="classServerDialog.html">ServerDialog</a> dlg (<span class="keyword">this</span>, <span class="stringliteral">"Server Options"</span>, pElem, NULL);
<a name="l00120"></a>00120               dlg.exec ();
<a name="l00121"></a>00121        }
<a name="l00122"></a>00122 }
<a name="l00123"></a>00123 
<a name="l00124"></a><a class="code" href="classOptionDialog.html#5950f796be046ef5a1f24226ce7b093b">00124</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#5950f796be046ef5a1f24226ce7b093b">OptionDialog::slotButtonCopyClicked</a>()
<a name="l00125"></a>00125 {
<a name="l00126"></a>00126        <span class="keywordflow">if</span> (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.current())
<a name="l00127"></a>00127        {
<a name="l00128"></a>00128               <a class="code" href="classConfigElem.html">ConfigElem</a>* pElem = <span class="keyword">new</span> <a class="code" href="classConfigElem.html">ConfigElem</a> (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.current ());
<a name="l00129"></a>00129               <a class="code" href="classServerDialog.html">ServerDialog</a> dlg (<span class="keyword">this</span>, <span class="stringliteral">"Server Options"</span>, pElem, &amp;<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>);
<a name="l00130"></a>00130               <span class="keywordflow">if</span> (dlg.exec () == Accepted)
<a name="l00131"></a>00131               {
<a name="l00132"></a>00132                      pElem-&gt;clearMailList();
<a name="l00133"></a>00133                      <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.inSort (pElem);
<a name="l00134"></a>00134             <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#ea02d4502c51afab1e50f9fabd36a722">connectAccounts</a>();
<a name="l00135"></a>00135 
<a name="l00136"></a>00136                      <a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>-&gt;insertItem (pElem-&gt;getAccountName(), <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at ());
<a name="l00137"></a>00137                      <a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>-&gt;setCurrentItem (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at ());
<a name="l00138"></a>00138               }
<a name="l00139"></a>00139               <span class="keywordflow">else</span>
<a name="l00140"></a>00140                      <span class="keyword">delete</span> pElem;
<a name="l00141"></a>00141        }
<a name="l00142"></a>00142 }
<a name="l00143"></a>00143 
<a name="l00144"></a><a class="code" href="classOptionDialog.html#5323f330c13ae96774c90d5e4a5524eb">00144</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#5323f330c13ae96774c90d5e4a5524eb">OptionDialog::slotButtonDeleteClicked</a>()
<a name="l00145"></a>00145 {
<a name="l00146"></a>00146        <span class="keywordflow">if</span> (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.current())
<a name="l00147"></a>00147        {
<a name="l00148"></a>00148               <span class="keywordflow">if</span> (KMessageBox::warningYesNo (<span class="keyword">this</span>, i18n(<span class="stringliteral">"Account %1 will be deleted.\nAre you sure ?"</span>).arg(<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.current()-&gt;getAccountName())) == KMessageBox::Yes)
<a name="l00149"></a>00149               {
<a name="l00150"></a>00150                      <span class="keywordtype">int</span> index = <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at ();
<a name="l00151"></a>00151                      <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.remove (index);
<a name="l00152"></a>00152             <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#ea02d4502c51afab1e50f9fabd36a722">connectAccounts</a>();
<a name="l00153"></a>00153                      <a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>-&gt;removeItem (index);
<a name="l00154"></a>00154                      <a class="code" href="classOptionDlg.html#dda3f84fb59db208ce6d71ff1500b679">m_ComboAccount</a>-&gt;setCurrentItem (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at ());
<a name="l00155"></a>00155               }
<a name="l00156"></a>00156        }
<a name="l00157"></a>00157 }
<a name="l00158"></a>00158 
<a name="l00159"></a><a class="code" href="classOptionDialog.html#18a6f8a046b2e75133d334e5e8f76929">00159</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#18a6f8a046b2e75133d334e5e8f76929">OptionDialog::slotButtonOkClicked</a>()
<a name="l00160"></a>00160 {
<a name="l00161"></a>00161        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#9d1ac3dbd228d057f3894d761c493046">m_bSavePassword</a> = <a class="code" href="classOptionDlg.html#893feee616d6ae1eb502abf350b7335c">m_CheckSavePassword</a>-&gt;isChecked ();
<a name="l00162"></a>00162        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#5f798d2e62d3d8d013e3b2f54d51e94e">setConfirmDeletion</a>( <a class="code" href="classOptionDlg.html#b87c903f5579c7731282344dc5377eab">m_CheckConfirmDelete</a>-&gt;isChecked () );
<a name="l00163"></a>00163        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#c40250ce119d3e6f75b32b296ffaa36c">setInitTime</a>( <a class="code" href="classOptionDlg.html#32bf82b48c612df1755a61fd96171b9c">m_SpinInitTimer</a>-&gt;value() );
<a name="l00164"></a>00164        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#1676756c27b3578802dba1ce47b39dcd">setRefreshTimeInterval</a>( <a class="code" href="classOptionDlg.html#073728fdc69ab0cf6f7755e38c28a13b">m_SpinIntervalTimer</a>-&gt;value () );
<a name="l00165"></a>00165     <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#2470bfe4948ada050b08b93cef51b969">setTimeoutTime</a>( <a class="code" href="classOptionDlg.html#fec35e84e60d7114d8dc21d3accf5c26">m_SpinPop3Timer</a>-&gt;value () );
<a name="l00166"></a>00166        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#e0f8dd2ed0939ddeec29b9da31228cb0">m_nMaxMailSize</a> = <a class="code" href="classOptionDlg.html#22d76af0ad75e30b878c1412da3f84a0">m_SpinMaxSize</a>-&gt;value ();
<a name="l00167"></a>00167        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#a866f2fd4fb32d49ab99306150d79c50">m_bBeep</a> = <a class="code" href="classOptionDlg.html#a7a81fcbeb3e6d9a97ea8e84ff82248e">m_CheckBeep</a>-&gt;isChecked ();
<a name="l00168"></a>00168        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#a50d4f3ca2c1f7814aec63df25de1811">m_bSound</a> = <a class="code" href="classOptionDlg.html#1b2f26bc2ecf8563c40623ebf5d9e817">m_CheckSound</a>-&gt;isChecked ();
<a name="l00169"></a>00169        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#be34e6084394fa6fa99422a7cc50d8f0">m_strSoundFile</a> = <a class="code" href="classOptionDlg.html#9254f6d43feea0d85b590d0feb394cb3">m_EditSoundFile</a>-&gt;text ();
<a name="l00170"></a>00170        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#fb4f1f200303a7e94114a8c4c85eb47e">m_bStartMinimized</a> = <a class="code" href="classOptionDlg.html#423a46c1515c3cc3d84a9c80b770119c">m_CheckStartMinimized</a>-&gt;isChecked ();
<a name="l00171"></a>00171        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#cdf78356d632253ac463907e526eb26a">m_bTerminate</a> = <a class="code" href="classOptionDlg.html#d630c0373296051e08a03ba0385137b2">m_CheckTerminateNoMail</a>-&gt;isChecked ();
<a name="l00172"></a>00172        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#f22fd0f8854795662a444bc2b4f8a9b9">m_bMinimize</a> = <a class="code" href="classOptionDlg.html#15e7929ac669b9e82939047d06497488">m_CheckMinimizeNoMail</a>-&gt;isChecked ();
<a name="l00173"></a>00173        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#54c7671d25847b7b16cf71ec61c640d0">m_bKeepNew</a> = <a class="code" href="classOptionDlg.html#ed09462ee6cdb999c42c142cfb023db6">m_CheckKeepNewMail</a>-&gt;isChecked ();
<a name="l00174"></a>00174        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#35d80df8b80f34868140a2163d207490">m_bShowMessage</a> = <a class="code" href="classOptionDlg.html#86990595eb7bb5191dee0dca630e5041">m_CheckShowMessagebox</a>-&gt;isChecked ();
<a name="l00175"></a>00175        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#b9613ab5f07edb0ef04383867674a5ce">m_bShowMainWindow</a> = <a class="code" href="classOptionDlg.html#755cd3fc655abf4e5835bccd03cf9c39">m_CheckShowMainWindow</a>-&gt;isChecked ();
<a name="l00176"></a>00176        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#44ce4ad71c954f0df6043740a7bcd80c">m_nExternalProg</a> = <a class="code" href="classOptionDlg.html#464fd65b203b450828c95e273c17ecc0">m_ComboExternalProg</a>-&gt;currentItem ();
<a name="l00177"></a>00177        kdDebug () &lt;&lt; <span class="stringliteral">"ext prog = "</span> &lt;&lt; <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#44ce4ad71c954f0df6043740a7bcd80c">m_nExternalProg</a> &lt;&lt; endl;
<a name="l00178"></a>00178        kdDebug () &lt;&lt; <span class="stringliteral">"count = "</span> &lt;&lt; <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.count() &lt;&lt; endl;
<a name="l00179"></a>00179        <span class="keywordflow">if</span> ((<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#44ce4ad71c954f0df6043740a7bcd80c">m_nExternalProg</a> &gt;= 0) &amp;&amp; (<a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.count() &gt; 0))
<a name="l00180"></a>00180               <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#e53957ef0d235a05cffaf699d0572bdc">m_bExternalProg</a> = <a class="code" href="classOptionDlg.html#613b7eb6be9c441040100dd69c4314db">m_CheckExternalProg</a>-&gt;isChecked ();
<a name="l00181"></a>00181        <span class="keywordflow">else</span>
<a name="l00182"></a>00182               <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#e53957ef0d235a05cffaf699d0572bdc">m_bExternalProg</a> = <span class="keyword">false</span>;
<a name="l00183"></a>00183        <span class="comment">//modifications by AM (hiding columns)</span>
<a name="l00184"></a>00184        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[0] = <a class="code" href="classOptionDlg.html#6379a589358b6110cfa48798a30951ab">m_CheckActive</a>-&gt;isChecked();
<a name="l00185"></a>00185        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[1] = <a class="code" href="classOptionDlg.html#1fdb0d9cfac85bbef22d749e40dd9376">m_CheckAccount1</a>-&gt;isChecked();
<a name="l00186"></a>00186        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[2] = <a class="code" href="classOptionDlg.html#b1e0581d2cf52c0337d42bbc898a2fc2">m_CheckServer</a>-&gt;isChecked();
<a name="l00187"></a>00187        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[3] = <a class="code" href="classOptionDlg.html#e7595a79588cccd851e00714b0b47d94">m_CheckUser</a>-&gt;isChecked();
<a name="l00188"></a>00188        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[4] = <a class="code" href="classOptionDlg.html#d20b2cce97a72b706dfb29ddc93f1766">m_CheckMessages</a>-&gt;isChecked();
<a name="l00189"></a>00189        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#8b918d6130d46fad29902c05d2c73161">m_shownAccountColumns</a>[5] = <a class="code" href="classOptionDlg.html#bbd14d7cfd0662a8089e83be0809d46f">m_CheckSize1</a>-&gt;isChecked();
<a name="l00190"></a>00190        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[0] = <a class="code" href="classOptionDlg.html#c24185842afb01977653ac479eb88b1a">m_CheckNumber</a>-&gt;isChecked();
<a name="l00191"></a>00191        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[1] = <a class="code" href="classOptionDlg.html#445e189070032f170afbdfc945e304d2">m_CheckAccount2</a>-&gt;isChecked();
<a name="l00192"></a>00192        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[2] = <a class="code" href="classOptionDlg.html#5f20a2cdfc1bb8be22fb4c8480ffd727">m_CheckFrom</a>-&gt;isChecked();
<a name="l00193"></a>00193        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[3] = <a class="code" href="classOptionDlg.html#3a9edd5103bdf56db01a979aa930d30a">m_CheckTo</a>-&gt;isChecked();
<a name="l00194"></a>00194        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[4] = <a class="code" href="classOptionDlg.html#f92fbbd7d979799bd4c6b61a733c99cf">m_CheckSubject</a>-&gt;isChecked();
<a name="l00195"></a>00195        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[5] = <a class="code" href="classOptionDlg.html#428705f2ded0cf3981eea054903729e3">m_CheckDate</a>-&gt;isChecked();
<a name="l00196"></a>00196        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[6] = <a class="code" href="classOptionDlg.html#ffcca9b555e6fd49b0b98df4f1e95390">m_CheckSize2</a>-&gt;isChecked();
<a name="l00197"></a>00197        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[7] = <a class="code" href="classOptionDlg.html#29a9e036f6fec07d149814c96a5c5d6d">m_CheckContent</a>-&gt;isChecked();
<a name="l00198"></a>00198        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#0939b991015fe414b0078fa320c4ca15">m_shownMailColumns</a>[8] = <a class="code" href="classOptionDlg.html#882382906f749f464e23b7d68e354060">m_CheckState</a>-&gt;isChecked();
<a name="l00199"></a>00199     <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#9f3341f60b7f800b58f50e67c1f872b4">setAllowHTML</a>(  <a class="code" href="classOptionDlg.html#822eac789cfdbe481591d6a14b250571">m_checkHTML</a>-&gt;isChecked() );
<a name="l00200"></a>00200     <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#80b1f5a036cdaf9054ba57831a0c013e">m_bConfirmClose</a> = <a class="code" href="classOptionDlg.html#8fc4bdd8d230a0f5d6ed01cde33e9278">_checkConfirmClose</a>-&gt;isChecked();
<a name="l00201"></a>00201 
<a name="l00202"></a>00202     <span class="comment">// added by morhekil</span>
<a name="l00203"></a>00203     <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#da6c14776958a3b28f68797c7feb6c5b">m_bCloseMinimizes</a> = <a class="code" href="classOptionDlg.html#5553bc799edbadb53b00f8c26342cc0e">m_CheckCloseMinimizes</a>-&gt;isChecked();
<a name="l00204"></a>00204     <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#af4cc3801f229ae974131ef1e000a8cf">m_bMinimizeToTray</a> = <a class="code" href="classOptionDlg.html#ae8aaaee5cd4a83d5f7f09d16cb4cdcd">m_CheckMinimizeToTray</a>-&gt;isChecked();
<a name="l00205"></a>00205 
<a name="l00206"></a>00206     <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.<a class="code" href="classConfigList.html#f4faa44af3bbe318a2623b3146dc2c2d">saveOptions</a>();
<a name="l00207"></a>00207     *<a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a> = <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>;
<a name="l00208"></a>00208 }
<a name="l00209"></a>00209 
<a name="l00210"></a><a class="code" href="classOptionDialog.html#4ab5e6416920a2e8a10b29fc4dd3ccd2">00210</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#4ab5e6416920a2e8a10b29fc4dd3ccd2">OptionDialog::slotAccountActivated</a> (<span class="keywordtype">int</span> index)
<a name="l00211"></a>00211 {
<a name="l00212"></a>00212        <a class="code" href="classOptionDialog.html#e9a1f0964b9205f483a483cc6a9a4aa8">m_ConfigList</a>.at (index); <span class="comment">// will set current item</span>
<a name="l00213"></a>00213 }
<a name="l00214"></a>00214 
<a name="l00215"></a><a class="code" href="classOptionDialog.html#ae1017761ec53be60d79f5f59a5c6fea">00215</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#ae1017761ec53be60d79f5f59a5c6fea">OptionDialog::slotSavePasswordToggled</a> ()
<a name="l00216"></a>00216 {
<a name="l00217"></a>00217        <span class="keywordflow">if</span> (<a class="code" href="classOptionDlg.html#893feee616d6ae1eb502abf350b7335c">m_CheckSavePassword</a>-&gt;isChecked ())
<a name="l00218"></a>00218        {
<a name="l00219"></a>00219               <span class="keywordflow">if</span> (KMessageBox::warningYesNo (<span class="keyword">this</span>, i18n(<span class="stringliteral">"Password will be stored as scrambled text.\n"</span>
<a name="l00220"></a>00220                                                    <span class="stringliteral">"It might be possible to decipher it.\n"</span>
<a name="l00221"></a>00221                                                    <span class="stringliteral">"Are you sure ?\n"</span>),
<a name="l00222"></a>00222                                          TQString::null,
<a name="l00223"></a>00223                                          KStdGuiItem::yes(),
<a name="l00224"></a>00224                                          KStdGuiItem::no(),
<a name="l00225"></a>00225                                          <span class="stringliteral">"savepasswdaskagain"</span>) != KMessageBox::Yes)
<a name="l00226"></a>00226                      <a class="code" href="classOptionDlg.html#893feee616d6ae1eb502abf350b7335c">m_CheckSavePassword</a>-&gt;setChecked (<span class="keyword">false</span>);
<a name="l00227"></a>00227        }
<a name="l00228"></a>00228 }
<a name="l00229"></a>00229 
<a name="l00230"></a><a class="code" href="classOptionDialog.html#c21a2228b16965afd70357f74332a7af">00230</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#c21a2228b16965afd70357f74332a7af">OptionDialog::slotButtonSelectSoundFile</a> ()
<a name="l00231"></a>00231 {
<a name="l00232"></a>00232        TQStringList filters;
<a name="l00233"></a>00233        filters.append (i18n(<span class="stringliteral">"Wave files (*.wav)"</span>));
<a name="l00234"></a>00234        filters.append (i18n(<span class="stringliteral">"All files (*)"</span>));
<a name="l00235"></a>00235        TQFileInfo info (<a class="code" href="classOptionDlg.html#9254f6d43feea0d85b590d0feb394cb3">m_EditSoundFile</a>-&gt;text ());
<a name="l00236"></a>00236        TQString dir = info.dirPath ();
<a name="l00237"></a>00237        TQFileDialog dlg (<span class="keyword">this</span>, <span class="stringliteral">"Sound File"</span>, TRUE);
<a name="l00238"></a>00238        dlg.setCaption (i18n(<span class="stringliteral">"Select Sound File"</span>));
<a name="l00239"></a>00239        dlg.setDir (dir);
<a name="l00240"></a>00240        dlg.setFilters (filters);
<a name="l00241"></a>00241        dlg.setMode (TQFileDialog::ExistingFile);
<a name="l00242"></a>00242   <span class="keywordflow">if</span> (dlg.exec () == TQDialog::Accepted)
<a name="l00243"></a>00243               <a class="code" href="classOptionDlg.html#9254f6d43feea0d85b590d0feb394cb3">m_EditSoundFile</a>-&gt;setText (dlg.selectedFile());
<a name="l00244"></a>00244 }
<a name="l00245"></a>00245 
<a name="l00246"></a><a class="code" href="classOptionDialog.html#34cd468ac9649244cf0032e4dc2ed3c4">00246</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#34cd468ac9649244cf0032e4dc2ed3c4">OptionDialog::slotMinimizeNoMailClicked</a> ()
<a name="l00247"></a>00247 {
<a name="l00248"></a>00248        <span class="keywordflow">if</span> (<a class="code" href="classOptionDlg.html#15e7929ac669b9e82939047d06497488">m_CheckMinimizeNoMail</a>-&gt;isChecked ())
<a name="l00249"></a>00249               <a class="code" href="classOptionDlg.html#d630c0373296051e08a03ba0385137b2">m_CheckTerminateNoMail</a>-&gt;setChecked (<span class="keyword">false</span>);
<a name="l00250"></a>00250 }
<a name="l00251"></a>00251 
<a name="l00252"></a><a class="code" href="classOptionDialog.html#8b256eea31352478043228994a6b0856">00252</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#8b256eea31352478043228994a6b0856">OptionDialog::slotTerminateNoMailClicked</a> ()
<a name="l00253"></a>00253 {
<a name="l00254"></a>00254        <span class="keywordflow">if</span> (<a class="code" href="classOptionDlg.html#d630c0373296051e08a03ba0385137b2">m_CheckTerminateNoMail</a>-&gt;isChecked ())
<a name="l00255"></a>00255               <a class="code" href="classOptionDlg.html#15e7929ac669b9e82939047d06497488">m_CheckMinimizeNoMail</a>-&gt;setChecked (<span class="keyword">false</span>);
<a name="l00256"></a>00256 }
<a name="l00257"></a>00257 
<a name="l00258"></a><a class="code" href="classOptionDialog.html#8f429f6d8f28f63a30b9e63f2c6f9203">00258</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#8f429f6d8f28f63a30b9e63f2c6f9203">OptionDialog::slotSoundTest</a> ()
<a name="l00259"></a>00259 {
<a name="l00260"></a>00260        <a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;<a class="code" href="classConfigList.html#5e7a5e2323ebbbad7d960bae9814ce5d">playSound</a> (<a class="code" href="classOptionDlg.html#9254f6d43feea0d85b590d0feb394cb3">m_EditSoundFile</a>-&gt;text ());
<a name="l00261"></a>00261 }
<a name="l00262"></a>00262 
<a name="l00263"></a><a class="code" href="classOptionDialog.html#d5656fc80b53615620c3c79094a165d1">00263</a> <span class="keywordtype">void</span> <a class="code" href="classOptionDialog.html#d5656fc80b53615620c3c79094a165d1">OptionDialog::slotExternalProgTest</a> ()
<a name="l00264"></a>00264 {
<a name="l00265"></a>00265        <a class="code" href="classOptionDialog.html#88bc7fc86cc13a701d216bd8b9bf3f5b">m_pCmdList</a>-&gt;<a class="code" href="classCommandList.html#99f8a7c87e09a186bd5664638b704619">exec</a> (<a class="code" href="classOptionDlg.html#464fd65b203b450828c95e273c17ecc0">m_ComboExternalProg</a>-&gt;currentItem (), <a class="code" href="classOptionDialog.html#32e10dd017b5499d290283af638f3de7">m_pConfigList</a>-&gt;current ());
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267 
<a name="l00268"></a>00268 
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed May 16 21:15:19 2007 for kshowmail by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body>
</html>