Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ResourcePlacementDialog Class Reference

#include <resourceplacementdialog.h>

Inheritance diagram for ResourcePlacementDialog:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ResourcePlacementDialog ()

Protected Member Functions

bool radioButtonEvent (PG_RadioButton *button, bool state)
bool buttonErrorOkEvent (PG_Button *button)
bool buttonEvent (PG_Button *button)
bool scrollTrackEventMaterial (long data)
bool scrollTrackEventFuel (long data)
bool scrollTrackEventMaterialFreeRatio (long data)
bool scrollTrackEventFuelFreeRatio (long data)
bool closeWindow ()

Static Protected Member Functions

static const char * int2String (int i)

Protected Attributes

double fuelRoughness
double materialRoughness
int maxFuelOffSet
int maxMaterialOffSet
PG_LineEditfuelRoughnessWidget
PG_LineEditmaterialRoughnessWidget
PG_LineEditfuelOffsetWidget
PG_LineEditmaterialOffsetWidget
PG_CheckButtonplaceFuelWidget
PG_CheckButtonplaceMaterialWidget
PG_LabelmaterialRoughnessLabel
PG_LabelfuelRoughnessLabel
PG_SlidermaterialOffSetSlider
PG_LabelmaterialOffSetLabel
PG_LineEditmaterialOffSetValue
PG_SliderfuelOffSetSlider
PG_LabelfuelOffSetLabel
PG_LineEditfuelOffSetValue
PG_SliderfuelFreeRatioSlider
PG_LabelfuelFreeRatioLabel
PG_LineEditfuelFreeRatioValue
PG_SlidermaterialFreeRatioSlider
PG_LabelmaterialFreeRatioLabel
PG_LineEditmaterialFreeRatioValue
PG_MessageBoxd

Static Protected Attributes

static const int xsize = 400
static const int ysize = 612
static const int xOffSet = xsize/10
static const int yOffSet = ysize/20
static const int leftIndent = xsize/50

Constructor & Destructor Documentation

ResourcePlacementDialog::ResourcePlacementDialog  ) 
 

Definition at line 34 of file resourceplacementdialog.cpp.

References atoi(), buttonEvent(), closeWindow(), fuelFreeRatioLabel, fuelFreeRatioSlider, fuelFreeRatioValue, fuelOffSetLabel, fuelOffSetSlider, fuelOffSetValue, fuelRoughnessLabel, fuelRoughnessWidget, PG_Widget::GetText(), PG_Widget::GetTextHeight(), PG_Rect::Height(), PG_ScrollBar::HORIZONTAL, int2String(), leftIndent, materialFreeRatioLabel, materialFreeRatioSlider, materialFreeRatioValue, materialOffSetLabel, materialOffSetSlider, materialOffSetValue, materialRoughnessLabel, materialRoughnessWidget, ResourcePlacement::MAXFUELVALUE, ResourcePlacement::MAXMATERIALVALUE, ResourcePlacement::MINFUELVALUE, ResourcePlacement::MINMATERIALVALUE, PG_Rect::PG_Rect(), placeFuelWidget, placeMaterialWidget, scrollTrackEventFuel(), scrollTrackEventFuelFreeRatio(), scrollTrackEventMaterial(), scrollTrackEventMaterialFreeRatio(), PG_LineEdit::SetEditable(), PG_ScrollBar::SetPosition(), PG_ScrollBar::SetRange(), PG_Label::SetSizeByText(), PG_RadioButton::SetSizeByText(), PG_LineEdit::SetText(), PG_LineEdit::SetValidKeys(), PG_Window::sigClose, PG_Slider::sigSlide, PG_Rect::Width(), xOffSet, xsize, yOffSet, and ysize.


Member Function Documentation

bool ResourcePlacementDialog::buttonErrorOkEvent PG_Button button  )  [protected]
 

Definition at line 208 of file resourceplacementdialog.cpp.

References ASC_PG_Dialog::quitModalLoop().

bool ResourcePlacementDialog::buttonEvent PG_Button button  )  [protected]
 

Definition at line 160 of file resourceplacementdialog.cpp.

References actmap, atof(), atoi(), d, fuelOffSetValue, fuelRoughnessWidget, PG_RadioButton::GetPressed(), PG_Widget::GetText(), PG_Rect::Height(), materialFreeRatioValue, materialOffSetValue, materialRoughnessWidget, PG_Rect::PG_Rect(), ResourcePlacement::placeFuelResources(), placeFuelWidget, ResourcePlacement::placeMaterialResources(), placeMaterialWidget, ResourcePlacement::placeResources(), ASC_PG_Dialog::quitModalLoop(), PG_Widget::Show(), and PG_Rect::Width().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::closeWindow  )  [inline, protected, virtual]
 

Reimplemented from ASC_PG_Dialog.

Definition at line 84 of file resourceplacementdialog.h.

References ASC_PG_Dialog::quitModalLoop().

Referenced by ResourcePlacementDialog().

static const char* ResourcePlacementDialog::int2String int  i  )  [inline, static, protected]
 

Definition at line 36 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog(), scrollTrackEventFuelFreeRatio(), scrollTrackEventMaterial(), and scrollTrackEventMaterialFreeRatio().

