File: resourceplacementdialog.h

package info (click to toggle)
asc 2.6.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 81,740 kB
  • sloc: cpp: 158,704; sh: 11,544; ansic: 6,736; makefile: 604; perl: 138
file content (90 lines) | stat: -rw-r--r-- 2,743 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/***************************************************************************
                          paradialog.h  -  description
                             -------------------
    begin                : Thu Feb 21 2002
    copyright            : (C) 2002 by Martin Bickel
    email                : bickel@asc-hq.org
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef resourceplacementdialogH
 #define resourceplacementdialogH

  #include <sstream>
  #include "global.h"
  #include "paradialog.h"
  #include "gameoptions.h"
  #include "sdl/sound.h"  


class ResourcePlacementDialog : public ASC_PG_Dialog {
public:
  ResourcePlacementDialog( );
protected:
  static const int xsize;
  static const int ysize;
  static const int xOffSet;
  static const int yOffSet;

  static const int leftIndent;

  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;

  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() {
    quitModalLoop(2);
    return true;
  };

};


extern void resourcePlacementDialog();

#endif