SF.net SVN: fclient:[679] trunk/fclient/src/fclient/Ui_ViewBrowser.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-19 08:59:54
|
Revision: 679
http://fclient.svn.sourceforge.net/fclient/?rev=679&view=rev
Author: jUrner
Date: 2008-07-19 08:59:59 +0000 (Sat, 19 Jul 2008)
Log Message:
-----------
icon size and theme is user adjustable
Modified Paths:
--------------
trunk/fclient/src/fclient/Ui_ViewBrowser.py
Modified: trunk/fclient/src/fclient/Ui_ViewBrowser.py
===================================================================
--- trunk/fclient/src/fclient/Ui_ViewBrowser.py 2008-07-19 08:59:28 UTC (rev 678)
+++ trunk/fclient/src/fclient/Ui_ViewBrowser.py 2008-07-19 08:59:59 UTC (rev 679)
@@ -189,6 +189,7 @@
('AlwaysOpenLinksInNewTab', 'Bool', False, config.SettingScopeUser),
('BackIsClose', 'Bool', False, config.SettingScopeUser),
('MaxTabText', 'UInt', 20, config.SettingScopeUser),
+ ('IconSize', 'UInt', 32, config.SettingScopeUser)
)
@@ -240,9 +241,24 @@
act = self.pageAction(page.OpenFrameInNewWindow)
act.setText(self.trUtf8('Open frame in new tab'))
+ # adjust action icons
+ #TODO: tool buttons do not adjust themselves to huge icons. how to adjust?
+ iconSize = self.fcSettings.value('IconSize')
+ iconTheme = config.settings.value('IconTheme')
+ acts = (
+ (page.Back, 'back'),
+ (page.Forward, 'forward'),
+ (page.Reload, 'reload_page'),
+ (page.Stop, 'stop'),
+ )
+ for a, iconName in acts:
+ act = self.pageAction(a)
+ act.setIcon(config.resources.getIcon(iconName, iconSize, iconTheme=iconTheme))
+
self.connect(self.pageAction(QtWebKit.QWebPage.Stop), QtCore.SIGNAL('triggered()'), self.onActionStopTriggered)
-
+ # connect actions
+ #TODO: download action
self.connect(self, QtCore.SIGNAL('loadStarted()'), self.onLoadStarted)
self.connect(self, QtCore.SIGNAL('loadProgress(int)'), self.onLoadProgress)
self.connect(self, QtCore.SIGNAL('loadFinished(bool)'), self.onLoadFinished)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|