diff options
32 files changed, 2336 insertions, 0 deletions
diff --git a/sigmodr/widgets/AbilityUI_p.h b/sigmodr/widgets/AbilityUI_p.h new file mode 100644 index 00000000..6edc8a97 --- /dev/null +++ b/sigmodr/widgets/AbilityUI_p.h @@ -0,0 +1,75 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_ABILITYUI_P +#define SIGMODRWIDGETS_ABILITYUI_P + +// Header include +#include "AbilityUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KIntNumInput; +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class AbilityUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Ability* ability); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Ability* m_ability; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void priorityChanged(const int priority); + void descriptionChanged(const QString& description); + void battleScriptChanged(const Sigcore::Script& battleScript); + void worldScriptChanged(const Sigcore::Script& worldScript); + void priorityScriptChanged(const Sigcore::Script& priorityScript); + private: + KLineEdit* ui_name; + KIntNumInput* ui_priority; + KLineEdit* ui_description; + CoreWidgets::ScriptWidget* ui_battleScript; + CoreWidgets::ScriptWidget* ui_worldScript; + CoreWidgets::ScriptWidget* ui_priorityScript; +}; +} +} + +#endif diff --git a/sigmodr/widgets/AuthorUI_p.h b/sigmodr/widgets/AuthorUI_p.h new file mode 100644 index 00000000..da382e7b --- /dev/null +++ b/sigmodr/widgets/AuthorUI_p.h @@ -0,0 +1,59 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_AUTHORUI_P +#define SIGMODRWIDGETS_AUTHORUI_P + +// Header include +#include "AuthorUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; + +namespace Sigmodr +{ +namespace Widgets +{ +class AuthorUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Author* author); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Author* m_author; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void emailChanged(const QString& email); + void roleChanged(const QString& role); + private: + KLineEdit* ui_name; + KLineEdit* ui_email; + KLineEdit* ui_role; +}; +} +} + +#endif diff --git a/sigmodr/widgets/BadgeUI_p.h b/sigmodr/widgets/BadgeUI_p.h new file mode 100644 index 00000000..5b0871e6 --- /dev/null +++ b/sigmodr/widgets/BadgeUI_p.h @@ -0,0 +1,79 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_BADGEUI_P +#define SIGMODRWIDGETS_BADGEUI_P + +// Header include +#include "BadgeUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; +class KLineEdit; +class QTableWidget; +namespace Sigcore +{ +class Fraction; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class FractionWidget; +class ScriptWidget; +} + +namespace Widgets +{ +class BadgeUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Badge* badge); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Badge* m_badge; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void obeyChanged(const int obey); + void faceChanged(const int face); + void badgeChanged(const int badge); + void statChanged(const int row); + void statMultiplierChanged(const Sigcore::Fraction& multiplier); + private: + KLineEdit* ui_name; + KIntNumInput* ui_obey; + KComboBox* ui_face; + KComboBox* ui_badge; + QTableWidget* ui_stat; + CoreWidgets::FractionWidget* ui_statMultiplier; +}; +} +} + +#endif diff --git a/sigmodr/widgets/CoinListItemUI_p.h b/sigmodr/widgets/CoinListItemUI_p.h new file mode 100644 index 00000000..9e6fecfc --- /dev/null +++ b/sigmodr/widgets/CoinListItemUI_p.h @@ -0,0 +1,64 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_COINLISTITEMUI_P +#define SIGMODRWIDGETS_COINLISTITEMUI_P + +// Header include +#include "CoinListItemUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; +class QButtonGroup; + +namespace Sigmodr +{ +namespace Widgets +{ +class CoinListItemUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::CoinListItem* item); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::CoinListItem* m_item; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void typeChanged(const int type); + void objectChanged(const int object); + void costChanged(const int cost); + private: + QButtonGroup* ui_type; + KComboBox* ui_object; + KIntNumInput* ui_cost; + + bool m_lastType; +}; +} +} + +#endif diff --git a/sigmodr/widgets/CoinListUI_p.h b/sigmodr/widgets/CoinListUI_p.h new file mode 100644 index 00000000..6bbf29ef --- /dev/null +++ b/sigmodr/widgets/CoinListUI_p.h @@ -0,0 +1,66 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_COINLISTUI_P +#define SIGMODRWIDGETS_COINLISTUI_P + +// Header include +#include "CoinListUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class CoinListUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::CoinList* coinList); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::CoinList* m_coinList; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + CoreWidgets::ScriptWidget* ui_script; +}; +} +} + +#endif diff --git a/sigmodr/widgets/EggGroupUI_p.h b/sigmodr/widgets/EggGroupUI_p.h new file mode 100644 index 00000000..e16869d0 --- /dev/null +++ b/sigmodr/widgets/EggGroupUI_p.h @@ -0,0 +1,56 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_EGGGROUPUI_P +#define SIGMODRWIDGETS_EGGGROUPUI_P + +// Header include +#include "EggGroupUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; + +namespace Sigmodr +{ +namespace Widgets +{ +class EggGroupUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::EggGroup* eggGroup); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::EggGroup* m_eggGroup; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + private: + KLineEdit* ui_name; +}; +} +} + +#endif diff --git a/sigmodr/widgets/GameUI_p.h b/sigmodr/widgets/GameUI_p.h new file mode 100644 index 00000000..4124a09f --- /dev/null +++ b/sigmodr/widgets/GameUI_p.h @@ -0,0 +1,89 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_GAMEUI_P +#define SIGMODRWIDGETS_GAMEUI_P + +// Header include +#include "GameUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Qt includes +#include <QtCore/QModelIndex> + +// Forward declarations +class KLineEdit; +class QCheckBox; +class QLabel; +class QTableView; +namespace Sigcore +{ +class Fraction; +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class FractionWidget; +class ScriptWidget; +} + +namespace Widgets +{ +class GameUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Game* game); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Game* m_game; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void titleChanged(const QString& title); + void versionChanged(const QString& version); + void descriptionChanged(const QString& description); + void singlePlayerChanged(const bool singlePlayer); + void startScriptChanged(const Sigcore::Script& startScript); + void typechartChanged(const QModelIndex& index); + void effectivenessChanged(const Sigcore::Fraction& multiplier); + private: + KLineEdit* ui_title; + KLineEdit* ui_version; + KLineEdit* ui_description; + QCheckBox* ui_singlePlayer; + CoreWidgets::ScriptWidget* ui_startScript; + QTableView* ui_typechart; + QLabel* ui_labelTypes; + CoreWidgets::FractionWidget* ui_effectiveness; + + bool m_changingMult; + QModelIndex m_index; +}; +} +} + +#endif diff --git a/sigmodr/widgets/GlobalScriptUI_p.h b/sigmodr/widgets/GlobalScriptUI_p.h new file mode 100644 index 00000000..3d86cc12 --- /dev/null +++ b/sigmodr/widgets/GlobalScriptUI_p.h @@ -0,0 +1,66 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_GLOBALSCRIPTUI_P +#define SIGMODRWIDGETS_GLOBALSCRIPTUI_P + +// Header include +#include "GlobalScriptUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class GlobalScriptUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::GlobalScript* globalScript); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::GlobalScript* m_globalScript; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + CoreWidgets::ScriptWidget* ui_script; +}; +} +} + +#endif diff --git a/sigmodr/widgets/ItemTypeUI_p.h b/sigmodr/widgets/ItemTypeUI_p.h new file mode 100644 index 00000000..c83e81c6 --- /dev/null +++ b/sigmodr/widgets/ItemTypeUI_p.h @@ -0,0 +1,66 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_ITEMTYPEUI_P +#define SIGMODRWIDGETS_ITEMTYPEUI_P + +// Header include +#include "ItemTypeUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; +class KLineEdit; + +namespace Sigmodr +{ +namespace Widgets +{ +class ItemTypeUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::ItemType* itemType); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::ItemType* m_itemType; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void computerChanged(const int computer); + void playerChanged(const int player); + void maxWeightChanged(const int maxWeight); + void countChanged(const int count); + private: + KLineEdit* ui_name; + KIntNumInput* ui_computer; + KIntNumInput* ui_player; + KIntNumInput* ui_maxWeight; + KComboBox* ui_count; +}; +} +} + +#endif diff --git a/sigmodr/widgets/ItemUI_p.h b/sigmodr/widgets/ItemUI_p.h new file mode 100644 index 00000000..0570b1ae --- /dev/null +++ b/sigmodr/widgets/ItemUI_p.h @@ -0,0 +1,84 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_ITEMUI_P +#define SIGMODRWIDGETS_ITEMUI_P + +// Header include +#include "ItemUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; +class KLineEdit; +class QCheckBox; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class ItemUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Item* item); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Item* m_item; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void sellableChanged(const bool sellable); + void typeChanged(const int type); + void priceChanged(const int price); + void sellPriceChanged(const int sellPrice); + void weightChanged(const int weight); + void descriptionChanged(const QString& description); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + QCheckBox* ui_sellable; + KComboBox* ui_type; + KIntNumInput* ui_price; + KIntNumInput* ui_sellPrice; + KIntNumInput* ui_weight; + KLineEdit* ui_description; + CoreWidgets::ScriptWidget* ui_script; + + int m_lastType; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapEffectUI_p.h b/sigmodr/widgets/MapEffectUI_p.h new file mode 100644 index 00000000..b285e12c --- /dev/null +++ b/sigmodr/widgets/MapEffectUI_p.h @@ -0,0 +1,76 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPEFFECTUI_P +#define SIGMODRWIDGETS_MAPEFFECTUI_P + +// Header include +#include "MapEffectUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KLineEdit; +class QCheckBox; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class MapEffectUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::MapEffect* effect); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::MapEffect* m_effect; + public slots: + void refreshGui(); + void resetGui(); + public slots: + void apply(); + void discard(); + protected slots: + void nameChanged(const QString& name); + void skinChanged(const int skin); + void scriptChanged(const Sigcore::Script& script); + void isGhostChanged(const bool isGhost); + private: + KLineEdit* ui_name; + KComboBox* ui_skin; + CoreWidgets::ScriptWidget* ui_script; + QCheckBox* ui_isGhost; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapTrainerTeamMemberUI_p.h b/sigmodr/widgets/MapTrainerTeamMemberUI_p.h new file mode 100644 index 00000000..fb1ecd71 --- /dev/null +++ b/sigmodr/widgets/MapTrainerTeamMemberUI_p.h @@ -0,0 +1,78 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPTRAINERTEAMMEMBERUI_P +#define SIGMODRWIDGETS_MAPTRAINERTEAMMEMBERUI_P + +// Header include +#include "MapTrainerTeamMemberUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KActionSelector; +class KComboBox; +class KIntNumInput; +class QGroupBox; +class QListWidgetItem; + +namespace Sigmodr +{ +namespace Widgets +{ +class MapTrainerTeamMemberUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::MapTrainerTeamMember* teamMember); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::MapTrainerTeamMember* m_teamMember; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void speciesChanged(const int species); + void levelChanged(const int level); + void abilityAdded(QListWidgetItem* item); + void abilityRemoved(QListWidgetItem* item); + void itemAdded(QListWidgetItem* item); + void itemRemoved(QListWidgetItem* item); + void itemChanged(QListWidgetItem* item); + void itemCountChanged(const int itemCount); + void moveAdded(QListWidgetItem* item); + void moveRemoved(QListWidgetItem* item); + void natureAdded(QListWidgetItem* item); + void natureRemoved(QListWidgetItem* item); + private: + KComboBox* ui_species; + KIntNumInput* ui_level; + KActionSelector* ui_abilities; + QGroupBox* ui_boxItems; + KActionSelector* ui_items; + KIntNumInput* ui_itemCount; + KActionSelector* ui_moves; + KActionSelector* ui_natures; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapTrainerUI_p.h b/sigmodr/widgets/MapTrainerUI_p.h new file mode 100644 index 00000000..42b2b3fc --- /dev/null +++ b/sigmodr/widgets/MapTrainerUI_p.h @@ -0,0 +1,78 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPTRAINERUI_P +#define SIGMODRWIDGETS_MAPTRAINERUI_P + +// Header include +#include "MapTrainerUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KActionSelector; +class KComboBox; +class KIntNumInput; +class KLineEdit; +class QListWidgetItem; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class MapTrainerUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Trainer* trainer); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Trainer* m_trainer; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void trainerClassChanged(const int trainerClass); + void numberFightChanged(const int numberFight); + void scriptChanged(const Sigcore::Script& script); + void leadTeamMemberAdded(QListWidgetItem* item); + void leadTeamMemberRemoved(QListWidgetItem* item); + private: + KLineEdit* ui_name; + KComboBox* ui_trainerClass; + KIntNumInput* ui_numberFight; + CoreWidgets::ScriptWidget* ui_script; + KActionSelector* ui_leadTeamMembers; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapUI_p.h b/sigmodr/widgets/MapUI_p.h new file mode 100644 index 00000000..e6c1847b --- /dev/null +++ b/sigmodr/widgets/MapUI_p.h @@ -0,0 +1,61 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPUI_P +#define SIGMODRWIDGETS_MAPUI_P + +// Header include +#include "MapUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KLineEdit; + +namespace Sigmodr +{ +namespace Widgets +{ +class TileDelegate; +class TilemapModel; + +class MapUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Map* map); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Map* m_map; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void typeChanged(const int type); + private: + KLineEdit* ui_name; + KComboBox* ui_type; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapWarpUI_p.h b/sigmodr/widgets/MapWarpUI_p.h new file mode 100644 index 00000000..1d6995e4 --- /dev/null +++ b/sigmodr/widgets/MapWarpUI_p.h @@ -0,0 +1,76 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPWARPUI_P +#define SIGMODRWIDGETS_MAPWARPUI_P + +// Header include +#include "MapWarpUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class MapWarpUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::MapWarp* warp); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::MapWarp* m_warp; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void typeChanged(const int type); + void toMapChanged(const int toMap); + void toWarpChanged(const int toWarp); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + KComboBox* ui_type; + KComboBox* ui_toMap; + KComboBox* ui_toWarp; + CoreWidgets::ScriptWidget* ui_script; + + int m_lastMap; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapWildListEncounterUI_p.h b/sigmodr/widgets/MapWildListEncounterUI_p.h new file mode 100644 index 00000000..d608abf8 --- /dev/null +++ b/sigmodr/widgets/MapWildListEncounterUI_p.h @@ -0,0 +1,61 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPWILDLISTENCOUNTERUI_P +#define SIGMODRWIDGETS_MAPWILDLISTENCOUNTERUI_P + +// Header include +#include "MapWildListEncounterUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; + +namespace Sigmodr +{ +namespace Widgets +{ +class MapWildListEncounterUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::MapWildListEncounter* encounter); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::MapWildListEncounter* m_encounter; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void speciesChanged(const int species); + void levelChanged(const int level); + void weightChanged(const int weight); + private: + KComboBox* ui_species; + KIntNumInput* ui_level; + KIntNumInput* ui_weight; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MapWildListUI_p.h b/sigmodr/widgets/MapWildListUI_p.h new file mode 100644 index 00000000..305e4330 --- /dev/null +++ b/sigmodr/widgets/MapWildListUI_p.h @@ -0,0 +1,55 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MAPWILDLISTUI_P +#define SIGMODRWIDGETS_MAPWILDLISTUI_P + +// Header include +#include "MapWildListUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; + +namespace Sigmodr +{ +namespace Widgets +{ +class MapWildListUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::MapWildList* wildList); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::MapWildList* m_wildList; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + private: + KLineEdit* ui_name; +}; +} +} + +#endif diff --git a/sigmodr/widgets/MoveUI_p.h b/sigmodr/widgets/MoveUI_p.h new file mode 100644 index 00000000..2b992b58 --- /dev/null +++ b/sigmodr/widgets/MoveUI_p.h @@ -0,0 +1,90 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_MOVEUI_P +#define SIGMODRWIDGETS_MOVEUI_P + +// Header include +#include "MoveUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; +class KLineEdit; +class QCheckBox; +namespace Sigcore +{ +class Fraction; +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class FractionWidget; +class ScriptWidget; +} + +namespace Widgets +{ +class MoveUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Move* move); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Move* m_move; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void priorityChanged(const int priority); + void accuracyChanged(const Sigcore::Fraction& accuracy); + void powerChanged(const int power); + void typeChanged(const int type); + void powerPointsChanged(const int powerPoints); + void specialChanged(const bool special); + void descriptionChanged(const QString& description); + void battleScriptChanged(const Sigcore::Script& battleScript); + void worldScriptChanged(const Sigcore::Script& worldScript); + void priorityScriptChanged(const Sigcore::Script& priorityScript); + private: + KLineEdit* ui_name; + KIntNumInput* ui_priority; + CoreWidgets::FractionWidget* ui_accuracy; + KIntNumInput* ui_power; + KComboBox* ui_type; + KIntNumInput* ui_powerPoints; + QCheckBox* ui_special; + KLineEdit* ui_description; + CoreWidgets::ScriptWidget* ui_battleScript; + CoreWidgets::ScriptWidget* ui_worldScript; + CoreWidgets::ScriptWidget* ui_priorityScript; +}; +} +} + +#endif diff --git a/sigmodr/widgets/NatureUI_p.h b/sigmodr/widgets/NatureUI_p.h new file mode 100644 index 00000000..0d8278a4 --- /dev/null +++ b/sigmodr/widgets/NatureUI_p.h @@ -0,0 +1,73 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_NATUREUI_P +#define SIGMODRWIDGETS_NATUREUI_P + +// Header include +#include "NatureUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KIntNumInput; +class KLineEdit; +class QTableWidget; +namespace Sigcore +{ +class Fraction; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class FractionWidget; +} + +namespace Widgets +{ +class NatureUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Nature* nature); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Nature* m_nature; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void statChanged(const int row); + void statMultiplierChanged(const Sigcore::Fraction& multiplier); + void weightChanged(const int weight); + private: + KLineEdit* ui_name; + QTableWidget* ui_stat; + CoreWidgets::FractionWidget* ui_statMultiplier; + KIntNumInput* ui_weight; +}; +} +} + +#endif diff --git a/sigmodr/widgets/RulesUI_p.h b/sigmodr/widgets/RulesUI_p.h new file mode 100644 index 00000000..48db2c75 --- /dev/null +++ b/sigmodr/widgets/RulesUI_p.h @@ -0,0 +1,100 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_RULESUI_P +#define SIGMODRWIDGETS_RULESUI_P + +// Header include +#include "RulesUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KIntNumInput; +class QCheckBox; +namespace Sigmod +{ +class Rules; +} + +namespace Sigmodr +{ +namespace Widgets +{ +class RulesUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Rules* rules); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Rules* m_rules; + public slots: + void resetGui(); + protected slots: + void gendersChanged(const bool genders); + void breedingChanged(const bool breeding); + void criticalDomainsChanged(const bool criticalDomains); + void splitSpecialChanged(const bool specialSplit); + void splitSpecialDVChanged(const bool specialSplitDV); + void effortValuesChanged(const bool effortValues); + void maxEVChanged(const int maxEV); + void maxEVPerStatChanged(const int maxEVPerStat); + void boxesChanged(const int boxes); + void boxSizeChanged(const int boxSize); + void maxPartyChanged(const int maxParty); + void maxFightChanged(const int maxFight); + void maxPlayersChanged(const int maxPlayers); + void maxMovesChanged(const int maxMoves); + void maxLevelChanged(const int maxLevel); + void maxHeldItemsChanged(const int maxHeldItems); + void maxNaturesChanged(const int maxNatures); + void maxAbilitiesChanged(const int maxAbilities); + void maxStagesChanged(const int maxStages); + void maxMoneyChanged(const int maxMoney); + void maxTotalWeightChanged(const int maxTotalWeight); + private: + QCheckBox* ui_genders; + QCheckBox* ui_breeding; + QCheckBox* ui_criticalDomains; + QCheckBox* ui_splitSpecial; + QCheckBox* ui_splitSpecialDV; + QCheckBox* ui_effortValues; + KIntNumInput* ui_maxEV; + KIntNumInput* ui_maxEVPerStat; + KIntNumInput* ui_boxes; + KIntNumInput* ui_boxSize; + KIntNumInput* ui_maxParty; + KIntNumInput* ui_maxFight; + KIntNumInput* ui_maxPlayers; + KIntNumInput* ui_maxMoves; + KIntNumInput* ui_maxLevel; + KIntNumInput* ui_maxHeldItems; + KIntNumInput* ui_maxNatures; + KIntNumInput* ui_maxAbilities; + KIntNumInput* ui_maxStages; + KIntNumInput* ui_maxMoney; + KIntNumInput* ui_maxTotalWeight; +}; +} +} + +#endif diff --git a/sigmodr/widgets/SkinUI_p.h b/sigmodr/widgets/SkinUI_p.h new file mode 100644 index 00000000..15890e9a --- /dev/null +++ b/sigmodr/widgets/SkinUI_p.h @@ -0,0 +1,66 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_SKINUI_P +#define SIGMODRWIDGETS_SKINUI_P + +// Header include +#include "SkinUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class SkinUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Skin* skin); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Skin* m_skin; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + CoreWidgets::ScriptWidget* ui_script; +}; +} +} + +#endif diff --git a/sigmodr/widgets/SoundUI_p.h b/sigmodr/widgets/SoundUI_p.h new file mode 100644 index 00000000..a4a87fe0 --- /dev/null +++ b/sigmodr/widgets/SoundUI_p.h @@ -0,0 +1,79 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_SOUNDUI_P +#define SIGMODRWIDGETS_SOUNDUI_P + +// Header include +#include "SoundUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Phonon includes +#include <Phonon/Global> + +// Forward declarations +class KLineEdit; +class KPushButton; +class QBuffer; +class QLabel; +namespace Phonon +{ +class AudioOutput; +class MediaObject; +} + +namespace Sigmodr +{ +namespace Widgets +{ +class SoundUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Sound* sound); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Sound* m_sound; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void browse(); + + void stateChanged(Phonon::State newState); + void resetAudioData(); + void tick(qint64 time); + private: + KLineEdit* ui_name; + QLabel* ui_time; + KPushButton* ui_play; + KPushButton* ui_stop; + + Phonon::AudioOutput* m_output; + Phonon::MediaObject* m_media; + QBuffer* m_buffer; +}; +} +} + +#endif diff --git a/sigmodr/widgets/SpeciesMoveUI_p.h b/sigmodr/widgets/SpeciesMoveUI_p.h new file mode 100644 index 00000000..508df22a --- /dev/null +++ b/sigmodr/widgets/SpeciesMoveUI_p.h @@ -0,0 +1,61 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_SPECIESMOVEUI_P +#define SIGMODRWIDGETS_SPECIESMOVEUI_P + +// Header include +#include "SpeciesMoveUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; + +namespace Sigmodr +{ +namespace Widgets +{ +class SpeciesMoveUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::SpeciesMove* move); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::SpeciesMove* m_move; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void moveChanged(const int move); + void levelChanged(const int level); + void wildLevelChanged(const int wildLevel); + private: + KComboBox* ui_move; + KIntNumInput* ui_level; + KIntNumInput* ui_wildLevel; +}; +} +} + +#endif diff --git a/sigmodr/widgets/SpeciesUI_p.h b/sigmodr/widgets/SpeciesUI_p.h new file mode 100644 index 00000000..08fa2e76 --- /dev/null +++ b/sigmodr/widgets/SpeciesUI_p.h @@ -0,0 +1,147 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_SPECIESUI_P +#define SIGMODRWIDGETS_SPECIESUI_P + +// Header include +#include "SpeciesUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KActionSelector; +class KComboBox; +class KIntNumInput; +class KLineEdit; +class QCheckBox; +class QGroupBox; +class QListWidgetItem; +class QTableWidget; +namespace Sigcore +{ +class Fraction; +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class FractionWidget; +class ScriptWidget; +} + +namespace Widgets +{ +class SpeciesUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Species* species); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Species* m_species; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void baseStatChanged(const int row); + void baseStatValueChanged(const int baseStat); + void effortValueChanged(const int row); + void effortValueValueChanged(const int effortValue); + void growthChanged(const int growth); + void experienceValueChanged(const int experienceValue); + void catchValueChanged(const int catchValue); + void maxHoldWeightChanged(const int maxHoldWeight); + void runChanceChanged(const Sigcore::Fraction& runChance); + void fleeChanceChanged(const Sigcore::Fraction& fleeChance); + void itemChanceChanged(const Sigcore::Fraction& itemChance); + void encyclopediaNumberChanged(const int encyclopediaNumber); + void weightChanged(const int weight); + void heightChanged(const int height); + void encyclopediaEntryChanged(const QString& encyclopediaEntry); + void maleFrontChanged(const int maleFront); + void maleBackChanged(const int maleBack); + void femaleFrontChanged(const int femaleFront); + void femaleBackChanged(const int femaleBack); + void skinChanged(const int skin); + void hasGenderChanged(const bool hasGender); + void genderChanceChanged(const Sigcore::Fraction& genderChance); + void eggSpeciesChanged(const int eggSpecies); + void eggStepsChanged(const int eggSteps); + void evolutionChanged(const Sigcore::Script& evolution); + void typeAdded(QListWidgetItem* item); + void typeRemoved(QListWidgetItem* item); + void eggGroupAdded(QListWidgetItem* item); + void eggGroupRemoved(QListWidgetItem* item); + void abilityAdded(QListWidgetItem* item); + void abilityRemoved(QListWidgetItem* item); + void abilityChanged(QListWidgetItem* item); + void abilityWeightChanged(const int abilityWeight); + void itemAdded(QListWidgetItem* item); + void itemRemoved(QListWidgetItem* item); + void itemChanged(QListWidgetItem* item); + void itemWeightChanged(const int itemWeight); + private: + KLineEdit* ui_name; + QTableWidget* ui_baseStat; + KIntNumInput* ui_baseStatValue; + QGroupBox* ui_boxEffortValues; + QTableWidget* ui_effortValue; + KIntNumInput* ui_effortValueValue; + KComboBox* ui_growth; + KIntNumInput* ui_experienceValue; + KIntNumInput* ui_catchValue; + KIntNumInput* ui_maxHoldWeight; + CoreWidgets::FractionWidget* ui_runChance; + CoreWidgets::FractionWidget* ui_fleeChance; + CoreWidgets::FractionWidget* ui_itemChance; + KIntNumInput* ui_encyclopediaNumber; + KIntNumInput* ui_weight; + KIntNumInput* ui_height; + KLineEdit* ui_encyclopediaEntry; + KComboBox* ui_maleFront; + KComboBox* ui_maleBack; + KComboBox* ui_femaleFront; + KComboBox* ui_femaleBack; + KComboBox* ui_skin; + QWidget* ui_genetics; + QCheckBox* ui_hasGender; + CoreWidgets::FractionWidget* ui_genderChance; + QGroupBox* ui_boxEggGroups; + KComboBox* ui_eggSpecies; + KIntNumInput* ui_eggSteps; + CoreWidgets::ScriptWidget* ui_evolution; + KActionSelector* ui_types; + KActionSelector* ui_eggGroups; + QGroupBox* ui_boxAbilities; + KActionSelector* ui_abilities; + KIntNumInput* ui_abilityWeight; + QGroupBox* ui_boxItems; + KActionSelector* ui_items; + KIntNumInput* ui_itemWeight; +}; +} +} + +#endif diff --git a/sigmodr/widgets/SpriteUI_p.h b/sigmodr/widgets/SpriteUI_p.h new file mode 100644 index 00000000..ac3696a2 --- /dev/null +++ b/sigmodr/widgets/SpriteUI_p.h @@ -0,0 +1,58 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_SPRITEUI_P +#define SIGMODRWIDGETS_SPRITEUI_P + +// Header include +#include "SpriteUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +class QLabel; + +namespace Sigmodr +{ +namespace Widgets +{ +class SpriteUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Sprite* sprite); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Sprite* m_Sprite; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void browse(); + private: + KLineEdit* ui_name; + QLabel* ui_sprite; +}; +} +} + +#endif diff --git a/sigmodr/widgets/StatusUI_p.h b/sigmodr/widgets/StatusUI_p.h new file mode 100644 index 00000000..c3d95f99 --- /dev/null +++ b/sigmodr/widgets/StatusUI_p.h @@ -0,0 +1,68 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_STATUSUI_P +#define SIGMODRWIDGETS_STATUSUI_P + +// Header include +#include "StatusUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class StatusUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Status* status); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Status* m_status; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void battleScriptChanged(const Sigcore::Script& battleScript); + void worldScriptChanged(const Sigcore::Script& worldScript); + private: + KLineEdit* ui_name; + CoreWidgets::ScriptWidget* ui_battleScript; + CoreWidgets::ScriptWidget* ui_worldScript; +}; +} +} + +#endif diff --git a/sigmodr/widgets/StoreUI_p.h b/sigmodr/widgets/StoreUI_p.h new file mode 100644 index 00000000..318004c3 --- /dev/null +++ b/sigmodr/widgets/StoreUI_p.h @@ -0,0 +1,61 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_STOREUI_P +#define SIGMODRWIDGETS_STOREUI_P + +// Header include +#include "StoreUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KActionSelector; +class KLineEdit; +class QListWidgetItem; + +namespace Sigmodr +{ +namespace Widgets +{ +class StoreUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Store* store); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Store* m_Store; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void itemAdded(QListWidgetItem* item); + void itemRemoved(QListWidgetItem* item); + private: + KLineEdit* ui_name; + KActionSelector* ui_items; +}; +} +} + +#endif diff --git a/sigmodr/widgets/TileUI_p.h b/sigmodr/widgets/TileUI_p.h new file mode 100644 index 00000000..fd5fe26f --- /dev/null +++ b/sigmodr/widgets/TileUI_p.h @@ -0,0 +1,69 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_TILEUI_P +#define SIGMODRWIDGETS_TILEUI_P + +// Header include +#include "TileUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +class QCheckBox; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class TileUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Tile* tile); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Tile* m_tile; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void walkableChanged(const bool walkable); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + QCheckBox* ui_walkable; + CoreWidgets::ScriptWidget* ui_script; +}; +} +} + +#endif diff --git a/sigmodr/widgets/TimeUI_p.h b/sigmodr/widgets/TimeUI_p.h new file mode 100644 index 00000000..bdfaa38a --- /dev/null +++ b/sigmodr/widgets/TimeUI_p.h @@ -0,0 +1,69 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_TIMEUI_P +#define SIGMODRWIDGETS_TIMEUI_P + +// Header include +#include "TimeUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +class QTimeEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class TimeUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Time* time); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Time* m_time; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void timeChanged(const QTime& time); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + QTimeEdit* ui_time; + CoreWidgets::ScriptWidget* ui_script; +}; +} +} + +#endif diff --git a/sigmodr/widgets/TrainerUI_p.h b/sigmodr/widgets/TrainerUI_p.h new file mode 100644 index 00000000..f2699527 --- /dev/null +++ b/sigmodr/widgets/TrainerUI_p.h @@ -0,0 +1,74 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_TRAINERUI_P +#define SIGMODRWIDGETS_TRAINERUI_P + +// Header include +#include "TrainerUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KComboBox; +class KIntNumInput; +class KLineEdit; + +namespace Sigmodr +{ +namespace Widgets +{ +class TrainerUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Trainer* trainer); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Trainer* m_trainer; + public slots: + void refreshGui(); + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void moneyFactorChanged(const int moneyFactor); + void skinChanged(const int skin); + void depthChanged(const int depth); + void teamIntelChanged(const int teamIntel); + void moveIntelChanged(const int moveIntel); + void itemIntelChanged(const int itemIntel); + void abilityIntelChanged(const int abilityIntel); + void statIntelChanged(const int statIntel); + private: + KLineEdit* ui_name; + KIntNumInput* ui_moneyFactor; + KComboBox* ui_skin; + KIntNumInput* ui_depth; + KComboBox* ui_teamIntel; + KComboBox* ui_moveIntel; + KComboBox* ui_itemIntel; + KComboBox* ui_abilityIntel; + KComboBox* ui_statIntel; +}; +} +} + +#endif diff --git a/sigmodr/widgets/TypeUI_p.h b/sigmodr/widgets/TypeUI_p.h new file mode 100644 index 00000000..f0630bea --- /dev/null +++ b/sigmodr/widgets/TypeUI_p.h @@ -0,0 +1,66 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_TYPEUI_P +#define SIGMODRWIDGETS_TYPEUI_P + +// Header include +#include "TypeUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Fraction; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class FractionWidget; +} + +namespace Widgets +{ +class TypeUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Type* type); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Type* m_type; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void stabChanged(const Sigcore::Fraction& stab); + private: + KLineEdit* ui_name; + CoreWidgets::FractionWidget* ui_stab; +}; +} +} + +#endif diff --git a/sigmodr/widgets/WeatherUI_p.h b/sigmodr/widgets/WeatherUI_p.h new file mode 100644 index 00000000..e7db5a75 --- /dev/null +++ b/sigmodr/widgets/WeatherUI_p.h @@ -0,0 +1,66 @@ +/* + * Copyright 2008-2009 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 SIGMODRWIDGETS_WEATHERUI_P +#define SIGMODRWIDGETS_WEATHERUI_P + +// Header include +#include "WeatherUI.h" + +// Sigmodr widget includes +#include "ObjectUIPrivate.h" + +// Forward declarations +class KLineEdit; +namespace Sigcore +{ +class Script; +} + +namespace Sigmodr +{ +namespace CoreWidgets +{ +class ScriptWidget; +} + +namespace Widgets +{ +class WeatherUI::Private : public ObjectUIPrivate +{ + Q_OBJECT + + public: + Private(Sigmod::Weather* weather); + ~Private(); + + QWidget* makeWidgets(ObjectUI* widget); + + Sigmod::Weather* m_weather; + public slots: + void resetGui(); + protected slots: + void nameChanged(const QString& name); + void scriptChanged(const Sigcore::Script& script); + private: + KLineEdit* ui_name; + CoreWidgets::ScriptWidget* ui_script; +}; +} +} + +#endif |