Subversion Repositories svn.mios32

Rev

Rev 1503 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1503 Rev 1724
Line 1... Line 1...
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
// $Id: ConfigTableComponents.cpp 1503 2012-09-06 21:13:14Z tk $
2
// $Id: ConfigTableComponents.cpp 1724 2013-03-28 20:23:40Z tk $
3
/*
3
/*
4
 * MIDIO128 Tool Window
4
 * MIDIO128 Tool Window
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
7
 *
7
 *
Line 28... Line 28...
28
    deleteAllChildren();
28
    deleteAllChildren();
29
}
29
}
30
30
31
void ConfigTableComboBox::resized()
31
void ConfigTableComboBox::resized()
32
{
32
{
33
    comboBox->setBoundsInset(BorderSize(2));
33
    comboBox->setBoundsInset(BorderSize<int>(2));
34
}
34
}
35
35
36
void ConfigTableComboBox::setRowAndColumn(const int newRow, const int newColumn)
36
void ConfigTableComboBox::setRowAndColumn(const int newRow, const int newColumn)
37
{
37
{
38
    row = newRow;
38
    row = newRow;
Line 70... Line 70...
70
    deleteAllChildren();
70
    deleteAllChildren();
71
}
71
}
72
72
73
void ConfigTableSlider::resized()
73
void ConfigTableSlider::resized()
74
{
74
{
75
    slider->setBoundsInset(BorderSize(2));
75
    slider->setBoundsInset(BorderSize<int>(2));
76
}
76
}
77
77
78
void ConfigTableSlider::setRowAndColumn(const int newRow, const int newColumn)
78
void ConfigTableSlider::setRowAndColumn(const int newRow, const int newColumn)
79
{
79
{
80
    row = newRow;
80
    row = newRow;
81
    columnId = newColumn;
81
    columnId = newColumn;
82
    slider->setValue(owner.getTableValue(row, columnId), true);
82
    slider->setValue(owner.getTableValue(row, columnId), dontSendNotification);
83
}
83
}
84
84
85
void ConfigTableSlider::sliderValueChanged(Slider *slider)
85
void ConfigTableSlider::sliderValueChanged(Slider *slider)
86
{
86
{
87
    owner.setTableValue(row, columnId, slider->getValue());
87
    owner.setTableValue(row, columnId, slider->getValue());
Line 108... Line 108...
108
    deleteAllChildren();
108
    deleteAllChildren();
109
}
109
}
110
110
111
void ConfigTableToggleButton::resized()
111
void ConfigTableToggleButton::resized()
112
{
112
{
113
    toggleButton->setBoundsInset(BorderSize(2));
113
    toggleButton->setBoundsInset(BorderSize<int>(2));
114
}
114
}
115
115
116
void ConfigTableToggleButton::setRowAndColumn(const int newRow, const int newColumn)
116
void ConfigTableToggleButton::setRowAndColumn(const int newRow, const int newColumn)
117
{
117
{
118
    row = newRow;
118
    row = newRow;
Line 142... Line 142...
142
    deleteAllChildren();
142
    deleteAllChildren();
143
}
143
}
144
144
145
void ConfigTableLabel::resized()
145
void ConfigTableLabel::resized()
146
{
146
{
147
    label->setBoundsInset(BorderSize(2));
147
    label->setBoundsInset(BorderSize<int>(2));
148
}
148
}
149
149
150
void ConfigTableLabel::setRowAndColumn(const int newRow, const int newColumn)
150
void ConfigTableLabel::setRowAndColumn(const int newRow, const int newColumn)
151
{
151
{
152
    row = newRow;
152
    row = newRow;