/* * 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_MOVEUI__ #define __POKEMODR_MOVEUI__ // PokeModr includes #include "ObjectUI.h" // Form include #include "ui_move.h" // Forward declarations class Move; class MoveUI : public ObjectUI, private Ui::formMove { Q_OBJECT public: MoveUI(Move* move, QWidget* parent); ~MoveUI(); public slots: void apply(); void discard(); protected slots: void on_varName_textChanged(const QString& name); void on_varAccuracy_valueChanged(const Fraction& accuracy); void on_varType_currentIndexChanged(const int type); void on_varPowerPoints_valueChanged(const int powerPoints); void on_varTarget_currentIndexChanged(const int target); void on_varNumTargets_valueChanged(const int numTargets); void on_varTargetChoice_currentIndexChanged(const int targetChoice); void on_varSpecial_toggled(const bool special); void on_varIgnoreAccuracy_toggled(const bool ignoreAccuracy); void on_varCanFlinch_toggled(const bool canFlinch); void on_varCanRandom_toggled(const bool canRandom); void on_varCanSnatch_toggled(const bool canSnatch); void on_varSound_toggled(const bool sound); void on_varDescription_textChanged(); private slots: void initGui(); void refreshGui(); void setGui(); }; #endif