21 #include <QVBoxLayout>
22 #include <QDialogButtonBox>
28 mParentKeyboardView(parent) {
30 setWindowTitle(tr(
"Keyboard"));
31 QVBoxLayout *layout =
new QVBoxLayout;
37 layout->addWidget(keyboardView);
45 QDialogButtonBox *buttons =
new QDialogButtonBox;
47 layout->addWidget(buttons);
48 buttons->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
50 QObject::connect(keyboardView, SIGNAL(selectionChanged(int8_t)),
this, SLOT(
accept()));
51 QObject::connect(buttons, SIGNAL(accepted()),
this, SLOT(
accept()));
52 QObject::connect(buttons, SIGNAL(rejected()),
this, SLOT(
reject()));
KeyboardGraphicsView * mParentKeyboardView
int8_t getSelectedKeyIndex() const
Getter for mSelectedKey.
const Keyboard * getKeyboard() const
Getter for mKeyboard.
void accept() overridefinal
void selectKey(int8_t key0, KeyState keyState, bool notifyMessageListeners=true)
Function to select or deselect a key.
void reject() overridefinal
void setKeyboard(const Keyboard *kb)
Setter for mKeyboard.
void setSelection(int key, KeyState state, int preliminary)
Function to set the current selection.
~FullScreenKeyboardDialog()
Destructor.
KeyState getSelectedKeyState() const
Getter for mSelectedKeyState.
QDialogButtonBox * mDialogButtons
button box
KeyboardGraphicsView * mKeyboardView
Pointer to the displayed KeyboardGraphicsView in fullscreen.
FullScreenKeyboardDialog(KeyboardGraphicsView *parent)
Constructor.
int8_t getPreliminaryKey() const
Getter for mPreliminaryKey.