public IgnoreSync(List<Notebook> allBooks, List<Notebook> archive, List<Tag> allTags, List<Tag> ignoreTags,
List<LinkedNotebook> allLinkedNotebooks, List<LinkedNotebook> ignoreLinkedNotebooks) {
setWindowIcon(new QIcon(iconPath+"synchronize.png"));
okClicked = false;
syncBookList = new QListWidget();
syncBookList.setSortingEnabled(true);
syncBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
syncTagList = new QListWidget();
syncTagList.setSortingEnabled(true);
syncTagList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
syncLinkedNotebookList = new QListWidget();
syncLinkedNotebookList.setSortingEnabled(true);
syncLinkedNotebookList.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("Synchronized Notebooks")));
openLayout.addWidget(syncBookList);
QVBoxLayout openTagLayout = new QVBoxLayout();
openTagLayout.addWidget(new QLabel(tr("Synchronized Tags")));
openTagLayout.addWidget(syncTagList);
QVBoxLayout openLinkedNotebookLayout = new QVBoxLayout();
linkedLabelLeft = new QLabel(tr("Synchronized Linked Notebooks"));
openLinkedNotebookLayout.addWidget(linkedLabelLeft);
openLinkedNotebookLayout.addWidget(syncLinkedNotebookList);
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);
rightTagButton = new QPushButton(this);
rightTagButton.setIcon(new QIcon(iconPath+"forward.png"));
leftTagButton = new QPushButton(this);
leftTagButton.setIcon(new QIcon(iconPath+"back.png"));
leftTagButton.setEnabled(false);
rightTagButton.setEnabled(false);
rightLinkedNotebookButton = new QPushButton(this);
rightLinkedNotebookButton.setIcon(new QIcon(iconPath+"forward.png"));
leftLinkedNotebookButton = new QPushButton(this);
leftLinkedNotebookButton.setIcon(new QIcon(iconPath+"back.png"));
leftLinkedNotebookButton.setEnabled(false);
rightLinkedNotebookButton.setEnabled(false);
QVBoxLayout middleLayout = new QVBoxLayout();
middleLayout.addSpacerItem(new QSpacerItem(1,1));
middleLayout.addWidget(rightButton);
middleLayout.addWidget(leftButton);
middleLayout.addSpacerItem(new QSpacerItem(1,1));
QVBoxLayout middleTagLayout = new QVBoxLayout();
middleTagLayout.addSpacerItem(new QSpacerItem(1,1));
middleTagLayout.addWidget(rightTagButton);
middleTagLayout.addWidget(leftTagButton);
middleTagLayout.addSpacerItem(new QSpacerItem(1,1));
QVBoxLayout middleLinkedNotebookLayout = new QVBoxLayout();
middleLinkedNotebookLayout.addSpacerItem(new QSpacerItem(1,1));
middleLinkedNotebookLayout.addWidget(rightLinkedNotebookButton);
middleLinkedNotebookLayout.addWidget(leftLinkedNotebookButton);
middleLinkedNotebookLayout.addSpacerItem(new QSpacerItem(1,1));
QVBoxLayout closeLayout = new QVBoxLayout();
closeLayout.addWidget(new QLabel(tr("Non-Synchronized Notebooks")));
ignoreBookList = new QListWidget();
ignoreBookList.setSortingEnabled(true);
ignoreBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
closeLayout.addWidget(ignoreBookList);
QVBoxLayout closeTagLayout = new QVBoxLayout();
closeTagLayout.addWidget(new QLabel(tr("Non-Synchronized Tags")));
ignoreTagList = new QListWidget();
ignoreTagList.setSortingEnabled(true);
ignoreTagList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
closeTagLayout.addWidget(ignoreTagList);
QVBoxLayout closeLinkedNotebookLayout = new QVBoxLayout();
linkedLabelRight = new QLabel(tr("Non-Synchronized Linked Notebooks"));
closeLinkedNotebookLayout.addWidget(linkedLabelRight);
ignoreLinkedNotebookList = new QListWidget();
ignoreLinkedNotebookList.setSortingEnabled(true);
ignoreLinkedNotebookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
closeLinkedNotebookLayout.addWidget(ignoreLinkedNotebookList);
syncBookList.itemSelectionChanged.connect(this, "syncBookSelected()");