QGroupBox serverGroup = new QGroupBox(tr("Server Configuration"));
QLabel serverLabel = new QLabel(tr("Server"));
serverCombo = new QComboBox();
serverCombo.addItem("www.evernote.com");
serverCombo.addItem("sandbox.evernote.com");
disableUploads = new QCheckBox();
disableUploads.setText(tr("Disable uploads to server"));
QHBoxLayout serverLayout = new QHBoxLayout();
serverLayout.addWidget(serverLabel);
serverLayout.addWidget(serverCombo);
serverLayout.addWidget(disableUploads);
serverGroup.setLayout(serverLayout);
QLabel messageLevelLabel = new QLabel(tr("Message Level"));
messageCombo = new QComboBox();
messageCombo.addItem(tr("Low"),"Low");
messageCombo.addItem(tr("Medium"),"Medium");
messageCombo.addItem(tr("High"),"High");
messageCombo.addItem(tr("Extreme"),"Extreme");
QHBoxLayout messageLayout = new QHBoxLayout();
messageLayout.addWidget(messageLevelLabel);
messageLayout.addWidget(messageCombo);
messageLayout.setStretch(1, 100);
QHBoxLayout databaseCacheLayout = new QHBoxLayout();
databaseCache = new QSpinBox();
databaseCacheLayout.addWidget(new QLabel(tr("Database Cache (MB) - Requires restart")));
databaseCache.setMinimum(4);
databaseCache.setMaximum(128);
databaseCache.setValue(new Integer(Global.databaseCache)/1024);
databaseCacheLayout.addWidget(databaseCache);
databaseCacheLayout.setStretch(1, 100);
QVBoxLayout mainLayout = new QVBoxLayout();
mainLayout.addLayout(messageLayout);
mainLayout.addLayout(databaseCacheLayout);
QHBoxLayout thumbnailLayout = new QHBoxLayout();
QLabel thumbnailLabel = new QLabel(tr("Enable Thumbnails (experimental)"));
thumbnailLayout.addWidget(thumbnailLabel);
enableThumbnails = new QCheckBox(this);
thumbnailLayout.addWidget(enableThumbnails);
mainLayout.addLayout(thumbnailLayout);
mainLayout.addWidget(serverGroup);
QGroupBox crlfGroup = new QGroupBox(tr("Carriage Return Fix"));
String crlfMessage = new String(tr("Note: The carriage return is a test fix. If you " +
"enable it, it will do some modifications to the notes you view to try and" +
" get the carriage returns to look correct. This is due to the way that " +
"the way Evernote 3.1 Windows client is dealing with carriage returns. This fix"+
"will try and correct this problem. This fix is not permanent unless you edit a note. If" +
"you edit a note, this fix is PERMANENT and will be sent to Evernote on the next sync. I haven't" +
"had any issues with this, but please be aware of this condition."));
carriageReturnFix = new QCheckBox(this);
QVBoxLayout crlfLayout = new QVBoxLayout();
carriageReturnFix.setText(tr("Enable Carriage Return Fix"));
crlfLayout.addWidget(carriageReturnFix);
crlfGroup.setLayout(crlfLayout);
QGroupBox htmlGroup = new QGroupBox(tr("Android Note Fix"));
String entitiesMessage = new String(tr("Note: This is an experimental fix to correct Unicode" +
" notes created on Android Evernote clients."));
htmlEntitiesFix = new QCheckBox(this);
QVBoxLayout htmlLayout = new QVBoxLayout();
htmlEntitiesFix.setText(tr("Enable Android Fix"));
htmlLayout.addWidget(htmlEntitiesFix);
htmlGroup.setLayout(htmlLayout);
reloadSharedNotebooks = new QCheckBox(tr("Shared Notebooks"));
QGroupBox refresh = new QGroupBox(tr("Special Refresh (WARNING - This can cause unsynchronized data loss)."));
QVBoxLayout refreshLayout = new QVBoxLayout();
refreshLayout.addWidget(reloadSharedNotebooks);
refresh.setLayout(refreshLayout);