bool ResourcePlacementDialog::radioButtonEvent PG_RadioButton button,
bool  state
[protected]
 

bool ResourcePlacementDialog::scrollTrackEventFuel long  data  )  [protected]
 

Definition at line 189 of file resourceplacementdialog.cpp.

References fuelOffSetValue, and PG_LineEdit::SetText().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::scrollTrackEventFuelFreeRatio long  data  )  [protected]
 

Definition at line 203 of file resourceplacementdialog.cpp.

References fuelFreeRatioValue, int2String(), and PG_LineEdit::SetText().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::scrollTrackEventMaterial long  data  )  [protected]
 

Definition at line 184 of file resourceplacementdialog.cpp.

References int2String(), materialOffSetValue, and PG_LineEdit::SetText().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::scrollTrackEventMaterialFreeRatio long  data  )  [protected]
 

Definition at line 197 of file resourceplacementdialog.cpp.

References int2String(), materialFreeRatioValue, and PG_LineEdit::SetText().

Referenced by ResourcePlacementDialog().


Member Data Documentation

PG_MessageBox* ResourcePlacementDialog::d [protected]
 

Definition at line 75 of file resourceplacementdialog.h.

Referenced by buttonEvent().

PG_Label* ResourcePlacementDialog::fuelFreeRatioLabel [protected]
 

Definition at line 68 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::fuelFreeRatioSlider [protected]
 

Definition at line 67 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::fuelFreeRatioValue [protected]
 

Definition at line 69 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog(), and scrollTrackEventFuelFreeRatio().

PG_Label* ResourcePlacementDialog::fuelOffSetLabel [protected]
 

Definition at line 64 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::fuelOffSetSlider [protected]
 

Definition at line 63 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::fuelOffSetValue [protected]
 

Definition at line 65 of file resourceplacementdialog.h.

Referenced by buttonEvent(), ResourcePlacementDialog(), and scrollTrackEventFuel().

PG_LineEdit* ResourcePlacementDialog::fuelOffsetWidget [protected]
 

Definition at line 52 of file resourceplacementdialog.h.

double ResourcePlacementDialog::fuelRoughness [protected]
 

Definition at line 44 of file resourceplacementdialog.h.

PG_Label* ResourcePlacementDialog::fuelRoughnessLabel [protected]
 

Definition at line 57 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::fuelRoughnessWidget [protected]
 

Definition at line 50 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

const int ResourcePlacementDialog::leftIndent = xsize/50 [static, protected]
 

Definition at line 31 of file resourceplacementdialog.cpp.

Referenced by ResourcePlacementDialog().

PG_Label* ResourcePlacementDialog::materialFreeRatioLabel [protected]
 

Definition at line 72 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::materialFreeRatioSlider [protected]
 

Definition at line 71 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::materialFreeRatioValue [protected]
 

Definition at line 73 of file resourceplacementdialog.h.

Referenced by buttonEvent(), ResourcePlacementDialog(), and scrollTrackEventMaterialFreeRatio().

PG_Label* ResourcePlacementDialog::materialOffSetLabel [protected]
 

Definition at line 60 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::materialOffSetSlider [protected]
 

Definition at line 59 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::materialOffSetValue [protected]
 

Definition at line 61 of file resourceplacementdialog.h.

Referenced by buttonEvent(), ResourcePlacementDialog(), and scrollTrackEventMaterial().

PG_LineEdit* ResourcePlacementDialog::materialOffsetWidget [protected]
 

Definition at line 53 of file resourceplacementdialog.h.

double ResourcePlacementDialog::materialRoughness [protected]
 

Definition at line 45 of file resourceplacementdialog.h.

PG_Label* ResourcePlacementDialog::materialRoughnessLabel [protected]
 

Definition at line 56 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::materialRoughnessWidget [protected]
 

Definition at line 51 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

int ResourcePlacementDialog::maxFuelOffSet [protected]
 

Definition at line 46 of file resourceplacementdialog.h.

int ResourcePlacementDialog::maxMaterialOffSet [protected]
 

Definition at line 47 of file resourceplacementdialog.h.

PG_CheckButton* ResourcePlacementDialog::placeFuelWidget [protected]
 

Definition at line 54 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

PG_CheckButton* ResourcePlacementDialog::placeMaterialWidget [protected]
 

Definition at line 55 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

const int ResourcePlacementDialog::xOffSet = xsize/10 [static, protected]
 

Definition at line 29 of file resourceplacementdialog.cpp.

Referenced by ResourcePlacementDialog().

const int ResourcePlacementDialog::xsize = 400 [static, protected]
 

Definition at line 27 of file resourceplacementdialog.cpp.

Referenced by ResourcePlacementDialog().

const int ResourcePlacementDialog::yOffSet = ysize/20 [static, protected]
 

Definition at line 30 of file resourceplacementdialog.cpp.

Referenced by ResourcePlacementDialog().

const int ResourcePlacementDialog::ysize = 612 [static, protected]
 

Definition at line 28 of file resourceplacementdialog.cpp.

Referenced by ResourcePlacementDialog().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:20:22 2008 for Advanced Strategic Command by  doxygen 1.4.2