Class: MainWindow

Inherits:
MainWindowDlg show all
Includes:
BrowserLauncher
Defined in:
lib/MainWindow.rb

Instance Attribute Summary

Attributes inherited from MainWindowDlg

#TabPage, #TabPage_2, #clearPageFilterBtn, #clearRefererFilterBtn, #clearVisitorFilterBtn, #currentCountryList, #currentMapFrame, #currentStatus, #fullHostList, #groupBox11, #groupBox11_2, #groupBox12, #groupBox20, #groupBox4, #groupBox4_2, #groupBox5, #groupBox5_2, #groupBox6, #groupBox6_2, #hitList, #hostList, #largeVisitorMapBtn, #pageFilter, #pageList, #pages, #refererFilter, #refererList, #splitter3, #statusCodeList, #tabWidget, #textLabel1, #textLabel2, #textLabel3, #topPageList, #topRefererList, #visitorCountryList, #visitorFilter, #visitorMapFrame, #visitors

Instance Method Summary collapse

Methods included from BrowserLauncher

#browseURL

Methods inherited from MainWindowDlg

#aboutVW, #aboutVW_activated, #fileNew, #fileOpen, #helpAbout

Constructor Details

#initialize(parent = nil, name = nil) ⇒ MainWindow

Returns a new instance of MainWindow.



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
# File 'lib/MainWindow.rb', line 52

def initialize(parent = nil, name = nil)
  super
  init
  $windowList = []
  $windowList.push(self)
  @log = LogParser.new
  @nextPurge = Time.now + PurgeInterval

  @currentGDV = GeoDistView.new(@currentMapFrame, currentCountryList)

  @hostListCSLV = CSListView.new(@hostList)
  # Setup the columns of the "Current Status" list view
  @hostList.setSorting(2, false)
  @hostListCSLV.setColumnWidth(0, 300)
  @hostListCSLV.setColumnWidth(3, 450)
  @hostListCSLV.setColumnWidth(4, 120)
  @hostListCSLV.setColumnWidth(5, 200)

  @topPageListCSLV = CSListView.new(topPageList)
  # Setup the columns of the "Top Pages" list view
  @topPageList.setSorting(1, false)
  @topPageListCSLV.setColumnWidth(0, 500)

  @topRefererListCSLV = CSListView.new(topRefererList)
  # Setup the columns of the "Top Referers" list view
  @topRefererList.setSorting(1, false)
  @topRefererListCSLV.setColumnWidth(0, 500)

  @visitorGDV = GeoDistView.new(@visitorMapFrame, @visitorCountryList)
  @fullHostListCSLV = CSListView.new(@fullHostList)
  # Setup the columns of the "Visitors" list view
  @fullHostList.setSorting(2, false)
  @fullHostListCSLV.setColumnWidth(0, 300)
  @fullHostListCSLV.setColumnWidth(3, 450)

  @visitorWorldMap = nil

  @pageListCSLV = CSListView.new(@pageList)
  # Setup the columns of the "Pages" list view
  @pageList.setSorting(1, false)
  @pageListCSLV.setColumnWidth(0, 500)

  @refererListCSLV = CSListView.new(@refererList)
  # Setup the columns on the "Referer" list view
  @refererList.setSorting(1, false)
  @refererListCSLV.setColumnWidth(0, 500)

  @statusCodeListCSLV = CSListView.new(@statusCodeList)
  # Setup the columns of the "Status Code" list view
  @statusCodeList.setSorting(0, true)

  @hitListCSLV = CSListView.new(@hitList)
  # Setup the columns of the "Hit" list view
  @hitList.setSorting(0, false)

  connect(@tabWidget, SIGNAL('currentChanged(QWidget*)'),
          SLOT('tabChanged(QWidget*)'))
  connect(@hostList, SIGNAL('clicked(QListViewItem*)'),
          SLOT('recentHostClicked(QListViewItem*)'))
  connect(@topPageList, SIGNAL('clicked(QListViewItem*)'),
          SLOT('topPageClicked(QListViewItem*)'))
  connect(@topRefererList, SIGNAL('clicked(QListViewItem*)'),
          SLOT('topRefererClicked(QListViewItem*)'))
  connect(@fullHostList, SIGNAL('clicked(QListViewItem*)'),
          SLOT('hostClicked(QListViewItem*)'))
  connect(@pageList, SIGNAL('clicked(QListViewItem*)'),
          SLOT('pageClicked(QListViewItem*)'))
  connect(@refererList, SIGNAL('clicked(QListViewItem*)'),
          SLOT('refererClicked(QListViewItem*)'))

  connect(@clearVisitorFilterBtn, SIGNAL('clicked()'),
          SLOT('clearVisitorFilter()'))
  connect(@clearPageFilterBtn, SIGNAL('clicked()'),
          SLOT('clearPageFilter()'))
  connect(@clearRefererFilterBtn, SIGNAL('clicked()'),
          SLOT('clearRefererFilter()'))
  connect(@tabWidget, SIGNAL('currentChanged(QWidget*)'),
          SLOT('updateTab(QWidget*)'))

  @updateTimer = Qt::Timer.new(self)
  connect(@updateTimer, SIGNAL('timeout()'), SLOT('update()'))
  @updateTimer.start(500)

  if $globals.getSetting("MainWindowW") > 0 &&
     $globals.getSetting("MainWindowH") > 0
    resize($globals.getSetting("MainWindowW"),
           $globals.getSetting("MainWindowH"))
  end

  setMonitorWindow($globals.getSetting("MonitorWindow"))
  @showRegularPages.setOn($globals.getSetting("ShowRegularPages") != 0)
  @showAuxPages.setOn($globals.getSetting("ShowAuxPages") != 0)
  @showSurfers.setOn($globals.getSetting("ShowSurfers") != 0)
  @showRobots.setOn($globals.getSetting("ShowRobots") != 0)

  updateWindow()
  show
