Advanced Strategic Command
resourceplacementdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  paradialog.h - description
3  -------------------
4  begin : Thu Feb 21 2002
5  copyright : (C) 2002 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef resourceplacementdialogH
19  #define resourceplacementdialogH
20 
21  #include <sstream>
22  #include "global.h"
23  #include "paradialog.h"
24  #include "gameoptions.h"
25  #include "sdl/sound.h"
26 
27 
29 public:
31 protected:
32  static const int xsize;
33  static const int ysize;
34  static const int xOffSet;
35  static const int yOffSet;
36 
37  static const int leftIndent;
38 
39  double fuelRoughness;
43 
44 
45  PG_LineEdit* fuelRoughnessWidget;
47  PG_LineEdit* fuelOffsetWidget;
48  PG_LineEdit* materialOffsetWidget;
49  PG_CheckButton* placeFuelWidget;
50  PG_CheckButton* placeMaterialWidget;
52  PG_Label* fuelRoughnessLabel;
53 
56  PG_LineEdit* materialOffSetValue;
57 
58  PG_Slider* fuelOffSetSlider;
59  PG_Label* fuelOffSetLabel;
60  PG_LineEdit* fuelOffSetValue;
61 
62  PG_Slider* fuelFreeRatioSlider;
63  PG_Label* fuelFreeRatioLabel;
64  PG_LineEdit* fuelFreeRatioValue;
65 
68  PG_LineEdit* materialFreeRatioValue;
69 
70  PG_MessageBox* d;
71 
72  bool radioButtonEvent( PG_RadioButton* button, bool state);
73  bool buttonErrorOkEvent( PG_Button* button );
74  bool buttonEvent( PG_Button* button );
75  bool scrollTrackEventMaterial(long data);
76  bool scrollTrackEventFuel(long data);
77  bool scrollTrackEventMaterialFreeRatio(long data);
78  bool scrollTrackEventFuelFreeRatio(long data);
79  bool closeWindow() {
80  quitModalLoop(2);
81  return true;
82  };
83 
84 };
85 
86 
87 extern void resourcePlacementDialog();
88 
89 #endif
90 
bool scrollTrackEventFuelFreeRatio(long data)
bool buttonErrorOkEvent(PG_Button *button)
Global platform dependant definitions. This file just branches to the platform specific files in thei...
PG_CheckButton * placeMaterialWidget
bool quitModalLoop(int value)
Definition: paradialog.cpp:545
void resourcePlacementDialog()
Adapter class for using Paragui Dialogs in ASC. This class transfers the event control from ASC to Pa...
Definition: paradialog.h:127
Dialog classes based on the Paragui library.
bool scrollTrackEventMaterialFreeRatio(long data)
bool radioButtonEvent(PG_RadioButton *button, bool state)
bool buttonEvent(PG_Button *button)