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();