end

Instance Method Details

#aboutObject



264
265
266
267
268
269
270
# File 'lib/MainWindow.rb', line 264

def about()
  dlg = About.new
  dlg.aboutVersion.text = dlg.aboutVersion.text.gsub(/X\_X\_X/, AppConfig.version)
  dlg.aboutVersion.text = dlg.aboutVersion.text.gsub(/APP\_NAME/, AppConfig.name)
  dlg.caption = dlg.caption.sub(/APP\_NAME/, AppConfig.name)
  dlg.exec
end

#clearPageFilterObject



574
575
576
577
# File 'lib/MainWindow.rb', line 574

def clearPageFilter()
  @pageFilter.setText("")
  updatePages
end

#clearRefererFilterObject



579
580
581
582
# File 'lib/MainWindow.rb', line 579

def clearRefererFilter()
  @refererFilter.setText("")
  updateReferers
end

#clearVisitorFilterObject



569
570
571
572
# File 'lib/MainWindow.rb', line 569

def clearVisitorFilter()
  @visitorFilter.setText("")
  updateVisitors
end

#close(dummy) ⇒ Object



162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'lib/MainWindow.rb', line 162

def close(dummy)
  @visitorWorldMap.close(true) if @visitorWorldMap
  @visitorWorldMap = nil

  $resolver.stopAndSave
  $geoLocator.stopAndSave
  $traceRouter.stopAndSave

  $windowList.delete(self)
  $globals.setSetting("MainWindowW", width())
  $globals.setSetting("MainWindowH", height())
  #$globals.currentStatusSplitter = @currentStatusSplitter.sizes()
  $globals.saveSettings()
  super(true)
end

#configureClickSpotterObject



260
261
262
# File 'lib/MainWindow.rb', line 260

def configureClickSpotter()
  Configuration.new(self).exec
end

#fileExitObject



187
188
189
# File 'lib/MainWindow.rb', line 187

def fileExit()
  close(true)
end

#hostClicked(item) ⇒ Object



600
601
602
603
604
# File 'lib/MainWindow.rb', line 600

