-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
103 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
src/main/java/net/nikr/eve/jeveasset/gui/dialogs/settings/ExperimentalSettingsPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright 2009-2024 Contributors (see credits.txt) | ||
* | ||
* This file is part of jEveAssets. | ||
* | ||
* jEveAssets is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* jEveAssets is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with jEveAssets; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
|
||
package net.nikr.eve.jeveasset.gui.dialogs.settings; | ||
|
||
import javax.swing.GroupLayout; | ||
import javax.swing.JCheckBox; | ||
import net.nikr.eve.jeveasset.Program; | ||
import net.nikr.eve.jeveasset.data.settings.Settings; | ||
import net.nikr.eve.jeveasset.gui.images.Images; | ||
|
||
|
||
public class ExperimentalSettingsPanel extends JSettingsPanel { | ||
|
||
private final JCheckBox jCellValueCache; | ||
|
||
public ExperimentalSettingsPanel(final Program program, final SettingsDialog settingsDialog) { | ||
super(program, settingsDialog, "Experimental", Images.JOBS_INVENTION_SUCCESS.getIcon()); | ||
jCellValueCache = new JCheckBox("Filter cell value cache"); | ||
|
||
layout.setHorizontalGroup( | ||
layout.createParallelGroup(GroupLayout.Alignment.LEADING) | ||
.addComponent(jCellValueCache) | ||
); | ||
layout.setVerticalGroup( | ||
layout.createSequentialGroup() | ||
.addComponent(jCellValueCache, Program.getButtonsHeight(), Program.getButtonsHeight(), Program.getButtonsHeight()) | ||
); | ||
} | ||
|
||
@Override | ||
public UpdateType save() { | ||
Settings.get().setCellValueCache(jCellValueCache.isSelected()); | ||
return UpdateType.NONE; | ||
} | ||
|
||
@Override | ||
public void load() { | ||
jCellValueCache.setSelected(Settings.get().isColumnValueCache()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters