summaryrefslogtreecommitdiff
path: root/inputmethods/multikey/configdlg.cpp
authorhash <hash>2002-08-19 19:27:19 (UTC)
committer hash <hash>2002-08-19 19:27:19 (UTC)
commitfc58f8b2dea3629fdd486852b74e425a3da29b52 (patch) (unidiff)
tree6d3393d5f04c2a5447d3d2ca489e4bd74a7e8df4 /inputmethods/multikey/configdlg.cpp
parentaaa640a47a707b4d4e6aff37bf78c11bfc903b3c (diff)
downloadopie-fc58f8b2dea3629fdd486852b74e425a3da29b52.zip
opie-fc58f8b2dea3629fdd486852b74e425a3da29b52.tar.gz
opie-fc58f8b2dea3629fdd486852b74e425a3da29b52.tar.bz2
added a 'key repeat' toggle button
Diffstat (limited to 'inputmethods/multikey/configdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/multikey/configdlg.cpp31
1 files changed, 26 insertions, 5 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp
index 59a290b..566b2b9 100644
--- a/inputmethods/multikey/configdlg.cpp
+++ b/inputmethods/multikey/configdlg.cpp
@@ -112,8 +112,10 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
112 connect(remove_button, SIGNAL(clicked()), SLOT(removeMap())); 112 connect(remove_button, SIGNAL(clicked()), SLOT(removeMap()));
113 113
114 pick_button = new QCheckBox(tr("Pickboard"), gen_box); 114 // make a box that will contain the buttons on the bottom
115 QGrid *other_grid = new QGrid(2, gen_box);
116 pick_button = new QCheckBox(tr("Pickboard"), other_grid);
115 117
116 config.setGroup ("pickboard"); 118 config.setGroup ("general");
117 bool pick_open = config.readBoolEntry ("open", "0"); // default closed 119 bool pick_open = config.readBoolEntry ("usePickboard", (bool)0); // default closed
118 if (pick_open) { 120 if (pick_open) {
119 121
@@ -124,4 +126,14 @@ ConfigDlg::ConfigDlg () : QTabWidget ()
124 connect (pick_button, SIGNAL(clicked()), this, SLOT(pickTog())); 126 connect (pick_button, SIGNAL(clicked()), this, SLOT(pickTog()));
125 127
128 repeat_button = new QCheckBox(tr("Key Repeat"), other_grid);
129 bool repeat_on = config.readBoolEntry ("useRepeat", (bool)1);
130
131 if (repeat_on) {
132
133 repeat_button->setChecked(true);
134 }
135 connect (repeat_button, SIGNAL(clicked()), this, SLOT(repeatTog()));
136
137
126 /* 138 /*
127 * 'color' tab 139 * 'color' tab
@@ -170,10 +182,19 @@ void ConfigDlg::pickTog() {
170 182
171 Config config ("multikey"); 183 Config config ("multikey");
172 config.setGroup ("pickboard"); 184 config.setGroup ("general");
173 config.writeEntry ("open", pick_button->isChecked()); // default closed 185 config.writeEntry ("usePickboard", pick_button->isChecked()); // default closed
174 186
175 emit pickboardToggled(pick_button->isChecked()); 187 emit pickboardToggled(pick_button->isChecked());
176} 188}
177 189
190void ConfigDlg::repeatTog() {
191
192 Config config ("multikey");
193 config.setGroup ("general");
194 config.writeEntry ("useRepeat", repeat_button->isChecked()); // default closed
195
196 emit repeatToggled(repeat_button->isChecked());
197}
198
178/* 199/*
179 * the index is kinda screwy, because in the config file, index 0 is just the 200 * the index is kinda screwy, because in the config file, index 0 is just the