def hostClicked(item)
  return if item == nil
  visitor = $visitors[item.text(5) + "|" + item.text(6)]
  VisitorInformation.new(visitor)
end

#initObject



151
152
153
154
155
156
157
158
159
160
# File 'lib/MainWindow.rb', line 151

def init
  $hitRecords = []
  $visitors = {}
  $pages = {}
  $referers = {}
  $statusCodes = {}
  $recentVisitors = OccurenceCounter.new(50)
  $recentPages = OccurenceCounter.new(30)
  $recentReferers = OccurenceCounter.new(15)
end

#largeVisitorMapBtnClickedObject



606
607
608
609
610
# File 'lib/MainWindow.rb', line 606

def largeVisitorMapBtnClicked
  @visitorWorldMap.close(true) if @visitorWorldMap

  @visitorWorldMap = WorldMap.new(self)
end

#mw_1Object



212
213
214
# File 'lib/MainWindow.rb', line 212

def mw_1()
  setMonitorWindow(1)
end

#mw_10Object



224
225
226
# File 'lib/MainWindow.rb', line 224

def mw_10()
  setMonitorWindow(10)
end

#mw_120Object



240
241
242
# File 'lib/MainWindow.rb', line 240

def mw_120()
  setMonitorWindow(120)
end

#mw_2Object



216
217
218
# File 'lib/MainWindow.rb', line 216

def mw_2()
  setMonitorWindow(2)
end

#mw_20Object



228
229
230
# File 'lib/MainWindow.rb', line 228

def mw_20()
  setMonitorWindow(20)
end

#mw_30Object



232
233
234
# File 'lib/MainWindow.rb', line 232

def mw_30()
  setMonitorWindow(30)
end

#mw_5Object



220
221
222
# File 'lib/MainWindow.rb', line 220

def mw_5()
  setMonitorWindow(5)
end

#mw_60Object



236
237
238
# File 'lib/MainWindow.rb', line 236

def mw_60()
  setMonitorWindow(60)
end

#newLogObject



199
200
201
202
203
204
# File 'lib/MainWindow.rb', line 199

def newLog()
  settings = GSServerLogSettings.new
  if ServerLogSettings.new(settings, self).exec() == Qt::Dialog.Accepted
    $globals.addServerLogFile(settings)
  end
end

#openLogObject



206
207
208
209
210
# File 'lib/MainWindow.rb', line 206

def openLog()
  $windowList.each { |w| w.close unless w == self }
  init
  $globals.currentLogFile = nil
end

#pageClicked(item) ⇒ Object



616
617
618
619
# File 'lib/MainWindow.rb', line 616

def pageClicked(item)
  return if item == nil
  PageInformation.new($pages[item.text(0)])
end

#processLogObject



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
# File 'lib/MainWindow.rb', line 302

def processLog
  deadline = Time.now - $globals.getSetting('LogFileDataTimeout') * 60 * 60

  begin
    while (rec = @log.getNextEntry(deadline)) != nil
      next if rec['url'] == nil

      # Store hit record
      hr = HitRecord.new(rec)
      $hitRecords.push(hr)

      # Create or update status code record
      code = rec['code']
      if $statusCodes[code] == nil
        sc = StatusCode.new(code)
        $statusCodes[code] = sc
      else
        sc = $statusCodes[code]
      end
      sc.addHit(hr)

      # Create or update page record
      url = rec['url']
      if $pages[url] == nil
        p = PageRecord.new(url, rec['isPage'])
        $pages[url] = p
      else
        p = $pages[url]
      end
      p.addHit(hr)
      $recentPages.push(p)

      # Create or update referer record
      referer = rec['referer']
      if referer
        if $referers[referer] == nil
          r = RefererRecord.new(referer)
          $referers[referer] = r
        else
          r = $referers[referer]
        end
        r.addHit(hr)
        if r.external?
          $recentReferers.push(r)
        else
          # For internal pages we track the number of referrals to
          # other internal pages
          if $pages.has_key?(referer)
            $pages[referer].addReferral(rec['url'])
          end
        end
      end

      # Create or update visitor record
      key = rec['ip'] + "|" + rec['browser']
      if $visitors[key] == nil
        v = VisitorRecord.new(rec['ip'], rec['browser'])
        $visitors[key] = v
      else
        v = $visitors[key]
      end
      v.addHit(hr)
      v.robot = $globals.isRobot(rec['ip'], rec['browser'], rec['url'])
      $recentVisitors.push(v)

    end
  rescue SystemCallError
    Qt::MessageBox.warning(self, "Opening log file failed!", "#{$!}",
        Qt::MessageBox.Ok, 0)
    openLog
  end
