diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-04-27 15:15:17 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-04-27 15:15:17 +0000 |
| commit | 807071d35159de0660f9df31c48d5bf895ca3622 (patch) | |
| tree | a1e9dbdc1e58b91cd2e4a5e472597b0204ccb41d /pokemodr/NatureUI.cpp | |
| parent | f444f5a45e9325644a360f656176d47d7f540f52 (diff) | |
[FIX] Pokemod objects now know about parents
[FIX] Project includes are now relative
[FIX] Headers included for better detection of invalid headers
[FIX] Validation code commented out so it can be done better
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@111 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/NatureUI.cpp')
| -rw-r--r-- | pokemodr/NatureUI.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pokemodr/NatureUI.cpp b/pokemodr/NatureUI.cpp index 775ba15a..c74575c6 100644 --- a/pokemodr/NatureUI.cpp +++ b/pokemodr/NatureUI.cpp @@ -15,18 +15,18 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -// Qt includes -#include <QStringList> - -// General includes -#include <BugCatcher.h> -#include <Exception.h> +// Header include +#include "NatureUI.h" // Pokemod includes -#include <Pokemod.h> +#include "../pokemod/Pokemod.h" -// Header include -#include "NatureUI.h" +// General includes +#include "../general/BugCatcher.h" +#include "../general/Exception.h" + +// Qt includes +#include <QStringList> NatureUI::NatureUI(Nature* nature, QWidget* parent) : ObjectUI(parent), @@ -43,7 +43,7 @@ NatureUI::NatureUI(Nature* nature, QWidget* parent) : void NatureUI::refreshGui() { varStat->clear(); - const bool isSplit = m_nature->pokemod()->rules()->specialSplit(); + const bool isSplit = static_cast<const Pokemod*>(m_nature->pokemod())->rules()->specialSplit(); varStat->addItems((isSplit ? Pokemod::StatRBYStr : Pokemod::StatGSCStr).mid(0, isSplit ? Pokemod::ST_End_RBY : Pokemod::ST_End_GSC)); } |
