From bd4b5ec6ea4f0a7fbdd22e9b3d1a96a9d8d17f20 Mon Sep 17 00:00:00 2001
From: Charles Haley <>
Date: Mon, 23 May 2011 21:25:53 +0100
Subject: [PATCH] Add color tag wizard tool button
---
src/calibre/gui2/preferences/look_feel.py | 6 ++--
src/calibre/gui2/preferences/look_feel.ui | 44 +++++++++++++++++++++--
2 files changed, 46 insertions(+), 4 deletions(-)
diff --git a/src/calibre/gui2/preferences/look_feel.py b/src/calibre/gui2/preferences/look_feel.py
index 7692a8aba7..483934825d 100644
--- a/src/calibre/gui2/preferences/look_feel.py
+++ b/src/calibre/gui2/preferences/look_feel.py
@@ -208,8 +208,10 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
for i in range(1, self.column_color_count):
r('column_color_name_'+str(i), db.prefs, choices=choices)
r('column_color_template_'+str(i), db.prefs)
- temp = getattr(self, 'opt_column_color_template_'+str(i))
- temp.set_tags(tags)
+ tpl = getattr(self, 'opt_column_color_template_'+str(i))
+ tpl.set_tags(tags)
+ toolbutton = getattr(self, 'opt_column_color_wizard_'+str(i))
+ toolbutton.clicked.connect(tpl.tag_wizard)
all_colors = [unicode(s) for s in list(QColor.colorNames())]
self.colors_box.setText(', '.join(all_colors))
diff --git a/src/calibre/gui2/preferences/look_feel.ui b/src/calibre/gui2/preferences/look_feel.ui
index 31fa0df234..a67a3585cb 100644
--- a/src/calibre/gui2/preferences/look_feel.ui
+++ b/src/calibre/gui2/preferences/look_feel.ui
@@ -436,30 +436,70 @@ then the tags will be displayed each on their own line.
-
+ -
+
+
+
+ :/images/wizard.png:/images/wizard.png
+
+
+
-
-
+ -
+
+
+
+ :/images/wizard.png:/images/wizard.png
+
+
+
-
-
+ -
+
+
+
+ :/images/wizard.png:/images/wizard.png
+
+
+
-
-
+ -
+
+
+
+ :/images/wizard.png:/images/wizard.png
+
+
+
-
-
+ -
+
+
+
+ :/images/wizard.png:/images/wizard.png
+
+
+
-
@@ -467,7 +507,7 @@ then the tags will be displayed each on their own line.
- -
+
-
@@ -505,7 +545,7 @@ then the tags will be displayed each on their own line.
- -
+
-