end

#purgeRecordsObject



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
# File 'lib/MainWindow.rb', line 375

def purgeRecords
  return unless Time.now > @nextPurge

  deadline = Time.now - $globals.getSetting("LogFileDataTimeout") * 60 * 60
  $visitors.each do |id, v|
    if v.purge(deadline)
      $recentVisitors.delete(v)
      $visitors.delete(id)
    end
  end

  $referers.each do |url, r|
    if r.purge(deadline)
      $recentReferers.delete(r)
      $referers.delete(url)
    end
  end

  deletedPages = {}
  $pages.each do |url, p|
    deletedPages[url] = p if p.purge(deadline)
  end
  $pages.each do |url, p|
    p.purgeNextPages(deletedPages.values)
  end
  deletedPages.each_key do |u|
    $recentPages.delete($pages.delete(u))
  end

  $statusCodes.each do |c, h|
    $statusCodes.delete(c) if h.purge(deadline)
  end

  $hitRecords.delete_if { |h| h.timeStamp < deadline }

  @nextPurge = Time.now + PurgeInterval
end

#recentHostClicked(item) ⇒ Object



584
585
586
587
588
# File 'lib/MainWindow.rb', line 584

def recentHostClicked(item)
  return if item == nil
  visitor = $visitors[item.text(4) + "|" + item.text(5)]
  VisitorInformation.new(visitor)
end

#refererClicked(item) ⇒ Object



621
622
623
624
# File 'lib/MainWindow.rb', line 621

def refererClicked(item)
  return if item == nil
  RefererInformation.new($referers[item.text(0)])
end

#setMonitorWindow(duration) ⇒ Object



191
192
193
194
195
196
197
# File 'lib/MainWindow.rb', line 191

def setMonitorWindow(duration)
  actionList = { 1 => @mw_1, 2 => @mw_2, 5 => @mw_5, 10 => @mw_10,
                 20 => @mw_20, 30 => @mw_30, 60 => @mw_60, 120 => @mw_120 }
  actionList.each_value { |a| a.setOn(false) }
  actionList[duration].setOn(true)
  $globals.setSetting("MonitorWindow", duration)
end

#showAuxPagesObject



248
249
250
# File 'lib/MainWindow.rb', line 248

def showAuxPages()
  $globals.setSetting("ShowAuxPages", @showAuxPages.isOn() ? 1 : 0)
end

#showRegularPagesObject



244
245
246
# File 'lib/MainWindow.rb', line 244

def showRegularPages()
  $globals.setSetting("ShowRegularPages", @showRegularPages.isOn() ? 1 : 0)
end

#showRobotsObject



256
257
258
# File 'lib/MainWindow.rb', line 256

def showRobots()
  $globals.setSetting("ShowRobots", @showRobots.isOn() ? 1 : 0)
end

#showSurfersObject



252
253
254
# File 'lib/MainWindow.rb', line 252

def showSurfers()
  $globals.setSetting("ShowSurfers", @showSurfers.isOn() ? 1 : 0)
end

#tabChanged(dummy) ⇒ Object



178
179
180
181
182
183
184
185
# File 'lib/MainWindow.rb', line 178

def tabChanged(dummy)
  # Some pages generate excessive requests when started with a large
  # fresh log file. These requests are discarded when the requesting
  # page is no longer viewed.
  $resolver.flushQueue
  $geoLocator.flushQueue
  $traceRouter.flushQueue
end

