import tim.prune.gui.DecimalNumberField;
import tim.prune.gui.DisplayUtils;
import tim.prune.gui.GuiGridLayout;
+import tim.prune.tips.TipManager;
/**
* Class to calculate and show the results of estimating (hike) time for the current range
}
if (_dialog == null)
{
- // TODO: Check whether params are at default, show tip message if unaltered?
+ // First time in, check whether params are at default, show tip message if unaltered
+ showTip();
_dialog = new JDialog(_parentFrame, I18nManager.getText(getNameKey()), true);
_dialog.setLocationRelativeTo(_parentFrame);
_dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
}
_dialog.dispose();
}
+
+ /**
+ * Show a tip to use the learn function, if appropriate
+ */
+ private void showTip()
+ {
+ EstimationParameters currParams = new EstimationParameters(
+ Config.getConfigString(Config.KEY_ESTIMATION_PARAMS));
+ if (currParams.sameAsDefaults()) {
+ _app.showTip(TipManager.Tip_LearnTimeParams);
+ }
+ }
}