SF.net SVN: fclient:[707] trunk/fclient/src/fclient
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-21 10:40:37
|
Revision: 707
http://fclient.svn.sourceforge.net/fclient/?rev=707&view=rev
Author: jUrner
Date: 2008-07-21 10:39:54 +0000 (Mon, 21 Jul 2008)
Log Message:
-----------
add default downloads dir
Modified Paths:
--------------
trunk/fclient/src/fclient/config.py
Added Paths:
-----------
trunk/fclient/src/fclient/downloads/
Modified: trunk/fclient/src/fclient/config.py
===================================================================
--- trunk/fclient/src/fclient/config.py 2008-07-21 10:36:11 UTC (rev 706)
+++ trunk/fclient/src/fclient/config.py 2008-07-21 10:39:54 UTC (rev 707)
@@ -24,6 +24,7 @@
FclientDir = os.path.dirname(os.path.abspath(__file__))
FclientDocDir = os.path.join(FclientDir, 'doc')
+FclientDownloadsDir = os.path.join(FclientDir, 'downloads')
FclientResDir = os.path.join(FclientDir, 'res')
FclientSettingsDir = os.path.join(FclientDir, 'settings')
#**********************************************************************************
@@ -35,6 +36,7 @@
IdViewWidget = 'ViewWidget'
IdViewBrowserWidget = 'ViewBrowserWidget'
IdViewConnectionWidget = 'ViewConnectionWidget'
+IdViewCDownloadsWidget = 'ViewDownloadsWidget'
IdViewLoggerWidget = 'ViewDownloadsWidget'
IdViewLoggerWidget = 'ViewLoggerWidget'
@@ -55,8 +57,11 @@
if ido in self:
raise ValueError('ui object already registered: %s' % ido)
self[ido] = obj
-
-
+
+ def unregister(self, obj):
+ del self[str(obj.objectName())]
+
+
ObjectRegistry = ObjectRegistry()
#**********************************************************************************
#
@@ -95,6 +100,7 @@
('SettingsDir', 'String', QtCore.QString(FclientSettingsDir), SettingScopeUser), # if not None, settings are stored locally in the app folder
('SettingsAllUsers', 'Bool', False, SettingScopeUser), # store settings for all users?
('IconTheme', 'String', 'crystal', SettingScopeUser),
+ ('DownloadsDir', 'String', FclientDownloadsDir, SettingScopeUser),
)
SettingsBase._config_settings_ = Settings()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|