00001 00002 PreferencesDialog::PreferencesDialog(QWidget *parent) : 00003 QDialog(parent) 00004 { 00005 00006 QFormLayout *layout = new QFormLayout; 00007 00008 archiveLocEdit = new QLineEdit("/lab/raid2/neo2/neo2data/archive/"); 00009 layout->addRow(tr("&Archive Location"), archiveLocEdit); 00010 00011 workingLocEdit = new QLineEdit("/lab/neo2data/archive/"); 00012 layout->addRow(tr("&Working Location"), workingLocEdit); 00013 00014 incomingLocEdit = new QLineEdit("/lab/neo2data/incoming/"); 00015 layout->addRow(tr("&Incoming Location"), incomingLocEdit); 00016 00017 QPushButton* cancelButton = new QPushButton("&Cancel", this); 00018 connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject())); 00019 layout->addRow(cancelButton); 00020 00021 QPushButton* connectButton = new QPushButton("&Save", this); 00022 connect(connectButton, SIGNAL(clicked()), this, SLOT(accept())); 00023 layout->addRow(connectButton); 00024 00025 setLayout(layout); 00026 }