#topPageClicked(item) ⇒ Object



590
591
592
593
# File 'lib/MainWindow.rb', line 590

def topPageClicked(item)
  return if item == nil
  PageInformation.new($pages[item.text(0)])
end

#topRefererClicked(item) ⇒ Object



595
596
597
598
# File 'lib/MainWindow.rb', line 595

def topRefererClicked(item)
  return if item == nil
  RefererInformation.new($referers[item.text(0)])
end

#updateObject



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
# File 'lib/MainWindow.rb', line 272

def update()
  # Avoid recursive calls in case this function takes a little
  # longer
  @updateTimer.stop()

  # Delete outdated records
  purgeRecords

  # Before we process the log file we need to make sure that we have any log
  # file definitions. If not, we open the appropriate configuration dialog.
  newLog if $globals.serverLogFiles.empty?

  until $globals.logFile
    dlg = LogFileSelector.new(self)
    if dlg.exec == Qt::Dialog.Rejected
      close(true)
      return
    end
    $globals.currentLogFile = dlg.selectedLogFile
  end
  @log.setFileName($globals.logFile)
  setCaption("#{$globals.currentLogFile.name} - #{AppConfig.name} " +
      "#{AppConfig.version}")

  processLog
  updateWindows
  updateStatusBar
  @updateTimer.start(5000)
end

#updateCodesObject



533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# File 'lib/MainWindow.rb', line 533

def updateCodes
  @statusCodeListCSLV.startUpdate
  $statusCodes.each do |code, rec|
    @statusCodeListCSLV.insertItem(code, code, rec.description,
                                   rec.hitCount, 0)
  end
  @statusCodeListCSLV.finishUpdate

  @hitListCSLV.startUpdate
  $hitRecords.each do |hit|
    next if @statusCodeListCSLV.selectedItems[hit.code] == nil
    @hitListCSLV.insertItem(hit, hit.timeStamp, hit.code,
                            hit.visitor.host, hit.request,
                            hit.referer ? hit.referer.url : '')
  end
  @hitListCSLV.finishUpdate
end

#updatePagesObject



503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
# File 'lib/MainWindow.rb', line 503

def updatePages
  @pageListCSLV.startUpdate
  showRegularPages = $globals.getSetting("ShowRegularPages") != 0
  showAuxPages = $globals.getSetting("ShowAuxPages") != 0
  $pages.each do |url, page|
    if !@pageFilter.text().empty? &&
       !(Regexp.new(@pageFilter.text()) =~ url) ||
       (page.isPage && !showRegularPages) ||
       (!page.isPage && !showAuxPages)
      next
    end
    @pageListCSLV.insertItem(page, url, page.hitCount, page.entryCount,
                             page.exitCount);
  end
  @pageListCSLV.finishUpdate
end

#updateRecentObject



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
# File 'lib/MainWindow.rb', line 432

def updateRecent

  @hostListCSLV.startUpdate
  deadline = Time.now().localtime() -
    $globals.getSetting("MonitorWindow") * 60
  showSurfers = $globals.getSetting("ShowSurfers") != 0
  showRobots = $globals.getSetting("ShowRobots") != 0
  visitors = {}
  $recentVisitors.each do |v, count|
    if v == nil ||
       (v.robot != nil && !showRobots) ||
       (v.robot == nil && !showSurfers) ||
        v.lastHit.timeStamp < deadline
      next
    end

    visitors[v.ip] = v

    if (!@currentGDV.selectedItems.empty? &&
        @currentGDV.selectedItems[v.country] == nil)
      next
    end
    @hostListCSLV.insertItem(v, v.host(), v.hitCount(), v.pageCount(),
                             v.lastPage ? v.lastPage.url() : '', v.ip(),
                             v.browser())
  end
  @hostListCSLV.finishUpdate

  @currentGDV.update(visitors)
  @topPageListCSLV.startUpdate
  showRegularPages = $globals.getSetting("ShowRegularPages") != 0
  showAuxPages = $globals.getSetting("ShowAuxPages") != 0
  $recentPages.each do |p, count|
    if p == nil || p.lastHit == nil || p.lastHit.timeStamp < deadline ||
       (p.isPage && !showRegularPages) ||
       (!p.isPage && !showAuxPages)
      next
    end
    @topPageListCSLV.insertItem(p, p.url, count, p.lastHit.bytes * count)
  end
  @topPageListCSLV.finishUpdate

  @topRefererListCSLV.startUpdate
  $recentReferers.each do |r, count|
    next if r == nil || r.lastHit == nil || r.lastHit.timeStamp < deadline
    @topRefererListCSLV.insertItem(r, r.url, count, r.lastHit.bytes * count)
  end
  @topRefererListCSLV.finishUpdate
