diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-04-17 23:34:36 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-04-17 23:34:36 +0000 |
commit | 6679f5cffa9d35a23b76605ddfbf3257f882b6ee (patch) | |
tree | c8e41854a60b64e8569939bca6b827807175ef9a /pokemodr/NatureUI.h | |
parent | 05980e883719b1c8ebde1bd2fcbf4f8c16df7ad6 (diff) | |
download | sigen-6679f5cffa9d35a23b76605ddfbf3257f882b6ee.tar.gz sigen-6679f5cffa9d35a23b76605ddfbf3257f882b6ee.tar.xz sigen-6679f5cffa9d35a23b76605ddfbf3257f882b6ee.zip |
[FIX] Frac -> Fraction
[FIX] ImageCache and Ini removed
[FIX] Fraction/Point widgets moved to pokemodr
[FIX] Copy ctors made for pokemod classes
[FIX] Ctors in pokemod fixed
[FIX] Copyright headers fixed in pokemodr
[FIX] PokeModr updated to new API and fixed in some places
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@99 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/NatureUI.h')
-rw-r--r-- | pokemodr/NatureUI.h | 57 |
1 files changed, 26 insertions, 31 deletions
diff --git a/pokemodr/NatureUI.h b/pokemodr/NatureUI.h index d0a1ec0d..2f3cb1fb 100644 --- a/pokemodr/NatureUI.h +++ b/pokemodr/NatureUI.h @@ -1,34 +1,30 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: pokegen/NatureUI.h -// Purpose: Nature UI form handling -// Author: Ben Boeckel -// Modified by: Ben Boeckel -// Created: Fri Jan 25 15:14:07 2008 -// Copyright: ©2007-2008 Ben Boeckel and Nerdy Productions -// Licence: -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this program. If not, see <http://www.gnu.org/licenses/>. -///////////////////////////////////////////////////////////////////////////// +/* + * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ #ifndef __POKEMODR_NATUREUI__ #define __POKEMODR_NATUREUI__ -#include <QString> - +// Pokemod includes #include <Nature.h> +// PokeModr includes #include "ObjectUI.h" +// Form include #include "ui_nature.h" class NatureUI : public ObjectUI, private Ui::formNature @@ -36,25 +32,24 @@ class NatureUI : public ObjectUI, private Ui::formNature Q_OBJECT public: - NatureUI(Nature* n, QWidget* parent); + NatureUI(Nature* nature, QWidget* parent); ~NatureUI() { - delete nature_mod; + delete m_nature_mod; } public slots: void on_buttonApply_clicked(); void on_buttonDiscard_clicked(); - void on_varName_textChanged(const QString& n); + void on_varName_textChanged(const QString& name); void on_varStat_currentIndexChanged(); - void on_varStatMultiplierNum_valueChanged(const int s); - void on_varStatMultiplierDenom_valueChanged(const int s); - void on_varWeight_valueChanged(const int w); + void on_varStatMultiplier_valueChanged(const Fraction& statMultiplier); + void on_varWeight_valueChanged(const int weight); private: void refreshGui(); void setGui(); - Nature* nature; - Nature* nature_mod; + Nature* m_nature; + Nature* m_nature_mod; }; #endif |