[mythtv] [PATCH] EPGCurrentTimeColor ComboBox
dan
dan at milkcarton.com
Sat Apr 5 22:46:01 EST 2003
Attached is a patch for EPGCurrentTimeColor to change it from a line
edit widget to a combo box one. So far I have 19 of the 752 different
QColor recoginized colors. If anyone sees a need / has a desire I will
put in more of them, however I didn't see a need for 100 different
shades of gray in the dropdown :-)
-dan
-------------- next part --------------
Index: programs/mythfrontend/globalsettings.cpp
===================================================================
RCS file: /var/lib/cvs/MC/programs/mythfrontend/globalsettings.cpp,v
retrieving revision 1.70
diff -u -d -r1.70 globalsettings.cpp
--- programs/mythfrontend/globalsettings.cpp 3 Apr 2003 02:12:01 -0000 1.70
+++ programs/mythfrontend/globalsettings.cpp 6 Apr 2003 07:26:33 -0000
@@ -802,12 +802,30 @@
};
};
-class EPGCurrentTimeColor: public LineEditSetting, public GlobalSetting {
+class EPGCurrentTimeColor: public ComboBoxSetting, public GlobalSetting {
public:
- EPGCurrentTimeColor():
- GlobalSetting("EPGCurrentTimeColor") {
+EPGCurrentTimeColor():
+ GlobalSetting("EPGCurrentTimeColor") {
setLabel("Color of line indicating the current time");
- setValue("red");
+ addSelection("red", "red");
+ addSelection("darkRed", "darkRed");
+ addSelection("orange", "orange");
+ addSelection("yellow", "yellow");
+ addSelection("darkYellow", "darkYellow");
+ addSelection("green", "green");
+ addSelection("darkGreen", "darkGreen");
+ addSelection("blue", "blue");
+ addSelection("darkBlue", "darkBlue");
+ addSelection("violet", "violet");
+ addSelection("cyan", "cyan");
+ addSelection("darkCyan", "darkCyan");
+ addSelection("magenta", "magenta");
+ addSelection("darkMagenta", "darkMagenta");
+ addSelection("gray", "gray");
+ addSelection("darkGray", "darkGray");
+ addSelection("lightGray", "lightGray");
+ addSelection("white", "white");
+ addSelection("black", "black");
};
};
More information about the mythtv-dev
mailing list