Diffstat (limited to 'noncore/net/opieirc/ircsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircsettings.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircsettings.cpp b/noncore/net/opieirc/ircsettings.cpp index 13fcc24..1fba030 100644 --- a/noncore/net/opieirc/ircsettings.cpp +++ b/noncore/net/opieirc/ircsettings.cpp | |||
@@ -1,10 +1,12 @@ | |||
1 | 1 | ||
2 | #include "ircsettings.h" | 2 | #include "ircsettings.h" |
3 | #include "irctab.h" | 3 | #include "irctab.h" |
4 | #include "ircmisc.h" | ||
4 | 5 | ||
5 | /* OPIE */ | 6 | /* OPIE */ |
6 | #include <opie2/ocolorbutton.h> | 7 | #include <opie2/ocolorbutton.h> |
7 | #include <opie2/otabwidget.h> | 8 | #include <opie2/otabwidget.h> |
9 | #include <opie2/okeyconfigwidget.h> | ||
8 | #include <qpe/qpeapplication.h> | 10 | #include <qpe/qpeapplication.h> |
9 | 11 | ||
10 | /* QT */ | 12 | /* QT */ |
@@ -78,8 +80,19 @@ IRCSettings::IRCSettings(QWidget* parent, const char* name, bool modal, WFlags) | |||
78 | QWhatsThis::add(m_notification, tr("Text color to be used to display notifications")); | 80 | QWhatsThis::add(m_notification, tr("Text color to be used to display notifications")); |
79 | layout->addWidget(m_notification, 6, 1); | 81 | layout->addWidget(m_notification, 6, 1); |
80 | tw->addTab(view, "opieirc/colors", tr("Colors")); | 82 | tw->addTab(view, "opieirc/colors", tr("Colors")); |
81 | tw->setCurrentTab( genwidget ); | ||
82 | 83 | ||
84 | |||
85 | /* | ||
86 | * IRC EditLine KeyConfiguration | ||
87 | */ | ||
88 | m_keyConf = new Opie::Ui::OKeyConfigWidget(tw, "KEyConfig GUI" ); | ||
89 | m_keyConf->setChangeMode( OKeyConfigWidget::Queue ); | ||
90 | m_keyConf->insert( tr("Keyboard Shortcuts"), | ||
91 | IRCHistoryLineEdit::keyConfigInstance() ); | ||
92 | m_keyConf->load(); | ||
93 | tw->addTab(m_keyConf, "SettingsIcon", tr("Keyboard Shortcuts") ); | ||
94 | |||
95 | tw->setCurrentTab( genwidget ); | ||
83 | QPEApplication::showDialog( this ); | 96 | QPEApplication::showDialog( this ); |
84 | } | 97 | } |
85 | 98 | ||
@@ -93,6 +106,9 @@ void IRCSettings::accept() | |||
93 | IRCTab::m_serverColor = m_server->color().name(); | 106 | IRCTab::m_serverColor = m_server->color().name(); |
94 | IRCTab::m_notificationColor = m_notification->color().name(); | 107 | IRCTab::m_notificationColor = m_notification->color().name(); |
95 | IRCTab::m_maxLines = m_lines->text().toInt(); | 108 | IRCTab::m_maxLines = m_lines->text().toInt(); |
109 | m_keyConf->save(); | ||
110 | |||
111 | |||
96 | m_config->writeEntry("BackgroundColor", IRCTab::m_backgroundColor); | 112 | m_config->writeEntry("BackgroundColor", IRCTab::m_backgroundColor); |
97 | m_config->writeEntry("TextColor", IRCTab::m_textColor); | 113 | m_config->writeEntry("TextColor", IRCTab::m_textColor); |
98 | m_config->writeEntry("ErrorColor", IRCTab::m_errorColor); | 114 | m_config->writeEntry("ErrorColor", IRCTab::m_errorColor); |
@@ -101,6 +117,8 @@ void IRCSettings::accept() | |||
101 | m_config->writeEntry("ServerColor", IRCTab::m_serverColor); | 117 | m_config->writeEntry("ServerColor", IRCTab::m_serverColor); |
102 | m_config->writeEntry("NotificationColor", IRCTab::m_notificationColor); | 118 | m_config->writeEntry("NotificationColor", IRCTab::m_notificationColor); |
103 | m_config->writeEntry("Lines", m_lines->text()); | 119 | m_config->writeEntry("Lines", m_lines->text()); |
120 | IRCHistoryLineEdit::keyConfigInstance()->save(); | ||
121 | |||
104 | QDialog::accept(); | 122 | QDialog::accept(); |
105 | } | 123 | } |
106 | 124 | ||