: QWidget(parent),
/* analysis(m), */
table(0),
- ok(0),
- cancel(0),
+ okButton(0),
+ cancelButton(0),
model(glseqs)
{
QGridLayout *parameterLayout = new QGridLayout;
- ok = new QPushButton(tr("&OK"), this);
- ok->setEnabled( false );
- connect(ok, SIGNAL(clicked()), this, SLOT(apply()));
+ okButton = new QPushButton(tr("&OK"), this);
+ okButton->setEnabled( false );
+ connect(okButton, SIGNAL(clicked()), this, SLOT(apply()));
- cancel = new QPushButton(tr("Cancel"), this);
- connect(cancel, SIGNAL(clicked()), this, SLOT(cancel()));
+ cancelButton = new QPushButton(tr("Cancel"), this);
+ connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancel()));
table = new QTableView(this);
table->setModel(&model);
// layout buttons
QHBoxLayout *buttonLayout = new QHBoxLayout;
- buttonLayout->addWidget(ok);
- buttonLayout->addWidget(cancel);
+ buttonLayout->addWidget(okButton);
+ buttonLayout->addWidget(cancelButton);
// layout verticle space
QVBoxLayout *verticalLayout = new QVBoxLayout;
return model;
}
-void PropertiesWindow::abort()
+void PropertiesWindow::cancel()
{
model.clear();
hide();
void PropertiesWindow::modelUpdated(const QModelIndex&, int, int )
{
// if the model is empty we shouldn't be able to click ok
- if (ok) ok->setEnabled(not model.empty());
+ if (okButton) okButton->setEnabled(not model.empty());
}
void PropertiesWindow::updateTitle()
//! create a subanalysis and run it
void apply();
//! clear our model and close the window
- void abort();
+ void cancel();
//! provide a way for the model to tell us to update our gui
void modelUpdated(const QModelIndex&, int, int);
//! update our title
//! keep track of what analysis we're attached to
MussaRef analysis;
QTableView *table;
- QPushButton *ok;
- QPushButton *cancel;
+ QPushButton *okButton;
+ QPushButton *cancelButton;
SequencePropertiesModel model;
};