summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircsettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircsettings.cpp b/noncore/net/opieirc/ircsettings.cpp
index 7a1dd6c..86e0f11 100644
--- a/noncore/net/opieirc/ircsettings.cpp
+++ b/noncore/net/opieirc/ircsettings.cpp
@@ -61,65 +61,65 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags)
61 label = new QLabel(tr("Background color :"), widget); 61 label = new QLabel(tr("Background color :"), widget);
62 layout->addWidget(label, 0, 0); 62 layout->addWidget(label, 0, 0);
63 m_background = new OColorButton(widget, m_config->readEntry("BackgroundColor", "#FFFFFF")); 63 m_background = new OColorButton(widget, m_config->readEntry("BackgroundColor", "#FFFFFF"));
64 QWhatsThis::add(m_background, tr("Background color to be used in chats")); 64 QWhatsThis::add(m_background, tr("Background color to be used in chats"));
65 layout->addWidget(m_background, 0, 1); 65 layout->addWidget(m_background, 0, 1);
66 label = new QLabel(tr("Normal text color :"), widget); 66 label = new QLabel(tr("Normal text color :"), widget);
67 layout->addWidget(label, 1, 0); 67 layout->addWidget(label, 1, 0);
68 m_text = new OColorButton(widget, m_config->readEntry("TextColor", "#000000")); 68 m_text = new OColorButton(widget, m_config->readEntry("TextColor", "#000000"));
69 QWhatsThis::add(m_text, tr("Text color to be used in chats")); 69 QWhatsThis::add(m_text, tr("Text color to be used in chats"));
70 layout->addWidget(m_text, 1, 1); 70 layout->addWidget(m_text, 1, 1);
71 label = new QLabel(tr("Error color :"), widget); 71 label = new QLabel(tr("Error color :"), widget);
72 layout->addWidget(label, 2, 0); 72 layout->addWidget(label, 2, 0);
73 m_error = new OColorButton(widget, m_config->readEntry("ErrorColor", "#FF0000")); 73 m_error = new OColorButton(widget, m_config->readEntry("ErrorColor", "#FF0000"));
74 QWhatsThis::add(m_error, tr("Text color to be used to display errors")); 74 QWhatsThis::add(m_error, tr("Text color to be used to display errors"));
75 layout->addWidget(m_error, 2, 1); 75 layout->addWidget(m_error, 2, 1);
76 label = new QLabel(tr("Text written by yourself :"), widget); 76 label = new QLabel(tr("Text written by yourself :"), widget);
77 layout->addWidget(label, 3, 0); 77 layout->addWidget(label, 3, 0);
78 m_self = new OColorButton(widget, m_config->readEntry("SelfColor", "#CC0000")); 78 m_self = new OColorButton(widget, m_config->readEntry("SelfColor", "#CC0000"));
79 QWhatsThis::add(m_self, tr("Text color to be used to identify text written by yourself")); 79 QWhatsThis::add(m_self, tr("Text color to be used to identify text written by yourself"));
80 layout->addWidget(m_self, 3, 1); 80 layout->addWidget(m_self, 3, 1);
81 label = new QLabel(tr("Text written by others :"), widget); 81 label = new QLabel(tr("Text written by others :"), widget);
82 layout->addWidget(label, 4, 0); 82 layout->addWidget(label, 4, 0);
83 m_other = new OColorButton(widget, m_config->readEntry("OtherColor", "#0000BB")); 83 m_other = new OColorButton(widget, m_config->readEntry("OtherColor", "#0000BB"));
84 QWhatsThis::add(m_other, tr("Text color to be used to identify text written by others")); 84 QWhatsThis::add(m_other, tr("Text color to be used to identify text written by others"));
85 layout->addWidget(m_other, 4, 1); 85 layout->addWidget(m_other, 4, 1);
86 label = new QLabel(tr("Text written by the server :"), widget); 86 label = new QLabel(tr("Text written by the server :"), widget);
87 layout->addWidget(label, 5, 0); 87 layout->addWidget(label, 5, 0);
88 m_server = new OColorButton(widget, m_config->readEntry("ServerColor", "#0000FF")); 88 m_server = new OColorButton(widget, m_config->readEntry("ServerColor", "#0000FF"));
89 QWhatsThis::add(m_server, tr("Text color to be used to identify text written by the server")); 89 QWhatsThis::add(m_server, tr("Text color to be used to identify text written by the server"));
90 layout->addWidget(m_server, 5, 1); 90 layout->addWidget(m_server, 5, 1);
91 label = new QLabel(tr("Notifications :"), widget); 91 label = new QLabel(tr("Notifications :"), widget);
92 layout->addWidget(label, 6, 0); 92 layout->addWidget(label, 6, 0);
93 m_notification = new OColorButton(widget, m_config->readEntry("NotificationColor", "#AAE300")); 93 m_notification = new OColorButton(widget, m_config->readEntry("NotificationColor", "#006400"));
94 QWhatsThis::add(m_notification, tr("Text color to be used to display notifications")); 94 QWhatsThis::add(m_notification, tr("Text color to be used to display notifications"));
95 layout->addWidget(m_notification, 6, 1); 95 layout->addWidget(m_notification, 6, 1);
96 tw->addTab(view, "opieirc/colors", tr("Colors")); 96 tw->addTab(view, "opieirc/colors", tr("Colors"));
97 97
98 98
99 /* 99 /*
100 * IRC EditLine KeyConfiguration 100 * IRC EditLine KeyConfiguration
101 */ 101 */
102 m_keyConf = new Opie::Ui::OKeyConfigWidget(tw, "KEyConfig GUI" ); 102 m_keyConf = new Opie::Ui::OKeyConfigWidget(tw, "KEyConfig GUI" );
103 m_keyConf->setChangeMode( OKeyConfigWidget::Queue ); 103 m_keyConf->setChangeMode( OKeyConfigWidget::Queue );
104 m_keyConf->insert( tr("Keyboard Shortcuts"), 104 m_keyConf->insert( tr("Keyboard Shortcuts"),
105 IRCHistoryLineEdit::keyConfigInstance() ); 105 IRCHistoryLineEdit::keyConfigInstance() );
106 m_keyConf->load(); 106 m_keyConf->load();
107 tw->addTab(m_keyConf, "SettingsIcon", tr("Keyboard Shortcuts") ); 107 tw->addTab(m_keyConf, "SettingsIcon", tr("Keyboard Shortcuts") );
108 108
109 tw->setCurrentTab( genwidget ); 109 tw->setCurrentTab( genwidget );
110 QPEApplication::showDialog( this ); 110 QPEApplication::showDialog( this );
111} 111}
112 112
113void IRCSettings::accept() 113void IRCSettings::accept()
114{ 114{
115 IRCTab::m_backgroundColor = m_background->color().name(); 115 IRCTab::m_backgroundColor = m_background->color().name();
116 IRCTab::m_textColor = m_text->color().name(); 116 IRCTab::m_textColor = m_text->color().name();
117 IRCTab::m_errorColor = m_error->color().name(); 117 IRCTab::m_errorColor = m_error->color().name();
118 IRCTab::m_selfColor = m_self->color().name(); 118 IRCTab::m_selfColor = m_self->color().name();
119 IRCTab::m_otherColor = m_other->color().name(); 119 IRCTab::m_otherColor = m_other->color().name();
120 IRCTab::m_serverColor = m_server->color().name(); 120 IRCTab::m_serverColor = m_server->color().name();
121 IRCTab::m_notificationColor = m_notification->color().name(); 121 IRCTab::m_notificationColor = m_notification->color().name();
122 IRCTab::m_maxLines = m_lines->text().toInt(); 122 IRCTab::m_maxLines = m_lines->text().toInt();
123 m_keyConf->save(); 123 m_keyConf->save();
124 124
125 125