dabo Commit
Revision 6211
Date: 2010-11-24 14:03:44 -0800 (Wed, 24 Nov 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6211

Changed:
U   trunk/ide/PrefEditor.py

Log:
Removed the custom PrefDialog class, as it is no longer needed.


Diff:
Modified: trunk/ide/PrefEditor.py
===================================================================
--- trunk/ide/PrefEditor.py     2010-11-24 20:14:02 UTC (rev 6210)
+++ trunk/ide/PrefEditor.py     2010-11-24 22:03:44 UTC (rev 6211)
@@ -8,50 +8,8 @@
 from dabo.ui.dialogs.PreferenceDialog import PreferenceDialog
 
 
-class PrefEditorPrefDialog(PreferenceDialog):
-       def addPages(self):
-               dayMins = 24*60
-               pm = self.PreferenceManager
-               updKey = pm.web_update
-               self.preferenceKeys.append(updKey)
-               upPage = self.addCategory(_("Web Updates"))
-
-               sz = upPage.Sizer = dabo.ui.dSizer("v")
-               hsz = dabo.ui.dSizer("h")
-               chkUpdateCheck = dabo.ui.dCheckBox(upPage, 
OnHit=self.onChkUpdate,
-                               Caption=_("Check for Preference Editor 
updates"), RegID="chkForPrefManUpdates",
-                               DataSource=updKey, DataField="web_update",
-                               ToolTipText="Should we check for updates to the 
Preference Editor?")
-               btnCheckNow = dabo.ui.dButton(upPage, Caption=_("Check now..."),
-                               OnHit=self.onCheckNow, ToolTipText="Check the 
Dabo server for updates")
-               hsz.append(chkUpdateCheck, valign="middle")
-               hsz.appendSpacer(8)
-               hsz.append(btnCheckNow, valign="middle")
-               sz.append(hsz, halign="center", border=20)
-
-               radFrequency = dabo.ui.dRadioList(upPage, 
Orientation="Vertical",
-                               Caption=_("Check every..."), 
RegID="radWebUpdateFrequency",
-                               Choices=[_("Every time an app is run"), _("Once 
a day"), _("Once a week"), _("Once a month")],
-                               Keys = [0, dayMins, dayMins*7,dayMins*30],
-                               ValueMode="Keys", DataSource=updKey, 
DataField="update_interval",
-                               ToolTipText=_("How often should we check for 
updates?"),
-                               DynamicEnabled = lambda: 
self.chkForPrefManUpdates.Value)
-               sz.append(radFrequency, halign="center")
-
-
-       def onChkUpdate(self, evt):
-               self.update()
-
-
-       def onCheckNow(self, evt):
-               ret = self.Application.checkForUpdates()
-
-
-
-
 def main():
-       app = dabo.dApp(BasePrefKey="PrefEditor", 
MainFormClass="PrefEditor.cdxml",
-                       PreferenceDialogClass=PrefEditorPrefDialog)
+       app = dabo.dApp(BasePrefKey="PrefEditor", 
MainFormClass="PrefEditor.cdxml")
        curdir = os.getcwd()
        # Get the current location's path
        fname = os.path.abspath(inspect.getfile(main))



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to