Esempio n. 1
0
void PolishKeyboardData::initBottomKeyShiftCode()
{
    const QChar chs[] = {Polish_Character[1][0], Polish_Character[2][0],
            Polish_Character[3][0], Polish_Character[4][0],
            Polish_Character[5][0]};
    for (int i=0; i<5; i++)
    {
        ODataPtr dd(createData(QString(chs[i])));
        bottom_shift_codes_.push_back(dd);
    }

    bottom_shift_codes_.push_back(ODataPtr(createSpaceData()));
    bottom_shift_codes_.push_back(ODataPtr(createBackspaceData()));

    const QChar chs_next[] = {Polish_Character[7][0], Polish_Character[8][0], Polish_Character[6][0]};//{'?', ':'};
    for (int i=0; i<3; i++)
    {
        ODataPtr dd(createData(QString(chs_next[i])));
        bottom_shift_codes_.push_back(dd);
    }

    
    //dd = createEnterData();
    //bottom_shift_codes_.push_back(dd);
}
Esempio n. 2
0
void PolishKeyboardData::initRightKeySymbolCode()
{
    const QChar chs[] = {'_', '"', ',',
                         QChar(0x00AD), '\'', ';',
                         QChar(0x00AB), QChar(0x00BB)};
    for (int i = 0; i < 8; i++)
    {
        ODataPtr dd(createData(QString(chs[i])));
        right_symbol_codes_.push_back(dd);
    }
    right_symbol_codes_.push_back(ODataPtr(createEnterData()));
}
Esempio n. 3
0
void HebrewKeyboardData::initBottomKeyCode()
{
    const QChar chs[] = {'+', '-', '.', '"', ','};
    for (int i=0; i<5; i++)
    {
        ODataPtr dd(createData(QString(chs[i])));
        bottom_codes_.push_back(dd);
    }

    bottom_codes_.push_back(ODataPtr(createSpaceData()));
    bottom_codes_.push_back(ODataPtr(createBackspaceData()));

    const QChar chs_next[] = {'\'', ';'};
    for (int i=0; i<2; i++)
    {
        ODataPtr dd(createData(QString(chs_next[i])));
        bottom_codes_.push_back(dd);
    }

    bottom_codes_.push_back(ODataPtr(createEnterData()));
}
Esempio n. 4
0
void HebrewKeyboardData::initBottomKeyShiftCode()
{
    const QChar chs[] = {'\\', '/', '[', ']', '='};
    for (int i=0; i<5; i++)
    {
        ODataPtr dd(createData(QString(chs[i])));
        bottom_shift_codes_.push_back(dd);
    }

    bottom_shift_codes_.push_back(ODataPtr(createSpaceData()));
    bottom_shift_codes_.push_back(ODataPtr(createBackspaceData()));

    const QChar chs_next[] = {'?', ':'};
    for (int i=0; i<2; i++)
    {
        ODataPtr dd(createData(QString(chs_next[i])));
        bottom_shift_codes_.push_back(dd);
    }

    bottom_shift_codes_.push_back(ODataPtr(createEnterData()));
}
Esempio n. 5
0
void RussianKeyboardData::initBottomKeyCode()
{
    const QChar chs[] = {',', QChar(0x0445), QChar(0x044A), QChar(0x0451),
            QChar(0x0437)};
    for (int i=0; i<5; i++)
    {
        ODataPtr dd(createData(QString(chs[i])));
        bottom_codes_.push_back(dd);
    }

    bottom_codes_.push_back(ODataPtr(createSpaceData()));
    ODataPtr dd(createBackspaceData());
    bottom_codes_.push_back(dd);

    const QChar chs_next[] = {QChar(0x0436), QChar(0x044D)};
    for (int i=0; i<2; i++)
    {
        ODataPtr dd(createData(QString(chs_next[i])));
        bottom_codes_.push_back(dd);
    }

    bottom_codes_.push_back(ODataPtr(createEnterData()));
}
Esempio n. 6
0
void RussianKeyboardData::initBottomKeyShiftCode()
{
    const QChar chs[] = {';', '\'', QChar(0x0437).toUpper(), QChar(0x0445).toUpper(),
            QChar(0x0434).toUpper()};
    for (int i=0; i<5; i++)
    {
        ODataPtr dd(createData(QString(chs[i])));
        bottom_shift_codes_.push_back(dd);
    }

    bottom_shift_codes_.push_back(ODataPtr(createSpaceData()));
    ODataPtr dd(createBackspaceData());
    bottom_shift_codes_.push_back(dd);

    const QChar chs_next[] = {QChar(0x0436).toUpper(), QChar(0x044D).toUpper()};
    for (int i=0; i<2; i++)
    {
        ODataPtr dd (createData(QString(chs_next[i])));
        bottom_shift_codes_.push_back(dd);
    }

    bottom_shift_codes_.push_back(ODataPtr(createEnterData()));
}
Esempio n. 7
0
/// Select the content and broadcast position signal.
bool CatalogView::select(OData *d)
{
    int pos = data().indexOf(ODataPtr(d));
    if (pos < 0)
    {
        return false;
    }

    int page = pos / paginator().items_per_page();
    gotoPage(page + 1);
    int offset = pos - page * paginator().items_per_page();
    setFocusTo(offset / paginator().cols(), offset % paginator().cols());
    onyx::screen::watcher().enqueue(parentWidget(), onyx::screen::ScreenProxy::GC);
    return true;
}