-rw-r--r-- | noncore/apps/opie-console/function_keyboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp index 9e456df..0191915 100644 --- a/noncore/apps/opie-console/function_keyboard.cpp +++ b/noncore/apps/opie-console/function_keyboard.cpp | |||
@@ -242,65 +242,65 @@ void FunctionKeyboard::loadDefaults() { | |||
242 | keys.insert( "r0c10", FKey ("Pd", 0, 4119, 0)); | 242 | keys.insert( "r0c10", FKey ("Pd", 0, 4119, 0)); |
243 | keys.insert( "r0c11", FKey ("Esc", 0, Qt::Key_Escape, 0xfff)); | 243 | keys.insert( "r0c11", FKey ("Esc", 0, Qt::Key_Escape, 0xfff)); |
244 | 244 | ||
245 | keys.insert( "r1c0", FKey ("F1", 0, 4144, 0)); | 245 | keys.insert( "r1c0", FKey ("F1", 0, 4144, 0)); |
246 | keys.insert( "r1c1", FKey ("F2", 0, 4145, 0)); | 246 | keys.insert( "r1c1", FKey ("F2", 0, 4145, 0)); |
247 | keys.insert( "r1c2", FKey ("F3", 0, 4146, 0)); | 247 | keys.insert( "r1c2", FKey ("F3", 0, 4146, 0)); |
248 | keys.insert( "r1c3", FKey ("F4", 0, 4147, 0)); | 248 | keys.insert( "r1c3", FKey ("F4", 0, 4147, 0)); |
249 | keys.insert( "r1c4", FKey ("F5", 0, 4148, 0)); | 249 | keys.insert( "r1c4", FKey ("F5", 0, 4148, 0)); |
250 | keys.insert( "r1c5", FKey ("F6", 0, 4149, 0)); | 250 | keys.insert( "r1c5", FKey ("F6", 0, 4149, 0)); |
251 | keys.insert( "r1c6", FKey ("F7", 0, 4150, 0)); | 251 | keys.insert( "r1c6", FKey ("F7", 0, 4150, 0)); |
252 | keys.insert( "r1c7", FKey ("F8", 0, 4151, 0)); | 252 | keys.insert( "r1c7", FKey ("F8", 0, 4151, 0)); |
253 | keys.insert( "r1c8", FKey ("F9", 0, 4152, 0)); | 253 | keys.insert( "r1c8", FKey ("F9", 0, 4152, 0)); |
254 | keys.insert( "r1c9", FKey ("F10", 0, 4153, 0)); | 254 | keys.insert( "r1c9", FKey ("F10", 0, 4153, 0)); |
255 | keys.insert( "r1c10", FKey ("F11", 0, 4154, 0)); | 255 | keys.insert( "r1c10", FKey ("F11", 0, 4154, 0)); |
256 | keys.insert( "r1c11", FKey ("F12", 0, 4155, 0)); | 256 | keys.insert( "r1c11", FKey ("F12", 0, 4155, 0)); |
257 | 257 | ||
258 | 258 | ||
259 | } | 259 | } |
260 | 260 | ||
261 | /* FunctionKeyboardConfig {{{1 */ | 261 | /* FunctionKeyboardConfig {{{1 */ |
262 | 262 | ||
263 | FunctionKeyboardConfig::FunctionKeyboardConfig(const QString& name, QWidget* parent, const char* na ) | 263 | FunctionKeyboardConfig::FunctionKeyboardConfig(const QString& name, QWidget* parent, const char* na ) |
264 | : ProfileDialogKeyWidget(name, parent, na), | 264 | : ProfileDialogKeyWidget(name, parent, na), |
265 | selectedRow(0), selectedCol(0) | 265 | selectedRow(0), selectedCol(0) |
266 | { | 266 | { |
267 | qWarning("FunctionKeyboardConfig"); | 267 | qWarning("FunctionKeyboardConfig"); |
268 | 268 | ||
269 | 269 | ||
270 | kb = new FunctionKeyboard(this); | 270 | kb = new FunctionKeyboard(this); |
271 | connect (kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)), | 271 | connect (kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)), |
272 | this, SLOT(slotKeyPressed(FKey, ushort, ushort, bool))); | 272 | this, SLOT(slotKeyPressed(FKey, ushort, ushort, bool))); |
273 | 273 | ||
274 | QGroupBox *dimentions = new QGroupBox(2, Qt::Horizontal, tr("Dimentions"), this); | 274 | QGroupBox *dimentions = new QGroupBox(2, Qt::Horizontal, tr("Dimensions"), this); |
275 | QLabel *l = new QLabel("Rows", dimentions); | 275 | QLabel *l = new QLabel("Rows", dimentions); |
276 | m_rowBox = new QSpinBox(1, 15, 1, dimentions); | 276 | m_rowBox = new QSpinBox(1, 15, 1, dimentions); |
277 | connect (m_rowBox, SIGNAL(valueChanged(int)), this, SLOT(slotChangeRows(int))); | 277 | connect (m_rowBox, SIGNAL(valueChanged(int)), this, SLOT(slotChangeRows(int))); |
278 | l = new QLabel("Columns", dimentions); | 278 | l = new QLabel("Columns", dimentions); |
279 | m_colBox = new QSpinBox(1, 15, 1, dimentions); | 279 | m_colBox = new QSpinBox(1, 15, 1, dimentions); |
280 | connect (m_colBox, SIGNAL(valueChanged(int)), this, SLOT(slotChangeCols(int))); | 280 | connect (m_colBox, SIGNAL(valueChanged(int)), this, SLOT(slotChangeCols(int))); |
281 | 281 | ||
282 | QGroupBox *editKey = new QGroupBox(2, Qt::Horizontal, tr("Edit Key"), this); | 282 | QGroupBox *editKey = new QGroupBox(2, Qt::Horizontal, tr("Edit Key"), this); |
283 | l = new QLabel("Label", editKey); | 283 | l = new QLabel("Label", editKey); |
284 | m_labels = new QComboBox(true, editKey); | 284 | m_labels = new QComboBox(true, editKey); |
285 | m_labels->setInsertionPolicy(QComboBox::AtCurrent); | 285 | m_labels->setInsertionPolicy(QComboBox::AtCurrent); |
286 | m_labels->insertItem(""); | 286 | m_labels->insertItem(""); |
287 | 287 | ||
288 | QStringList files = QDir( QPEApplication::qpeDir() + "pics/console/keys/", "*.png").entryList(); | 288 | QStringList files = QDir( QPEApplication::qpeDir() + "pics/console/keys/", "*.png").entryList(); |
289 | 289 | ||
290 | for (uint i = 0; i < files.count(); i++) { | 290 | for (uint i = 0; i < files.count(); i++) { |
291 | 291 | ||
292 | m_labels->insertItem( Resource::loadPixmap("console/keys/" + files[i]), files[i]); | 292 | m_labels->insertItem( Resource::loadPixmap("console/keys/" + files[i]), files[i]); |
293 | } | 293 | } |
294 | connect (m_labels, SIGNAL(activated(int)), this, SLOT(slotChangeIcon(int))); | 294 | connect (m_labels, SIGNAL(activated(int)), this, SLOT(slotChangeIcon(int))); |
295 | connect (m_labels, SIGNAL(textChanged(const QString &)), this, SLOT(slotChangeLabelText(const QString&))); | 295 | connect (m_labels, SIGNAL(textChanged(const QString &)), this, SLOT(slotChangeLabelText(const QString&))); |
296 | 296 | ||
297 | l = new QLabel("Q Keycode", editKey); | 297 | l = new QLabel("Q Keycode", editKey); |
298 | m_qvalues = new QComboBox(true, editKey); | 298 | m_qvalues = new QComboBox(true, editKey); |
299 | m_qvalues->setInsertionPolicy(QComboBox::AtTop); | 299 | m_qvalues->setInsertionPolicy(QComboBox::AtTop); |
300 | m_qvalues->setDuplicatesEnabled(false); | 300 | m_qvalues->setDuplicatesEnabled(false); |
301 | m_qvalues->insertItem(""); | 301 | m_qvalues->insertItem(""); |
302 | connect (m_qvalues, SIGNAL(textChanged(const QString &)), this, SLOT(slotChangeQCode(const QString&))); | 302 | connect (m_qvalues, SIGNAL(textChanged(const QString &)), this, SLOT(slotChangeQCode(const QString&))); |
303 | 303 | ||
304 | l = new QLabel("Unicode Value", editKey); | 304 | l = new QLabel("Unicode Value", editKey); |
305 | m_uniValues = new QComboBox(true, editKey); | 305 | m_uniValues = new QComboBox(true, editKey); |
306 | m_uniValues->setInsertionPolicy(QComboBox::AtTop); | 306 | m_uniValues->setInsertionPolicy(QComboBox::AtTop); |