Advanced Strategic Command
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ResourcePlacementDialog Class Reference

#include <resourceplacementdialog.h>

Inheritance diagram for ResourcePlacementDialog:
Inheritance graph
[legend]

Public Member Functions

 ResourcePlacementDialog ()
 
- Public Member Functions inherited from ASC_PG_Dialog
 ASC_PG_Dialog (PG_Widget *parent, const PG_Rect &r, const ASCString &windowtext, WindowFlags flags=DEFAULT, const ASCString &style="Window", int heightTitlebar=25)
 
PG_Button * AddStandardButton (const ASCString &name)
 
void StandardButtonDirection (StandardButtonDirectonType dir)
 
int RunModal ()
 

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 ()
 
- Protected Member Functions inherited from ASC_PG_Dialog
bool quitModalLoopW (PG_Button *button, int value)
 
bool quitModalLoop (int value)
 
virtual bool eventKeyDown (const SDL_KeyboardEvent *key)
 

Protected Attributes

double fuelRoughness
 
double materialRoughness
 
int maxFuelOffSet
 
int maxMaterialOffSet
 
PG_LineEdit * fuelRoughnessWidget
 
PG_LineEdit * materialRoughnessWidget
 
PG_LineEdit * fuelOffsetWidget
 
PG_LineEdit * materialOffsetWidget
 
PG_CheckButton * placeFuelWidget
 
PG_CheckButton * placeMaterialWidget
 
PG_Label * materialRoughnessLabel
 
PG_Label * fuelRoughnessLabel
 
PG_Slider * materialOffSetSlider
 
PG_Label * materialOffSetLabel
 
PG_LineEdit * materialOffSetValue
 
PG_Slider * fuelOffSetSlider
 
PG_Label * fuelOffSetLabel
 
PG_LineEdit * fuelOffSetValue
 
PG_Slider * fuelFreeRatioSlider
 
PG_Label * fuelFreeRatioLabel
 
PG_LineEdit * fuelFreeRatioValue
 
PG_Slider * materialFreeRatioSlider
 
PG_Label * materialFreeRatioLabel
 
PG_LineEdit * materialFreeRatioValue
 
PG_MessageBox * d
 
- Protected Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller
 

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
 

Additional Inherited Members

- Public Types inherited from ASC_PG_Dialog
enum  StandardButtonDirectonType { Vertical, Horizontal }
 
- Static Public Member Functions inherited from ASC_PG_Dialog
static PG_Rect centerRectangle (const PG_Rect &rect)
 

Detailed Description

Definition at line 28 of file resourceplacementdialog.h.

Constructor & Destructor Documentation

ResourcePlacementDialog::ResourcePlacementDialog ( )

Member Function Documentation

bool ResourcePlacementDialog::buttonErrorOkEvent ( PG_Button *  button)
protected

Definition at line 207 of file resourceplacementdialog.cpp.

References ASC_PG_Dialog::quitModalLoop().

bool ResourcePlacementDialog::buttonEvent ( PG_Button *  button)
protected
bool ResourcePlacementDialog::closeWindow ( )
inlineprotectedvirtual

Reimplemented from ASC_PG_Dialog.

Definition at line 79 of file resourceplacementdialog.h.

References ASC_PG_Dialog::quitModalLoop().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::radioButtonEvent ( PG_RadioButton *  button,
bool  state 
)
protected
bool ResourcePlacementDialog::scrollTrackEventFuel ( long  data)
protected

Definition at line 190 of file resourceplacementdialog.cpp.

References fuelOffSetValue, and ASCString::toString().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::scrollTrackEventFuelFreeRatio ( long  data)
protected

Definition at line 202 of file resourceplacementdialog.cpp.

References fuelFreeRatioValue, and ASCString::toString().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::scrollTrackEventMaterial ( long  data)
protected

Definition at line 185 of file resourceplacementdialog.cpp.

References materialOffSetValue, and ASCString::toString().

Referenced by ResourcePlacementDialog().

bool ResourcePlacementDialog::scrollTrackEventMaterialFreeRatio ( long  data)
protected

Definition at line 196 of file resourceplacementdialog.cpp.

References materialFreeRatioValue, and ASCString::toString().

Referenced by ResourcePlacementDialog().

Member Data Documentation

PG_MessageBox* ResourcePlacementDialog::d
protected

Definition at line 70 of file resourceplacementdialog.h.

Referenced by buttonEvent().

PG_Label* ResourcePlacementDialog::fuelFreeRatioLabel
protected

Definition at line 63 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::fuelFreeRatioSlider
protected

Definition at line 62 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::fuelFreeRatioValue
protected
PG_Label* ResourcePlacementDialog::fuelOffSetLabel
protected

Definition at line 59 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::fuelOffSetSlider
protected

Definition at line 58 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::fuelOffSetValue
protected
PG_LineEdit* ResourcePlacementDialog::fuelOffsetWidget
protected

Definition at line 47 of file resourceplacementdialog.h.

double ResourcePlacementDialog::fuelRoughness
protected

Definition at line 39 of file resourceplacementdialog.h.

PG_Label* ResourcePlacementDialog::fuelRoughnessLabel
protected

Definition at line 52 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::fuelRoughnessWidget
protected

Definition at line 45 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

const int ResourcePlacementDialog::leftIndent = xsize/50
staticprotected

Definition at line 37 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Label* ResourcePlacementDialog::materialFreeRatioLabel
protected

Definition at line 67 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::materialFreeRatioSlider
protected

Definition at line 66 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::materialFreeRatioValue
protected
PG_Label* ResourcePlacementDialog::materialOffSetLabel
protected

Definition at line 55 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_Slider* ResourcePlacementDialog::materialOffSetSlider
protected

Definition at line 54 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::materialOffSetValue
protected
PG_LineEdit* ResourcePlacementDialog::materialOffsetWidget
protected

Definition at line 48 of file resourceplacementdialog.h.

double ResourcePlacementDialog::materialRoughness
protected

Definition at line 40 of file resourceplacementdialog.h.

PG_Label* ResourcePlacementDialog::materialRoughnessLabel
protected

Definition at line 51 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

PG_LineEdit* ResourcePlacementDialog::materialRoughnessWidget
protected

Definition at line 46 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

int ResourcePlacementDialog::maxFuelOffSet
protected

Definition at line 41 of file resourceplacementdialog.h.

int ResourcePlacementDialog::maxMaterialOffSet
protected

Definition at line 42 of file resourceplacementdialog.h.

PG_CheckButton* ResourcePlacementDialog::placeFuelWidget
protected

Definition at line 49 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

PG_CheckButton* ResourcePlacementDialog::placeMaterialWidget
protected

Definition at line 50 of file resourceplacementdialog.h.

Referenced by buttonEvent(), and ResourcePlacementDialog().

const int ResourcePlacementDialog::xOffSet = xsize/10
staticprotected

Definition at line 34 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

const int ResourcePlacementDialog::xsize = 400
staticprotected

Definition at line 32 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

const int ResourcePlacementDialog::yOffSet = ysize/20
staticprotected

Definition at line 35 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().

const int ResourcePlacementDialog::ysize = 612
staticprotected

Definition at line 33 of file resourceplacementdialog.h.

Referenced by ResourcePlacementDialog().


The documentation for this class was generated from the following files: