summaryrefslogtreecommitdiffstats
path: root/pokemodr/TileUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-22 01:39:13 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-22 01:39:13 +0000
commit8082fda92a86b34a37fe386266efbde5e30bca16 (patch)
tree85713a913062b8c851de806e2ad0fe26adaa7e03 /pokemodr/TileUI.cpp
parent88b11f136c7a4b287ac44e3ec8e671cf17ab8319 (diff)
downloadsigen-8082fda92a86b34a37fe386266efbde5e30bca16.tar.gz
sigen-8082fda92a86b34a37fe386266efbde5e30bca16.tar.xz
sigen-8082fda92a86b34a37fe386266efbde5e30bca16.zip
[FIX] Frac now makes sure that the denominator is positive
[FIX] Sprite-containing classes less repetative with determining paths [FIX] More include cleanup in pokemodr [FIX] Precision of Frac decimal equivalents now use a define [FIX] Species UI form is now more compact and complete [ADD] SpeciesUI.{h, cpp} (again; wasn't actually included last time and got lost) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@68 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/TileUI.cpp')
-rw-r--r--pokemodr/TileUI.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/pokemodr/TileUI.cpp b/pokemodr/TileUI.cpp
index d95a4d22..ba217703 100644
--- a/pokemodr/TileUI.cpp
+++ b/pokemodr/TileUI.cpp
@@ -24,11 +24,14 @@
#include <QListIterator>
#include <QListWidgetItem>
#include <QMetaObject>
-#include "../general/BugCatcher.h"
-#include "../general/Exception.h"
-#include "../general/ImageCache.h"
-#include "../general/Ref.h"
-#include "../pokemod/Pokemod.h"
+
+#include <BugCatcher.h>
+#include <Exception.h>
+#include <ImageCache.h>
+#include <Ref.h>
+
+#include <Pokemod.h>
+
#include "ImageDialog.h"
#include "TileUI.h"
@@ -77,7 +80,7 @@ void TileUI::setGui()
varWildNum->setValue(tile_mod->getWildChance().getNum());
varWildDenom->setValue(tile_mod->getWildChance().getDenom());
varWildNum->setMaximum(tile_mod->getWildChance().getDenom());
- varWild->setText(QString::number(tile_mod->getWildChance(), 'g', 15));
+ varWild->setText(QString::number(tile_mod->getWildChance(), 'g', DBL_PREC));
boxHMs->setChecked((tile_mod->getHMType() == -1) ? Qt::Unchecked : Qt::Checked);
varHMType->setCurrentIndex(tile_mod->getHMType());
varHMUnder->setCurrentIndex(varHMUnder->findData(tile_mod->getUnder()));
@@ -128,7 +131,6 @@ void TileUI::on_varWildNum_valueChanged(const int m)
try
{
tile_mod->setWildChanceNum(m);
- varWild->setText(QString::number(tile_mod->getWildChance(), 'g', 15));
emit(setChanged(true));
}
catch (BoundsException& e)
@@ -143,8 +145,6 @@ void TileUI::on_varWildDenom_valueChanged(const int m)
try
{
tile_mod->setWildChanceDenom(m);
- varWildNum->setMaximum(m);
- varWild->setText(QString::number(tile_mod->getWildChance(), 'g', 15));
emit(setChanged(true));
}
catch (BoundsException& e)