-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmarksmanager_8cpp_source.html
573 lines (571 loc) · 107 KB
/
bookmarksmanager_8cpp_source.html
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Endorphin: src/bookmarks/bookmarksmanager.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Endorphin
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_50ed4e3c9a7a91cdd3581dc183d849a6.html">bookmarks</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">bookmarksmanager.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="bookmarksmanager_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright 2020 Aaron Dewes <[email protected]></span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor,</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">/****************************************************************************</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">**</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">** Copyright (C) 2008-2008 Trolltech ASA. All rights reserved.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">**</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">** This file is part of the demonstration applications of the Qt Toolkit.</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">**</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">** This file may be used under the terms of the GNU General Public</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">** License versions 2.0 or 3.0 as published by the Free Software</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">** included in the packaging of this file. Alternatively you may (at</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">** your option) use any later version of the GNU General Public</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">** License if such license has been publicly approved by Trolltech ASA</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">** (or its successors, if any) and the KDE Free Qt Foundation. In</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">** addition, as a special exception, Trolltech gives you certain</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">** additional rights. These rights are described in the Trolltech GPL</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">** Exception version 1.2, which can be found at</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">** http://www.trolltech.com/products/qt/gplexception/ and in the file</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">** GPL_EXCEPTION.txt in this package.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">**</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">** Please review the following information to ensure GNU General</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">** Public Licensing requirements will be met:</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">** http://trolltech.com/products/qt/licenses/licensing/opensource/. If</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">** you are unsure which license is appropriate for your use, please</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">** review the following information:</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">** http://trolltech.com/products/qt/licenses/licensing/licensingoverview</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">** or contact the sales department at [email protected].</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">**</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">** In addition, as a special exception, Trolltech, as the sole</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">** copyright holder for Qt Designer, grants users of the Qt/Eclipse</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">** Integration plug-in the right for the Qt/Eclipse Integration to</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">** link to functionality provided by Qt Designer and its related</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">** libraries.</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">**</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment">** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">** A PARTICULAR PURPOSE. Trolltech reserves all rights not expressly</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">** granted herein.</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">**</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment">** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">**</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">****************************************************************************/</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#include "<a class="code" href="bookmarksmanager_8h.html">bookmarksmanager.h</a>"</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#include "<a class="code" href="autosaver_8h.html">autosaver.h</a>"</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#include "<a class="code" href="bookmarknode_8h.html">bookmarknode.h</a>"</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#include "<a class="code" href="bookmarksmodel_8h.html">bookmarksmodel.h</a>"</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#include "<a class="code" href="browserapplication_8h.html">browserapplication.h</a>"</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#include "<a class="code" href="history_8h.html">history.h</a>"</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#include "<a class="code" href="xbelreader_8h.html">xbelreader.h</a>"</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#include "<a class="code" href="xbelwriter_8h.html">xbelwriter.h</a>"</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#include <qbuffer.h></span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor">#include <qdesktopservices.h></span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#include <qevent.h></span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor">#include <qfile.h></span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#include <qfiledialog.h></span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#include <qheaderview.h></span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor">#include <qicon.h></span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#include <qmessagebox.h></span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#include <qmimedata.h></span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor">#include <qtoolbutton.h></span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor">#include <qprocess.h></span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#include <QWebEngineSettings></span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor">#include <qdebug.h></span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor">#define BOOKMARKBAR QT_TRANSLATE_NOOP("BookmarksManager", "Bookmarks Bar")</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5"> 90</a></span> <span class="preprocessor">#define BOOKMARKMENU QT_TRANSLATE_NOOP("BookmarksManager", "Bookmarks Menu")</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50"> 91</a></span>  </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a670e2206ede0b3fe606062c364e51d5b"> 92</a></span> <a class="code" href="classBookmarksManager.html#a670e2206ede0b3fe606062c364e51d5b">BookmarksManager::BookmarksManager</a>(<a class="code" href="classQObject.html">QObject</a> *parent)</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  : <a class="code" href="classQObject.html">QObject</a>(parent)</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  , m_loaded(false)</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  , m_saveTimer(new <a class="code" href="classAutoSaver.html">AutoSaver</a>(this))</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  , m_bookmarkRootNode(nullptr)</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  , m_toolbar(nullptr)</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  , m_menu(nullptr)</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  , m_bookmarkModel(nullptr)</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  connect(<span class="keyword">this</span>, SIGNAL(<a class="code" href="classBookmarksManager.html#a02b255865e1a3514163a84a540df4e48">entryAdded</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *)),</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="classBookmarksManager.html#a23ae655a92d8fbd198d55bb7ef2c98f9">m_saveTimer</a>, SLOT(changeOccurred()));</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  connect(<span class="keyword">this</span>, SIGNAL(<a class="code" href="classBookmarksManager.html#ae0d2e838f27496b19183a8d77bbc3b54">entryRemoved</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *, <span class="keywordtype">int</span>, <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *)),</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classBookmarksManager.html#a23ae655a92d8fbd198d55bb7ef2c98f9">m_saveTimer</a>, SLOT(changeOccurred()));</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  connect(<span class="keyword">this</span>, SIGNAL(<a class="code" href="classBookmarksManager.html#a166c419983d8528fe266164a59dfe2a7">entryChanged</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *)),</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classBookmarksManager.html#a23ae655a92d8fbd198d55bb7ef2c98f9">m_saveTimer</a>, SLOT(changeOccurred()));</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> }</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a05fece4449dcaceda5fb1296a495b346"> 109</a></span> <a class="code" href="classBookmarksManager.html#a05fece4449dcaceda5fb1296a495b346">BookmarksManager::~BookmarksManager</a>()</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classBookmarksManager.html#a23ae655a92d8fbd198d55bb7ef2c98f9">m_saveTimer</a>-><a class="code" href="classAutoSaver.html#a57d342ffc35a8ce99e772debd12c11d2">saveIfNeccessary</a>();</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">delete</span> <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a9ac64859860f5b3428df7876b5e9090c"> 115</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#a9ac64859860f5b3428df7876b5e9090c">BookmarksManager::changeExpanded</a>()</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classBookmarksManager.html#a23ae655a92d8fbd198d55bb7ef2c98f9">m_saveTimer</a>-><a class="code" href="classAutoSaver.html#ab6c0e8dce2fcad77801d292f343c58ef">changeOccurred</a>();</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#ae5d02041531780f3847a4fe19d2f663a"> 120</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#ae5d02041531780f3847a4fe19d2f663a">BookmarksManager::load</a>()</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> {</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span> (<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  QString dir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + <span class="stringliteral">"/data/Endorphin"</span>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  QString bookmarkFile = dir + QLatin1String(<span class="stringliteral">"/bookmarks.xbel"</span>);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">if</span> (!QFile::exists(bookmarkFile))</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  bookmarkFile = QLatin1String(<span class="stringliteral">":defaultbookmarks.xbel"</span>);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="classXbelReader.html">XbelReader</a> reader;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a> = reader.<a class="code" href="classXbelReader.html#a6298ab97b928e145cce1b51b4503a584">read</a>(bookmarkFile);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (reader.error() != QXmlStreamReader::NoError) {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  QMessageBox::warning(<span class="keyword">nullptr</span>, QLatin1String(<span class="stringliteral">"Loading Bookmark"</span>),</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  tr(<span class="stringliteral">"Error when loading bookmarks on line %1, column %2:\n"</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="stringliteral">"%3"</span>).arg(reader.lineNumber()).arg(reader.columnNumber()).arg(reader.errorString()));</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  QList<BookmarkNode*> others;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>-><a class="code" href="classBookmarkNode.html#a73d2be1e80ce95dcde3037425e96c0d6">children</a>().count() - 1; i >= 0; --i) {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node = <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>-><a class="code" href="classBookmarkNode.html#a73d2be1e80ce95dcde3037425e96c0d6">children</a>().at(i);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (node-><a class="code" href="classBookmarkNode.html#a9472c5698e69000cb90a15c46c4e5dab">type</a>() == <a class="code" href="classBookmarkNode.html#adaac035dc40c93a514714f68956c94ccacd0e8d1974bc6d018319cb302235cd34">BookmarkNode::Folder</a>) {</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">// Automatically convert</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> ((node-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> == tr(<span class="stringliteral">"Toolbar Bookmarks"</span>)</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  || node-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> == QLatin1String(<a class="code" href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5">BOOKMARKBAR</a>)) && !<a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>) {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  node-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = tr(<a class="code" href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5">BOOKMARKBAR</a>);</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a> = node;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  }</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="comment">// Automatically convert</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">if</span> ((node-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> == tr(<span class="stringliteral">"Menu"</span>)</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  || node-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> == QLatin1String(<a class="code" href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50">BOOKMARKMENU</a>)) && !<a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>) {</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  node-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = tr(<a class="code" href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50">BOOKMARKMENU</a>);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a> = node;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  others.append(node);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>-><a class="code" href="classBookmarkNode.html#aeb7982b39bef6919ac745d1b27edd701">remove</a>(node);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  Q_ASSERT(<a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>-><a class="code" href="classBookmarkNode.html#a73d2be1e80ce95dcde3037425e96c0d6">children</a>().count() == 0);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>) {</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a> = <span class="keyword">new</span> <a class="code" href="classBookmarkNode.html">BookmarkNode</a>(<a class="code" href="classBookmarkNode.html#adaac035dc40c93a514714f68956c94ccacd0e8d1974bc6d018319cb302235cd34">BookmarkNode::Folder</a>, <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>);</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = tr(<a class="code" href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5">BOOKMARKBAR</a>);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>-><a class="code" href="classBookmarkNode.html#a3047aacf2cde97f22ae2d0554e05629d">add</a>(<a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>) {</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a> = <span class="keyword">new</span> <a class="code" href="classBookmarkNode.html">BookmarkNode</a>(<a class="code" href="classBookmarkNode.html#adaac035dc40c93a514714f68956c94ccacd0e8d1974bc6d018319cb302235cd34">BookmarkNode::Folder</a>, <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = tr(<a class="code" href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50">BOOKMARKMENU</a>);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>-><a class="code" href="classBookmarkNode.html#a3047aacf2cde97f22ae2d0554e05629d">add</a>(<a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>);</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  }</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < others.count(); ++i)</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>-><a class="code" href="classBookmarkNode.html#a3047aacf2cde97f22ae2d0554e05629d">add</a>(others.at(i));</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> }</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a1ff5e47e7705c7297785b6166cd7047f"> 181</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#a1ff5e47e7705c7297785b6166cd7047f">BookmarksManager::save</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="keyword"></span>{</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classXbelWriter.html">XbelWriter</a> writer;</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  QString dir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + <span class="stringliteral">"/data/Endorphin"</span>;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  QString bookmarkFile = dir + QLatin1String(<span class="stringliteral">"/bookmarks.xbel"</span>);</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">// Save root folder titles in English (i.e. not localized)</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = QLatin1String(<a class="code" href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50">BOOKMARKMENU</a>);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = QLatin1String(<a class="code" href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5">BOOKMARKBAR</a>);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">if</span> (!writer.<a class="code" href="classXbelWriter.html#a9d66d4c9a07d693dcef86c62961021ba">write</a>(bookmarkFile, <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>))</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  qWarning() << <span class="stringliteral">"BookmarkManager: error saving to"</span> << bookmarkFile;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="comment">// Restore localized titles</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="classBookmarksManager.html#ae99532ea467fb605d78a2f857c251944">retranslate</a>();</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> }</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#ae99532ea467fb605d78a2f857c251944"> 198</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#ae99532ea467fb605d78a2f857c251944">BookmarksManager::retranslate</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="keyword"></span>{</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">if</span> (<a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>)</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = tr(<a class="code" href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50">BOOKMARKMENU</a>);</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">if</span> (<a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>)</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = tr(<a class="code" href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5">BOOKMARKBAR</a>);</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> }</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#ab04e70dd2139f66177edefce12031773"> 206</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#ab04e70dd2139f66177edefce12031773">BookmarksManager::addBookmark</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *parent, <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node, <span class="keywordtype">int</span> row)</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> {</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  Q_ASSERT(parent);</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="classInsertBookmarksCommand.html">InsertBookmarksCommand</a> *command = <span class="keyword">new</span> <a class="code" href="classInsertBookmarksCommand.html">InsertBookmarksCommand</a>(<span class="keyword">this</span>, parent, node, row);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="classBookmarksManager.html#a919a3283792b47fd5b312c29e543217e">m_commands</a>.push(command);</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> }</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#ab6703bc4c173611e9b443af7574aef68"> 215</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#ab6703bc4c173611e9b443af7574aef68">BookmarksManager::removeBookmark</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node)</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> {</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  Q_ASSERT(node);</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *parent = node-><a class="code" href="classBookmarkNode.html#a7b0e04286db53ae94611091bd98e841d">parent</a>();</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordtype">int</span> row = parent-><a class="code" href="classBookmarkNode.html#a73d2be1e80ce95dcde3037425e96c0d6">children</a>().indexOf(node);</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="classRemoveBookmarksCommand.html">RemoveBookmarksCommand</a> *command = <span class="keyword">new</span> <a class="code" href="classBookmarksManager.html#a4741f26f3af5d60fa1272ad451b22906">RemoveBookmarksCommand</a>(<span class="keyword">this</span>, parent, row);</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="classBookmarksManager.html#a919a3283792b47fd5b312c29e543217e">m_commands</a>.push(command);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> }</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  </div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a5669fcee4486d49c904a28f75072e28a"> 227</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#a5669fcee4486d49c904a28f75072e28a">BookmarksManager::setTitle</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node, <span class="keyword">const</span> QString &newTitle)</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> {</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  Q_ASSERT(node);</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="classChangeBookmarkCommand.html">ChangeBookmarkCommand</a> *command = <span class="keyword">new</span> <a class="code" href="classBookmarksManager.html#a6267a5c9a743e33a9c709c3180fe10b2">ChangeBookmarkCommand</a>(<span class="keyword">this</span>, node, newTitle, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <a class="code" href="classBookmarksManager.html#a919a3283792b47fd5b312c29e543217e">m_commands</a>.push(command);</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> }</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#ad449c62c5c345aef0dd2a2a1db74cfa4"> 237</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#ad449c62c5c345aef0dd2a2a1db74cfa4">BookmarksManager::setUrl</a>(<a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node, <span class="keyword">const</span> QString &newUrl)</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> {</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  </div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  Q_ASSERT(node);</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="classChangeBookmarkCommand.html">ChangeBookmarkCommand</a> *command = <span class="keyword">new</span> <a class="code" href="classBookmarksManager.html#a6267a5c9a743e33a9c709c3180fe10b2">ChangeBookmarkCommand</a>(<span class="keyword">this</span>, node, newUrl, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="classBookmarksManager.html#a919a3283792b47fd5b312c29e543217e">m_commands</a>.push(command);</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> }</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a13517ac8a3801b616fa8c12dfad993ee"> 247</a></span> <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *<a class="code" href="classBookmarksManager.html#a13517ac8a3801b616fa8c12dfad993ee">BookmarksManager::bookmarks</a>()</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> {</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="code" href="classBookmarksManager.html#ae5d02041531780f3847a4fe19d2f663a">load</a>();</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordflow">return</span> <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>;</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> }</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a410f72c5d0feaf5323936c13344a9420"> 254</a></span> <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *<a class="code" href="classBookmarksManager.html#a410f72c5d0feaf5323936c13344a9420">BookmarksManager::menu</a>()</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> {</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="classBookmarksManager.html#ae5d02041531780f3847a4fe19d2f663a">load</a>();</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  Q_ASSERT(<a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>);</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">return</span> <a class="code" href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">m_menu</a>;</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> }</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  </div>
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a293582aa7a74a8b0176a06c8fef1f832"> 263</a></span> <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *<a class="code" href="classBookmarksManager.html#a293582aa7a74a8b0176a06c8fef1f832">BookmarksManager::toolbar</a>()</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> {</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">m_loaded</a>)</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <a class="code" href="classBookmarksManager.html#ae5d02041531780f3847a4fe19d2f663a">load</a>();</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  </div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  Q_ASSERT(<a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>);</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">return</span> <a class="code" href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">m_toolbar</a>;</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> }</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#aa6d2d55589b3cd073a461ffe32db06eb"> 272</a></span> <a class="code" href="classBookmarksModel.html">BookmarksModel</a> *<a class="code" href="classBookmarksManager.html#aa6d2d55589b3cd073a461ffe32db06eb">BookmarksManager::bookmarksModel</a>()</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> {</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">if</span> (!<a class="code" href="classBookmarksManager.html#a222d83ecbace388d237a3a2418265957">m_bookmarkModel</a>)</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="classBookmarksManager.html#a222d83ecbace388d237a3a2418265957">m_bookmarkModel</a> = <span class="keyword">new</span> <a class="code" href="classBookmarksModel.html">BookmarksModel</a>(<span class="keyword">this</span>, <span class="keyword">this</span>);</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">return</span> <a class="code" href="classBookmarksManager.html#a222d83ecbace388d237a3a2418265957">m_bookmarkModel</a>;</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> }</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a7f12a80bd1a656a4db98f0a5ce710865"> 279</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#a7f12a80bd1a656a4db98f0a5ce710865">BookmarksManager::importBookmarks</a>()</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> {</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  QStringList supportedFormats;</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  supportedFormats << tr(<span class="stringliteral">"XBEL bookmarks"</span>).append(QLatin1String(<span class="stringliteral">"(*.xbel *.xml)"</span>));</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  supportedFormats << tr(<span class="stringliteral">"HTML Netscape bookmarks"</span>).append(QLatin1String(<span class="stringliteral">"(*.html)"</span>));</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  QString fileName = QFileDialog::getOpenFileName(<span class="keyword">nullptr</span>, tr(<span class="stringliteral">"Open File"</span>),</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  QString(), supportedFormats.join(QLatin1String(<span class="stringliteral">";;"</span>)));</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordflow">if</span> (fileName.isEmpty())</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="classXbelReader.html">XbelReader</a> reader;</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *importRootNode = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">if</span> (fileName.endsWith(QLatin1String(<span class="stringliteral">".html"</span>))) {</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  QString program = QLatin1String(<span class="stringliteral">"htmlToXBel"</span>);</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  QStringList arguments;</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  arguments << fileName;</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  QProcess process;</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  process.start(program, arguments);</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  process.waitForFinished(-1);</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordflow">if</span> (process.error() != QProcess::UnknownError) {</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keywordflow">if</span> (process.error() == QProcess::FailedToStart) {</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  QMessageBox::warning(<span class="keyword">nullptr</span>, tr(<span class="stringliteral">"htmlToXBel tool required"</span>),</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  tr(<span class="stringliteral">"htmlToXBel tool, which is shipped with Endorphin and is needed to import HTML bookmarks, "</span></div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="stringliteral">"is not installed or not available in the search paths."</span>));</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  QMessageBox::warning(<span class="keyword">nullptr</span>, tr(<span class="stringliteral">"Loading Bookmark"</span>),</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  tr(<span class="stringliteral">"Error when loading HTML bookmarks: %1\n"</span>).arg(process.errorString()));</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  }</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  importRootNode = reader.<a class="code" href="classXbelReader.html#a6298ab97b928e145cce1b51b4503a584">read</a>(&process);</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  importRootNode = reader.<a class="code" href="classXbelReader.html#a6298ab97b928e145cce1b51b4503a584">read</a>(fileName);</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  }</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">if</span> (reader.error() != QXmlStreamReader::NoError) {</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  QMessageBox::warning(<span class="keyword">nullptr</span>, QLatin1String(<span class="stringliteral">"Loading Bookmark"</span>),</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  tr(<span class="stringliteral">"Error when loading bookmarks on line %1, column %2:\n"</span></div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="stringliteral">"%3"</span>).arg(reader.lineNumber()).arg(reader.columnNumber()).arg(reader.errorString()));</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keyword">delete</span> importRootNode;</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  }</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  </div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  importRootNode-><a class="code" href="classBookmarkNode.html#a177857ceb2023db8fbd243f2da987f5d">setType</a>(<a class="code" href="classBookmarkNode.html#adaac035dc40c93a514714f68956c94ccacd0e8d1974bc6d018319cb302235cd34">BookmarkNode::Folder</a>);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  importRootNode-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = (tr(<span class="stringliteral">"Imported %1"</span>).arg(QDate::currentDate().toString(Qt::SystemLocaleShortDate)));</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <a class="code" href="classBookmarksManager.html#ab04e70dd2139f66177edefce12031773">addBookmark</a>(<a class="code" href="classBookmarksManager.html#a410f72c5d0feaf5323936c13344a9420">menu</a>(), importRootNode);</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> }</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  </div>
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classBookmarksManager.html#a48c4d47a2f3866671b26866ed08ede70"> 327</a></span> <span class="keywordtype">void</span> <a class="code" href="classBookmarksManager.html#a48c4d47a2f3866671b26866ed08ede70">BookmarksManager::exportBookmarks</a>()</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> {</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  QString fileName = QFileDialog::getSaveFileName(<span class="keyword">nullptr</span>, tr(<span class="stringliteral">"Save File"</span>),</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  tr(<span class="stringliteral">"%1 Bookmarks.xbel"</span>).arg(QCoreApplication::applicationName()),</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  tr(<span class="stringliteral">"XBEL bookmarks"</span>).append(QLatin1String(<span class="stringliteral">"(*.xbel *.xml)"</span>)));</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">if</span> (fileName.isEmpty())</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  </div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <a class="code" href="classXbelWriter.html">XbelWriter</a> writer;</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">if</span> (!writer.<a class="code" href="classXbelWriter.html#a9d66d4c9a07d693dcef86c62961021ba">write</a>(fileName, <a class="code" href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">m_bookmarkRootNode</a>))</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  QMessageBox::critical(<span class="keyword">nullptr</span>, tr(<span class="stringliteral">"Export error"</span>), tr(<span class="stringliteral">"error saving bookmarks"</span>));</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> }</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  </div>
<div class="line"><a name="l00340"></a><span class="lineno"><a class="line" href="classRemoveBookmarksCommand.html#af50c8e0afa0f2e0f69a12b4f32a6bb9f"> 340</a></span> <a class="code" href="classRemoveBookmarksCommand.html#af50c8e0afa0f2e0f69a12b4f32a6bb9f">RemoveBookmarksCommand::RemoveBookmarksCommand</a>(<a class="code" href="classBookmarksManager.html">BookmarksManager</a> *m_bookmarkManagaer, <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *parent, <span class="keywordtype">int</span> row)</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  : <a class="code" href="classQUndoCommand.html">QUndoCommand</a>(<a class="code" href="classBookmarksManager.html">BookmarksManager</a>::tr(<span class="stringliteral">"Remove Bookmark"</span>))</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  , m_row(row)</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  , m_bookmarkManagaer(m_bookmarkManagaer)</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  , m_node(parent->children().value(row))</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  , m_parent(parent)</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  , m_done(false)</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> {</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> }</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  </div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="classRemoveBookmarksCommand.html#a7fc13dcd5db4a9d371a90b48a5bbd378"> 350</a></span> <a class="code" href="classRemoveBookmarksCommand.html#a7fc13dcd5db4a9d371a90b48a5bbd378">RemoveBookmarksCommand::~RemoveBookmarksCommand</a>()</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> {</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordflow">if</span> (<a class="code" href="classRemoveBookmarksCommand.html#aa1e5119f9c1241046b5301d3b08fb310">m_done</a> && !<a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a>-><a class="code" href="classBookmarkNode.html#a7b0e04286db53ae94611091bd98e841d">parent</a>()) {</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keyword">delete</span> <a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a>;</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  }</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> }</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  </div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="classRemoveBookmarksCommand.html#afd45fe8d96be69780e74b94f90a58e49"> 357</a></span> <span class="keywordtype">void</span> <a class="code" href="classRemoveBookmarksCommand.html#afd45fe8d96be69780e74b94f90a58e49">RemoveBookmarksCommand::undo</a>()</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> {</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <a class="code" href="classRemoveBookmarksCommand.html#a3e2733c7f54171507af90248e207e52e">m_parent</a>-><a class="code" href="classBookmarkNode.html#a3047aacf2cde97f22ae2d0554e05629d">add</a>(<a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a>, <a class="code" href="classRemoveBookmarksCommand.html#a903e529f84741b9b08e0dbfd9eb480e7">m_row</a>);</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  emit <a class="code" href="classRemoveBookmarksCommand.html#ad86b9dff7bfed0c9ceaebf8efb6f22cd">m_bookmarkManagaer</a>-><a class="code" href="classBookmarksManager.html#a02b255865e1a3514163a84a540df4e48">entryAdded</a>(<a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a>);</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <a class="code" href="classRemoveBookmarksCommand.html#aa1e5119f9c1241046b5301d3b08fb310">m_done</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> }</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  </div>
<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="classRemoveBookmarksCommand.html#a03d5f22217aa810d59a8c76878c1e14a"> 364</a></span> <span class="keywordtype">void</span> <a class="code" href="classRemoveBookmarksCommand.html#a03d5f22217aa810d59a8c76878c1e14a">RemoveBookmarksCommand::redo</a>()</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> {</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <a class="code" href="classRemoveBookmarksCommand.html#a3e2733c7f54171507af90248e207e52e">m_parent</a>-><a class="code" href="classBookmarkNode.html#aeb7982b39bef6919ac745d1b27edd701">remove</a>(<a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a>);</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  emit <a class="code" href="classRemoveBookmarksCommand.html#ad86b9dff7bfed0c9ceaebf8efb6f22cd">m_bookmarkManagaer</a>-><a class="code" href="classBookmarksManager.html#ae0d2e838f27496b19183a8d77bbc3b54">entryRemoved</a>(<a class="code" href="classRemoveBookmarksCommand.html#a3e2733c7f54171507af90248e207e52e">m_parent</a>, <a class="code" href="classRemoveBookmarksCommand.html#a903e529f84741b9b08e0dbfd9eb480e7">m_row</a>, <a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a>);</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <a class="code" href="classRemoveBookmarksCommand.html#aa1e5119f9c1241046b5301d3b08fb310">m_done</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> }</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  </div>
<div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="classInsertBookmarksCommand.html#ae561b81c7e7b4e12f6d11c2caee36b90"> 371</a></span> <a class="code" href="classInsertBookmarksCommand.html#ae561b81c7e7b4e12f6d11c2caee36b90">InsertBookmarksCommand::InsertBookmarksCommand</a>(<a class="code" href="classBookmarksManager.html">BookmarksManager</a> *m_bookmarkManagaer,</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *parent, <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node, <span class="keywordtype">int</span> row)</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  : <a class="code" href="classRemoveBookmarksCommand.html">RemoveBookmarksCommand</a>(m_bookmarkManagaer, parent, row)</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> {</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  setText(BookmarksManager::tr(<span class="stringliteral">"Insert Bookmark"</span>));</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <a class="code" href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">m_node</a> = node;</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> }</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  </div>
<div class="line"><a name="l00379"></a><span class="lineno"><a class="line" href="classChangeBookmarkCommand.html#adbbb078199420d031116d758242312e5"> 379</a></span> <a class="code" href="classChangeBookmarkCommand.html#adbbb078199420d031116d758242312e5">ChangeBookmarkCommand::ChangeBookmarkCommand</a>(<a class="code" href="classBookmarksManager.html">BookmarksManager</a> *m_bookmarkManagaer, <a class="code" href="classBookmarkNode.html">BookmarkNode</a> *node,</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keyword">const</span> QString &newValue, <span class="keywordtype">bool</span> title)</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  : <a class="code" href="classQUndoCommand.html">QUndoCommand</a>()</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  , m_bookmarkManagaer(m_bookmarkManagaer)</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  , m_title(title)</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  , m_newValue(newValue)</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  , m_node(node)</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> {</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keywordflow">if</span> (<a class="code" href="classChangeBookmarkCommand.html#a309694d8172653d868c276cec9534a6d">m_title</a>) {</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <a class="code" href="classChangeBookmarkCommand.html#a9f47c4b7bcf33f5ec27288b4608a74ad">m_oldValue</a> = <a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a>;</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  setText(BookmarksManager::tr(<span class="stringliteral">"Name Change"</span>, <span class="stringliteral">"Undo bookmark title change"</span>));</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <a class="code" href="classChangeBookmarkCommand.html#a9f47c4b7bcf33f5ec27288b4608a74ad">m_oldValue</a> = <a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>-><a class="code" href="classBookmarkNode.html#a471b8d0fee063d562ab7701e496d3715">url</a>;</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  setText(BookmarksManager::tr(<span class="stringliteral">"Address Change"</span>, <span class="stringliteral">"Undo bookmark url change"</span>));</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  }</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> }</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  </div>
<div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="classChangeBookmarkCommand.html#a268b07c5c273e296de0af8bf65d0408d"> 396</a></span> <span class="keywordtype">void</span> <a class="code" href="classChangeBookmarkCommand.html#a268b07c5c273e296de0af8bf65d0408d">ChangeBookmarkCommand::undo</a>()</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> {</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordflow">if</span> (<a class="code" href="classChangeBookmarkCommand.html#a309694d8172653d868c276cec9534a6d">m_title</a>)</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = <a class="code" href="classChangeBookmarkCommand.html#a9f47c4b7bcf33f5ec27288b4608a74ad">m_oldValue</a>;</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>-><a class="code" href="classBookmarkNode.html#a471b8d0fee063d562ab7701e496d3715">url</a> = <a class="code" href="classChangeBookmarkCommand.html#a9f47c4b7bcf33f5ec27288b4608a74ad">m_oldValue</a>;</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  emit <a class="code" href="classChangeBookmarkCommand.html#a00862ba15c527e49769ae6a24325ad68">m_bookmarkManagaer</a>-><a class="code" href="classBookmarksManager.html#a166c419983d8528fe266164a59dfe2a7">entryChanged</a>(<a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>);</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> }</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  </div>
<div class="line"><a name="l00405"></a><span class="lineno"><a class="line" href="classChangeBookmarkCommand.html#a6d202bb89a9b00d292ce18c816705450"> 405</a></span> <span class="keywordtype">void</span> <a class="code" href="classChangeBookmarkCommand.html#a6d202bb89a9b00d292ce18c816705450">ChangeBookmarkCommand::redo</a>()</div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> {</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">if</span> (<a class="code" href="classChangeBookmarkCommand.html#a309694d8172653d868c276cec9534a6d">m_title</a>)</div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>-><a class="code" href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">title</a> = <a class="code" href="classChangeBookmarkCommand.html#a7d8376046490212bedff17070f18a38a">m_newValue</a>;</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>-><a class="code" href="classBookmarkNode.html#a471b8d0fee063d562ab7701e496d3715">url</a> = <a class="code" href="classChangeBookmarkCommand.html#a7d8376046490212bedff17070f18a38a">m_newValue</a>;</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  emit <a class="code" href="classChangeBookmarkCommand.html#a00862ba15c527e49769ae6a24325ad68">m_bookmarkManagaer</a>-><a class="code" href="classBookmarksManager.html#a166c419983d8528fe266164a59dfe2a7">entryChanged</a>(<a class="code" href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">m_node</a>);</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> }</div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="abookmarksmodel_8h_html"><div class="ttname"><a href="bookmarksmodel_8h.html">bookmarksmodel.h</a></div></div>
<div class="ttc" id="aclassQObject_html"><div class="ttname"><a href="classQObject.html">QObject</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html"><div class="ttname"><a href="classBookmarkNode.html">BookmarkNode</a></div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8h_source.html#l00069">bookmarknode.h:70</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a00862ba15c527e49769ae6a24325ad68"><div class="ttname"><a href="classChangeBookmarkCommand.html#a00862ba15c527e49769ae6a24325ad68">ChangeBookmarkCommand::m_bookmarkManagaer</a></div><div class="ttdeci">BookmarksManager * m_bookmarkManagaer</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00125">bookmarksmanager.h:125</a></div></div>
<div class="ttc" id="ahistory_8h_html"><div class="ttname"><a href="history_8h.html">history.h</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a6267a5c9a743e33a9c709c3180fe10b2"><div class="ttname"><a href="classBookmarksManager.html#a6267a5c9a743e33a9c709c3180fe10b2">BookmarksManager::ChangeBookmarkCommand</a></div><div class="ttdeci">friend class ChangeBookmarkCommand</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00080">bookmarksmanager.h:80</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a23ae655a92d8fbd198d55bb7ef2c98f9"><div class="ttname"><a href="classBookmarksManager.html#a23ae655a92d8fbd198d55bb7ef2c98f9">BookmarksManager::m_saveTimer</a></div><div class="ttdeci">AutoSaver * m_saveTimer</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00072">bookmarksmanager.h:72</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a1ff5e47e7705c7297785b6166cd7047f"><div class="ttname"><a href="classBookmarksManager.html#a1ff5e47e7705c7297785b6166cd7047f">BookmarksManager::save</a></div><div class="ttdeci">void save() const</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00181">bookmarksmanager.cpp:181</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_ae5d02041531780f3847a4fe19d2f663a"><div class="ttname"><a href="classBookmarksManager.html#ae5d02041531780f3847a4fe19d2f663a">BookmarksManager::load</a></div><div class="ttdeci">void load()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00120">bookmarksmanager.cpp:120</a></div></div>
<div class="ttc" id="aclassXbelReader_html"><div class="ttname"><a href="classXbelReader.html">XbelReader</a></div><div class="ttdef"><b>Definition:</b> <a href="xbelreader_8h_source.html#l00076">xbelreader.h:77</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_ab6703bc4c173611e9b443af7574aef68"><div class="ttname"><a href="classBookmarksManager.html#ab6703bc4c173611e9b443af7574aef68">BookmarksManager::removeBookmark</a></div><div class="ttdeci">void removeBookmark(BookmarkNode *node)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00215">bookmarksmanager.cpp:215</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a4741f26f3af5d60fa1272ad451b22906"><div class="ttname"><a href="classBookmarksManager.html#a4741f26f3af5d60fa1272ad451b22906">BookmarksManager::RemoveBookmarksCommand</a></div><div class="ttdeci">friend class RemoveBookmarksCommand</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00079">bookmarksmanager.h:79</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a62331322315ad2be036c8a3101effa8d"><div class="ttname"><a href="classChangeBookmarkCommand.html#a62331322315ad2be036c8a3101effa8d">ChangeBookmarkCommand::m_node</a></div><div class="ttdeci">BookmarkNode * m_node</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00129">bookmarksmanager.h:129</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_a7b0e04286db53ae94611091bd98e841d"><div class="ttname"><a href="classBookmarkNode.html#a7b0e04286db53ae94611091bd98e841d">BookmarkNode::parent</a></div><div class="ttdeci">BookmarkNode * parent() const</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8cpp_source.html#l00115">bookmarknode.cpp:115</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a13517ac8a3801b616fa8c12dfad993ee"><div class="ttname"><a href="classBookmarksManager.html#a13517ac8a3801b616fa8c12dfad993ee">BookmarksManager::bookmarks</a></div><div class="ttdeci">BookmarkNode * bookmarks()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00247">bookmarksmanager.cpp:247</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_a177857ceb2023db8fbd243f2da987f5d"><div class="ttname"><a href="classBookmarkNode.html#a177857ceb2023db8fbd243f2da987f5d">BookmarkNode::setType</a></div><div class="ttdeci">void setType(Type type)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8cpp_source.html#l00105">bookmarknode.cpp:105</a></div></div>
<div class="ttc" id="aclassAutoSaver_html"><div class="ttname"><a href="classAutoSaver.html">AutoSaver</a></div><div class="ttdef"><b>Definition:</b> <a href="autosaver_8h_source.html#l00075">autosaver.h:76</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_ad449c62c5c345aef0dd2a2a1db74cfa4"><div class="ttname"><a href="classBookmarksManager.html#ad449c62c5c345aef0dd2a2a1db74cfa4">BookmarksManager::setUrl</a></div><div class="ttdeci">void setUrl(BookmarkNode *node, const QString &newUrl)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00237">bookmarksmanager.cpp:237</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_afd45fe8d96be69780e74b94f90a58e49"><div class="ttname"><a href="classRemoveBookmarksCommand.html#afd45fe8d96be69780e74b94f90a58e49">RemoveBookmarksCommand::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00357">bookmarksmanager.cpp:357</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_ae99532ea467fb605d78a2f857c251944"><div class="ttname"><a href="classBookmarksManager.html#ae99532ea467fb605d78a2f857c251944">BookmarksManager::retranslate</a></div><div class="ttdeci">void retranslate() const</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00198">bookmarksmanager.cpp:198</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_a3e2733c7f54171507af90248e207e52e"><div class="ttname"><a href="classRemoveBookmarksCommand.html#a3e2733c7f54171507af90248e207e52e">RemoveBookmarksCommand::m_parent</a></div><div class="ttdeci">BookmarkNode * m_parent</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00096">bookmarksmanager.h:96</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_a3047aacf2cde97f22ae2d0554e05629d"><div class="ttname"><a href="classBookmarkNode.html#a3047aacf2cde97f22ae2d0554e05629d">BookmarkNode::add</a></div><div class="ttdeci">void add(BookmarkNode *child, int offset=-1)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8cpp_source.html#l00120">bookmarknode.cpp:120</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html"><div class="ttname"><a href="classChangeBookmarkCommand.html">ChangeBookmarkCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00115">bookmarksmanager.h:116</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a9ac64859860f5b3428df7876b5e9090c"><div class="ttname"><a href="classBookmarksManager.html#a9ac64859860f5b3428df7876b5e9090c">BookmarksManager::changeExpanded</a></div><div class="ttdeci">void changeExpanded()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00115">bookmarksmanager.cpp:115</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a8c514f7338fbb23e5659918fb5819425"><div class="ttname"><a href="classBookmarksManager.html#a8c514f7338fbb23e5659918fb5819425">BookmarksManager::m_toolbar</a></div><div class="ttdeci">BookmarkNode * m_toolbar</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00074">bookmarksmanager.h:74</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a166c419983d8528fe266164a59dfe2a7"><div class="ttname"><a href="classBookmarksManager.html#a166c419983d8528fe266164a59dfe2a7">BookmarksManager::entryChanged</a></div><div class="ttdeci">void entryChanged(BookmarkNode *item)</div></div>
<div class="ttc" id="aclassBookmarksManager_html_a670e2206ede0b3fe606062c364e51d5b"><div class="ttname"><a href="classBookmarksManager.html#a670e2206ede0b3fe606062c364e51d5b">BookmarksManager::BookmarksManager</a></div><div class="ttdeci">BookmarksManager(QObject *parent=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00092">bookmarksmanager.cpp:92</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_a5487ce3b9cc8fd86309fad11b5de319f"><div class="ttname"><a href="classRemoveBookmarksCommand.html#a5487ce3b9cc8fd86309fad11b5de319f">RemoveBookmarksCommand::m_node</a></div><div class="ttdeci">BookmarkNode * m_node</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00095">bookmarksmanager.h:95</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_af3e9db56f3f000c01f2920628c816180"><div class="ttname"><a href="classBookmarkNode.html#af3e9db56f3f000c01f2920628c816180">BookmarkNode::title</a></div><div class="ttdeci">QString title</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8h_source.html#l00133">bookmarknode.h:133</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_a9472c5698e69000cb90a15c46c4e5dab"><div class="ttname"><a href="classBookmarkNode.html#a9472c5698e69000cb90a15c46c4e5dab">BookmarkNode::type</a></div><div class="ttdeci">Type type() const</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8cpp_source.html#l00100">bookmarknode.cpp:100</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a5669fcee4486d49c904a28f75072e28a"><div class="ttname"><a href="classBookmarksManager.html#a5669fcee4486d49c904a28f75072e28a">BookmarksManager::setTitle</a></div><div class="ttdeci">void setTitle(BookmarkNode *node, const QString &newTitle)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00227">bookmarksmanager.cpp:227</a></div></div>
<div class="ttc" id="aclassBookmarksModel_html"><div class="ttname"><a href="classBookmarksModel.html">BookmarksModel</a></div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmodel_8h_source.html#l00072">bookmarksmodel.h:73</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a410f72c5d0feaf5323936c13344a9420"><div class="ttname"><a href="classBookmarksManager.html#a410f72c5d0feaf5323936c13344a9420">BookmarksManager::menu</a></div><div class="ttdeci">BookmarkNode * menu()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00254">bookmarksmanager.cpp:254</a></div></div>
<div class="ttc" id="aclassQUndoCommand_html"><div class="ttname"><a href="classQUndoCommand.html">QUndoCommand</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a268b07c5c273e296de0af8bf65d0408d"><div class="ttname"><a href="classChangeBookmarkCommand.html#a268b07c5c273e296de0af8bf65d0408d">ChangeBookmarkCommand::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00396">bookmarksmanager.cpp:396</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_aa6d2d55589b3cd073a461ffe32db06eb"><div class="ttname"><a href="classBookmarksManager.html#aa6d2d55589b3cd073a461ffe32db06eb">BookmarksManager::bookmarksModel</a></div><div class="ttdeci">BookmarksModel * bookmarksModel()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00272">bookmarksmanager.cpp:272</a></div></div>
<div class="ttc" id="axbelreader_8h_html"><div class="ttname"><a href="xbelreader_8h.html">xbelreader.h</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html"><div class="ttname"><a href="classBookmarksManager.html">BookmarksManager</a></div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00032">bookmarksmanager.h:33</a></div></div>
<div class="ttc" id="abookmarknode_8h_html"><div class="ttname"><a href="bookmarknode_8h.html">bookmarknode.h</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a6d202bb89a9b00d292ce18c816705450"><div class="ttname"><a href="classChangeBookmarkCommand.html#a6d202bb89a9b00d292ce18c816705450">ChangeBookmarkCommand::redo</a></div><div class="ttdeci">void redo()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00405">bookmarksmanager.cpp:405</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_aeb7982b39bef6919ac745d1b27edd701"><div class="ttname"><a href="classBookmarkNode.html#aeb7982b39bef6919ac745d1b27edd701">BookmarkNode::remove</a></div><div class="ttdeci">void remove(BookmarkNode *child)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8cpp_source.html#l00135">bookmarknode.cpp:135</a></div></div>
<div class="ttc" id="abookmarksmanager_8h_html"><div class="ttname"><a href="bookmarksmanager_8h.html">bookmarksmanager.h</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_a7fc13dcd5db4a9d371a90b48a5bbd378"><div class="ttname"><a href="classRemoveBookmarksCommand.html#a7fc13dcd5db4a9d371a90b48a5bbd378">RemoveBookmarksCommand::~RemoveBookmarksCommand</a></div><div class="ttdeci">~RemoveBookmarksCommand()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00350">bookmarksmanager.cpp:350</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_adbbb078199420d031116d758242312e5"><div class="ttname"><a href="classChangeBookmarkCommand.html#adbbb078199420d031116d758242312e5">ChangeBookmarkCommand::ChangeBookmarkCommand</a></div><div class="ttdeci">ChangeBookmarkCommand(BookmarksManager *m_bookmarkManagaer, BookmarkNode *node, const QString &newValue, bool title)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00379">bookmarksmanager.cpp:379</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a7f12a80bd1a656a4db98f0a5ce710865"><div class="ttname"><a href="classBookmarksManager.html#a7f12a80bd1a656a4db98f0a5ce710865">BookmarksManager::importBookmarks</a></div><div class="ttdeci">void importBookmarks()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00279">bookmarksmanager.cpp:279</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_a73d2be1e80ce95dcde3037425e96c0d6"><div class="ttname"><a href="classBookmarkNode.html#a73d2be1e80ce95dcde3037425e96c0d6">BookmarkNode::children</a></div><div class="ttdeci">QList< BookmarkNode * > children() const</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8cpp_source.html#l00110">bookmarknode.cpp:110</a></div></div>
<div class="ttc" id="aclassXbelReader_html_a6298ab97b928e145cce1b51b4503a584"><div class="ttname"><a href="classXbelReader.html#a6298ab97b928e145cce1b51b4503a584">XbelReader::read</a></div><div class="ttdeci">BookmarkNode * read(const QString &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="xbelreader_8cpp_source.html#l00089">xbelreader.cpp:89</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a7d8376046490212bedff17070f18a38a"><div class="ttname"><a href="classChangeBookmarkCommand.html#a7d8376046490212bedff17070f18a38a">ChangeBookmarkCommand::m_newValue</a></div><div class="ttdeci">QString m_newValue</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00128">bookmarksmanager.h:128</a></div></div>
<div class="ttc" id="aclassXbelWriter_html_a9d66d4c9a07d693dcef86c62961021ba"><div class="ttname"><a href="classXbelWriter.html#a9d66d4c9a07d693dcef86c62961021ba">XbelWriter::write</a></div><div class="ttdeci">bool write(const QString &fileName, const BookmarkNode *root)</div><div class="ttdef"><b>Definition:</b> <a href="xbelwriter_8cpp_source.html#l00074">xbelwriter.cpp:74</a></div></div>
<div class="ttc" id="aclassAutoSaver_html_a57d342ffc35a8ce99e772debd12c11d2"><div class="ttname"><a href="classAutoSaver.html#a57d342ffc35a8ce99e772debd12c11d2">AutoSaver::saveIfNeccessary</a></div><div class="ttdeci">void saveIfNeccessary()</div><div class="ttdef"><b>Definition:</b> <a href="autosaver_8cpp_source.html#l00109">autosaver.cpp:109</a></div></div>
<div class="ttc" id="abookmarksmanager_8cpp_html_a1a62631470627cee41f31afb1128a5c5"><div class="ttname"><a href="bookmarksmanager_8cpp.html#a1a62631470627cee41f31afb1128a5c5">BOOKMARKBAR</a></div><div class="ttdeci">#define BOOKMARKBAR</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00090">bookmarksmanager.cpp:89</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_a903e529f84741b9b08e0dbfd9eb480e7"><div class="ttname"><a href="classRemoveBookmarksCommand.html#a903e529f84741b9b08e0dbfd9eb480e7">RemoveBookmarksCommand::m_row</a></div><div class="ttdeci">int m_row</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00093">bookmarksmanager.h:93</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a1b771fa24422aef3f7a3b4a471c67d34"><div class="ttname"><a href="classBookmarksManager.html#a1b771fa24422aef3f7a3b4a471c67d34">BookmarksManager::m_bookmarkRootNode</a></div><div class="ttdeci">BookmarkNode * m_bookmarkRootNode</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00073">bookmarksmanager.h:73</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_af50c8e0afa0f2e0f69a12b4f32a6bb9f"><div class="ttname"><a href="classRemoveBookmarksCommand.html#af50c8e0afa0f2e0f69a12b4f32a6bb9f">RemoveBookmarksCommand::RemoveBookmarksCommand</a></div><div class="ttdeci">RemoveBookmarksCommand(BookmarksManager *m_bookmarkManagaer, BookmarkNode *parent, int row)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00340">bookmarksmanager.cpp:340</a></div></div>
<div class="ttc" id="aclassInsertBookmarksCommand_html"><div class="ttname"><a href="classInsertBookmarksCommand.html">InsertBookmarksCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00100">bookmarksmanager.h:101</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a05fece4449dcaceda5fb1296a495b346"><div class="ttname"><a href="classBookmarksManager.html#a05fece4449dcaceda5fb1296a495b346">BookmarksManager::~BookmarksManager</a></div><div class="ttdeci">~BookmarksManager()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00109">bookmarksmanager.cpp:109</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_a471b8d0fee063d562ab7701e496d3715"><div class="ttname"><a href="classBookmarkNode.html#a471b8d0fee063d562ab7701e496d3715">BookmarkNode::url</a></div><div class="ttdeci">QString url</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8h_source.html#l00132">bookmarknode.h:132</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a1a565d2cfc0fb3c3d7d31f5b56557a2b"><div class="ttname"><a href="classBookmarksManager.html#a1a565d2cfc0fb3c3d7d31f5b56557a2b">BookmarksManager::m_menu</a></div><div class="ttdeci">BookmarkNode * m_menu</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00075">bookmarksmanager.h:75</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a222d83ecbace388d237a3a2418265957"><div class="ttname"><a href="classBookmarksManager.html#a222d83ecbace388d237a3a2418265957">BookmarksManager::m_bookmarkModel</a></div><div class="ttdeci">BookmarksModel * m_bookmarkModel</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00076">bookmarksmanager.h:76</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_a03d5f22217aa810d59a8c76878c1e14a"><div class="ttname"><a href="classRemoveBookmarksCommand.html#a03d5f22217aa810d59a8c76878c1e14a">RemoveBookmarksCommand::redo</a></div><div class="ttdeci">void redo()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00364">bookmarksmanager.cpp:364</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a9f47c4b7bcf33f5ec27288b4608a74ad"><div class="ttname"><a href="classChangeBookmarkCommand.html#a9f47c4b7bcf33f5ec27288b4608a74ad">ChangeBookmarkCommand::m_oldValue</a></div><div class="ttdeci">QString m_oldValue</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00127">bookmarksmanager.h:127</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_ab04e70dd2139f66177edefce12031773"><div class="ttname"><a href="classBookmarksManager.html#ab04e70dd2139f66177edefce12031773">BookmarksManager::addBookmark</a></div><div class="ttdeci">void addBookmark(BookmarkNode *parent, BookmarkNode *node, int row=-1)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00206">bookmarksmanager.cpp:206</a></div></div>
<div class="ttc" id="axbelwriter_8h_html"><div class="ttname"><a href="xbelwriter_8h.html">xbelwriter.h</a></div></div>
<div class="ttc" id="aclassBookmarkNode_html_adaac035dc40c93a514714f68956c94ccacd0e8d1974bc6d018319cb302235cd34"><div class="ttname"><a href="classBookmarkNode.html#adaac035dc40c93a514714f68956c94ccacd0e8d1974bc6d018319cb302235cd34">BookmarkNode::Folder</a></div><div class="ttdeci">@ Folder</div><div class="ttdef"><b>Definition:</b> <a href="bookmarknode_8h_source.html#l00156">bookmarknode.h:156</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_ae0d2e838f27496b19183a8d77bbc3b54"><div class="ttname"><a href="classBookmarksManager.html#ae0d2e838f27496b19183a8d77bbc3b54">BookmarksManager::entryRemoved</a></div><div class="ttdeci">void entryRemoved(BookmarkNode *parent, int row, BookmarkNode *item)</div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_ad86b9dff7bfed0c9ceaebf8efb6f22cd"><div class="ttname"><a href="classRemoveBookmarksCommand.html#ad86b9dff7bfed0c9ceaebf8efb6f22cd">RemoveBookmarksCommand::m_bookmarkManagaer</a></div><div class="ttdeci">BookmarksManager * m_bookmarkManagaer</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00094">bookmarksmanager.h:94</a></div></div>
<div class="ttc" id="aautosaver_8h_html"><div class="ttname"><a href="autosaver_8h.html">autosaver.h</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html_aa1e5119f9c1241046b5301d3b08fb310"><div class="ttname"><a href="classRemoveBookmarksCommand.html#aa1e5119f9c1241046b5301d3b08fb310">RemoveBookmarksCommand::m_done</a></div><div class="ttdeci">bool m_done</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00097">bookmarksmanager.h:97</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a02b255865e1a3514163a84a540df4e48"><div class="ttname"><a href="classBookmarksManager.html#a02b255865e1a3514163a84a540df4e48">BookmarksManager::entryAdded</a></div><div class="ttdeci">void entryAdded(BookmarkNode *item)</div></div>
<div class="ttc" id="aclassAutoSaver_html_ab6c0e8dce2fcad77801d292f343c58ef"><div class="ttname"><a href="classAutoSaver.html#ab6c0e8dce2fcad77801d292f343c58ef">AutoSaver::changeOccurred</a></div><div class="ttdeci">void changeOccurred()</div><div class="ttdef"><b>Definition:</b> <a href="autosaver_8cpp_source.html#l00088">autosaver.cpp:88</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a543f223f95c4a11e9d8724b4b60c11d9"><div class="ttname"><a href="classBookmarksManager.html#a543f223f95c4a11e9d8724b4b60c11d9">BookmarksManager::m_loaded</a></div><div class="ttdeci">bool m_loaded</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00071">bookmarksmanager.h:71</a></div></div>
<div class="ttc" id="abookmarksmanager_8cpp_html_a16d82679788429b69219410519254a50"><div class="ttname"><a href="bookmarksmanager_8cpp.html#a16d82679788429b69219410519254a50">BOOKMARKMENU</a></div><div class="ttdeci">#define BOOKMARKMENU</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00091">bookmarksmanager.cpp:90</a></div></div>
<div class="ttc" id="aclassRemoveBookmarksCommand_html"><div class="ttname"><a href="classRemoveBookmarksCommand.html">RemoveBookmarksCommand</a></div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00083">bookmarksmanager.h:84</a></div></div>
<div class="ttc" id="aclassInsertBookmarksCommand_html_ae561b81c7e7b4e12f6d11c2caee36b90"><div class="ttname"><a href="classInsertBookmarksCommand.html#ae561b81c7e7b4e12f6d11c2caee36b90">InsertBookmarksCommand::InsertBookmarksCommand</a></div><div class="ttdeci">InsertBookmarksCommand(BookmarksManager *m_bookmarkManagaer, BookmarkNode *parent, BookmarkNode *node, int row)</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00371">bookmarksmanager.cpp:371</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a48c4d47a2f3866671b26866ed08ede70"><div class="ttname"><a href="classBookmarksManager.html#a48c4d47a2f3866671b26866ed08ede70">BookmarksManager::exportBookmarks</a></div><div class="ttdeci">void exportBookmarks()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00327">bookmarksmanager.cpp:327</a></div></div>
<div class="ttc" id="aclassChangeBookmarkCommand_html_a309694d8172653d868c276cec9534a6d"><div class="ttname"><a href="classChangeBookmarkCommand.html#a309694d8172653d868c276cec9534a6d">ChangeBookmarkCommand::m_title</a></div><div class="ttdeci">bool m_title</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00126">bookmarksmanager.h:126</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a293582aa7a74a8b0176a06c8fef1f832"><div class="ttname"><a href="classBookmarksManager.html#a293582aa7a74a8b0176a06c8fef1f832">BookmarksManager::toolbar</a></div><div class="ttdeci">BookmarkNode * toolbar()</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8cpp_source.html#l00263">bookmarksmanager.cpp:263</a></div></div>
<div class="ttc" id="abrowserapplication_8h_html"><div class="ttname"><a href="browserapplication_8h.html">browserapplication.h</a></div></div>
<div class="ttc" id="aclassBookmarksManager_html_a919a3283792b47fd5b312c29e543217e"><div class="ttname"><a href="classBookmarksManager.html#a919a3283792b47fd5b312c29e543217e">BookmarksManager::m_commands</a></div><div class="ttdeci">QUndoStack m_commands</div><div class="ttdef"><b>Definition:</b> <a href="bookmarksmanager_8h_source.html#l00077">bookmarksmanager.h:77</a></div></div>
<div class="ttc" id="aclassXbelWriter_html"><div class="ttname"><a href="classXbelWriter.html">XbelWriter</a></div><div class="ttdef"><b>Definition:</b> <a href="xbelwriter_8h_source.html#l00070">xbelwriter.h:71</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>