Planeshift
|
00001 /* 00002 * pawscharparents.h - Author: Andrew Craig 00003 * 00004 * Copyright (C) 2003 Atomic Blue ([email protected], http://www.atomicblue.org) 00005 * 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation (version 2 of the License) 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 */ 00019 #ifndef PAWS_CHARACTER_CREATION_PARENTS 00020 #define PAWS_CHARACTER_CREATION_PARENTS 00021 00022 #include "paws/pawswidget.h" 00023 #include "paws/pawsradio.h" 00024 #include "paws/pawstextbox.h" 00025 00027 // FORWARD DECLARATIONS 00029 class psCreationManager; 00030 class pawsMultiLineTextBox; 00031 class pawsComboBox; 00032 class pawsTextBox; 00034 00037 class pawsCharParents : public pawsWidget 00038 { 00039 public: 00040 pawsCharParents(); 00041 ~pawsCharParents(); 00042 00043 void Draw(); 00044 00045 bool PostSetup(); 00046 void OnListAction( pawsListBox* widget, int status ); 00047 void Show(); 00048 00049 bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget ); 00050 private: 00051 void Randomize(); 00052 00054 psCreationManager* createManager; 00055 00057 bool dataLoaded; 00058 00059 /*/// parents' names widgets 00060 pawsEditTextBox* fatherNameTextBox; 00061 pawsEditTextBox* motherNameTextBox;*/ 00062 00064 pawsMultiLineTextBox* fatherJobDesc; 00065 pawsMultiLineTextBox* motherJobDesc; 00066 00068 pawsRadioButtonGroup* fatherStatus; 00069 pawsRadioButtonGroup* motherStatus; 00070 00071 pawsComboBox* religionBox; 00072 pawsMultiLineTextBox* religionDesc; 00073 00074 pawsTextBox* cpBox; 00075 00080 void PopulateFields(); 00081 00083 void HandleMotherStatus( int newMod ); 00084 void HandleFatherStatus( int newMod ); 00085 00086 void UpdateCP(); 00087 00088 int lastFatherChoice; 00089 int lastMotherChoice; 00090 int lastReligionChoice; 00091 int religionCount; 00092 00093 int fMod; 00094 int fLastMod; 00095 00096 int mMod; 00097 int mLastMod; 00098 00099 00100 }; 00101 00102 CREATE_PAWS_FACTORY( pawsCharParents ); 00103 00104 #endif