Beispiel #1
0
void DColorPicker::setColumn(int column)
{
    if (m_column == column)
        return;

    m_column = column;
    resize();
    emit columnChanged(column);
}
LRESULT ListFilter::onSelChange(WORD /*wNotifyCode*/, WORD /*wID*/, HWND hWndCtl, BOOL& bHandled) {
    if (hWndCtl == column.m_hWnd || hWndCtl == method.m_hWnd) {
        if (hWndCtl == column.m_hWnd)
            columnChanged(true);
        if (hWndCtl == method.m_hWnd)
            usingTypedMethod = false;

        updateFunction();
    }
    bHandled = FALSE;
    return 0;
}
void ListFilter::addColumnBox(HWND parent, vector<ColumnInfo*>& aColumns, int initialSel /*-1*/, HWND async /*NULL*/) {
    RECT rc = { 0, 0, 100, 110 };
    column.Create(parent, rc, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_HSCROLL |
                  WS_VSCROLL | CBS_DROPDOWNLIST, WS_EX_CLIENTEDGE);
    column.SetFont(WinUtil::systemFont);
    columns = aColumns;
    for(auto& col : columns)
        column.AddString(((*col).name).c_str());

    column.AddString(CTSTRING(ANY));
    column.SetCurSel(initialSel != -1 ? initialSel : colCount);
    callAsync(async ? async : parent, [this] { columnChanged(false); });
}
Beispiel #4
0
void PlayListHeaderModel::execEdit(int index, QWidget *parent)
{
    if(index < 0 || index >= m_columns.size())
    {
        qWarning("ColumnManager: index is out of range");
        return;
    }

    if(!parent)
        parent = qApp->activeWindow();

    ColumnEditor editor(m_columns[index].name, m_columns[index].pattern, parent);
    if(editor.exec() == QDialog::Accepted)
    {
        m_columns[index].name = editor.name();
        m_columns[index].pattern = editor.pattern();
        emit columnChanged(index);
        emit headerChanged();
        updatePlayLists();
    }
}
Beispiel #5
0
void RuleWidget::setRow(Statement _row)
{
    row = _row;
    columnChanged(column->currentIndex());
}