<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>help.html</filename>
    </added>
    <added>
      <filename>help_ita.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -29,7 +29,7 @@ except:
 from menubar import MyMenuBar
 from mangaframe import MangaFrame
 from dialogs import DownloadDialog
-from widgets import DebuggingWindow, AdviserDialog
+from widgets import DebuggingWindow, AdviserDialog, HelpDialog
 from image import BackgroundImage
 from taskbaricon import TaskBarIcon
 
@@ -44,6 +44,7 @@ class MDIFrame (wx.MDIParentFrame):
         
         self.hide_on_iconize = config.ReadInt(&quot;hide_on_iconize&quot;) or 1 #1:chiedi, 2:non chiedi
         self.ask_on_close = config.ReadInt(&quot;ask_on_close&quot;) or 1 #1:chiedi, 2:non chiedi
+        self.first_run = not config.ReadBool(&quot;first_run&quot;)
          
         self.system_resolution = wx.GetDisplaySize()
         size = config.ReadInt(&quot;sizeW&quot;), config.ReadInt(&quot;sizeH&quot;)
@@ -73,7 +74,7 @@ class MDIFrame (wx.MDIParentFrame):
         menus = [_(&quot;Gmangas2&quot;), _(&quot;View&quot;), _(&quot;History&quot;), _(&quot;Bookmarks&quot;), _(&quot;Adviser&quot;), _(&quot;Utils&quot;), _(&quot;Help&quot;)]
         menu_items = [
             [_(&quot;New Manga\tCtrl+t&quot;), _(&quot;Open a new Manga&quot;), self.OnNewManga, _(&quot;Gmangas2&quot;)],
-            [_(&quot;Manga News\tCtrl+n&quot;), _(&quot;Open a new News Window&quot;), self.OnMangaNews, _(&quot;Gmangas2&quot;)],
+            #[_(&quot;Manga News\tCtrl+n&quot;), _(&quot;Open a new News Window&quot;), self.OnMangaNews, _(&quot;Gmangas2&quot;)],
             [_(&quot;Close Current\tCtrl+w&quot;), _(&quot;Close current child&quot;), self.OnCloseCurrent, _(&quot;Gmangas2&quot;)],
             [&quot;&lt;sep&gt;&quot;, _(&quot;Gmangas2&quot;)],
             [_(&quot;Exit\tCtrl+q&quot;), _(&quot;Close Gmangas2&quot;), self.OnExit, _(&quot;Gmangas2&quot;)], #, lambda id:wx.App.SetMacExitMenuItemId(id)
@@ -98,6 +99,8 @@ class MDIFrame (wx.MDIParentFrame):
             [&quot;&lt;sep&gt;&quot;, _(&quot;Utils&quot;)],
             [_(&quot;Save Image&quot;), _(&quot;Save current manga's image somewhere&quot;), self.OnSaveImage, _(&quot;Utils&quot;)],
             
+            [_(&quot;Help&quot;), _(&quot;Help window&quot;), self.OnHelp, _(&quot;Help&quot;)],
+            [&quot;&lt;sep&gt;&quot;, _(&quot;Help&quot;)],
             [_(&quot;About&quot;), _(&quot;About window&quot;), self.OnAbout, _(&quot;Help&quot;)]] #, lambda id:wx.App.SetMacAboutMenuItemId(id)
         self.MenuBar = MyMenuBar(self, menu_items, menus, BackEnds)
         self.SetMenuBar(self.MenuBar)
@@ -112,6 +115,9 @@ class MDIFrame (wx.MDIParentFrame):
         self.LoadStates()
         
         wx.EVT_PAINT(self.ClientWindow, self.OnPaint)
+        
+        if not self.first_run:
+            self.StartHelpDialog()
 
     def WakeUp (self):
         self.Iconize(False)
@@ -126,7 +132,14 @@ class MDIFrame (wx.MDIParentFrame):
         iw, ih = background2.Image.size
         fw, fh = self.GetSize()
         dc.DrawBitmap(bmp2, 0,0, True)
-    
+
+    def StartHelpDialog (self):
+        if self.IsFullScreen():
+            self.FullScreen()
+        size = self.GetSize()
+        dialog = HelpDialog(self, (size[0],int(size[1]/1.5)))
+        dialog.Show()
+        
     def LoadStates (self):
         filename = os.path.join(homedir, &quot;STATE&quot;)
         if os.path.isfile(filename):
@@ -358,11 +371,13 @@ class MDIFrame (wx.MDIParentFrame):
         return result
     
     def SaveConfiguration (self):
+        if self.IsFullScreen():
+            self.FullScreen()
         maximized = self.IsMaximized()
         config.WriteBool(&quot;maximized&quot;, maximized)
         
         if maximized:
-            self.Maximize(False)        
+            self.Maximize(False)
         w,h = self.GetSize()
         config.WriteInt(&quot;sizeW&quot;, w)
         config.WriteInt(&quot;sizeH&quot;, h)
@@ -382,6 +397,7 @@ class MDIFrame (wx.MDIParentFrame):
         
         config.WriteInt(&quot;hide_on_iconize&quot;, self.hide_on_iconize)
         config.WriteInt(&quot;ask_on_close&quot;, self.ask_on_close)
+        config.WriteBool(&quot;first_run&quot;, True)
         
         achild = self.GetActiveChild()
         if hasattr(achild, &quot;AutoFit&quot;):
@@ -433,6 +449,8 @@ class MDIFrame (wx.MDIParentFrame):
             achild.Close(True)
         else:
             wx.MessageBox(_(&quot;What are you trying to close?&quot;))
+    def OnHelp (self, event):
+        self.StartHelpDialog()
     def OnAbout (self, event):
         info = wx.AboutDialogInfo()
         info.SetIcon(wx.Icon(cdir(&quot;..&quot;, &quot;pixmaps&quot;, &quot;logo.png&quot;), wx.BITMAP_TYPE_PNG))
@@ -447,12 +465,15 @@ class MDIFrame (wx.MDIParentFrame):
         info.AddArtist(&quot;Luciano Ferraro&quot;)
         info.AddTranslator(&quot;Luciano Ferraro&quot;)
         wx.AboutBox(info)
- 
-    def OnFullScreen (self, event):
+        
+    def FullScreen (self):
         flags = wx.FULLSCREEN_NOTOOLBAR|wx.FULLSCREEN_NOSTATUSBAR|\
                 wx.FULLSCREEN_NOBORDER|wx.FULLSCREEN_NOCAPTION
         fs = not self.IsFullScreen()
         self.ShowFullScreen(fs, flags)
+ 
+    def OnFullScreen (self, event):
+        self.FullScreen()
         
         child = self.GetActiveChild()
         if hasattr(child, &quot;FitImage&quot;):</diff>
      <filename>gmangas/mdi.py</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,7 @@
 import wx
 import wx.py
 import wx.py.crust
+import wx.html
 try:
     from wx.lib.agw.buttonpanel import ButtonInfo
 except:
@@ -30,6 +31,21 @@ import os
 import sys
 import random
 
+class HelpDialog (wx.Dialog):
+    def __init__(self, parent, size, *args, **kwargs):
+        wx.Dialog.__init__(self, parent, wx.NewId(), _(&quot;Help&quot;), size=size, *args, **kwargs)
+
+        sizer = wx.BoxSizer(wx.VERTICAL)
+        html = wx.html.HtmlWindow(self)
+        if &quot;gtk2&quot; in wx.PlatformInfo:
+            html.SetStandardFonts()
+        if __language__ == &quot;ita&quot;:
+            html.LoadFile(gdir(&quot;help_ita.html&quot;))
+        else:
+            html.LoadFile(gdir(&quot;help.html&quot;))
+        sizer.Add(html, 1, wx.EXPAND)
+        self.SetSizer(sizer)
+
 class MyButtonBox:
     def __init__ (self, parent, panel, *args, **kwargs):
         self.parent, self.panel = parent, panel</diff>
      <filename>gmangas/widgets.py</filename>
    </modified>
    <modified>
      <diff>@@ -39,9 +39,11 @@ def install (curdir, lang=None):
     langid = locale.getdefaultlocale()[0]
     domain = &quot;gmangas2&quot;
     
+    __builtin__.__language__ = &quot;en&quot;
     if not lang:
         if langid.startswith(&quot;it&quot;):
             lang = gettext.translation(domain, localedir, languages=[&quot;it&quot;])
+            __builtin__.__language__ = &quot;ita&quot;
         else:
             __builtin__._ = lambda s: s
             return</diff>
      <filename>i18n.py</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>locale/it/LC_MESSAGES/gmangas2.mo</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ data_files = walk_dir(&quot;pixmaps&quot;) + \
            walk_dir(&quot;gmangas&quot;) + \
            walk_dir(&quot;backends&quot;) + \
            walk_dir(&quot;locale&quot;) + \
-           [(&quot;.&quot;,[&quot;BeautifulSoup.py&quot;, &quot;image.py&quot;, &quot;i18n.py&quot;])]
+           [(&quot;.&quot;,[&quot;BeautifulSoup.py&quot;, &quot;image.py&quot;, &quot;i18n.py&quot;, &quot;help.html&quot;, &quot;help_ita.html&quot;])]
 lines, chars = 0, 0
 for dlist in data_files:
     if dlist[0].split(&quot;\\&quot;)[0].split(&quot;/&quot;)[0] in (&quot;pixmaps&quot;, &quot;locale&quot;):</diff>
      <filename>setup.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc7dc91e290dbc244a7598d82f41bf2edc10fa21</id>
    </parent>
  </parents>
  <author>
    <name>unknown</name>
    <email>lux@.(none)</email>
  </author>
  <url>http://github.com/luxkun/gmangas2/commit/0e15250f077628d53019a02318da69642f747604</url>
  <id>0e15250f077628d53019a02318da69642f747604</id>
  <committed-date>2009-08-19T16:24:47-07:00</committed-date>
  <authored-date>2009-08-19T16:24:47-07:00</authored-date>
  <message>Added HelpDialog and some minor changes</message>
  <tree>adc77019ca6d077176a09f032b3ee9d4d46d8e40</tree>
  <committer>
    <name>unknown</name>
    <email>lux@.(none)</email>
  </committer>
</commit>
