From: <za...@us...> - 2006-03-02 23:48:52
|
Revision: 65 Author: zaister Date: 2006-03-02 15:48:42 -0800 (Thu, 02 Mar 2006) ViewCVS: http://svn.sourceforge.net/pcgen/?rev=65&view=rev Log Message: ----------- Change the view mode defaults for some panes Modified Paths: -------------- Trunk/pcgen/code/src/java/pcgen/core/SettingsHandler.java Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoEquipping.java Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoFeats.java Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoGear.java Modified: Trunk/pcgen/code/src/java/pcgen/core/SettingsHandler.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/SettingsHandler.java 2006-03-02 23:18:31 UTC (rev 64) +++ Trunk/pcgen/code/src/java/pcgen/core/SettingsHandler.java 2006-03-02 23:48:42 UTC (rev 65) @@ -178,11 +178,11 @@ private static int classTab_AvailableListMode = GuiConstants.INFOCLASS_VIEW_NAME; private static int classTab_SelectedListMode = GuiConstants.INFOCLASS_VIEW_NAME; private static int domainTab_ListMode = GuiConstants.INFODOMAIN_VIEW_NAME; - private static int equipTab_AvailableListMode = GuiConstants.INFOEQUIPPING_VIEW_TYPE; + private static int equipTab_AvailableListMode = GuiConstants.INFOEQUIPPING_VIEW_EQUIPPED; private static int equipTab_SelectedListMode = GuiConstants.INFOEQUIPPING_VIEW_NAME; - private static int featTab_AvailableListMode = GuiConstants.INFOFEATS_VIEW_TYPENAME; + private static int featTab_AvailableListMode = GuiConstants.INFOFEATS_VIEW_PREREQTREE; private static int featTab_SelectedListMode = GuiConstants.INFOFEATS_VIEW_NAMEONLY; - private static int gearTab_AvailableListMode = GuiConstants.INFOINVENTORY_VIEW_TYPE_SUBTYPE_NAME; + private static int gearTab_AvailableListMode = GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME; private static int gearTab_SelectedListMode = GuiConstants.INFOINVENTORY_VIEW_NAME; private static int raceTab_ListMode = GuiConstants.INFORACE_VIEW_NAME; private static int skillsTab_AvailableListMode = GuiConstants.INFOSKILLS_VIEW_TYPE_NAME; @@ -1129,18 +1129,18 @@ setDmNotes(getPCGenOption("dmnotes", "")); //$NON-NLS-1$ //$NON-NLS-2$ setDomainTab_ListMode(getPCGenOption("DomainTab.ListMode", GuiConstants.INFODOMAIN_VIEW_NAME)); //$NON-NLS-1$ setEnforceSpendingBeforeLevelUp(getPCGenOption("enforceSpendingBeforeLevelUp", false)); //$NON-NLS-1$ - setEquipTab_AvailableListMode(getPCGenOption("EquipTab.availableListMode", GuiConstants.INFOEQUIPPING_VIEW_TYPE)); //$NON-NLS-1$ + setEquipTab_AvailableListMode(getPCGenOption("EquipTab.availableListMode", GuiConstants.INFOEQUIPPING_VIEW_EQUIPPED)); //$NON-NLS-1$ setEquipTab_SelectedListMode(getPCGenOption("EquipTab.selectedListMode", GuiConstants.INFOEQUIPPING_VIEW_NAME)); //$NON-NLS-1$ // setExcSkillCost(getPCGenOption("excSkillCost", 0)); //$NON-NLS-1$ setExpertGUI(getPCGenOption("expertGUI", false)); //$NON-NLS-1$ setFeatAutoColor(getPCGenOption("featAutoColor", Color.yellow.darker().getRGB())); //$NON-NLS-1$ - setFeatTab_AvailableListMode(getPCGenOption("FeatTab.availableListMode", GuiConstants.INFOFEATS_VIEW_TYPENAME)); //$NON-NLS-1$ + setFeatTab_AvailableListMode(getPCGenOption("FeatTab.availableListMode", GuiConstants.INFOFEATS_VIEW_PREREQTREE)); //$NON-NLS-1$ setFeatTab_SelectedListMode(getPCGenOption("FeatTab.selectedListMode", GuiConstants.INFOFEATS_VIEW_NAMEONLY)); //$NON-NLS-1$ setFeatVirtualColor(getPCGenOption("featVirtualColor", Color.magenta.getRGB())); //$NON-NLS-1$ setGearTab_AllowDebt(getPCGenOption("GearTab.allowDebt", false)); //$NON-NLS-1$ setGearTab_AutoResize(getPCGenOption("GearTab.autoResize", false)); //$NON-NLS-1$ setGearTab_AvailableListMode(getPCGenOption("GearTab.availableListMode", //$NON-NLS-1$ - GuiConstants.INFOINVENTORY_VIEW_TYPE_SUBTYPE_NAME)); + GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME)); setGearTab_BuyRate(buyRate); setGearTab_IgnoreCost(getPCGenOption("GearTab.ignoreCost", false)); //$NON-NLS-1$ setGearTab_SelectedListMode(getPCGenOption("GearTab.selectedListMode", GuiConstants.INFOINVENTORY_VIEW_NAME)); //$NON-NLS-1$ Modified: Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoEquipping.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoEquipping.java 2006-03-02 23:18:31 UTC (rev 64) +++ Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoEquipping.java 2006-03-02 23:48:42 UTC (rev 65) @@ -3036,7 +3036,7 @@ } else { - viewMode = GuiConstants.INFOEQUIPPING_VIEW_NAME; + viewMode = GuiConstants.INFOEQUIPPING_VIEW_EQUIPPED; } SettingsHandler.setEquipTab_AvailableListMode(viewMode); Modified: Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoFeats.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoFeats.java 2006-03-02 23:18:31 UTC (rev 64) +++ Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoFeats.java 2006-03-02 23:48:42 UTC (rev 65) @@ -81,7 +81,7 @@ private static String singularName = null; // keep track of what view mode we're in for Available - private static int viewAvailMode = GuiConstants.INFOFEATS_VIEW_TYPENAME; + private static int viewAvailMode = GuiConstants.INFOFEATS_VIEW_PREREQTREE; private static Integer saveAvailableViewMode = null; // default to "Name" in Selection table viewmode Modified: Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoGear.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoGear.java 2006-03-02 23:18:31 UTC (rev 64) +++ Trunk/pcgen/code/src/java/pcgen/gui/tabs/InfoGear.java 2006-03-02 23:48:42 UTC (rev 65) @@ -140,7 +140,7 @@ static final long serialVersionUID = -2320970658737297916L; private static boolean needsUpdate = true; private static int splitOrientation = JSplitPane.HORIZONTAL_SPLIT; - private static int viewMode = GuiConstants.INFOINVENTORY_VIEW_TYPE_SUBTYPE_NAME; // keep track of what view mode we're in for Available + private static int viewMode = GuiConstants.INFOINVENTORY_VIEW_TYPE_NAME; // keep track of what view mode we're in for Available private static int viewSelectMode = GuiConstants.INFOINVENTORY_VIEW_NAME; // keep track of what view mode we're in for Selected. defaults to "Name" private static Integer saveAvailableViewMode = null; private static Integer saveSelectedViewMode = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |