Bugfixing configuration UI

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@139 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2012-03-11 13:05:41 +00:00
parent bf0c99a95c
commit 8140cf28f0
8 changed files with 41 additions and 24 deletions

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2011 by Henrik Just
* Copyright: 2002-2012 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.2 (2011-09-20)
* Version 1.2 (2012-03-07)
*
*/
@ -164,6 +164,8 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
}
dlg.setListBoxSelectedItem("MaxLevel", nMaxLevel);
maxLevelChange(dlg);
// Get other controls from config
checkBoxFromConfig(dlg,"UseTitlesec","use_titlesec");
@ -235,6 +237,8 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
}
dlg.setListBoxSelectedItem("WriterLevel", nNewWriterLevel);
}
writerLevelChange(dlg);
// All controls should be disabled if the maximum level is zero
boolean bUpdate = dlg.getListBoxSelectedItem("MaxLevel")>0;