end

#updateReferersObject



520
521
522
523
524
525
526
527
528
529
530
531
# File 'lib/MainWindow.rb', line 520

def updateReferers
  @refererListCSLV.startUpdate
  $referers.each do |url, referer|
    if !referer.external? ||
       (!@refererFilter.text().empty? &&
        !(Regexp.new(@refererFilter.text()) =~ url))
      next
    end
    @refererListCSLV.insertItem(referer, url, referer.hitCount)
  end
  @refererListCSLV.finishUpdate
end

#updateStatusBarObject



551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
# File 'lib/MainWindow.rb', line 551

def updateStatusBar
  now = Time.now()
  i = $hitRecords.length() - 1
  pages = 0
  bytes = 0
  while (i > 0) and ($hitRecords[i].timeStamp > Time.now().localtime() - 60)
    i -= 1
    bytes += $hitRecords[i].bytes
    pages += 1 if $hitRecords[i].page.isPage
  end
  statusBar().message("Hits: #{$hitRecords.length() - 1 - i}/min  " +
                      "Pages: #{pages}/min " +
                      "Traffic: #{bytes / 60} kBytes/s      " +
                      "Queues (D/G/T): #{$resolver.queueSize}/" +
                                      "#{$geoLocator.queueSize}/" +
                                      "#{$traceRouter.queueSize}")
end

#updateTab(w) ⇒ Object



419
420
421
# File 'lib/MainWindow.rb', line 419

def updateTab(w)
  updateWindow
end

#updateVisitorsObject



482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
# File 'lib/MainWindow.rb', line 482

def updateVisitors
  @visitorGDV.update($visitors)
  @fullHostListCSLV.startUpdate
  showSurfers = $globals.getSetting("ShowSurfers") != 0
  showRobots = $globals.getSetting("ShowRobots") != 0
  $visitors.each_value do |visitor|
    if (!@visitorFilter.text().empty? &&
        !(Regexp.new(@visitorFilter.text()) =~ visitor.host)) ||
       (visitor.robot != nil && !showRobots) ||
       (visitor.robot == nil && !showSurfers) ||
       (!@visitorGDV.selectedItems.empty? &&
        @visitorGDV.selectedItems[visitor.country] == nil)
      next
    end
    @fullHostListCSLV.insertItem(visitor, visitor.host, visitor.hitCount,
      visitor.pageCount, visitor.lastPage ? visitor.lastPage.page.url : '',
      visitor.lastHit.timeStamp, visitor.ip, visitor.browser)
  end
  @fullHostListCSLV.finishUpdate
end

#updateWindowObject



423
424
425
426
427
428
429
430
# File 'lib/MainWindow.rb', line 423

def updateWindow
  funcs = [ method(:updateRecent), method(:updateVisitors),
            method(:updatePages), method(:updateReferers),
      method(:updateCodes) ]
  funcs[@tabWidget.currentPageIndex()].call()

  @visitorWorldMap.update($visitors) if @visitorWorldMap
end

#updateWindowsObject



413
414
415
416
417
# File 'lib/MainWindow.rb', line 413

def updateWindows
  $windowList.each do |win|
    win.updateWindow
  end
end

#worldMapClosedObject



612
613
614
# File 'lib/MainWindow.rb', line 612

def worldMapClosed
  @visitorWorldMap = nil
end