Logo Search packages:      
Sourcecode: kcm-tablet version File versions  Download package

void PenWidget::fillComboBox ( KComboBox *  comboBox  )  [private]

Fills the button selection combobox with all available values Used in this way to get no redundant strings in the ui file for any given translator. Thus reduce the strings necessary to translate.

Parameters:
comboBox the combobox where the values are added to

Definition at line 274 of file penwidget.cpp.

References Wacom::ProfileManagement::Pen_Button, Wacom::ProfileManagement::Pen_Disable, Wacom::ProfileManagement::Pen_DisplayToggle, Wacom::ProfileManagement::Pen_DoubleClick, Wacom::ProfileManagement::Pen_Keystroke, Wacom::ProfileManagement::Pen_LeftClick, Wacom::ProfileManagement::Pen_MiddleClick, Wacom::ProfileManagement::Pen_ModeToggle, Wacom::ProfileManagement::Pen_QuoteDbl, Wacom::ProfileManagement::Pen_RightClick, and Wacom::ProfileManagement::Pen_ScreenToggle.

Referenced by PenWidget().

{
    comboBox->blockSignals(true);
    comboBox->addItem(i18nc("Disable button function", "Disable"), ProfileManagement::Pen_Disable);
    comboBox->addItem(i18nc("Left mouse click", "Left Click"), ProfileManagement::Pen_LeftClick);
    comboBox->addItem(i18nc("Middle mouse click", "Middle Click"), ProfileManagement::Pen_MiddleClick);
    comboBox->addItem(i18nc("Right mouse click", "Right Click"), ProfileManagement::Pen_RightClick);
    comboBox->addItem(i18nc("Left mouse double click", "Double Click"), ProfileManagement::Pen_DoubleClick);
    comboBox->addItem(i18nc("Indicates the use of one of the standard buttons (1-32)", "Button..."), ProfileManagement::Pen_Button);
    comboBox->addItem(i18nc("Indicates the use of a specific key/keystroke", "Keystroke..."), ProfileManagement::Pen_Keystroke);
    comboBox->addItem(i18nc("Refers to a special way of entering text as function", "QuoteDbl..."), ProfileManagement::Pen_QuoteDbl);
    comboBox->addItem(i18nc("Function to toggle between absolute/relative mousemode", "Mode Toggle"), ProfileManagement::Pen_ModeToggle);
    comboBox->addItem(i18nc("Function to toggle between different screen modes", "Screen Toggle"), ProfileManagement::Pen_ScreenToggle);
    comboBox->addItem(i18nc("Function to toggle between single/multi display support", "Display Toggle"), ProfileManagement::Pen_DisplayToggle);
    comboBox->blockSignals(false);
}


Generated by  Doxygen 1.6.0   Back to index