msg = mLocalizer.msg("trayAntialiasing", "Antialiasing enabled");
checked = Settings.propTrayIsAntialiasing.getBoolean();
mTrayIsAnialiasing = new JCheckBox(msg, checked);
if(System.getProperty("os.name").toLowerCase().startsWith("linux") && (JavaVersion.getVersion() < JavaVersion.VERSION_1_6 || OperatingSystem.isKDE())) {
mMinimizeToTrayChb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(mMinimizeToTrayChb.isSelected()) {
JOptionPane.showMessageDialog(builder.getPanel(),mLocalizer.msg("minimizeToTrayWarning","This function might not work as expected on Unix systems like KDE or Gnome.\nSo it's recommended not to select this checkbox."),mLocalizer.msg("warning","Warning"), JOptionPane.WARNING_MESSAGE);
}
}
});
}
//filter settings
ButtonGroup filter = new ButtonGroup();
msg = mLocalizer.msg("trayFilterAll", "Filter all programs");
mFilterAll = new JRadioButton(msg);
msg = mLocalizer.msg("trayFilterNotMarked", "Filter programs, if not marked");
checked = Settings.propTrayFilterNotMarked.getBoolean();
mNoMarkedFiltering = new JRadioButton(msg, checked);
msg = mLocalizer.msg("trayFilterNot", "Don't filter programs");
checked = Settings.propTrayFilterNot.getBoolean();
mNoFiltering = new JRadioButton(msg, checked);
if(!mNoFiltering.isSelected() && !mNoMarkedFiltering.isSelected()) {
mFilterAll.setSelected(true);
}
filter.add(mFilterAll);
filter.add(mNoMarkedFiltering);
filter.add(mNoFiltering);
//create panel
builder.addSeparator(mLocalizer.msg("basics", "Basic settings"), cc.xyw(1,1,3));
builder.add(mTrayIsEnabled, cc.xy(2,3));
builder.add(mTrayIsAnialiasing, cc.xy(2,4));
builder.add(mMinimizeToTrayChb, cc.xy(2,5));
builder.add(mNowOnRestore, cc.xy(2,6));
builder.addSeparator(mLocalizer.msg("filter", "Filter settings"), cc.xyw(1,9,3));
builder.add(mFilterAll, cc.xy(2,11));
builder.add(mNoMarkedFiltering, cc.xy(2,12));
builder.add(mNoFiltering, cc.xy(2,13));
mTrayIsEnabled.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
mIsEnabled = mTrayIsEnabled.isSelected();
TrayImportantSettingsTab.setTrayIsEnabled(mIsEnabled);
TrayNowSettingsTab.setTrayIsEnabled(mIsEnabled);
TrayOnTimeSettingsTab.setTrayIsEnabled(mIsEnabled);