Skip to content

Commit

Permalink
adsr
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Paul Schmidt committed Nov 10, 2011
1 parent 59ebc36 commit 97cbae2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions main_window.h
Expand Up @@ -228,8 +228,12 @@ class main_window : public QMainWindow {
int row = 0;
for (generator_list::iterator it = engine_.gens->t.begin(); it != engine_.gens->t.end(); ++it) {
int col = 0;
generator_table->setCellWidget(row, col++, new QSlider(Qt::Horizontal));
generator_table->setCellWidget(row, col++, new QSlider(Qt::Vertical));
generator_table->setItem(row, col++, new QTableWidgetItem(QString((*it)->t.name.c_str())));
generator_table->setCellWidget(row, col++, new QSlider(Qt::Vertical));
generator_table->setCellWidget(row, col++, new QSlider(Qt::Vertical));
generator_table->setCellWidget(row, col++, new QSlider(Qt::Vertical));
generator_table->setCellWidget(row, col++, new QSlider(Qt::Vertical));
generator_table->setCellWidget(row, col++, new keyboard_widget((*it)));
generator_table->setCellWidget(row, col++, new waveform_widget((*it)));
generator_table->setItem(row, col++, new QTableWidgetItem(QString((*it)->t.sample_->t.file_name.c_str())));
Expand Down Expand Up @@ -565,13 +569,13 @@ class main_window : public QMainWindow {
}

void show_keyboard(bool show) {
generator_table->setColumnHidden(2, !show);
generator_table->setColumnHidden(6, !show);

}


void show_waveform(bool show) {
generator_table->setColumnHidden(3, !show);
generator_table->setColumnHidden(7, !show);

}

Expand All @@ -589,6 +593,7 @@ class main_window : public QMainWindow {
headers
<< "Gain"
<< "Name"
<< "A" << "D" << "S" << "R"
<< "Note-Range"
<< "Waveform"
<< "Sample";
Expand Down

0 comments on commit 97cbae2

Please sign in to comment.