/* * Copyright 2008 Ben Boeckel * * 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 . */ #ifndef __POKEMODR_SPECIESUI__ #define __POKEMODR_SPECIESUI__ // PokeModr includes #include "ObjectUI.h" // Form include #include "ui_species.h" // Forward declarations class Species; class SpeciesUI : public ObjectUI, private Ui::formSpecies { Q_OBJECT public: SpeciesUI(Species* species, QWidget* parent); ~SpeciesUI(); public slots: void apply(); void discard(); protected slots: void on_varName_textChanged(const QString& name); void on_varBaseStatValue_valueChanged(const int baseStat); void on_varEffortValue_valueChanged(const int effortValue); void on_varGrowth_currentIndexChanged(const int growth); void on_varExperienceValue_valueChanged(const int experienceValue); void on_varCatchValue_valueChanged(const int catchValue); void on_varRunChance_valueChanged(const Fraction& runChance); void on_varItemChance_valueChanged(const Fraction& itemChance); void on_varPokedexNumber_valueChanged(const int pokedexNumber); void on_varWeight_valueChanged(const int weight); void on_varHeightFeet_valueChanged(const int feet); void on_varHeightInches_valueChanged(const int inches); void on_varPokedexEntry_textChanged(); void on_varFrontMaleSprite_pressed(); void on_varBackMaleSprite_pressed(); void on_varFrontFemaleSprite_pressed(); void on_varBackFemaleSprite_pressed(); void on_varListSprite_pressed(); void on_boxGenderChance_toggled(const bool genderUsed); void on_varGenderChance_valueChanged(const Fraction& genderChance); void on_varEggSpecies_currentIndexChanged(const int eggSpecies); void on_varEggSteps_valueChanged(const int eggSteps); void on_varNidoranGroup_valueChanged(const int nidoranGroup); void on_varTypes_itemSelectionChanged(); void on_varEggGroups_itemSelectionChanged(); private slots: void initGui(); void refreshGui(); void setGui(); }; #endif