00001 /*************************************************************************** 00002 paradialog.h - description 00003 ------------------- 00004 begin : Thu Feb 21 2002 00005 copyright : (C) 2002 by Martin Bickel 00006 email : bickel@asc-hq.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef resourceplacementdialogH 00019 #define resourceplacementdialogH 00020 00021 #include <sstream> 00022 #include "global.h" 00023 #include "paradialog.h" 00024 #include "gameoptions.h" 00025 #include "sdl/sound.h" 00026 00027 00028 class ResourcePlacementDialog : public ASC_PG_Dialog { 00029 public: 00030 ResourcePlacementDialog( ); 00031 protected: 00032 static const int xsize; 00033 static const int ysize; 00034 static const int xOffSet; 00035 static const int yOffSet; 00036 static const char* int2String(int i) { 00037 stringstream s; 00038 s << i; 00039 return s.str().c_str(); 00040 } 00041 00042 static const int leftIndent; 00043 00044 double fuelRoughness; 00045 double materialRoughness; 00046 int maxFuelOffSet; 00047 int maxMaterialOffSet; 00048 00049 00050 PG_LineEdit* fuelRoughnessWidget; 00051 PG_LineEdit* materialRoughnessWidget; 00052 PG_LineEdit* fuelOffsetWidget; 00053 PG_LineEdit* materialOffsetWidget; 00054 PG_CheckButton* placeFuelWidget; 00055 PG_CheckButton* placeMaterialWidget; 00056 PG_Label* materialRoughnessLabel; 00057 PG_Label* fuelRoughnessLabel; 00058 00059 PG_Slider* materialOffSetSlider; 00060 PG_Label* materialOffSetLabel; 00061 PG_LineEdit* materialOffSetValue; 00062 00063 PG_Slider* fuelOffSetSlider; 00064 PG_Label* fuelOffSetLabel; 00065 PG_LineEdit* fuelOffSetValue; 00066 00067 PG_Slider* fuelFreeRatioSlider; 00068 PG_Label* fuelFreeRatioLabel; 00069 PG_LineEdit* fuelFreeRatioValue; 00070 00071 PG_Slider* materialFreeRatioSlider; 00072 PG_Label* materialFreeRatioLabel; 00073 PG_LineEdit* materialFreeRatioValue; 00074 00075 PG_MessageBox* d; 00076 00077 bool radioButtonEvent( PG_RadioButton* button, bool state); 00078 bool buttonErrorOkEvent( PG_Button* button ); 00079 bool buttonEvent( PG_Button* button ); 00080 bool scrollTrackEventMaterial(long data); 00081 bool scrollTrackEventFuel(long data); 00082 bool scrollTrackEventMaterialFreeRatio(long data); 00083 bool scrollTrackEventFuelFreeRatio(long data); 00084 bool closeWindow() { 00085 quitModalLoop(2); 00086 return true; 00087 }; 00088 00089 }; 00090 00091 00092 extern void resourcePlacementDialog(); 00093 00094 #endif 00095
1.4.2