private final QPushButton leftButton;
private final QPushButton rightButton;
private final String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
public NotebookArchive(List<Notebook> allBooks, List<Notebook> archive) {
setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
okClicked = false;
openBookList = new QListWidget();
openBookList.setSortingEnabled(true);
openBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
okButton = new QPushButton();
okButton.setText(tr("OK"));
okButton.pressed.connect(this, "onClicked()");
cancelButton = new QPushButton();
cancelButton.setText(tr("Cancel"));
cancelButton.pressed.connect(this, "onCancel()");
QVBoxLayout openLayout = new QVBoxLayout();
openLayout.addWidget(new QLabel(tr("Open Notebooks")));
openLayout.addWidget(openBookList);
rightButton = new QPushButton(this);
rightButton.setIcon(new QIcon(iconPath+"forward.png"));
leftButton = new QPushButton(this);
leftButton.setIcon(new QIcon(iconPath+"back.png"));
leftButton.setEnabled(false);
rightButton.setEnabled(false);
QVBoxLayout middleLayout = new QVBoxLayout();
middleLayout.addSpacerItem(new QSpacerItem(1,1));