Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/, /newedit/src/mixins/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/, /newedit/src/mixins/

Reply

Author limodou
Full name limodou
Date 2005-03-16 07:24:11 PST
Message User: limodou
Date: 05/03/16 07:24:11

Modified:
 /newedit/src/
  NewEdit.py
 /newedit/src/mixins/
  Import.py, MainFrame.py, __init__.py, mPreference.py

Log:
 bug fix

File Changes:

Directory: /newedit/src/
========================

File [changed]: NewEdit.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/NewEdit.​py?r1=1.37&r2=1.​38
Delta lines: +2 -2
-------------------
--- NewEdit.py 12 Mar 2005 12:11:55 -0000 1.37
+++ NewEdit.py 16 Mar 2005 15:24:11 -0000 1.38
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: NewEdit.py,v 1.37 2005/03/12 12:11:55 limodou Exp $
+# $Id: NewEdit.py,v 1.38 2005/03/16 15:24:11 limodou Exp $
 
 __appname__ = 'NewEdit'
 __author__ = 'limodou'
@@ -150,7 +150,7 @@
     if not os.path.exists(pluginpath):
         os.mkdir(pluginpath)
     if not os.path.exists(os.pa​th.join(pluginpath, '__init__.py')):
- file(os.path.join(plulginpath, '__init__.py'), 'w').write("""# Programmer: limodou
+ file(os.path.join(pluginpath, '__init__.py'), 'w').write("""# Programmer: limodou
 # E-mail: chatme at 263 dot net
 #
 # Copyleft 2004 limodou

Directory: /newedit/src/mixins/
===============================

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.77​&r2=1.78
Delta lines: +33 -2
--------------------
--- Import.py 12 Mar 2005 15:15:08 -0000 1.77
+++ Import.py 16 Mar 2005 15:24:11 -0000 1.78
@@ -20,7 +20,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Import.py,v 1.77 2005/03/12 15:15:08 limodou Exp $
+# $Id: Import.py,v 1.78 2005/03/16 15:24:11 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------
@@ -45,7 +45,7 @@
     win.pref = Preference.Preference()
     win.pref.load()
     win.pref.printValues()
-Mixin.setPlugin('mainframe', 'beforeinit', initpreference, Mixin.HIGH)
+Mixin.setPlugin('mainframe', 'start', initpreference, Mixin.HIGH)
 
 def OnOptionPreference(win, event):
     import PrefDialog
@@ -5456,7 +5456,6 @@
 Mixin.setMixin('editor', 'popmenulist', popmenulist)
 
 def OnViewOpenModuleFile(win, event):
- print getword(win)
     openmodulefile(win, getword(win))
 Mixin.setMixin('mainframe', 'OnViewOpenModuleFile', OnViewOpenModuleFile)
 
@@ -5523,6 +5522,38 @@
         event.Enable(win.languagename == 'python' and win.documenttype == 'edit')
 Mixin.setPlugin('editor', 'on_update_ui', OnUpdateUI)
 
+
+
+
+#----------------------- mSplashWin.py ------------------
+
+
+import wx
+from modules import common
+from modules import Mixin
+
+preflist = [
+ (tr('General'), 190, 'check', 'splash_on_startup', tr('Show splash window on startup'), None),
+]
+Mixin.setMixin('preference', 'preflist', preflist)
+
+def init(pref):
+ pref.splash_on_startup = True
+Mixin.setPlugin('preference', 'init', init)
+
+splashimg = common.unicode_abspa​th('images/splash.jp​g')
+
+def start(mainframe):
+ mainframe.splashwin = None
+ if mainframe.pref.splas​h_on_startup:
+ mainframe.splashwin = wx.SplashScreen(wx.I​mage(splashimg).Conv​ertToBitmap(),
+ wx.SPLASH_CENTRE_ON_​SCREEN|wx.SPLASH_NO_​TIMEOUT, 0, None, -1)
+Mixin.setPlugin('mainframe', 'start', start)
+
+def show(mainframe):
+ if mainframe.splashwin:
+ mainframe.splashwin.Destroy()
+Mixin.setPlugin('mainframe', 'show', show)
 
 
 

File [changed]: MainFrame.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/M​ainFrame.py?r1=1.19​&r2=1.20
Delta lines: +4 -1
-------------------
--- MainFrame.py 14 Oct 2004 03:27:12 -0000 1.19
+++ MainFrame.py 16 Mar 2005 15:24:11 -0000 1.20
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: MainFrame.py,v 1.19 2004/10/14 03:27:12 limodou Exp $
+# $Id: MainFrame.py,v 1.20 2005/03/16 15:24:11 limodou Exp $
 
 from modules import Mixin
 from modules import makemenu
@@ -50,6 +50,8 @@
         self.app = app
         self.filenames = filenames
 
+ self.callplugin('start', self)
+
         wx.Frame.__init__(self, None, -1, self.app.appname, size=wx.Size(600, 400), name=self.app.appname)
 
         self.id = self.GetId()
@@ -77,6 +79,7 @@
 
         self.callplugin('beforeinit', self)
         self.callplugin('init', self)
+ wx.CallAfter(self.callplugin, 'show', self)
         wx.EVT_IDLE(self, self.OnIdle)
 
     def afterinit(self):

File [changed]: __init__.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/_​_init__.py?r1=1.59​&r2=1.60
Delta lines: +2 -1
-------------------
--- __init__.py 12 Mar 2005 14:21:38 -0000 1.59
+++ __init__.py 16 Mar 2005 15:24:11 -0000 1.60
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: __init__.py,v 1.59 2005/03/12 14:21:38 limodou Exp $
+# $Id: __init__.py,v 1.60 2005/03/16 15:24:11 limodou Exp $
 
 ## 1.0 core
 #import mPreference
@@ -106,6 +106,7 @@
 ## 2.9
 #import mPythonFileType
 #import mModuleFile
+#import mSplashWin
 
 import Import
 

File [changed]: mPreference.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​Preference.py?r1=1.2​&r2=1.3
Delta lines: +2 -2
-------------------
--- mPreference.py 14 Oct 2004 03:27:12 -0000 1.2
+++ mPreference.py 16 Mar 2005 15:24:11 -0000 1.3
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: mPreference.py,v 1.2 2004/10/14 03:27:12 limodou Exp $
+# $Id: mPreference.py,v 1.3 2005/03/16 15:24:11 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -41,7 +41,7 @@
     win.pref = Preference.Preference()
     win.pref.load()
     win.pref.printValues()
-Mixin.setPlugin('mainframe', 'beforeinit', initpreference, Mixin.HIGH)
+Mixin.setPlugin('mainframe', 'start', initpreference, Mixin.HIGH)
 
 def OnOptionPreference(win, event):
     import PrefDialog




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/, /newedit/src/mixins/ limodou limodou 2005-03-16 07:24:11 PST
Messages per page: