45 |
45 |
46 /*! |
46 /*! |
47 @proto |
47 @proto |
48 @hbinput |
48 @hbinput |
49 \class HbInputSctLandscape |
49 \class HbInputSctLandscape |
|
50 \deprecated class HbInputSctLandscape |
50 \brief A widget for displaying special character table in landscape mode. |
51 \brief A widget for displaying special character table in landscape mode. |
51 |
52 |
52 This widget displays special character table. Characters are organized in grid |
53 This widget displays special character table. Characters are organized in grid |
53 format and there is also separate are for displaying most frquently used special |
54 format and there is also separate are for displaying most frquently used special |
54 characters. The widget inherits from touch keypad base class. When a character |
55 characters. The widget inherits from touch keypad base class. When a character |
452 /* |
453 /* |
453 Handles button clicks. |
454 Handles button clicks. |
454 */ |
455 */ |
455 void HbInputSctLandscapePrivate::handleStandardButtonClick(int buttonId) |
456 void HbInputSctLandscapePrivate::handleStandardButtonClick(int buttonId) |
456 { |
457 { |
457 // if there was a flick event, then make sure that the release events are not handled |
|
458 // basically, a release on a button would add the character to the editor, and this wasn't |
|
459 // intended, as you are gesturing for another action |
|
460 if(mFlickDirection==HbInputVkbWidget::HbFlickDirectionDown || |
|
461 mFlickDirection==HbInputVkbWidget::HbFlickDirectionLeft || |
|
462 mFlickDirection==HbInputVkbWidget::HbFlickDirectionRight) { |
|
463 return; |
|
464 } |
|
465 |
|
466 Q_Q(HbInputSctLandscape); |
458 Q_Q(HbInputSctLandscape); |
467 |
459 |
468 switch (sctVkbTable[buttonId].mKey) { |
460 switch (sctVkbTable[buttonId].mKey) { |
469 case Qt::Key_Question: { |
461 case Qt::Key_Question: { |
470 QString buttonText = mSctButtons.at(buttonId)->text(); |
462 QString buttonText = mSctButtons.at(buttonId)->text(); |
536 } |
528 } |
537 |
529 |
538 /// @endcond |
530 /// @endcond |
539 |
531 |
540 /*! |
532 /*! |
541 Constructs the object. |
533 \deprecated HbInputSctLandscape::HbInputSctLandscape(HbInputMethod*, const HbKeymap*, QGraphicsItem*) |
|
534 is deprecated. |
542 */ |
535 */ |
543 HbInputSctLandscape::HbInputSctLandscape(HbInputMethod* owner, const HbKeymap *keymap, QGraphicsItem* parent) |
536 HbInputSctLandscape::HbInputSctLandscape(HbInputMethod* owner, const HbKeymap *keymap, QGraphicsItem* parent) |
544 : HbInputVkbWidget(*new HbInputSctLandscapePrivate, parent) |
537 : HbInputVkbWidget(*new HbInputSctLandscapePrivate, parent) |
545 { |
538 { |
546 Q_D(HbInputSctLandscape); |
539 Q_D(HbInputSctLandscape); |
567 |
560 |
568 // now set the keymap data. |
561 // now set the keymap data. |
569 setKeymap(keymap); |
562 setKeymap(keymap); |
570 } |
563 } |
571 |
564 |
|
565 /*! |
|
566 \deprecated HbInputSctLandscape::HbInputSctLandscape(HbInputSctLandscapePrivate&, QGraphicsItem*) |
|
567 is deprecated. |
|
568 */ |
572 HbInputSctLandscape::HbInputSctLandscape(HbInputSctLandscapePrivate &dd, QGraphicsItem* parent) |
569 HbInputSctLandscape::HbInputSctLandscape(HbInputSctLandscapePrivate &dd, QGraphicsItem* parent) |
573 : HbInputVkbWidget(dd, parent) |
570 : HbInputVkbWidget(dd, parent) |
574 { |
571 { |
575 } |
572 } |
576 |
573 |
577 /*! |
574 /*! |
578 Destructs the object. |
575 \deprecated HbInputSctLandscape::~HbInputSctLandscape() |
|
576 is deprecated. |
579 */ |
577 */ |
580 HbInputSctLandscape::~HbInputSctLandscape() |
578 HbInputSctLandscape::~HbInputSctLandscape() |
581 { |
579 { |
582 } |
580 } |
583 |
581 |
584 /*! |
582 /*! |
585 Returns keyboard type. |
583 \reimp |
|
584 \deprecated HbInputSctLandscape::keyboardType() const |
|
585 is deprecated. |
586 */ |
586 */ |
587 HbKeyboardType HbInputSctLandscape::keyboardType() const |
587 HbKeyboardType HbInputSctLandscape::keyboardType() const |
588 { |
588 { |
589 return HbKeyboardSctLandscape; |
589 return HbKeyboardSctLandscape; |
590 } |
590 } |
591 |
591 |
592 /*! |
592 /*! |
593 Sets the sct keypad buttons depending on the keymapping set to the keypad. |
593 \deprecated HbInputSctLandscape::setSct(HbSctView, bool) |
594 Different Smiley, special character views can be activated directly. |
594 is deprecated. |
595 Most used character pane can also be enabled by this function. |
|
596 */ |
595 */ |
597 void HbInputSctLandscape::setSct(HbSctView view , bool enableMostUsedCharacterPane) |
596 void HbInputSctLandscape::setSct(HbSctView view , bool enableMostUsedCharacterPane) |
598 { |
597 { |
599 // for the time being disabling |
598 // for the time being disabling |
600 // most used character pane |
599 // most used character pane |
606 d->mStartIndex = 0; |
605 d->mStartIndex = 0; |
607 d->setActiveView(view); |
606 d->setActiveView(view); |
608 } |
607 } |
609 |
608 |
610 /*! |
609 /*! |
611 This function should be called when ever there is a language change. |
610 \reimp |
612 This gets the special characters from the given keymappings. |
611 \deprecated HbInputSctLandscape::setKeymap(const HbKeymap*) |
|
612 is deprecated. |
613 */ |
613 */ |
614 void HbInputSctLandscape::setKeymap(const HbKeymap* keymap) |
614 void HbInputSctLandscape::setKeymap(const HbKeymap* keymap) |
615 { |
615 { |
616 Q_D(HbInputSctLandscape); |
616 Q_D(HbInputSctLandscape); |
617 HbInputVkbWidget::setKeymap(keymap); |
617 HbInputVkbWidget::setKeymap(keymap); |
618 d->getSpecialCharacters(); |
618 d->getSpecialCharacters(); |
619 } |
619 } |
620 |
620 |
621 /*! |
621 /*! |
622 This function provides the actual button layout of the keypad. |
622 \reimp |
|
623 \deprecated HbInputSctLandscape::keypadLayout() |
|
624 is deprecated. |
623 */ |
625 */ |
624 QGraphicsLayout *HbInputSctLandscape::keypadLayout() |
626 QGraphicsLayout *HbInputSctLandscape::keypadLayout() |
625 { |
627 { |
626 Q_D(HbInputSctLandscape); |
628 Q_D(HbInputSctLandscape); |
627 return d->mButtonLayout; |
629 return d->mButtonLayout; |
628 } |
630 } |
629 |
631 |
630 /*! |
632 /*! |
631 This is called right before the keypad is about to open. |
633 \reimp |
|
634 \deprecated HbInputSctLandscape::aboutToOpen(HbVkbHost*) |
|
635 is deprecated. |
632 */ |
636 */ |
633 void HbInputSctLandscape::aboutToOpen(HbVkbHost *host) |
637 void HbInputSctLandscape::aboutToOpen(HbVkbHost *host) |
634 { |
638 { |
635 Q_D(HbInputSctLandscape); |
639 Q_D(HbInputSctLandscape); |
636 HbInputVkbWidget::aboutToOpen(host); |
640 HbInputVkbWidget::aboutToOpen(host); |
643 |
647 |
644 d->setLayoutDimensions(keypadSize); |
648 d->setLayoutDimensions(keypadSize); |
645 } |
649 } |
646 |
650 |
647 /*! |
651 /*! |
648 This is called right before the keypad is about to close. |
652 \reimp |
|
653 \deprecated HbInputSctLandscape::aboutToClose(HbVkbHost*) |
|
654 is deprecated. |
649 */ |
655 */ |
650 void HbInputSctLandscape::aboutToClose(HbVkbHost *host) |
656 void HbInputSctLandscape::aboutToClose(HbVkbHost *host) |
651 { |
657 { |
652 Q_D(HbInputSctLandscape); |
658 Q_D(HbInputSctLandscape); |
653 HbInputVkbWidget::aboutToClose(host); |
659 HbInputVkbWidget::aboutToClose(host); |
655 d->mPreviewPane->hide(); |
661 d->mPreviewPane->hide(); |
656 } |
662 } |
657 } |
663 } |
658 |
664 |
659 /*! |
665 /*! |
660 this is called whenever there is a left/right flick event on sct keypad |
666 \deprecated HbInputSctLandscape::flickTriggered(HbInputVkbWidget::HbFlickDirection) |
661 used to navigate within the sct keypad for more characters |
667 is deprecated. |
662 */ |
668 */ |
663 void HbInputSctLandscape::flickTriggered(HbInputVkbWidget::HbFlickDirection direction) |
669 void HbInputSctLandscape::flickTriggered(HbInputVkbWidget::HbFlickDirection direction) |
664 { |
670 { |
665 Q_D(HbInputSctLandscape); |
671 Q_D(HbInputSctLandscape); |
666 |
672 |